[FFmpeg-trac] #2187(FFmpeg:new): Cannot create a raw DV file out of an AVI/DVSD file
FFmpeg
trac at avcodec.org
Fri Jan 25 19:46:52 CET 2013
#2187: Cannot create a raw DV file out of an AVI/DVSD file
--------------------------------+---------------------------------------
Reporter: TeeAlk | Type: defect
Status: new | Priority: normal
Component: FFmpeg | Version: unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
--------------------------------+---------------------------------------
I cannot create a raw DV file out of an AVI file created with Lightworks.
I get the message "Could not write header for output file #0 (incorrect
codec parameters ?): Invalid argument" and there is a strange setting
1/90000 in both the output's video and audio stream instead of 1/25
(video, PAL) & 1/48000 (audio). It worked with an older version of ffmpeg
but I cannot tell you since when this problem exists. I tried both
commands:
{{{
ffmpeg -input.avi target pal-dv output.dv
ffmpeg -i input.avi -map 0 -f dv -pix_fmt yuv420p -r 25 -ar 48000 -ac 2
output.dv
}}}
Here's what I have for you
{{{
ffmpeg version N-49166-g205b2d2 Copyright (c) 2000-2013 the FFmpeg
developers
built on Jan 23 2013 13:40:58 with gcc 4.4.5 (Ubuntu/Linaro
4.4.4-14ubuntu5.1)
configuration: --enable-gpl --enable-ffplay --enable-libfaac --enable-
libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-
libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-
postproc --enable-version3 --enable-x11grab
libavutil 52. 15.100 / 52. 15.100
libavcodec 54. 90.100 / 54. 90.100
libavformat 54. 61.103 / 54. 61.103
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 33.100 / 3. 33.100
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
Splitting the commandline.
Reading option '-i' ... matched as input file with argument 'input.avi'.
Reading option '-target' ... matched as option 'target' (specify target
file type ("vcd", "svcd", "dvd", "dv", "dv50", "pal-vcd", "ntsc-svcd",
...)) with argument 'pal-dv'.
Reading option '-loglevel' ... matched as option 'loglevel' (set libav*
logging level) with argument 'debug'.
Reading option 'output.dv' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set libav* logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input file input.avi.
Successfully parsed a group of options.
Opening an input file: input.avi.
[avi @ 0xb15d2e0] Format avi probed with size=2048 and score=100
[avi @ 0xb15d840] use odml:1
[avi @ 0xb15d2e0] non-interleaved AVI
[avi @ 0xb15d2e0] File position before avformat_find_stream_info() is
33804
[avi @ 0xb15d2e0] parser not found for codec dvvideo, packets or times may
be invalid.
[avi @ 0xb15d2e0] parser not found for codec pcm_s16le, packets or times
may be invalid.
[avi @ 0xb15d2e0] parser not found for codec dvvideo, packets or times may
be invalid.
[avi @ 0xb15d2e0] parser not found for codec pcm_s16le, packets or times
may be invalid.
[avi @ 0xb15d2e0] All info found
[avi @ 0xb15d2e0] File position after avformat_find_stream_info() is
324616
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, avi, from 'input.avi':
Metadata:
encoder : EditShare AVI v3.0.0.0
timecode : 00:00:00.00
Duration: 00:03:34.00, start: 0.000000, bitrate: 30528 kb/s
Stream #0:0, 1, 1/25: Video: dvvideo (dvsd / 0x64737664), yuv420p,
720x576 [SAR 16:15 DAR 4:3], 1/25, 25 tbr, 25 tbn, 25 tbc
Stream #0:1, 1, 1/48000: Audio: pcm_s16le ([1][0][0][0] / 0x0001),
48000 Hz, stereo, s16, 1536 kb/s
Successfully openened the file.
Parsing a group of options: output file output.dv.
Applying option target (specify target file type ("vcd", "svcd", "dvd",
"dv", "dv50", "pal-vcd", "ntsc-svcd", ...)) with argument pal-dv.
Successfully parsed a group of options.
Opening an output file: output.dv.
Successfully openened the file.
[buffer @ 0xb164f20] Setting entry with key 'video_size' to value
'720x576'
[buffer @ 0xb164f20] Setting entry with key 'pix_fmt' to value '0'
[buffer @ 0xb164f20] Setting entry with key 'time_base' to value '1/25'
[buffer @ 0xb164f20] Setting entry with key 'pixel_aspect' to value
'16/15'
[buffer @ 0xb164f20] Setting entry with key 'sws_param' to value 'flags=2'
[buffer @ 0xb164f20] Setting entry with key 'frame_rate' to value '25/1'
[graph 0 input from stream 0:0 @ 0xb146140] w:720 h:576 pixfmt:yuv420p
tb:1/25 fr:25/1 sar:16/15 sws_param:flags=2
[scale @ 0xb1462e0] Setting 'w' to value '720'
[scale @ 0xb1462e0] Setting 'h' to value '576'
[scale @ 0xb1462e0] Setting 'flags' to value '0x4'
[scaler for output stream 0:0 @ 0xb145c40] w:720 h:576 flags:'0x4'
interl:0
[scaler for output stream 0:0 @ 0xb145c40] w:720 h:576 fmt:yuv420p
sar:16/15 -> w:720 h:576 fmt:yuv420p sar:16/15 flags:0x4
[abuffer @ 0xb146ce0] Setting entry with key 'time_base' to value
'1/48000'
[abuffer @ 0xb146ce0] Setting entry with key 'sample_rate' to value
'48000'
[abuffer @ 0xb146ce0] Setting entry with key 'sample_fmt' to value 's16'
[abuffer @ 0xb146ce0] Setting entry with key 'channel_layout' to value
'0x3'
[graph 1 input from stream 0:1 @ 0xb147040] tb:1/48000 samplefmt:s16
samplerate:48000 chlayout:0x3
[aformat @ 0xb147940] Setting entry with key 'sample_fmts' to value 's16'
[aformat @ 0xb147940] Setting entry with key 'sample_rates' to value
'48000'
[aformat @ 0xb147940] Setting entry with key 'channel_layouts' to value
'0x3'
[dvvideo @ 0xb15dc80] detected 2 logical cores
[dvvideo @ 0xb1635c0] detected 2 logical cores
[dv @ 0xb1651c0] Drop frame is only allowed with 30000/1001 FPS
Output #0, dv, to 'output.dv':
Metadata:
timecode : 00:00:00.00
encoder : Lavf54.61.103
Stream #0:0, 0, 1/90000: Video: dvvideo, yuv420p, 720x576 [SAR 16:15
DAR 4:3], 1/25, q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream #0:1, 0, 1/90000: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536
kb/s
Stream mapping:
Stream #0:0 -> #0:0 (dvvideo -> dvvideo)
Stream #0:1 -> #0:1 (pcm_s16le -> pcm_s16le)
Could not write header for output file #0 (incorrect codec parameters ?):
Invalid argument
Statistics: 471680 bytes read, 10 seeks
}}}
I don't know where that number 1/90000 comes from and why my settings in
the second command are ignored.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2187>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list