Friday, April 22, 2011

ffmpeg: "Unable to find a suitable output format for..."

bloody hell! ffmpeg hates me... i'm n00bin' around w/ ffmpeg right now + all i want to do is convert a shitty little *.flv file to *.mp4v + *.mpeg + every other possible format under the sun. i've already enabled various libs. not sure where to go from here. argh!

$ ffmpeg -i FILENAME.flv FILENAME.mp4v
FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers
built on Mar 28 2011 13:50:57 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3)
configuration: --prefix=/opt/local --enable-gpl --enable-postproc --enable-swscale --enable-avfilter --enable-avfilter-lavf --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libdirac --enable-libschroedinger --enable-libfaac --enable-libfaad --enable-libxvid --enable-libx264 --enable-libvpx --enable-libspeex --enable-nonfree --mandir=/opt/local/share/man --enable-shared --enable-pthreads --disable-indevs --cc=/usr/bin/gcc-4.2 --arch=x86_64
libavutil 50.15. 1 / 50.15. 1
libavcodec 52.72. 2 / 52.72. 2
libavformat 52.64. 2 / 52.64. 2
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.19. 0 / 1.19. 0
libswscale 1.11. 0 / 1.11. 0
libpostproc 51. 2. 0 / 51. 2. 0
[flv @ 0x12180c800]Estimating duration from bitrate, this may be inaccurate

Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 25.00 (25/1)
Input #0, flv, from '320x240_EdinburghCastle-3D_LowQ.flv':
Metadata:
duration : 192
starttime : 0
totalduration : 192
width : 400
height : 226
videodatarate : 258
audiodatarate : 59
totaldatarate : 325
framerate : 25
bytelength : 7801152
canseekontime : true
sourcedata : B4A7DD164MM1302532569303637
purl :
pmsg :
Duration: 00:03:11.92, start: 0.000000, bitrate: 272 kb/s
Stream #0.0: Video: flv, yuv420p, 400x226, 264 kb/s, 25 tbr, 1k tbn, 1k tbc
Stream #0.1: Audio: mp3, 22050 Hz, 2 channels, s16, 8 kb/s
Unable to find a suitable output format for 'FILENAME.mp4v'

UPDATE:

i found this awesome little tidbit on http://www.ffmpeg.org/ffmpeg-doc.html#SEC11:

`-target type'
Specify target file type ("vcd", "svcd", "dvd", "dv", "dv50", "pal-vcd", "ntsc-svcd", ... ). All the format options (bitrate, codecs, buffer sizes) are then set automatically. You can just type:


ffmpeg -i myfile.avi -target vcd /tmp/vcd.mpg


Nevertheless you can specify additional options as long as you know they do not conflict with the standard, as in:


ffmpeg -i myfile.avi -target vcd -bf 2 /tmp/vcd.mpg

all i had to do is specify a target and it did all the bitrate-frame-conversion-crap for me! awesome sauce!

$ ffmpeg -i FILENAME.flv -target "vcd" FILENAME.mp4v

No comments:

Post a Comment