• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

Transcode MKV contents to FLV

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

kaltag

Senior Member
Joined
Jul 28, 2002
Location
Boise Idaho
Good afternoon. I'm a pretty big noob to video transcoding so I figured I would ask the experts. I've got a small collection of MKVs encodes that I would like to convert to FLVs for embedding in a webpage for my personal use. I am having some trouble doing this using ffmpeg however. Below is the log of the encode:

Quote
Calculon Movies # ffmpeg -i test.mkv -f flv test.flv
FFmpeg version SVN-r20373, Copyright (c) 2000-2009 Fabrice Bellard, et al.
built on Jan 15 2010 17:58:04 with gcc 4.3.2
configuration: --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib --mandir=/usr/share/man --enable-static --enable-shared --cc=i686-pc-linux-gnu-gcc --disable-debug --disable-ffplay --disable-network --enable-libmp3lame --enable-libx264 --enable-libxvid --disable-indev=v4l --disable-indev=alsa --disable-indev=oss --disable-indev=jack --disable-outdev=alsa --disable-outdev=oss --disable-vdpau --disable-vdpau --disable-altivec --cpu=i686 --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --enable-avfilter-lavf --disable-stripping --enable-hardcoded-tables
libavutil 50. 3. 0 / 50. 3. 0
libavcodec 52.37. 1 / 52.37. 1
libavformat 52.39. 2 / 52.39. 2
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1. 4. 1 / 1. 4. 1
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
[matroska @ 0x9fdb420]max_analyze_duration reached

Seems stream 0 codec frame rate differs from container frame rate: 47.95 (27956/583) -> 23.98 (24000/1001)
Input #0, matroska, from 'test.mkv':
Duration: 01:26:58.01, start: 0.000000, bitrate: N/A
Stream #0.0(eng): Video: h264, yuv420p, 1280x536, PAR 1:1 DAR 160:67, 23.98 tbr, 1k tbn, 47.95 tbc
Stream #0.1(eng): Audio: dca, 48000 Hz, 6 channels, s16
Stream #0.2(eng): Subtitle: 0x0000
Output #0, flv, to 'test.flv':
Stream #0.0(eng): Video: flv, yuv420p, 1280x536 [PAR 1:1 DAR 160:67], q=2-31, 200 kb/s, 90k tbn, 23.98 tbc
Stream #0.1(eng): Audio: libmp3lame, 48000 Hz, 6 channels, s16, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Error while opening encoder for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height



I have tried google searching but the closest information I can find is to "invert the mapping" which is a simple checkbox in the GUI but I am running ffmpeg from command line and I haven't found much documentation on the -map command. My basic goal is to simply convert the contents of the mkv to flash without any adjustments and probably mix the audio down to stereo, couldn't care less about the subtitles. I would like to use ffmpeg and need to keep this on my linux server if possible but if another linux command line tool will do the job I am open to suggestions.
 
Back