LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-26-2003, 01:02 PM   #1
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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 01:04 PM.
 
Old 03-27-2003, 12:51 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Original Poster
Rep: Reputation: 69
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, 02: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, 04:10 AM   #4
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
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, 11:55 AM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

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

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



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

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

All times are GMT -5. The time now is 05:31 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