Converting avi to mpg OR creating an SVCD from an avi
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Converting avi to mpg OR creating an SVCD from an avi
It's been a while, I use to mess around with this stuff in win, and dabbled a bit in linux. But it's been so long that it seems I've forgotten everything or found a tool in win to do it all for me (either way, I don't remember much ).
So, I am wondering if anyone has suggestions on creating SVCD's (or VCD's to start out with for that matter) in linux. I've been looking through some tools, I've given mencvcd a try, but it seems to do nothing (I don't know any scripting/programming so I cannot troubleshoot the script), I've stumbled upon several how-to's that seem to expect you know quite a bit about VCD's and standards with them and such.
Anyway, I am hoping someone can either paint me a more clear picture of what I need to do to get this going, or point me in a direction of a program or set of programs that will help me achieve this goal (or even a well written how-to).
I think vcdimager looks promising, but I don't know how to convert my existing avi's into mpg's (more importantly, SVCD compliant mpgs). So if you've got some info on this, that'd be very helpful as well
Ok, still looking for anything from the above question, but now also wondering...
How can you compress/encode from a DVD to AVI using mencoder and have the audio be a vorbis file?
I use:
mencoder -oac help
And I only get:
pcm
copy
mp3
And that's it. So I am wondering how to get it to use vorbis options, and compress with it? If it's by "copy then compress" fine, I understand that. But if I'm missing something else, please show me
Don't know about the vorbis thing and didn't do any of the things you want to do but I got two suggestions for gui lamers like myself.
avidemux is supposedly able to make vcd's and svcd's - also has a how-to on the website.
k3b has a dvd ripping section.
The mencvcd script shouldn't be that hard. It works nicely here. It requires you have the following programs installed and in the path:
mplayer
mjpegtools
vcdimager
cdrdao
mencvcd -h should give you a basic overview of the options and examples on using the script.
When you say it does nothing, does that mean it just exits? Maybe you should run it with bash -x mencvcd to see how far it gets.
Mencoder only supports the audio encoding options which are displayed with mencoder -oac help. There is however a perl script which does the whole thing for you using transcode.
Thank you both for the replies
Crash: That avidemux really looks very promising, thanks for the suggestion!
Mik: I should have been more specific on what mencvcd does, I'll post up a link to the full output including the errors at the end of this post. It actually scrolls through what it's doing, eventually returning with just creating 1 small (usually around 9k) file named filename.mpa
Ok, so anyway, here's the full output:
Code:
bash-2.05a$ /home/masterc/downloads/MPlayer-0.90rc5/TOOLS/mencvcd Angel Angel-1x01.avi > mencvcd.error
: No such file or directory
can't open '/home/masterc/.mplayer/codecs.conf': No such file or directory
INFO: [yuvscaler] yuvscaler (version 1.6.1) is a general scaling utility for yuv frames
INFO: [yuvscaler] (C) 2001 Xavier Biquard <xbiquard@free.fr>
INFO: [yuvscaler] yuvscaler -h for help, or man yuvscaler
Failed to open /dev/rtc: No such device (mplayer should be setuid root or /dev/rtc should be readable by the user.)
Can't open input config file /home/masterc/.mplayer/input.conf : No such file or directory
Can't open input config file /usr/local/etc/mplayer/input.conf : No such file or directory
Falling back on default (hardcoded) input config
++ WARN: [yuvscaler] Could not infer norm (PAL/SECAM or NTSC) from input data (frame size=512x384, frame rate=299699:10000 fps)!!
**ERROR: [yuvscaler] No norm specified, cannot determine VCD output size. Please use the -n option!
**ERROR: [mpeg2enc] Could not read YUV4MPEG2 header: system error (failed read/write)!
/home/masterc/downloads/MPlayer-0.90rc5/TOOLS/mencvcd: line 385: 18041 Broken pipe $command
INFO: [mp2enc] Opened WAV file, freq = 48000 Hz, channels = 2, bits = 16
INFO: [mp2enc] format = 0x1, audio length = 2147479552 bytes
INFO: [mp2enc] slots/frame = 731
INFO: [mp2enc] frac SpF=0.429, tot bitrate=224 kbps, s freq=44.1 kHz
INFO: [mp2enc] Fractional number of slots, padding required
INFO: [mp2enc] System is little endian
INFO: [mp2enc] Avg slots/frame = inf; b/smp = inf; br = inf kbps
INFO: [mp2enc] Encoding with psychoacoustic model 2 is finished
INFO: [mp2enc] The MPEG encoded output file name is "Angel.mpa"
bash-2.05a$ ls
Angel-1x01.avi Angel-1x02.avi Angel.mpa mencvcd.error stream.yuv
Hmm, I used to be able to use the script defaults without any problems. I guess after installing the latest 0.90rc5 I also get the same problems now.
Well first it only complains about the video norm which is the same error message you got. But then it also complains about the framerate. After setting both of those it manages to at least create all the files.
This is the command I used for encoding:
mencvcd Lamborghini -vnorm p -vfr 3 Top_Gear-Lamborghini.mpg -quiet &> encode.out &
You might need to set the norm to NTSC instead. Well I'm not able to test the .mpv or .mpa file it creates right now. And haven't let it burn the .bin file. So I can't guarantee it worked. But just do a mencvcd -h and try setting the options to all the value you want. You should at least get something working out of that.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.