Jump to content

Help converting mkv files to avi/mpeg


Recommended Posts

Hello everyone,

 

I am looking for a (relatively) simple way to convert mkv files into a format in which I can view them on an xbox 360.

 

Converting to .avi would be ideal, but I'm not necessarily attached to that.

 

I have been experimenting wiht DeVeDe, which uses mencoder, and it works alright; however, I cannot do any batch encoding with this program. Also, it seems to create some sort of video glitch in every file it converts.

 

The files I want to convert are currently in HD resolution, and I would prefer not to lose any quality.

 

I've read several different command line 'solutions' using mencoder, but I'm hoping for something simpler, as I have only a basic understanding of video encoding. I am willing to learn, though, if a simple gui solution doesn't work.

 

Thanks in advance to for the help I know I will receive!

 

 

edit: I should add that the files I want to convert currently contain subtitles, which I would like to remove if possible..

Link to post
Share on other sites

ffmpeg is of course my choice.

 

It is in fact what 90% of the GUI apps use to do conversions.

 

I just skip all the clicky clicky stuff and use ffmpeg commands.

 

A simple google search will give you the ffmpeg commands you need.

 

 

ffmpeg -i film.mkv -acodec mp3 -vcodec mpeg4 -sameq film.avi

Edited by Bruce
Link to post
Share on other sites
  • 2 weeks later...

Thanks Bruce.

 

I tried your command, but it gives an error:

 

[email protected]:/multimedia/TV/SG-1$ ffmpeg -i thearkoftruth.mkv -acodec mp3 -vcodec mpeg4 -sameq thearkoftruth.avi
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --enable-gpl --enable-pp --enable-swscaler --enable-pthreads --enable-libvorbis --enable-libtheora --enable-libogg --enable-libgsm --enable-dc1394 --disable-debug --enable-libmp3lame --enable-libfaadbin --enable-libfaad --enable-libfaac --enable-xvid --enable-x264 --enable-liba52 --enable-amr_nb --enable-amr_wb --enable-shared --prefix=/usr
  libavutil version: 1d.49.3.0
  libavcodec version: 1d.51.38.0
  libavformat version: 1d.51.10.0
  built on Jul 29 2008 18:21:25, gcc: 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
[matroska @ 0xb7f67110]Ignoring seekhead entry for ID=0x1549a966
[matroska @ 0xb7f67110]Ignoring seekhead entry for ID=0x1654ae6b
[matroska @ 0xb7f67110]Ignoring seekhead entry for ID=0x114d9b74
[matroska @ 0xb7f67110]Unknown entry 0x73a4 in info header
[matroska @ 0xb7f67110]Unknown track header entry 0x55aa - ignoring
[matroska @ 0xb7f67110]Unknown track header entry 0x23314f - ignoring
[matroska @ 0xb7f67110]Unknown track header entry 0x55ee - ignoring
[matroska @ 0xb7f67110]Unknown track header entry 0xaa - ignoring
[matroska @ 0xb7f67110]Unknown track header entry 0x55aa - ignoring
[matroska @ 0xb7f67110]Unknown track header entry 0x23314f - ignoring
[matroska @ 0xb7f67110]Unknown track header entry 0x55ee - ignoring
[matroska @ 0xb7f67110]Unknown track header entry 0xaa - ignoring
Input #0, matroska, from 'thearkoftruth.mkv':
  Duration: 01:37:39.3, bitrate: N/A
  Stream #0.0: Audio: ac3, 48000 Hz, 5:1
  Stream #0.1: Video: h264, yuv420p, 1920x1080, 25.00 fps(r)
Output #0, avi, to 'thearkoftruth.avi':
  Stream #0.0: Video: mpeg4, yuv420p, 1920x1080, q=2-31, 200 kb/s, 25.00 fps(c)
  Stream #0.1: Audio: mp3, 48000 Hz, 5:1, 64 kb/s
Stream mapping:
  Stream #0.1 -> #0.0
  Stream #0.0 -> #0.1
Error while opening codec for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height

Not sure where the error is. Ideas?

Link to post
Share on other sites

The error is at the very end. :P

 

Error while opening codec for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height

 

Looks a bit odd to that a 1920x1080 (HDTV) file would have a 25 fps rate.

 

That would imply it was grabbed from someone in "Europe" using the pal standard. :rolleyes:

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...