Mencoder finishes early on DVD to Divx encoding
I'm running mencoder 1.0pre6-3.4.2 The DVD drive in my linux box doesn't work, so I decrypted and copied the VOBs from a windows box. I have the following script that I run. I pass in a chapter # and it creates the .avi file for me. #!/bin/bash if [ $# != 1 ]; then echo "Please provide a chapter" exit 1 fi mencoder -dvd-device ./ dvd://$1 -ovc frameno -o frameno.avi -oac mp3lame -lameopts cbr:br=128 mencoder -dvd-device ./ dvd://$1 -oac copy -o /dev/null -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=900:vhq:vpass=1:vqmin=1:vqmax=31 -vop scale=512:288 - mencoder -dvd-device ./ dvd://$1 -oac copy -o movie.avi -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=900:vhq:vpass=2:vqmin=1:vqmax=31 -vop scale=512:288 - The problem is that more often than not, it will stop part way through, any of the 3 passes and just wrap up as if everything was fine. For example, it'll be at say 20% and then just stop. If I clean out the temp files and output files and run it again, it may go further, it may not go as far. Sometimes it will do a complete encoding (maybe 1 out of 4 or 5 attempts). Very infrequently, I'll get some kind of error, but most of the time, there's just no error. I have a similar script that I use for re-encoding existing AVI files (I play my stuff through a D-Link DSM 320 and it's picky about some videos, so I re-encode them in a compatible format). That script is as follows: #!/bin/bash if [ $# != 1 ]; then echo "Please provide a filename" exit 1 fi mencoder $1 -ovc frameno -o frameno.avi -oac mp3lame -lameopts cbr:br=128 mencoder $1 -nosound -oac copy -o /dev/null -ovc lavc -lavcopts vcodec=mpeg4:vbi trate=900:vhq:vpass=1:vqmin=1:vqmax=31 mencoder $1 -nosound -oac copy -o newfile.avi -ovc lavc -lavcopts vcodec=mpeg4:v bitrate=900:vhq:vpass=2:vqmin=1:vqmax=31 The second script runs about 90% of the time all the way through, but sometimes (infrequently) has the same problem as the first. As you can see, they're very similar. The only real difference is the input. Anyone know what could be causing the problem? Should I just upgrade to 1.0pre7? Or is the problem somewhere else? As some additional information, the second script I will often run in 2 separate sessions simultaneously (same login, but different sessions) on two different files in two different directories. I find that if I run the second script and the first script at the same time, the first script is more likely to fail, so I don't know if maybe having two instances of it running at the same time could be a problem. But that may just be coincidental. Thanks for any help. Pete
Hi On 6/19/05, Pete Davis <pete@petedavis.net> wrote: [..]
The problem is that more often than not, it will stop part way through, any of the 3 passes and just wrap up as if everything was fine. For example, it'll be at say 20% and then just stop.
[..] Check if your RAM is okay (run memtest86) and also make sure your box breathes well. Random errors I experienced were always due to bad ram, overheating, overclocking, etc... Guillaume -- A woman isn't complete without a man. But where do you find a man - a real man - these days? Only at #mplayerdev on the freenode IRC network. -- Lauren Bacall http://www.brainyquote.com/quotes/quotes/l/laurenbaca127064.html
On Sun, 19 Jun 2005 11:41:56 -0500 "Pete Davis" <pete@petedavis.net> wrote:
I'm running mencoder 1.0pre6-3.4.2
That's only six months old, but it feels like a lifetime...
mencoder -dvd-device ./ dvd://$1 -ovc frameno -o frameno.avi -oac mp3lame-lameopts cbr:br=128
This frameno thing is so deeply frowned upon it is not even in the docs anymore.
mencoder -dvd-device ./ dvd://$1 -oac copy -o movie.avi -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=900:vhq:vpass=2:vqmin=1:vqmax=31 -vop scale=512:288 -
vqmin=1 is bad, use 2. vhq is obsolete use mbd=2. -vop is obsolete use -vf.
Anyone know what could be causing the problem? Should I just upgrade to 1.0pre7? Or is the problem somewhere else?
None of the above is likely to be causing your problem. You should upgrade to pre7, but only if you can't bring yourself to build from CVS. Then if it still happens (and your RAM checks out) run with -v and post the output. Oh, and "Divx" is not a word we use in polite company:-) Martin
I've had trouble finding examples of how to encode with XVid. Frankly, I've found a lot of the documentation and examples around the web a bit hard to follow. I've pieced together my script from samples that I've found around the web. Many times I'll try options I find only to find they're no longer supported or that there's a new option for it. And since most of the examples on the web don't have a version number, it's hard to figure out which version they're writing for. It would be nice if things didn't change so much making it a little easier to follow. I haven't been able to reboot my linux box (apparently I need to, to do the memtest. I'll hopefully be able to in the next hour or so. Since it's also my router, I lose connectivity whenever it goes down. I'll try the options you've posted. In the meantime, I've done two successful encodings by not using the script and instead, doing each line of the script, one step at a time. The idea being that if it failed at a step, I could simply repeat the step. Now suddenly it seems to be passing at every step. Maybe it is overheating and the break between steps is causing it to cool down. I have the box in a separate room with no monitor. I need to pull it out, hook up a monitor and run some of the visual apps that will let me monitor the temperature and other parameters so I can see if that's the problem. Thanks again for your help. Pete -----Original Message----- From: mencoder-users-bounces@mplayerhq.hu [mailto:mencoder-users-bounces@mplayerhq.hu] On Behalf Of Martin Collins Sent: Sunday, June 19, 2005 3:52 PM To: MEncoder usage discussions Subject: Re: [MEncoder-users] Mencoder finishes early on DVD to Divx encoding On Sun, 19 Jun 2005 11:41:56 -0500 "Pete Davis" <pete@petedavis.net> wrote:
I'm running mencoder 1.0pre6-3.4.2
That's only six months old, but it feels like a lifetime...
mencoder -dvd-device ./ dvd://$1 -ovc frameno -o frameno.avi -oac mp3lame-lameopts cbr:br=128
This frameno thing is so deeply frowned upon it is not even in the docs anymore.
mencoder -dvd-device ./ dvd://$1 -oac copy -o movie.avi -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=900:vhq:vpass=2:vqmin=1:vqmax=31 -vop scale=512:288 -
vqmin=1 is bad, use 2. vhq is obsolete use mbd=2. -vop is obsolete use -vf.
Anyone know what could be causing the problem? Should I just upgrade to 1.0pre7? Or is the problem somewhere else?
None of the above is likely to be causing your problem. You should upgrade to pre7, but only if you can't bring yourself to build from CVS. Then if it still happens (and your RAM checks out) run with -v and post the output. Oh, and "Divx" is not a word we use in polite company:-) Martin _______________________________________________ MEncoder-users mailing list MEncoder-users@mplayerhq.hu http://mplayerhq.hu/mailman/listinfo/mencoder-users
Hi, On 6/19/05, Pete Davis <pete@petedavis.net> wrote:
I've had trouble finding examples of how to encode with XVid. Frankly, I've found a lot of the documentation and examples around the web a bit hard to follow. I've pieced together my script from samples that I've found around the web. Many times I'll try options I find only to find they're no longer supported or that there's a new option for it. And since most of the examples on the web don't have a version number, it's hard to figure out which version they're writing for.
It would be nice if things didn't change so much making it a little easier to follow. [..]
Our doc should be reasonably up-to-date (either the HTML or the man page), and I'm working on an encoding guide for XviD. I unfortunately lack time, but it should be ready someday :-) Guillaume -- A woman isn't complete without a man. But where do you find a man - a real man - these days? -- Lauren Bacall My answer: Only at #mplayerdev on the freenode IRC network.
I certainly understand. The documentation does seem to be up-to-date, but I sometimes find it hard to understand how to do things and that's where the samples on the web become helpful. They lose their helpfulness when they're so out of date that they command line arguments are no longer valid. This of course, isn't your fault. It's simply the state of affairs and it makes things difficult. I did find a sample using XVid and will play with that and see how it goes. Thanks. Pete -----Original Message----- From: mencoder-users-bounces@mplayerhq.hu [mailto:mencoder-users-bounces@mplayerhq.hu] On Behalf Of Guillaume POIRIER Sent: Sunday, June 19, 2005 5:19 PM To: MEncoder usage discussions Subject: Re: [MEncoder-users] Mencoder finishes early on DVD to Divx encoding Hi, On 6/19/05, Pete Davis <pete@petedavis.net> wrote:
I've had trouble finding examples of how to encode with XVid. Frankly, I've found a lot of the documentation and examples around the web a bit hard to follow. I've pieced together my script from samples that I've found around the web. Many times I'll try options I find only to find they're no longer supported or that there's a new option for it. And since most of the examples on the web don't have a version number, it's hard to figure out which version they're writing for.
It would be nice if things didn't change so much making it a little easier to follow. [..]
Our doc should be reasonably up-to-date (either the HTML or the man page), and I'm working on an encoding guide for XviD. I unfortunately lack time, but it should be ready someday :-) Guillaume -- A woman isn't complete without a man. But where do you find a man - a real man - these days? -- Lauren Bacall My answer: Only at #mplayerdev on the freenode IRC network. _______________________________________________ MEncoder-users mailing list MEncoder-users@mplayerhq.hu http://mplayerhq.hu/mailman/listinfo/mencoder-users
One thing I am curious about. When I'm am encoding a DVD (this doesn't happen when I re-encode an existing AVI file), Every 4 frames, I get a "1 duplicate frame(s)" message. What is this about? Is there anything I can do to prevent it? Also, I tried deinterlacing the DVD. The DVD is a tv show and I suppose it's NTSC. But deinterlacing didn't seem to have any affect on the output. Does this mean it's not interlaced? I'm just curious about when I should deinterlace and when I shouldn't. Thanks. Pete
On Sun, 19 Jun 2005 21:43:03 -0500 "Pete Davis" <pete@petedavis.net> wrote:
When I'm am encoding a DVD (this doesn't happen when I re-encode an existing AVI file), Every 4 frames, I get a "1 duplicate frame(s)" message. What is this about? Is there anything I can do to prevent it?
The issue is that most DVDs are telecined. This is thoroughly explained in the mplayer docs here: http://mplayerhq.hu/DOCS/HTML/en/menc-feat-telecine.html
Thanks that explains a lot in great detail, maybe a little more detail than I really understand... My CDs are progressive, so I tried the -vf pullup,softskip options with the -ofps 24000/1001, but the video came out at 54 minutes instead of 44 minutes which obviously didn't match up with the 44 minutes of sound To verify, I played it in mplayer and got the message: demux_mpg: 24000/1001 fps progressive NTSC content detected, switching framerate. Did I miss something in the parameters? My actual full parameters for the first pass are: mencoder -dvd-device ./ dvd://1 -oac copy -o /dev/null -vf pullup,softskip,scale=512:288 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=1000:mbd=2:vpass=1:vqmin=2:vqmax=31 -ofps 24000/1001 - Obviously my second pass is the same with vpass=2 and -o to the output file I tried XVid. Unfortunately the video is jumpy in my DSM 320 for xvid. The DSM 320 has a lot of limitations, but within those limitations, it's a very cool unit. It's just required me to re-encode a bunch of videos which has been a pain. Pete -----Original Message----- From: mencoder-users-bounces@mplayerhq.hu [mailto:mencoder-users-bounces@mplayerhq.hu] On Behalf Of RC Sent: Monday, June 20, 2005 12:28 AM To: MEncoder usage discussions Subject: Re: [MEncoder-users] Mencoder finishes early on DVD to Divx encoding On Sun, 19 Jun 2005 21:43:03 -0500 "Pete Davis" <pete@petedavis.net> wrote:
When I'm am encoding a DVD (this doesn't happen when I re-encode an existing AVI file), Every 4 frames, I get a "1 duplicate frame(s)" message. What is this about? Is there anything I can do to prevent it?
The issue is that most DVDs are telecined. This is thoroughly explained in the mplayer docs here: http://mplayerhq.hu/DOCS/HTML/en/menc-feat-telecine.html _______________________________________________ MEncoder-users mailing list MEncoder-users@mplayerhq.hu http://mplayerhq.hu/mailman/listinfo/mencoder-users
On Mon, 20 Jun 2005 17:01:27 -0500 "Pete Davis" <pete@petedavis.net> wrote:
My CDs are progressive, so I tried the -vf pullup,softskip options with the -ofps 24000/1001, but the video came out at 54 minutes instead of 44 minutes which obviously didn't match up with the 44 minutes of sound
That's typically what happens when you leave the "o" off of the "-ofps" switch (mencoder uses that value as the input fps). Try it again, and be careful that you've typed everything correctly.
It's definitely -ofps 24000/1001 in the script. I'm sitting here looking at the script. Actually, I'll just paste in the script below. You'll have to excuse me, this is the first time I've done a bash script with variables or anything, so I'm sure there are better ways to do this. But it works... (well, except for the FPS thing, but that's not a script problem I don't think). Basically I pass in Chapter and Step. Step 1 is audio, Step 2 is first pass of video and Step 3 is second pass of video. It allows me to do it one step at a time (or I can not pass a step and it will do all 3 passes in one step) The whole VCODEC and ENCODER thing is simply so I can easily change the value of VCODEC=$DIVX or VCODEC=$XVID to use the different codecs. Right now I'm just using Divx because it's more compatible with my media player. Pete #!/bin/bash function audio { mencoder -dvd-device ./ dvd://$CHAPTER -ovc frameno -o frameno.avi -oac mp3lame -lameopts cbr:br=128 } function vid1 { mencoder -dvd-device ./ dvd://$CHAPTER -oac copy -o /dev/null -vf pullup,softskip,scale=512:288 -ovc $ENCODER -ofps 24000/1001 - } function vid2 { mencoder -dvd-device ./ dvd://$CHAPTER -oac copy -o movie.avi -vf pullup,softskip,scale=512:288 -ovc $ENCODER -ofps 24000/1001 - } STEP="all" CHAPTER=1 BITRATE="1000" PASSNUM="1" DIVX="lavc -lavcopts vcodec=mpeg4:vbitrate=${BITRATE}:mbd=2:vpass=-PASSNUM-:vqmin=2:vqmax=31" XVID="xvid -xvidencopts bitrate=${BITRATE}:pass=-PASSNUM-" # set to $XVID or $DIVX VCODEC=$DIVX if [ $# == 1 ]; then CHAPTER=$1 elif [ $# == 2 ]; then CHAPTER=$1 STEP=$2 else echo "dvdtranscode chapter [step]" exit fi if [ $STEP == "all" ]; then audio $CHAPTER ENCODER=${VCODEC/-PASSNUM-/1} vid1 $CHAPTER ENCODER=${VCODEC/-PASSNUM-/2} vid2 $CHAPTER exit fi if [ $STEP == "1" ]; then audio $CHAPTER exit fi if [ $STEP == "2" ]; then ENCODER=${VCODEC/-PASSNUM-/1} vid1 $CHAPTER $ENCODER exit fi if [ $STEP == "3" ]; then ENCODER=${VCODEC/-PASSNUM-/2} vid2 $CHAPTER $ENCODER exit fi -----Original Message----- From: mencoder-users-bounces@mplayerhq.hu [mailto:mencoder-users-bounces@mplayerhq.hu] On Behalf Of RC Sent: Monday, June 20, 2005 9:25 PM To: MEncoder usage discussions Subject: Re: [MEncoder-users] Mencoder finishes early on DVD to Divx encoding On Mon, 20 Jun 2005 17:01:27 -0500 "Pete Davis" <pete@petedavis.net> wrote:
My CDs are progressive, so I tried the -vf pullup,softskip options with the -ofps 24000/1001, but the video came out at 54 minutes instead of 44 minutes which obviously didn't match up with the 44 minutes of sound
That's typically what happens when you leave the "o" off of the "-ofps" switch (mencoder uses that value as the input fps). Try it again, and be careful that you've typed everything correctly. _______________________________________________ MEncoder-users mailing list MEncoder-users@mplayerhq.hu http://mplayerhq.hu/mailman/listinfo/mencoder-users
On Mon, 20 Jun 2005 21:40:11 -0500 "Pete Davis" <pete@petedavis.net> wrote:
-ovc frameno
There's the important part you left out. MPlayer devs will stab you with red- hot pokers if they find out you're still using frameno... It almost always causes desyncs. In other words... don't do that!
On Mon, Jun 20, 2005 at 08:11:17PM -0700, RC wrote:
On Mon, 20 Jun 2005 21:40:11 -0500 "Pete Davis" <pete@petedavis.net> wrote:
-ovc frameno
There's the important part you left out. MPlayer devs will stab you with red- hot pokers if they find out you're still using frameno... It almost always causes desyncs.
In other words... don't do that!
Yep, exactly. Rich
Ah, I see, you can do video and audio at the same time now. Much better to do it in 2 passes than 3. Look, you guys keep saying, "Oh, how dare you do this?" or "I can't believe you're doing that." What am I supposed to do? Half the samples on the web are out of date (and I'm not talking the mplayer site, I'm talking about other sites with examples and how-tos). If people shouldn't be doing stuff, IT SHOULD BE CLEARLY DOCUMENTED what stuff shouldn't be used anymore. There should be a section of deprecated and "Don't do this anymore" stuff. There's no mention of frameno in the documentation. If people shouldn't be using it, TELL THEM. We don't just divine this information out of the clear blue sky. But that's just my opinion. Pete -----Original Message----- From: mencoder-users-bounces@mplayerhq.hu [mailto:mencoder-users-bounces@mplayerhq.hu] On Behalf Of RC Sent: Monday, June 20, 2005 10:11 PM To: MEncoder usage discussions Subject: Re: [MEncoder-users] Mencoder finishes early on DVD to Divx encoding On Mon, 20 Jun 2005 21:40:11 -0500 "Pete Davis" <pete@petedavis.net> wrote:
-ovc frameno
There's the important part you left out. MPlayer devs will stab you with red- hot pokers if they find out you're still using frameno... It almost always causes desyncs. In other words... don't do that! _______________________________________________ MEncoder-users mailing list MEncoder-users@mplayerhq.hu http://mplayerhq.hu/mailman/listinfo/mencoder-users
Just to be clear: I'm very appreciative of the help I've gotten here. Honestly, I am. But I keep getting chastised for using out of date stuff. Not everything I've wanted to do was documented well in the manual so I had to resort to how-tos on other sites to help me figure out how to do some of the stuff I've wanted to do. I've got maybe 6 or 7 encoding scripts, each for a slightly different purpose, and many derived from the first scripts that I wrote, so if I got bad info for the early scripts, it probably propagated to the later scripts. All I'm saying is if there's stuff that people SHOULDN'T be doing: Command that shouldn't be used or new commands that should be used instead, this stuff should be clearly listed in a very obvious place in the documentation because otherwise there's no way for the users to know what's unsupported, what's problematic, what's deprecated, etc. Pete -----Original Message----- From: mencoder-users-bounces@mplayerhq.hu [mailto:mencoder-users-bounces@mplayerhq.hu] On Behalf Of Pete Davis Sent: Tuesday, June 21, 2005 7:21 AM To: 'MEncoder usage discussions' Subject: RE: [MEncoder-users] Mencoder finishes early on DVD to Divx encoding Ah, I see, you can do video and audio at the same time now. Much better to do it in 2 passes than 3. Look, you guys keep saying, "Oh, how dare you do this?" or "I can't believe you're doing that." What am I supposed to do? Half the samples on the web are out of date (and I'm not talking the mplayer site, I'm talking about other sites with examples and how-tos). If people shouldn't be doing stuff, IT SHOULD BE CLEARLY DOCUMENTED what stuff shouldn't be used anymore. There should be a section of deprecated and "Don't do this anymore" stuff. There's no mention of frameno in the documentation. If people shouldn't be using it, TELL THEM. We don't just divine this information out of the clear blue sky. But that's just my opinion. Pete -----Original Message----- From: mencoder-users-bounces@mplayerhq.hu [mailto:mencoder-users-bounces@mplayerhq.hu] On Behalf Of RC Sent: Monday, June 20, 2005 10:11 PM To: MEncoder usage discussions Subject: Re: [MEncoder-users] Mencoder finishes early on DVD to Divx encoding On Mon, 20 Jun 2005 21:40:11 -0500 "Pete Davis" <pete@petedavis.net> wrote:
-ovc frameno
There's the important part you left out. MPlayer devs will stab you with red- hot pokers if they find out you're still using frameno... It almost always causes desyncs. In other words... don't do that! _______________________________________________ MEncoder-users mailing list MEncoder-users@mplayerhq.hu http://mplayerhq.hu/mailman/listinfo/mencoder-users _______________________________________________ MEncoder-users mailing list MEncoder-users@mplayerhq.hu http://mplayerhq.hu/mailman/listinfo/mencoder-users
On Tue, 21 Jun 2005 07:54:38 -0500 "Pete Davis" <pete@petedavis.net> wrote:
All I'm saying is if there's stuff that people SHOULDN'T be doing: Command that shouldn't be used or new commands that should be used instead, this stuff should be clearly listed in a very obvious place in the documentation because otherwise there's no way for the users to know what's unsupported, what's problematic, what's deprecated, etc.
A reasonable hope I suppose, the problem being finding someone willing to take responsibility for doing that. My view is that obsolete features should be removed or at least give a warning when running mplayer. The counter view would be that that would break existing scripts and provoke more complaints. On the other hand, this list exists and if you followed it you would over time pick up all the information you seek. Martin
I agree with you regarding following the list. The problem that arises there is that in that case, the same information tends to get repeated over and over again as new people come to the list. And I can certainly understand the issue of resources to write the documentation. A project this size I'm sure could always use more resources. One thing that might be a good idea and wouldn't be terribly time intensive, would be to put together a collection of scripts on the web site that perform various functions and act as examples. Instead of the authors having to do the work themselves, people on this list could simply contribute whatever scripts they've written. Someone could go through, decide which ones are good examples, maybe make minor edits to fix up ones that are almost good enough, and then make them available either on the web site or in the documentation, or both. I think what's largely lacking in the documentation and what really helps people like me, who are new to mencoder out, is to see samples. Examples: A script to turn a DVD movie into an AVI A script to turn a DVD TV Show into multiple AVIs A script to convert an existing AVI to a specific audio and video codec. A script to re-encode just audio A script to re-encode just video Etc... A dozen or two of these, with just a short paragraph describing what the script does, could demonstrate a pretty wide range of things that can be done and provide a good source for people to cut and paste their own. Otherwise, people like me end up googling and finding out of date samples. Anyway, just an idea. But again, the developers on the project could take advantage of the people on this list as a source and save themselves some work. Pete -----Original Message----- From: mencoder-users-bounces@mplayerhq.hu [mailto:mencoder-users-bounces@mplayerhq.hu] On Behalf Of Martin Collins Sent: Tuesday, June 21, 2005 2:24 PM To: mencoder-users@mplayerhq.hu Subject: Re: [MEncoder-users] Mencoder finishes early on DVD to Divx encoding On Tue, 21 Jun 2005 07:54:38 -0500 "Pete Davis" <pete@petedavis.net> wrote:
All I'm saying is if there's stuff that people SHOULDN'T be doing: Command that shouldn't be used or new commands that should be used instead, this stuff should be clearly listed in a very obvious place in the documentation because otherwise there's no way for the users to know what's unsupported, what's problematic, what's deprecated, etc.
A reasonable hope I suppose, the problem being finding someone willing to take responsibility for doing that. My view is that obsolete features should be removed or at least give a warning when running mplayer. The counter view would be that that would break existing scripts and provoke more complaints. On the other hand, this list exists and if you followed it you would over time pick up all the information you seek. Martin _______________________________________________ MEncoder-users mailing list MEncoder-users@mplayerhq.hu http://mplayerhq.hu/mailman/listinfo/mencoder-users
Hi, On 6/21/05, Pete Davis <pete@petedavis.net> wrote:
I agree with you regarding following the list. The problem that arises there is that in that case, the same information tends to get repeated over and over again as new people come to the list.
And I can certainly understand the issue of resources to write the documentation. A project this size I'm sure could always use more resources.
One thing that might be a good idea and wouldn't be terribly time intensive, would be to put together a collection of scripts on the web site that perform various functions and act as examples. Instead of the authors having to do the work themselves, people on this list could simply contribute whatever scripts they've written. Someone could go through, decide which ones are good examples, maybe make minor edits to fix up ones that are almost good enough, and then make them available either on the web site or in the documentation, or both.
I think what's largely lacking in the documentation and what really helps people like me, who are new to mencoder out, is to see samples. Examples:
A script to turn a DVD movie into an AVI A script to turn a DVD TV Show into multiple AVIs A script to convert an existing AVI to a specific audio and video codec. A script to re-encode just audio A script to re-encode just video
Etc...
A dozen or two of these, with just a short paragraph describing what the script does, could demonstrate a pretty wide range of things that can be done and provide a good source for people to cut and paste their own.
Otherwise, people like me end up googling and finding out of date samples.
Anyway, just an idea. But again, the developers on the project could take advantage of the people on this list as a source and save themselves some work.
I think that this is a smart idea, and projects like wikipedia showed that it was really rewarding to trust people/users to document/talk about things. A wiki doc is better than no doc at all IMHO, and wiki make the update process a lot easier/flexible than our current system. But I know now everybody think like me. It would be a lot better if more people could send doc patches. A agree that wiki or blog is the fashion thingy of this time, just like was Java, Zope, or Linux at some point, but some of those proved to be more than just a trend, but filled an empty spot that other tools did not fill, so to speak. Guillaume -- A woman isn't complete without a man. But where do you find a man - a real man - these days? -- Lauren Bacall My answer: Only at #mplayerdev on the freenode IRC network.
On Tuesday, 21 June 2005 at 23:22, Pete Davis wrote: [...]
I think what's largely lacking in the documentation and what really helps people like me, who are new to mencoder out, is to see samples. Examples:
A script to turn a DVD movie into an AVI A script to turn a DVD TV Show into multiple AVIs A script to convert an existing AVI to a specific audio and video codec. A script to re-encode just audio A script to re-encode just video
Etc...
A dozen or two of these, with just a short paragraph describing what the script does, could demonstrate a pretty wide range of things that can be done and provide a good source for people to cut and paste their own.
Except that I wouldn't call them scripts. Examples, yes, but not scripts. Calling them scripts suggests they actually do something, while with video encoding, it all depends on the source and what you want to achieve. There is no single way to "turn a DVD movie into an AVI" or "to turn a DVD TV Show into multiple AVIs". Each case is unique and you have to know what you're doing if you are to do it right. R. -- MPlayer RPMs maintainer: http://rpm.greysector.net/mplayer/ "I am Grey. I stand between the candle and the star. We are Grey. We stand between the darkness ... and the light." -- Delenn in Grey Council in Babylon 5:"Babylon Squared"
A dozen or two of these, with just a short paragraph describing what the script does, could demonstrate a pretty wide range of things that can be done and provide a good source for people to cut and paste their own.
Except that I wouldn't call them scripts. Examples, yes, but not scripts. calling them scripts suggests they actually do something, while with video encoding, it all depends on the source and what you want to achieve. There is no single way to "turn a DVD movie into an AVI" or "to turn a DVD TV Show into multiple AVIs". Each case is unique and you have to know what you're doing if you are to do it right.
R.
Well, yes and no. For example, if you want to create a Divx of a TV series from DVD, it's pretty easy to come up with a single script that you can re-use for each chapter and each disc. And if your paragraph explanation describes the options and what the different flags represent, the user can then decide if maybe they want to change some of those options. They might look at another example and pick pieces from it and combine the two into what they need. Of course there's no single way to do it. Hell, there are a tons of options. But show some of the common scenarios. Show encoding a progressive DVD. Then show an interlaced. Show what options are different between the two. Show encoding to Divx. Then show encoding to XVid. Having whole examples, I think, is easier than digging through the docs and piecing together, oh, I need this flag, and this parameter, and I need that parameter. It's all scattered all over the docs. That's fine as a reference, but back it up with whole examples (and a lot of them) that show the process and describe what each example does. This example takes an existing AVI and re-codes the sound in MP3, or this example converts a DVD chapter into a 512x288 Divx with AC3 sound. Things like that. I'm not on a crusade or anything. You guys can do what you want. I simply think from a new user's point of view, it would be very helpful. Doing it in a Wiki is fine too. That actually has the advantage that people will probably be good about updating when parameters or functionality changes. Pete
On Tue, Jun 21, 2005 at 09:01:38PM -0500, Pete Davis wrote:
A dozen or two of these, with just a short paragraph describing what the script does, could demonstrate a pretty wide range of things that can be done and provide a good source for people to cut and paste their own.
Except that I wouldn't call them scripts. Examples, yes, but not scripts. calling them scripts suggests they actually do something, while with video encoding, it all depends on the source and what you want to achieve. There is no single way to "turn a DVD movie into an AVI" or "to turn a DVD TV Show into multiple AVIs". Each case is unique and you have to know what you're doing if you are to do it right.
R.
Well, yes and no. For example, if you want to create a Divx of a TV series from DVD, it's pretty easy to come up with a single script that you can re-use for each chapter and each disc. And if your paragraph explanation
For all the discs of ONE PARTICULAR SERIES, yes. Otherwise your statement is blatently false.
describes the options and what the different flags represent, the user can then decide if maybe they want to change some of those options. They might look at another example and pick pieces from it and combine the two into what they need.
Of course there's no single way to do it. Hell, there are a tons of options. But show some of the common scenarios. Show encoding a progressive DVD. Then show an interlaced. Show what options are different between the two.
It's nowhere near that simple. You really cannot encode without understanding the content you're dealing with. Otherwise your results will come out very bad.
Show encoding to Divx.
No, divx is deprecated.
Then show encoding to XVid.
You left out the good choice, lavc...
Having whole examples, I think, is easier than digging through the docs and piecing together, oh, I need this flag, and this parameter, and I need that
Have you ever read the docs? They're very good.
Doing it in a Wiki is fine too. That actually has the advantage that people will probably be good about updating when parameters or functionality changes.
The idea of wiki was already quickly shot down a long time ago. People wanting to contribute should send patches for the official documentation. Rich
-----Original Message----- From: mencoder-users-bounces@mplayerhq.hu [mailto:mencoder-users- bounces@mplayerhq.hu] On Behalf Of Rich Felker Sent: Tuesday, June 21, 2005 9:59 PM To: MEncoder usage discussions Subject: Re: [MEncoder-users] Mencoder finishes early on DVD to Divx encoding
A dozen or two of these, with just a short paragraph describing what
script does, could demonstrate a pretty wide range of things that can be done and provide a good source for people to cut and paste their own.
Except that I wouldn't call them scripts. Examples, yes, but not
On Tue, Jun 21, 2005 at 09:01:38PM -0500, Pete Davis wrote: the scripts.
calling them scripts suggests they actually do something, while with video encoding, it all depends on the source and what you want to achieve. There is no single way to "turn a DVD movie into an AVI" or "to turn a DVD TV Show into multiple AVIs". Each case is unique and you have to know what you're doing if you are to do it right.
R.
Well, yes and no. For example, if you want to create a Divx of a TV series from DVD, it's pretty easy to come up with a single script that you can re-use for each chapter and each disc. And if your paragraph explanation
For all the discs of ONE PARTICULAR SERIES, yes. Otherwise your statement is blatently false.
Nowhere did I suggest that the scripts could be used without changes. The idea is that they're examples. But yes, for all the discs in a particular series, a single script is reusable. With minor alterations, it can be used for another series.
describes the options and what the different flags represent, the user can then decide if maybe they want to change some of those options. They might look at another example and pick pieces from it and combine the two into what they need.
Of course there's no single way to do it. Hell, there are a tons of options. But show some of the common scenarios. Show encoding a progressive DVD. Then show an interlaced. Show what options are different between the two.
It's nowhere near that simple. You really cannot encode without understanding the content you're dealing with. Otherwise your results will come out very bad.
Where do I suggest that people do it in complete ignorance to the documentation or the format of the content. Again, the idea is to provide EXAMPLES, not something people will necessarily be able to use "out of the box". Nowhere do I suggest the documentation shouldn't be read or used. What I'm suggesting is something in addition to the existing documentation.
Show encoding to Divx.
No, divx is deprecated.
Then show encoding to XVid.
You left out the good choice, lavc...
Having whole examples, I think, is easier than digging through the docs and piecing together, oh, I need this flag, and this parameter, and I need that
Have you ever read the docs? They're very good.
Yes, it is good. What it's lacking, in my humble opinion, is examples. It's very descriptive and it goes into great detail, but encoding my first movie well took a lot longer than I think it had to. I think with more examples, I might have gotten up to speed faster and the documentation might have made a little more sense to me seeing things in context.
Doing it in a Wiki is fine too. That actually has the advantage that people will probably be good about updating when parameters or functionality changes.
The idea of wiki was already quickly shot down a long time ago. People wanting to contribute should send patches for the official documentation.
I don't care how it's done. I don't even care if it's done. All I'm offering is a suggestion. Take it, leave it. I don't really care.
Rich
_______________________________________________ MEncoder-users mailing list MEncoder-users@mplayerhq.hu http://mplayerhq.hu/mailman/listinfo/mencoder-users
Hi Rich, (I CC the doc ML as that list is more appropriate IMHO) On 6/22/05, Rich Felker <dalias@aerifal.cx> wrote: [..]
Doing it in a Wiki is fine too. That actually has the advantage that people will probably be good about updating when parameters or functionality changes.
The idea of wiki was already quickly shot down a long time ago. People wanting to contribute should send patches for the official documentation.
They should, but they don't! How many people send patches to update the docs these days? All the fingers of one hand are enough to count them. Rich, what we don't realize is that sending a patch to the list is not _that_ simple to Joe User: - you need to understand Nroff or XML, and know where the source is located so you may update it (not so straightforward when you only use binary packages), - then you need to know how to make a patch... (then you need to resend it because it's not a unified diff patch), - then you need to figure out where to send it... do you send it to Diego, whose is mail address is on the front page, do you sent it to the ML? - then you need to subscribe to the list, and send the patch (and resend a another mail because you forgot to attach the file)... At the end of this process, how many people are left? Ok now, just consider what you have to do to contribute to a wiki: - create an account - log in - start to contribute on the page you just read one minute before ! I'm really not a Wiki zealot, but I don't like the idea of having few people of the MPlayer crew do the job that lots of uses would be thrilled to do if we were to put ourselves in their shoes and understand what stops them from contributing. That's pretty sure that having more random people contributing to the docs will make it less consistent, but is that really a terrible thing that will prevent us from sleeping well? Just look at how good the wikipedia is! We even give links to the wikipedia in our docs! How dare do we flame wikis when we use them already!! And the wikipedia is not the only project that benefits from wikis, there's also ubuntu, fedora, GCC, wikiquotes, and probably many others. I'd be happy if we could debate that issue without getting into flames (thought I know it's not the first time we discuss wikis). Regards, Guillaume -- A woman isn't complete without a man. But where do you find a man - a real man - these days? -- Lauren Bacall My answer: Only at #mplayerdev on the freenode IRC network.
Rich, what we don't realize is that sending a patch to the list is not _that_ simple to Joe User: - you need to understand Nroff or XML, and know where the source is located so you may update it (not so straightforward when you only use binary packages), - then you need to know how to make a patch... (then you need to resend it because it's not a unified diff patch), - then you need to figure out where to send it... do you send it to Diego, whose is mail address is on the front page, do you sent it to the ML? - then you need to subscribe to the list, and send the patch (and resend a another mail because you forgot to attach the file)...
There are rules to do everything. Ours aren't that much restrictive. If the contributor doesn't follow them he doesn't have enough motivation, consequently the quality of his contribution will likely be low
At the end of this process, how many people are left?
Ok now, just consider what you have to do to contribute to a wiki: - create an account - log in - start to contribute on the page you just read one minute before !
... and possibily contribute unmediated bullshit. Not a great gain for the docs. Posting docs to the ML in the form of patches has the great advantage that developers who care enough will correct the parts of text that they consider wrong or incomplete, as it happened countless times.
Hi, On 6/22/05, Nico Sabbi <nsabbi@fastwebnet.it> wrote:
Rich, what we don't realize is that sending a patch to the list is not _that_ simple to Joe User: - you need to understand Nroff or XML, and know where the source is located so you may update it (not so straightforward when you only use binary packages), - then you need to know how to make a patch... (then you need to resend it because it's not a unified diff patch), - then you need to figure out where to send it... do you send it to Diego, whose is mail address is on the front page, do you sent it to the ML? - then you need to subscribe to the list, and send the patch (and resend a another mail because you forgot to attach the file)...
There are rules to do everything. Ours aren't that much restrictive. If the contributor doesn't follow them he doesn't have enough motivation, consequently the quality of his contribution will likely be low.
Not necessarily. I think people are a lot more lazy than careless. If you ease up the process of contributing, chances are that they would be more of them, and that the errors would end-up getting fixed one day or the other.
At the end of this process, how many people are left?
Ok now, just consider what you have to do to contribute to a wiki: - create an account - log in - start to contribute on the page you just read one minute before !
... and possibily contribute unmediated bullshit. Not a great gain for the docs.
How about a disclaimer to state that the wiki is not officially supported then? We already do that for binary versions of MPlayer.
Posting docs to the ML in the form of patches has the great advantage that developers who care enough will correct the parts of text that they consider wrong or incomplete, as it happened countless times.
I do agree with that, but I still think that our process is not so simple and clear to the newcomer. Guillaume -- A woman isn't complete without a man. But where do you find a man - a real man - these days? -- Lauren Bacall My answer: Only at #mplayerdev on the freenode IRC network.
Hi, sorry for my late reply... Guillaume POIRIER wrote:
On 6/22/05, Nico Sabbi <nsabbi@fastwebnet.it> wrote:
Rich, what we don't realize is that sending a patch to the list is not _that_ simple to Joe User: - you need to understand Nroff or XML, and know where the source is located so you may update it (not so straightforward when you only use binary packages),
no, imho you really don't have to. That is why we have ppl like diego and you in the doc team who understand it. See the last paragraph.
- then you need to know how to make a patch... (then you need to resend it because it's not a unified diff patch),
this is clearly stated in our documentation, so it is not a big problem. We just have to assume ppl can read. And if you don't send a unified diff on the 1st run, where is the problem with resending it? And again, i don't even think you always have to send patches.
- then you need to figure out where to send it... do you send it to Diego, whose is mail address is on the front page, do you sent it to the ML? - then you need to subscribe to the list, and send the patch (and resend a another mail because you forgot to attach the file)...
That might happen, but that's live.
There are rules to do everything. Ours aren't that much restrictive. If the contributor doesn't follow them he doesn't have enough motivation, consequently the quality of his contribution will likely be low.
Not necessarily. I think people are a lot more lazy than careless. If you ease up the process of contributing, chances are that they would be more of them, and that the errors would end-up getting fixed one day or the other.
We have to keep the high quality of our docs, because we always point users to look at them. If they grab (completely) wrong stuff from there they will start getting angry/annoyed.
At the end of this process, how many people are left?
Ok now, just consider what you have to do to contribute to a wiki: - create an account - log in - start to contribute on the page you just read one minute before !
... and possibily contribute unmediated bullshit. Not a great gain for the docs.
How about a disclaimer to state that the wiki is not officially supported then? We already do that for binary versions of MPlayer.
This would be the least thing to do, but i still don't like the idea. Again I don't like the idea of spreading wrong information, for example outdated information was the cause of this thread. IMHO We have to eliminate these sources of wrong information instead of creating new places where it can be hosted.
Posting docs to the ML in the form of patches has the great advantage that developers who care enough will correct the parts of text that they consider wrong or incomplete, as it happened countless times.
I do agree with that, but I still think that our process is not so simple and clear to the newcomer.
And this is exactly the point! We do have so many of the technical developers on the doc ml that we imho have to take advantage of it. So potential contributers should send their patches, experiences and corrections there and the devels with knowledge about the topic will correct mistakes if any (and often there are). Then the documentaion people can add it to the documentation _at the right place while keeping structure and consistency_. Alex (beastd)
participants (8)
-
Alexander Strasser -
Dominik 'Rathann' Mierzejewski -
Guillaume POIRIER -
Martin Collins -
Nico Sabbi -
Pete Davis -
RC -
Rich Felker