[FFmpeg-user] flv video truncated in conversion to mxf
Suneetha Sarala
suneetha_s at yahoo.com
Tue May 1 00:50:26 CEST 2012
I am using ffmpeg (version 0.10.2) to convert an flv (Sorenson Spark video & Speex audio) into an MXF file. I get a warning "Missing Speex header, assuming defaults." and transcoding proceeds. But the 50-second input file is truncated to 46 seconds in the MXF output.
This video was generated using a Flex app and FMS Server 4.0.
I have provided detailed outputs below.
Would greatly appreciate it if anyone can shed any light on why the file is getting truncated.
Thanks,
Suneetha
PS: One thing I noticed is that MediaInfo shows the Audio Sampling rate as 5500 Hz while ffmpeg is assuming that it is 16000 Hz. I tried to force ffmpeg to use 5500 as the Audio sampling rate for the input file by providing "-ar 5500" before providing -i <input-file>. But that gave me the error "Option sample_rate not found.".
Command line I am using:
====================
ffmpeg -i ~/MEDIA/test7.flv -ss 0.000000 -r 29.97 -threads 4 -vcodec mpeg2video -pix_fmt yuv422p -q:v 1 -intra -ar 48000 -async 1 -q:a 1 -f mxf test-out.mxf
(I tried adding the -t option. That did not help)
Output
=====
$ffmpeg -i ~/MEDIA/test7.flv -ss 0.000000 -r 29.97 -threads 4 -vcodec mpeg2video -pix_fmt yuv422p -q:v 1 -intra -ar 48000 -async 1 -q:a 1 -f mxf test-out.mxf
ffmpeg version 0.10.2 Copyright (c) 2000-2012 the FFmpeg developers
built on Apr 4 2012 10:29:24 with gcc 4.4.3
configuration: --prefix=/home/suneetha --enable-pthreads --disable-mmx --disable-mmx2 --enable-libmp3lame --enable-libspeex --enable-libvpx --enable-libvorbis --enable-libx264 --enable-gpl
libavutil 51. 35.100 / 51. 35.100
libavcodec 53. 61.100 / 53. 61.100
libavformat 53. 32.100 / 53. 32.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 61.100 / 2. 61.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100
[libspeex @ 0x338bd10] Missing Speex header, assuming defaults.
Input #0, flv, from '/home/suneetha/MEDIA/test7.flv':
Metadata:
canSeekToEnd : false
createdby : FMS 4.0
creationdate : Wed Mar 28 15:33:18 2012
Duration: 00:00:50.71, start: 0.000000, bitrate: 430 kb/s
Stream #0:0: Video: flv1, yuv420p, 640x360, 1k tbr, 1k tbn, 1k tbc
Stream #0:1: Audio: speex, 16000 Hz, 1 channels, s16
[buffer @ 0x338d890] w:640 h:360 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param:
[buffersink @ 0x349fb80] auto-inserting filter 'auto-inserted scale 0' between the filter 'src' and the filter 'out'
[scale @ 0x338a4e0] w:640 h:360 fmt:yuv420p -> w:640 h:360 fmt:yuv422p flags:0x4
[libspeex @ 0x338bd10] Missing Speex header, assuming defaults.
Output #0, mxf, to 'test-out.mxf':
Metadata:
canSeekToEnd : false
createdby : FMS 4.0
creationdate : Wed Mar 28 15:33:18 2012
encoder : Lavf53.32.100
Stream #0:0: Video: mpeg2video, yuv422p, 640x360, q=2-31, 200 kb/s, 29.97 tbn, 29.97 tbc
Stream #0:1: Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (flv -> mpeg2video)
Stream #0:1 -> #0:1 (libspeex -> pcm_s16le)
Press [q] to stop, [?] for help
frame= 46 fps= 0 q=1.0 size= 0kB time=00:00:00.00 bitrate= 0.0kbits/s dframe= 106 fps=104 q=1.0 size= 0kB time=00:00:00.00 bitrate= 0.0kbits/s dframe= 151 fps= 99 q=1.0 size= 0kB time=00:00:00.00 bitrate= 0.0kbits/s dframe= 199 fps= 98 q=1.0 size= 0kB time=00:00:00.00 bitrate= 0.0kbits/s dframe= 249 fps= 98 q=1.0 size= 0kB time=00:00:00.00 bitrate= 0.0kbits/s dframe= 301 fps= 99 q=1.0 size= 0kB time=00:00:00.00 bitrate= 0.0kbits/s dMultiple frames in a packet from stream 1
frame= 351 fps= 99 q=1.0 size= 16463kB time=00:00:11.67 bitrate=11548.4kbits/s frame= 399 fps= 98 q=1.0 size= 18784kB time=00:00:13.27 bitrate=11587.2kbits/s frame= 458 fps=100 q=1.0 size= 19378kB time=00:00:13.76 bitrate=11531.0kbits/s frame= 515 fps=102 q=1.0 size= 19378kB time=00:00:13.76 bitrate=11531.0kbits/s frame= 567 fps=102 q=1.0 size= 19378kB time=00:00:13.76 bitrate=11531.0kbits/s frame= 607 fps=100 q=1.0 size= 19378kB time=00:00:13.76 bitrate=11531.0kbits/s frame= 672 fps=102 q=1.0 size= 31632kB time=00:00:22.38 bitrate=11573.8kbits/s frame= 732 fps=103 q=1.0 size= 34466kB time=00:00:24.39 bitrate=11575.7kbits/s frame= 793 fps=104 q=1.0 size= 37314kB time=00:00:26.42 bitrate=11567.0kbits/s frame= 849 fps=105 q=1.0 size= 38997kB time=00:00:27.66 bitrate=11547.2kbits/s frame= 905 fps=105 q=1.0 size= 38997kB time=00:00:27.66 bitrate=11547.2kbits/s frame= 962 fps=106 q=1.0 size= 38997kB
time=00:00:27.66 bitrate=11547.2kbits/s frame= 1020 fps=106 q=1.0 size= 38997kB time=00:00:27.66 bitrate=11547.2kbits/s frame= 1082 fps=107 q=1.0 size= 38997kB time=00:00:27.66 bitrate=11547.2kbits/s frame= 1142 fps=107 q=1.0 size= 38997kB time=00:00:27.66 bitrate=11547.2kbits/s frame= 1201 fps=108 q=1.0 size= 38997kB time=00:00:27.66 bitrate=11547.2kbits/s frame= 1245 fps=107 q=1.0 size= 58496kB time=00:00:41.50 bitrate=11544.7kbits/s frame= 1287 fps=106 q=1.0 size= 59379kB time=00:00:42.18 bitrate=11530.4kbits/s frame= 1339 fps=106 q=1.0 size= 62838kB time=00:00:44.64 bitrate=11530.3kbits/s frame= 1397 fps=106 q=1.0 size= 65133kB time=00:00:46.30 bitrate=11522.4kbits/s frame= 1457 fps=106 q=1.0 size= 65133kB time=00:00:46.30 bitrate=11522.4kbits/s frame= 1516 fps=107 q=1.0 size= 65133kB time=00:00:46.30 bitrate=11522.4kbits/s frame= 1516 fps=107 q=1.0 Lsize= 65230kB time=00:00:46.32 bitrate=11534.6kbits/s dup=273
drop=0
video:64603kB audio:0kB global headers:0kB muxing overhead 0.970393%
FFprobe output for input file
=====================
$ffprobe -i ~/MEDIA/test7.flv
ffprobe version 0.10.2 Copyright (c) 2007-2012 the FFmpeg developers
built on Apr 4 2012 10:29:24 with gcc 4.4.3
configuration: --prefix=/home/suneetha --enable-pthreads --disable-mmx --disable-mmx2 --enable-libmp3lame --enable-libspeex --enable-libvpx --enable-libvorbis --enable-libx264 --enable-gpl
libavutil 51. 35.100 / 51. 35.100
libavcodec 53. 61.100 / 53. 61.100
libavformat 53. 32.100 / 53. 32.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 61.100 / 2. 61.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100
[libspeex @ 0x2000d90] Missing Speex header, assuming defaults.
Input #0, flv, from '/home/suneetha/MEDIA/test7.flv':
Metadata:
canSeekToEnd : false
createdby : FMS 4.0
creationdate : Wed Mar 28 15:33:18 2012
Duration: 00:00:50.71, start: 0.000000, bitrate: 430 kb/s
Stream #0:0: Video: flv1, yuv420p, 640x360, 1k tbr, 1k tbn, 1k tbc
Stream #0:1: Audio: speex, 16000 Hz, 1 channels, s16
[libspeex @ 0x2000d90] Missing Speex header, assuming defaults.
FFprobe output for output file
=====================
$ ffprobe -i test-out.mxf
ffprobe version 0.10.2 Copyright (c) 2007-2012 the FFmpeg developers
built on Apr 4 2012 10:29:24 with gcc 4.4.3
configuration: --prefix=/home/suneetha --enable-pthreads --disable-mmx --disable-mmx2 --enable-libmp3lame --enable-libspeex --enable-libvpx --enable-libvorbis --enable-libx264 --enable-gpl
libavutil 51. 35.100 / 51. 35.100
libavcodec 53. 61.100 / 53. 61.100
libavformat 53. 32.100 / 53. 32.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 61.100 / 2. 61.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, mxf, from 'test-out.mxf':
Duration: 00:00:46.34, start: 0.000000, bitrate: 11529 kb/s
Stream #0:0: Video: mpeg2video (4:2:2), yuv422p, 640x360 [SAR 1:1 DAR 16:9], 104857 kb/s, 29.97 fps, 29.97 tbr, 29.97 tbn, 59.94 tbc
Stream #0:1: Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
More information about the ffmpeg-user
mailing list