[FFmpeg-devel] Is it a bug or not done yet?
Vlasov Andrey
ayvlasov
Thu Nov 27 15:47:44 CET 2008
Ffmpeg behaviour depends on arguments order.
I can suggest processing arguments in definite order, taking into account dependencies between them. In some time I'll supply a patch.
Here are some examples:
When I place -ss after -i, it works much longer.
This:
ffmpeg -i file.avi -ss 01:10:00 -f mjpeg -vformats 1 result.jpg
takes significant time (with any video i tried), when
ffmpeg -ss 01:10:00 -i file.avi -f mjpeg -vformats 1 result.jpg
works instantly.
Variable start_time in the case when -ss follows -i is used in void opt_input_file with value 0, though, should be used with the value provided after -ss.
When we change the order of -i and -f, we face the following difficulties:
This:
./ffmpeg -i video.avi -f mjpeg -ss 00:00:01 -vframes 1 result.jpg
works fine,
while
$ ./ffmpeg -f mjpeg -i video.avi -ss 00:00:01 -vframes 1 result.jpg
FFmpeg version SVN-r15943, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration:
libavutil 49.12. 0 / 49.12. 0
libavcodec 52. 3. 0 / 52. 3. 0
libavformat 52.23. 1 / 52.23. 1
libavdevice 52. 1. 0 / 52. 1. 0
built on Nov 27 2008 17:32:07, gcc: 4.3.2
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c1)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c9)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (ca)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c8)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c5)
[mjpeg @ 0x8cf8440]dqt: 16bit precision
[mjpeg @ 0x8cf8440]picture size invalid (39799x62446)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c5)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c9)
[mjpeg @ 0x8cf8440]picture size invalid (58652x11297)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (cf)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c8)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (cb)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (cf)
[mjpeg @ 0x8cf8440]dqt: 16bit precision
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c6)
[mjpeg @ 0x8cf8440]dqt: 16bit precision
[mjpeg @ 0x8cf8440]picture size invalid (13119x51334)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (ce)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (ce)
[mjpeg @ 0x8cf8440]only 8 bits/component accepted
[mjpeg @ 0x8cf8440]dqt: 16bit precision
[mjpeg @ 0x8cf8440]decode_sos: invalid len (21778)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (cb)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c7)
[mjpeg @ 0x8cf8440]invalid id 239
[mjpeg @ 0x8cf8440]only 8 bits/component accepted
[mjpeg @ 0x8cf8440]picture size invalid (36979x55443)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (cf)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c6)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (cf)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (ce)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c6)
[mjpeg @ 0x8cf8440]only 8 bits/component accepted
[mjpeg @ 0x8cf8440]only 8 bits/component accepted
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c6)
[mjpeg @ 0x8cf8440]picture size invalid (30383x36891)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c6)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (ce)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (cb)
[mjpeg @ 0x8cf8440]invalid id 175
[mjpeg @ 0x8cf8440]picture size invalid (56530x26753)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c1)
[mjpeg @ 0x8cf8440]decode_sos: invalid len (38762)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (cf)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c1)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (cd)
[mjpeg @ 0x8cf8440]picture size invalid (24472x54042)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c7)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c8)
[mjpeg @ 0x8cf8440]invalid id 31
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c7)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c7)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c5)
[mjpeg @ 0x8cf8440]dqt: 16bit precision
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c5)
[mjpeg @ 0x8cf8440]invalid id 185
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (cd)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c7)
[mjpeg @ 0x8cf8440]only 8 bits/component accepted
[mjpeg @ 0x8cf8440]decode_sos: invalid len (23048)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (ca)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c9)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c6)
[mjpeg @ 0x8cf8440]picture size invalid (13764x41997)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (cf)
[mjpeg @ 0x8cf8440]picture size invalid (33586x45074)
[mjpeg @ 0x8cf8440]only 8 bits/component accepted
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (cf)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c6)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (cd)
[mjpeg @ 0x8cf8440]picture size invalid (24434x34071)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (ca)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c1)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (cd)
[mjpeg @ 0x8cf8440]only 8 bits/component accepted
[mjpeg @ 0x8cf8440]dqt: 16bit precision
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (cd)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c1)
[mjpeg @ 0x8cf8440]invalid id 41
[mjpeg @ 0x8cf8440]only 8 bits/component accepted
[mjpeg @ 0x8cf8440]invalid id 139
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c5)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (cb)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c6)
[mjpeg @ 0x8cf8440]only 8 bits/component accepted
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c9)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c6)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c5)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c5)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (ca)
[mjpeg @ 0x8cf8440]dqt: 16bit precision
[mjpeg @ 0x8cf8440]decode_sos: invalid len (64383)
[mjpeg @ 0x8cf8440]dqt: 16bit precision
[mjpeg @ 0x8cf8440]decode_sos: invalid len (43034)
[mjpeg @ 0x8cf8440]dqt: 16bit precision
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c9)
[mjpeg @ 0x8cf8440]decode_sos: invalid len (56072)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c5)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (cd)
[mjpeg @ 0x8cf8440]invalid id 16
[mjpeg @ 0x8cf8440]decode_sos: invalid len (39769)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (cb)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (cb)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c5)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c7)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c1)
[mjpeg @ 0x8cf8440]only 8 bits/component accepted
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c5)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c9)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (cd)
[mjpeg @ 0x8cf8440]picture size invalid (22423x48155)
[mjpeg @ 0x8cf8440]picture size invalid (48326x42418)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (ce)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c5)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c5)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (ce)
[mjpeg @ 0x8cf8440]invalid id 140
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c5)
[mjpeg @ 0x8cf8440]invalid id 202
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c9)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (cd)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c7)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (ce)
[mjpeg @ 0x8cf8440]invalid id 145
[mjpeg @ 0x8cf8440]only 8 bits/component accepted
[mjpeg @ 0x8cf8440]only 8 bits/component accepted
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (ce)
[mjpeg @ 0x8cf8440]picture size invalid (57111x31618)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c8)
[mjpeg @ 0x8cf8440]huffman table decode error
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (ce)
[mjpeg @ 0x8cf8440]picture size invalid (62870x28359)
[mjpeg @ 0x8cf8440]only 8 bits/component accepted
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c7)
[mjpeg @ 0x8cf8440]decode_sos: invalid len (34255)
[mjpeg @ 0x8cf8440]invalid id 192
[mjpeg @ 0x8cf8440]only 8 bits/component accepted
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c1)
[mjpeg @ 0x8cf8440]picture size invalid (22205x37922)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (cb)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c1)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (ca)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (ce)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c5)
[mjpeg @ 0x8cf8440]picture size invalid (18732x58316)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c6)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c6)
[mjpeg @ 0x8cf8440]picture size invalid (50520x38174)
[mjpeg @ 0x8cf8440]only 8 bits/component accepted
[mjpeg @ 0x8cf8440]dqt: 16bit precision
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c5)
[mjpeg @ 0x8cf8440]only 8 bits/component accepted
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c7)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (cd)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (cf)
[mjpeg @ 0x8cf8440]only 8 bits/component accepted
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c1)
[mjpeg @ 0x8cf8440]only 8 bits/component accepted
[mjpeg @ 0x8cf8440]decode_sos: invalid len (10348)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c8)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (ca)
[mjpeg @ 0x8cf8440]mjpeg: unsupported coding type (c6)
[mjpeg @ 0x8cf8440]only 8 bits/component accepted
[mjpeg @ 0x8cf8440]invalid id 203
Input #0, mjpeg, from 'video.avi':
Duration: N/A, bitrate: N/A
Stream #0.0: Video: mjpeg, 25.00 tb(r)
picture size invalid (0x0)
Cannot allocate temp picture, check pix fmt
More information about the ffmpeg-devel
mailing list