[FFmpeg-user] moving from FLV to MP4 container
Victor C
c-map at hotmail.com
Thu Aug 16 20:46:12 CEST 2012
> > Do you have an idea of why the duration and bitrates are still different?
> >
> > duration:
> > FLV: 46:39.67 MP4: 46:39.66
> >
> > overall bitrate:
> > FLV: 336 kb/s MP4: 335 kb/s
> >
> > video bitrate:
> > FLV: 253 kb/s MP4: 246 kb/s
>
>
> Giving uncut command line and console output might help us tell you.
> -r
Here they are:
C:\Users\admin\Documents\videos>ffmpeg -i video.flv
ffmpeg version N-43594-gf0896a6 Copyright (c) 2000-2012 the FFmpeg developers
built on Aug 15 2012 21:25:48 with gcc 4.7.1 (GCC)
configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-runt
ime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass -
-enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-l
ibfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenj
peg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheo
ra --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-li
bvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --ena
ble-zlib
libavutil 51. 69.100 / 51. 69.100
libavcodec 54. 52.100 / 54. 52.100
libavformat 54. 23.101 / 54. 23.101
libavdevice 54. 2.100 / 54. 2.100
libavfilter 3. 9.100 / 3. 9.100
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, flv, from 'video.flv':
Metadata:
hasKeyframes : true
hasVideo : true
canSeekToEnd : false
datasize : 116897793
lasttimestamp : 2800
audiosize : 29553706
hasAudio : true
audiodelay : 0
videosize : 87332165
metadatacreator : inlet media FLVTool2 v1.0.6 - http://www.inlet-media.de/fl
vtool2
lastkeyframetimestamp: 2798
hasMetadata : true
hasCuePoints : false
Duration: 00:46:39.67, start: 0.042000, bitrate: 336 kb/s
Stream #0:0: Video: h264 (High), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 253 kb/
s, 23.98 tbr, 1k tbn, 47.95 tbc
Stream #0:1: Audio: aac, 44100 Hz, stereo, s16, 82 kb/s
At least one output file must be specified
C:\Users\admin\Documents\videos>ffmpeg -i video.mp4
ffmpeg version N-43594-gf0896a6 Copyright (c) 2000-2012 the FFmpeg developers
built on Aug 15 2012 21:25:48 with gcc 4.7.1 (GCC)
configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-runt
ime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass -
-enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-l
ibfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenj
peg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheo
ra --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-li
bvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --ena
ble-zlib
libavutil 51. 69.100 / 51. 69.100
libavcodec 54. 52.100 / 54. 52.100
libavformat 54. 23.101 / 54. 23.101
libavdevice 54. 2.100 / 54. 2.100
libavfilter 3. 9.100 / 3. 9.100
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 025abf20] multiple edit list entries, a/v desync migh
t occur, patch welcome
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf54.23.101
Duration: 00:46:39.66, start: 0.000000, bitrate: 335 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 640x480 [
SAR 1:1 DAR 4:3], 246 kb/s, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 79
kb/s
Metadata:
handler_name : SoundHandler
At least one output file must be specified
The conversion was done as follows:
C:\Users\admin\Documents\videos>ffmpeg -i video.flv -aco
dec copy -vcodec copy video.mp4
ffmpeg version N-43594-gf0896a6 Copyright (c) 2000-2012 the FFmpeg developers
built on Aug 15 2012 21:25:48 with gcc 4.7.1 (GCC)
configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-runt
ime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass -
-enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-l
ibfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenj
peg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheo
ra --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-li
bvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --ena
ble-zlib
libavutil 51. 69.100 / 51. 69.100
libavcodec 54. 52.100 / 54. 52.100
libavformat 54. 23.101 / 54. 23.101
libavdevice 54. 2.100 / 54. 2.100
libavfilter 3. 9.100 / 3. 9.100
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, flv, from 'video.flv':
Metadata:
hasKeyframes : true
hasVideo : true
canSeekToEnd : false
datasize : 116897793
lasttimestamp : 2800
audiosize : 29553706
hasAudio : true
audiodelay : 0
videosize : 87332165
metadatacreator : inlet media FLVTool2 v1.0.6 - http://www.inlet-media.de/fl
vtool2
lastkeyframetimestamp: 2798
hasMetadata : true
hasCuePoints : false
Duration: 00:46:39.67, start: 0.042000, bitrate: 336 kb/s
Stream #0:0: Video: h264 (High), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 253 kb/
s, 23.98 tbr, 1k tbn, 47.95 tbc
Stream #0:1: Audio: aac, 44100 Hz, stereo, s16, 82 kb/s
File 'video.mp4' already exists. Overwrite ? [y/N] y
Output #0, mp4, to 'video.mp4':
Metadata:
hasKeyframes : true
hasVideo : true
canSeekToEnd : false
datasize : 116897793
lasttimestamp : 2800
audiosize : 29553706
hasAudio : true
audiodelay : 0
videosize : 87332165
metadatacreator : inlet media FLVTool2 v1.0.6 - http://www.inlet-media.de/fl
vtool2
lastkeyframetimestamp: 2798
hasMetadata : true
hasCuePoints : false
encoder : Lavf54.23.101
Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 640x480 [SAR 1:1
DAR 4:3], q=2-31, 253 kb/s, 1k tbn, 1k tbc
Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, 82 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 9901 fps=0.0 q=-1.0 size= 15136kB time=00:06:52.87 bitrate= 300.3kbits/
frame=11790 fps=11451 q=-1.0 size= 17442kB time=00:08:11.65 bitrate= 290.6kbit
frame=15353 fps=9941 q=-1.0 size= 26713kB time=00:10:40.26 bitrate= 341.8kbits
frame=25908 fps=12582 q=-1.0 size= 43629kB time=00:18:00.49 bitrate= 330.8kbit
frame=36731 fps=14270 q=-1.0 size= 61122kB time=00:25:31.90 bitrate= 326.9kbit
frame=47021 fps=14848 q=-1.0 size= 74706kB time=00:32:41.08 bitrate= 312.1kbit
frame=49070 fps=12582 q=-1.0 size= 76975kB time=00:34:06.54 bitrate= 308.1kbit
frame=49634 fps=11203 q=-1.0 size= 78104kB time=00:34:30.06 bitrate= 309.1kbit
frame=50609 fps=10202 q=-1.0 size= 79908kB time=00:35:10.73 bitrate= 310.1kbit
frame=52960 fps=9617 q=-1.0 size= 84525kB time=00:36:48.78 bitrate= 313.5kbits
frame=53347 fps=8814 q=-1.0 size= 85036kB time=00:37:04.93 bitrate= 313.1kbits
frame=58033 fps=8836 q=-1.0 size= 92045kB time=00:40:20.37 bitrate= 311.5kbits
frame=59763 fps=8438 q=-1.0 size= 94945kB time=00:41:32.53 bitrate= 312.0kbits
frame=63907 fps=8412 q=-1.0 size= 104721kB time=00:44:25.37 bitrate= 321.9kbits
frame=65200 fps=8037 q=-1.0 size= 107025kB time=00:45:19.29 bitrate= 322.4kbits
Stream discovered after head already parsed
[flv @ 003ec080] New data stream 0:2 at pos:117637104 and DTS:2798.63s
frame=67125 fps=8028 q=-1.0 Lsize= 114707kB time=00:46:39.58 bitrate= 335.6kbit
s/s
video:84236kB audio:27330kB subtitle:0 global headers:0kB muxing overhead 2.8142
55%
Thanks,
Victor
More information about the ffmpeg-user
mailing list