LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-12-2011, 03:23 AM   #1
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 333

Rep: Reputation: 46
mkv to avi conversion


Hi, I was given the following instruction to convert an MKV file to AVI (Fedora 14):

mencoder abc.mkv -oac pcm -ovc xvid -xvidencopts bitrate=886 -sub ITC0101.srt -subfont-text-scale 3 -o zzz.avi

When I plug this file into my DVD player the TV plays the audio but no video. If I play the file on my PC with mplayer it looks fine.

The DVD player has, so far, experienced no problems with xvid/avi files. Any suggestions where my video went? The mkv file was from an hdtv feed. My TV is not.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 01-12-2011, 04:07 AM   #2
ozanbaba
Member
 
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 14.1
Posts: 671

Rep: Reputation: 94
I had similar problem with similar files before and I think I didn't encode it compabile with hd players. I digged internet and found a interactice shell script for doing all the hard parts for me. It's xvidenc.

I runs it like this;
Code:
xvidenc -2p hwsdpal
-2p tells it to do two pass encode and hwsdpal tells it to use Stand-alone HW compatible SD preset (It has several presets for easy configuration. You can seem them with xvidenc -help). After you run the script, just follow the instructions on the terminal and it will do the encoding. You can see the MEcoder command before it runs MEncoder as well. Maybe YOu can use it as a reference.
 
1 members found this post helpful.
Old 01-12-2011, 04:40 AM   #3
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 333

Original Poster
Rep: Reputation: 46
thanks. I have downloaded xvidenc.I got a mencoder error first time around - incorrect resolution. I don't have time to look further tonight. I'll try again tomorrow night
 
Old 01-12-2011, 05:05 AM   #4
ozanbaba
Member
 
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 14.1
Posts: 671

Rep: Reputation: 94
Resolution settings has bad defaults.
 
Old 01-12-2011, 05:10 AM   #5
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
I use ffmpeg, it works better, try:

Code:
ffmpeg -i input.mkv -vcodec libxvid -qscale 5 -s 640x272 -aspect 40:17 -r 23.976 -g 240 -bf 2 -acodec libmp3lame -ab 160k -ar 48000 -async 48000 -ac 2 -pass 1 -an -f rawvideo -y /dev/null
ffmpeg -i input.mkv -vcodec libxvid -qscale 5 -s 640x272 -aspect 40:17 -r 23.976 -g 240 -bf 2 -acodec libmp3lame -ab 160k -ar 48000 -async 48000 -ac 2 -pass 2 -f avi outlander-q5.avi
adjust parameters.

I wrote a short guide:
http://draconishinobi.50webs.com/linux/encoding.html
 
2 members found this post helpful.
Old 01-13-2011, 03:01 PM   #6
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 333

Original Poster
Rep: Reputation: 46
thanks the TexMex solution worked just fine
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to convert MKV file to AVI using mencoder - help please horde Linux - Software 1 05-31-2010 09:53 AM
I need a live cd that can play avi/mkv 449 Linux - Software 2 07-06-2009 06:06 PM
ffmpeg: howto convert dvd/mkv to avi? G00fy Linux - Software 2 01-14-2009 12:25 PM
How to convert .ts files to mkv or avi Pearlseattle Linux - Software 3 03-26-2008 01:26 PM
convert .mkv to .avi Gortex Linux - General 6 08-13-2007 05:57 PM


All times are GMT -5. The time now is 04:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration