I tried again going from a .mov file from the iPhone to Flash. Below is the command and terminal output:
Code:
$ avconv -i foo.mov -s 320x240 -ar 22050 bar.flv
avconv version 0.8.4-4:0.8.4-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
built on Nov 6 2012 16:50:25 with gcc 4.6.3
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'foo.mov':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
creation_time : 2012-12-31 13:19:43
Duration: 00:00:38.80, start: 0.000000, bitrate: 5341 kb/s
Stream #0.0(und): Video: h264 (Baseline), yuv420p, 960x540, 5235 kb/s, 30 fps, 30 tbr, 600 tbn, 1200 tbc
Metadata:
creation_time : 2012-12-31 13:19:43
Stream #0.1(und): Audio: aac, 44100 Hz, stereo, s16, 110 kb/s
Metadata:
creation_time : 2012-12-31 13:19:43
[buffer @ 0x8ed9160] w:960 h:540 pixfmt:yuv420p
[scale @ 0x8ed5ee0] w:960 h:540 fmt:yuv420p -> w:320 h:240 fmt:yuv420p flags:0x4
Output #0, flv, to 'bar.flv':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
creation_time : 2012-12-31 13:19:43
encoder : Lavf53.21.0
Stream #0.0(und): Video: flv, yuv420p, 320x240, q=2-31, 200 kb/s, 1k tbn, 30 tbc
Metadata:
creation_time : 2012-12-31 13:19:43
Stream #0.1(und): Audio: libmp3lame, 22050 Hz, stereo, s16, 200 kb/s
Metadata:
creation_time : 2012-12-31 13:19:43
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> flv)
Stream #0:1 -> #0:1 (aac -> libmp3lame)
Press ctrl-c to stop encoding
frame= 1162 fps= 80 q=3.9 Lsize= 1910kB time=38.73 bitrate= 403.9kbits/s
video:1109kB audio:759kB global headers:0kB muxing overhead 2.238796%
In the second test I removed the dimensions from the command.
Code:
$ avconv -i foo.mov -ar 22050 bar.flv
avconv version 0.8.4-4:0.8.4-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
built on Nov 6 2012 16:50:25 with gcc 4.6.3
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'foo.mov':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
creation_time : 2012-12-31 13:19:43
Duration: 00:00:38.80, start: 0.000000, bitrate: 5341 kb/s
Stream #0.0(und): Video: h264 (Baseline), yuv420p, 960x540, 5235 kb/s, 30 fps, 30 tbr, 600 tbn, 1200 tbc
Metadata:
creation_time : 2012-12-31 13:19:43
Stream #0.1(und): Audio: aac, 44100 Hz, stereo, s16, 110 kb/s
Metadata:
creation_time : 2012-12-31 13:19:43
[buffer @ 0x9789160] w:960 h:540 pixfmt:yuv420p
Output #0, flv, to 'bar.flv':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
creation_time : 2012-12-31 13:19:43
encoder : Lavf53.21.0
Stream #0.0(und): Video: flv, yuv420p, 960x540, q=2-31, 200 kb/s, 1k tbn, 30 tbc
Metadata:
creation_time : 2012-12-31 13:19:43
Stream #0.1(und): Audio: libmp3lame, 22050 Hz, stereo, s16, 200 kb/s
Metadata:
creation_time : 2012-12-31 13:19:43
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> flv)
Stream #0:1 -> #0:1 (aac -> libmp3lame)
Press ctrl-c to stop encoding
frame= 1162 fps= 57 q=31.0 Lsize= 5584kB time=38.73 bitrate=1181.0kbits/s
video:4783kB audio:759kB global headers:0kB muxing overhead 0.754517%
Today in my short 38 second video test. The second Flash video doesn't seem jerky, so I guess it is OK.
I'm curious why you would recommend FFmpeg over avconv? I'm not really a "serious" video converter, I'm not ripping DVDs. I am taking video from an iPhone and another digital camera and putting it on the web. The video is of our kids and I post them so both sets of Grandparents can view them.
So, why not just use YouTube, you ask? Well, it seems that the Grandparents in Japan have had a really big problem with YouTube lagging and they say it's easier to view if I put the videos on my site. I've tried a few different formats and the flv that I'm using seems to load the quickest and has OK quality.
I'm just flying by the seat of my pants here, so any advice from someone who actually knows what they are doing would be much appreciated.
Bookmarks