LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-26-2003, 02:02 PM   #1
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
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

Last edited by MasterC; 03-26-2003 at 02:04 PM.
 
Old 03-27-2003, 01:51 AM   #2
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Original Poster
Rep: Reputation: 64
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
 
Old 03-27-2003, 03:11 AM   #3
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
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.
 
Old 03-27-2003, 05:10 AM   #4
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 46
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/
 
Old 03-27-2003, 12:55 PM   #5
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Original Poster
Rep: Reputation: 64
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
 
Old 03-28-2003, 06:42 AM   #6
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 46
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.
 
  


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
AVI-Video ---> SVCD possible? GSX Linux - General 2 02-25-2005 01:11 AM
converting .avi to .mpg!? ungua Linux - Software 6 02-06-2005 07:05 PM
AVI to SVCD matt3333 Linux - Software 11 06-22-2004 07:25 AM
Convert avi to svcd skon Linux - General 2 12-29-2003 12:18 AM
converting *.avi file to *.vcd (or svcd) zstingx Linux - General 1 10-07-2003 07:44 AM


All times are GMT -5. The time now is 03:11 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration