Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 09-13-2004, 04:32 PM   #1
LQ Newbie
Registered: Mar 2004
Posts: 5

Rep: Reputation: 0
using mencoder to take a xvid to dvd formated file to burn

I'm trying to use mencoder to change a xvid avi file to an mpeg2 video file so I can burn it to a dvd. But I keep getting a Segmentation fault. Here is the command I'm using:

mencoder file.avi -oca lavc acodec=mp2 -ova lavc vcodec=mpeg2video -o file.mpg

Here is the last bit of output from mencoder:

Pos:1907.7s 45743f (100%) 326fps Trem: 0min 51mb A-V:0.006 [0:223]
1 duplicate frame(s)!
Pos:1907.8s 45744f (100%) 326fps Trem: 0min 51mb A-V:0.006 [0:223]
Writing AVI index...
Fixing AVI header...
ODML: vprp aspect is 16384:8936.

Video stream: 0.000 kbit/s (0 bps) size: 0 bytes 1907.783 secs 45744 frames

Audio stream: 224.000 kbit/s (27999 bps) size: 53419296 bytes 1907.832 secs
Segmentation fault

Is there some options I'm missing here. To be honest I'm not to sure what I'm doing. The man page doesn't explain very much how to go to dvd instead of from a dvd. Adn all the options seem very overwhelming to me. I would apperticate any help and guidance on how to use mencoder to change my files to mpeg2.

Old 01-24-2006, 08:32 PM   #2
Registered: Dec 2004
Location: IN, USA
Distribution: debian etch
Posts: 402

Rep: Reputation: 30
I have never had much luck with mencoder. Transcode is easier to use IMO if you want command line. Or for a GUI, use tovid or avidemux. I use avidemux like this:

1) pick dvd format
2) in configure select single pass quartenizer=2
3) in configure select the interlacing (BFF for me)
3) in filters select dvd res
4) select process video
5) output format dvd (PS)
5) pick toolame audio format
6) select process audio
7) file --> save video
Old 01-24-2006, 08:39 PM   #3
Registered: Nov 2003
Location: Toronto, Canada
Distribution: Gentoo AMD64
Posts: 374

Rep: Reputation: 30
try using ffmpeg, for example.....

ffmpeg -i video.avi -b 8000 -vcodec mpeg2video -r 29.97 -s 720x480 -y video.m2v;
ffmpeg -i video.avi -ab 192 -y video.mp2;
mplex -f 8 -o video-DVD.mpeg video.m2v video.mp2;

This script usually works well for me when converting xvid files to dvd. I too had to learn the hard way and i finally came up with that script above. Hope it helps.

**edit - i should mention that works for NTSC - change where needed. Plus, i have used:

ffmpeg -i video.avi -b 8000 -vcodec mpeg2video -r 29.97 -s 720x480 -y video.mpeg

Which will directly bypass all the steps above to one. However, i have found that this will produce a dvd compliant video, but it doesn't usually work in any of the DVD authoring tools on linux for me.

Last edited by Phorem; 01-24-2006 at 08:45 PM.


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
K3B recorder, How do you burn a 7.9 GB file into two DVD Diskettes? suse2166 Linux - Software 9 05-28-2005 12:20 PM
Transcode Syntax for PAL DVD to xViD/mp3 file fortezza Linux - Software 3 12-04-2004 10:01 PM
mencoder config file? and xvid to mpeg bai_design Linux - Software 1 10-29-2004 05:19 PM
How to burn a 4.3gb file to a DVD-R using k3b? vizi0n Linux - Software 0 06-26-2004 08:11 PM
mencoder / xvid codec voodoochild117 Linux - Software 1 06-25-2004 02:00 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:53 PM.

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