Re: Fwd: Re: [newbie] Re: Mencoder Commands
On Friday 21 June 2002 16:27, you wrote: On Fri, 21 Jun 2002, John Richard Smith wrote: mencoder -dvd 1 -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=633 -oac mp3lame -lameopts br=96:cbr -o Matrix.avi 15.26 BST I found a file called test.avi which is 5 minutes long and has 77.5Mb of data in it and plays beautifully in mplayer in divx mode. This test.avi is the standard output if you do not specify a an output filename, but seeing as you did output it to a file called Matrix.avi (just guessing you used my example above), I'm guessing that there is a file-parsing error (one of your options is wrong, probably the use of mp3lame as you don't have it yet). To output to another directory or whatever you have 2 options: Well I have your lame rpm and it installed itself flawlessly. I'm currently repeating the process but with all 163 chapters of the film, this will take a while, no compression as yet, and it's hopefully all going on the correct partition now that I have CD to the subdirectory on that partition. However it occured to me to ask a few general questions before experimenting more. 1) Compression , does this come at a price. do you loose quality, is there a risk of picture and sound being out of synchronization or anything. 2) parsing, I read from your website Ralph that at least 2 passes is adviseable so it is going to be one of the obvious options to include, I'm not sure of the option command and where to put it. 3) If compression does come at a price, could I specify breaking down the original decss list of chapters into reasonable amounts so that they would be small enough to write to disk. I might end up with 2 or more discs for a long film but , since they are not that expensive, and if it meant better quality screen pictures and more reliable sound then I might well go for that option. 4) The only compression command I have found in `man mencoder' is ratio=value in 1-100% I tried sticking it in a few slots in your sample command but it did not like anything I did. It's not simple I guess. thanks, John -- John Richard Smith [EMAIL PROTECTED] Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: Fwd: Re: [newbie] Re: Mencoder Commands
On Sat, 22 Jun 2002, John Richard Smith wrote: Well I have your lame rpm and it installed itself flawlessly. Great stuff ;-) At least I know it works on other systems. I'm currently repeating the process but with all 163 chapters of the film, this will take a while, no compression as yet, and it's hopefully all going on the correct partition now that I have CD to the subdirectory on that partition. However it occured to me to ask a few general questions before experimenting more. 1) Compression , does this come at a price. do you loose quality, is there a risk of picture and sound being out of synchronization or anything. Yes, the more compression, the less quality, just like saving a jpeg picture. As far as syncronisation goes, from what I have experienced there is absolutely NO link between the two. Bad syncronisation comes from a bad encoder / bad encoding. 2) parsing, I read from your website Ralph that at least 2 passes is adviseable so it is going to be one of the obvious options to include, I'm not sure of the option command and where to put it. You talk about parsing and passes... 2 totally different things. I did a comparrison with a 2-Pass rip. The example on the test do not work anymore with libavcodec. Libavcodec has changed, and now uses it's own 2-pass system, but mencoder has changed to support this. I cannot remember iof this change was before or after the latest official release (I use the CVS version, updated every couple of days). The examples on the mplayer site (docs) should be pretty much accurate to the latest official release. What I do generally is actually use a 3 pass rip. First pass rips the audio only. The second rip rips the video only, writing a log file of the movements, colors and so on... and at the end of that rip it adds the audio to it. The last rip re-encodes the video only, but uses the logfile too, producing a better quality (you saw the examples), and again, at the end adds the first rip[ped audio. You see, the audio only needs to be done once. 3) If compression does come at a price, could I specify breaking down the original decss list of chapters into reasonable amounts so that they would be small enough to write to disk. I might end up with 2 or more discs for a long film but , since they are not that expensive, and if it meant better quality screen pictures and more reliable sound then I might well go for that option. Yes, this is the besat way. Mencoder / mplayer does not have a feature to split files after a certain amount of MB's. The best way to do this is to calculate the bitrate needed for let's say a 2 CD rip. Then you need to know how long the film is and divide that by two. YOu can then use that bitrate, and use the -ss and -endpos features to rip both halves. 4) The only compression command I have found in `man mencoder' is ratio=value in 1-100% I tried sticking it in a few slots in your sample command but it did not like anything I did. It's not simple I guess. Ok, this is just a big guess, as I said before I can't remember when the changes came to mencoder, but here is what I need to do to make my 3 pass rip (actually a 2 pass video rip) --- PASS 1 (Audio) mencoder -dvd 1 \ -oac mp3lame -lameopts br=96:cbr \ -ovc frameno -o frameno.avi Rips the DVD track 1, using lame with a constant bitrate at 96b/s, and outputs the audio to the standard frameno.avi (yes, ti says avi, but it's mp3). The video does not get outputted at all (frameno) - PASS 2 (Video first pass) mencoder -dvd 1 \ -ovc lavc \ -lavcopts vcodec=mpeg4:vhq:vbitrate=699:vpass=1 \ -oac copy -o Matrix.avi Rips just the audio and copies the previously ripped audio (mp3). Rips track 1, using DivX, Very High Quality (vhq), video bitrate of 699 (vbitrate) and makes a video pass 1 (vpass=1), and finally outputs the output to Matrix.avi - PASS 3 (Video second pass) mencoder -dvd 1 \ -ovc lavc \ -lavcopts vcodec=mpeg4:vhq:vbitrate=699:vpass=2 \ -oac copy -o Matrix.avi Exactly the same as the previos (must be), except that the vpass=2 states the second pass.. You can add another output file here to compare the difference. -- It's all written there on the mplayer pages though, really it is, and please do read it. I don't know everything about it, really, just trying to get you on your way and so on ;-) Hope this explains some things Greetings Ralph -- Homepage: http://tuxpower.f2g.net/ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: Fwd: Re: [newbie] Re: Mencoder Commands
On Fri, 21 Jun 2002, John Richard Smith wrote: mencoder -dvd 1 -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=633 -oac mp3lame -lameopts br=96:cbr -o Matrix.avi I couldn't wait untill lame + libraties were installed,to try it, So I put up a terminal and proceeded with just this command. It all looks very impressive. However I haven't a clue where the output is going, I don't even know what the name of the file is, in order to look for it. Isn't there some way I could pipe this to my chosen directory /mnt/ext2-vol6/downloads2/divx. How about a | (pipe) or a redirect , or something. John -- John Richard Smith [EMAIL PROTECTED] --- P.S. 15.26 BST I found a file called test.avi which is 5 minutes long and has 77.5Mb of data in it and plays beautifully in mplayer in divx mode. This test.avi is the standard output if you do not specify a an output filename, but seeing as you did output it to a file called Matrix.avi (just guessing you used my example above), I'm guessing that there is a file-parsing error (one of your options is wrong, probably the use of mp3lame as you don't have it yet). To output to another directory or whatever you have 2 options: Firt cd into that directory than run te mencoder command, or in your output command to state the full path of the output file, as in: -o /mnt/big_disk/lots_of_room/Matrix.avi All I want to do now is redirect it to my spare partition and apply some compression so that a full length feature film comes in around 800Mb. Is this possible ? Yes it it. Firstly the compression you are reffering to is the DivX compression, which it does not re-encode, but simple encodes the output from the DVD once (for video) with a standard one-time rip. If you want to get it to around 800MB's there is a formulae for, however this was so long and complicated I actually made a DivX calculator (download it on http://tuxpower.f2g.net/divxcalc.php ), but note that it gives an accurate estimate ... you will always be a few MB's above or below. So if you want it to fit onto a CD of let's say 700MB,s try going for a filesize of 680MB's, otherwise you risk the chance that you end op with a file of 710MB's, and then have to begin again just to get it right ;-) Greetings Ralph -- Homepage: http://tuxpower.f2g.net/ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: Fwd: Re: [newbie] Re: Mencoder Commands
mencoder -dvd 1 -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=633 -oac mp3lame -lameopts br=96:cbr -o Matrix.avi I couldn't wait untill lame + libraties were installed,to try it, So I put up a terminal and proceeded with just this command. It all looks very impressive. However I haven't a clue where the output is going, I don't even know what the name of the file is, in order to look for it. Isn't there some way I could pipe this to my chosen directory /mnt/ext2-vol6/downloads2/divx. How about a | (pipe) or a redirect , or something. John ..uhm.. the output of that command is in a file called Matrix.avi, and it will be sitting in the directory you were on at the momment you issued the command... to now where the file s going always look what's after the -o HTH Damian Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Fwd: Re: [newbie] Re: Mencoder Commands
-- Forwarded Message -- Subject: Re: [newbie] Re: Mencoder Commands Date: Fri, 21 Jun 2002 14:07:38 +0100 From: John Richard Smith [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: Ralph Slooten [EMAIL PROTECTED] On Thursday 20 June 2002 16:19, you wrote: Many Thanks Ralph, by the way is Slooten, Dutch by any chance. my spare partition and subdirectory is, /mnt/ext2-vol6/downloads2/divx I have a couple gigs to spare. Log into your console as root (su) ln -s /dev/scd0 /dev/dvd exit reports file exits == mencoder -dvd 1 -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=633 -oac mp3lame -lameopts br=96:cbr -o Matrix.avi I couldn't wait untill lame + libraties were installed,to try it, So I put up a terminal and proceeded with just this command. It all looks very impressive. However I haven't a clue where the output is going, I don't even know what the name of the file is, in order to look for it. Isn't there some way I could pipe this to my chosen directory /mnt/ext2-vol6/downloads2/divx. How about a | (pipe) or a redirect , or something. John -- John Richard Smith [EMAIL PROTECTED] --- P.S. 15.26 BST I found a file called test.avi which is 5 minutes long and has 77.5Mb of data in it and plays beautifully in mplayer in divx mode. All I want to do now is redirect it to my spare partition and apply some compression so that a full length feature film comes in around 800Mb. Is this possible ? John -- John Richard Smith [EMAIL PROTECTED] Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com