LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 02:23 AM   #1
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 750

Rep: Reputation: 156Reputation: 156
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, 03:07 AM   #2
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 778

Rep: Reputation: 135Reputation: 135
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, 03:40 AM   #3
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 750

Original Poster
Rep: Reputation: 156Reputation: 156
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, 04:05 AM   #4
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 778

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

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
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, 02:01 PM   #6
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 750

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


Reply



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
convert .mkv to .avi Gortex Linux - General 10 12-05-2017 03:19 AM
[SOLVED] Unable to convert MKV file to AVI using mencoder - help please horde Linux - Software 1 05-31-2010 08:53 AM
I need a live cd that can play avi/mkv 449 Linux - Software 2 07-06-2009 05:06 PM
ffmpeg: howto convert dvd/mkv to avi? G00fy Linux - Software 2 01-14-2009 11:25 AM
How to convert .ts files to mkv or avi Pearlseattle Linux - Software 3 03-26-2008 12:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:42 PM.

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
Open Source Consulting | Domain Registration