LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Converting avi to mpg OR creating an SVCD from an avi (https://www.linuxquestions.org/questions/linux-software-2/converting-avi-to-mpg-or-creating-an-svcd-from-an-avi-51866/)

MasterC 03-26-2003 01:02 PM

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 :)

Thanks

MasterC 03-27-2003 12:51 AM

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 :)

Cool

crashmeister 03-27-2003 02:11 AM

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.

Mik 03-27-2003 04:10 AM

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.

http://it.geocities.com/fnt400/ogmencoder/

MasterC 03-27-2003 11:55 AM

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

And I've attached a link to the mencvcd.error file that I created above:
www.masterc.no-ip.org/host/mencvcd.error

FYI: I've got mplayer/mjpegtools/vcdimager and cdrdao installed and in my path ;)

Thanks for any suggestions!

Cool

Mik 03-28-2003 05:42 AM

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.


All times are GMT -5. The time now is 12:20 PM.