Just a minor niggle here with the DVD's that I encode using MEncoder. For some reason the lengths of tracks that I encode with it show up about half as long as they should in lsdvd and my standalone player. I think MPlayer pre7 may have identified them that way too, although I'm using current CVS now and it gets the lengths right. I've double-checked my command-line options and as far as I can tell they're okay. Here's my command-line (with line breaks added): mencoder "$infile" -of mpeg -vf scale=720:-2,expand=720:480,harddup\ -oac lavc -ovc lavc -lavcopts acodec=ac3:abitrate=192:vcodec=mpeg2video:\ keyint=18:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:aspect=4/3\ -mpegopts format=dvd -srate 48000 -af lavcresample=48000 -ofps 30000/1001\ -o temp.mpg The resulting file is then passed to dvdauthor to create the disk structure. Is this more likely an MEncoder problem or should I be looking at dvdauthor? It's not a major issue, but it would be nice to get accurate times for the resulting discs. Thanks. -Ben
On Mon, Nov 07, 2005 at 08:42:13PM -0600, Ben Nemec wrote:
Just a minor niggle here with the DVD's that I encode using MEncoder. For some reason the lengths of tracks that I encode with it show up about half as long as they should in lsdvd and my standalone player. I think MPlayer pre7 may have identified them that way too, although I'm using current CVS now and it gets the lengths right. I've double-checked my command-line options and as far as I can tell they're okay. Here's my command-line (with line breaks added):
mencoder "$infile" -of mpeg -vf scale=720:-2,expand=720:480,harddup\ -oac lavc -ovc lavc -lavcopts acodec=ac3:abitrate=192:vcodec=mpeg2video:\ keyint=18:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:aspect=4/3\ -mpegopts format=dvd -srate 48000 -af lavcresample=48000 -ofps 30000/1001\ -o temp.mpg
-ofps 30000/1001 along with scaling is certainly wrong. If the content is interlaced, you need to treat it specially or deinterlace it first, and if it's not interlaced then 30000/1001 is almost surely the wrong framerate. BTW why are you rescaling and adding black bars to make it 4:3?! This will only butcher the quality and make it so that the DVD can't be played right on 16:9 displays.
The resulting file is then passed to dvdauthor to create the disk structure. Is this more likely an MEncoder problem or should I be looking at dvdauthor? It's not a major issue, but it would be nice to get accurate times for the resulting discs. Thanks.
No idea what you mean by the time being wrong. Rich
Rich Felker wrote:
The resulting file is then passed to dvdauthor to create the disk structure. Is this more likely an MEncoder problem or should I be looking at dvdauthor? It's not a major issue, but it would be nice to get accurate times for the resulting discs. Thanks.
No idea what you mean by the time being wrong.
Rich
maybe the program he's using relies on the bitrate of the video stream to determine the duration. In this case -mpegopts format=dvd:vbitrate=5000 will fix it -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Sei in cerca dell�amore? Non perdere tempo, iscriviti gratis a Meetic! Potrai chattare con migliaia di single in linea. Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=4052&d=8-11
On Tuesday 08 November 2005 02:19, Nico Sabbi wrote:
Rich Felker wrote:
The resulting file is then passed to dvdauthor to create the disk structure. Is this more likely an MEncoder problem or should I be looking at dvdauthor? It's not a major issue, but it would be nice to get accurate times for the resulting discs. Thanks.
No idea what you mean by the time being wrong.
Rich
maybe the program he's using relies on the bitrate of the video stream to determine the duration. In this case -mpegopts format=dvd:vbitrate=5000 will fix it
It didn't help on the small test files with lsdvd, but that might explain the behavior on the standalone player. I'll let you know when I've had a chance to burn a full disc and try it. -Ben
On Monday 07 November 2005 23:42, you wrote:
On Mon, Nov 07, 2005 at 08:42:13PM -0600, Ben Nemec wrote:
Just a minor niggle here with the DVD's that I encode using MEncoder. For some reason the lengths of tracks that I encode with it show up about half as long as they should in lsdvd and my standalone player. I think MPlayer pre7 may have identified them that way too, although I'm using current CVS now and it gets the lengths right. I've double-checked my command-line options and as far as I can tell they're okay. Here's my command-line (with line breaks added):
mencoder "$infile" -of mpeg -vf scale=720:-2,expand=720:480,harddup\ -oac lavc -ovc lavc -lavcopts acodec=ac3:abitrate=192:vcodec=mpeg2video:\ keyint=18:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:aspect=4/3\ -mpegopts format=dvd -srate 48000 -af lavcresample=48000 -ofps 30000/1001\ -o temp.mpg
-ofps 30000/1001 along with scaling is certainly wrong. If the content is interlaced, you need to treat it specially or deinterlace it first, and if it's not interlaced then 30000/1001 is almost surely the wrong framerate.
Hmm, I thought DVDs had to have a framerate of 30000/1001? I'm not sure whether the input is interlaced or not (sorry, kind of ignorant about this), although it probably was originally. It's a Myth recording and IIRC tv is (usually?) interlaced. However, I've reencoded it to regular MPEG4 to get rid of the commercials and get it in a more widely supported format. I would assume the interlacing gets removed during the MPEG4 encode, but like I said I'm ignorant when it comes to this.
BTW why are you rescaling and adding black bars to make it 4:3?! This will only butcher the quality and make it so that the DVD can't be played right on 16:9 displays.
Hmm, good question. Most of the input files I'm using are 4:3 since they're SDTV recordings so at the time that seemed like forcing any file I ran it on to be 4:3 would make things simpler (plus my TV is currently only 4:3 so I wasn't even thinking about wide aspect ones). It's part of a script, so I wanted it to work with almost any file I gave it. And at the time all I had heard was that DVD video under Linux was a pain so I wanted to simplify things by not dealing with aspect ratios (turns out it wasn't all that complicated with Mencoder and the docs, but I didn't know that). I suppose to have widescreen files work properly I would have to use a different command with the aspect being 16:9. As long as I match up the original aspect with the appropriate 4:3 or 16:9 DVD aspect I should be okay, right?
The resulting file is then passed to dvdauthor to create the disk structure. Is this more likely an MEncoder problem or should I be looking at dvdauthor? It's not a major issue, but it would be nice to get accurate times for the resulting discs. Thanks.
No idea what you mean by the time being wrong.
Just that lsdvd and my standalone DVD player seem to think the discs are about half as long as they should be. They play fine otherwise, but not having accurate times messes up seeking sometimes. -Ben
On Tue, 8 Nov 2005 20:35:17 -0600 Ben Nemec <nemecb@gmail.com> wrote:
Hmm, I thought DVDs had to have a framerate of 30000/1001?
No, you can also use 24000/1001 with 3:2 pulldown ("-mpegopts telecine").
I'm not sure whether the input is interlaced or not (sorry, kind of ignorant about this),
However, I've reencoded it to regular MPEG4 to get rid of the commercials and get it in a more widely supported format. I would assume the interlacing gets removed during the MPEG4 encode,
MPEG-4 supports interlacing, so there's no guarantee.
On Wed, Nov 09, 2005 at 04:37:30AM -0800, RC wrote:
On Tue, 8 Nov 2005 20:35:17 -0600 Ben Nemec <nemecb@gmail.com> wrote:
Hmm, I thought DVDs had to have a framerate of 30000/1001?
No, you can also use 24000/1001 with 3:2 pulldown ("-mpegopts telecine").
I'm not sure whether the input is interlaced or not (sorry, kind of ignorant about this),
However, I've reencoded it to regular MPEG4 to get rid of the commercials and get it in a more widely supported format. I would assume the interlacing gets removed during the MPEG4 encode,
MPEG-4 supports interlacing, so there's no guarantee.
it won't get 'removed' anyway. the video quality will just get destroyed if you don't treat the content VERY CAREFULLY. you really need to READ and LEARN what you're doing before you try this.. rich
On 11/9/05, Rich Felker <dalias@aerifal.cx> wrote:
it won't get 'removed' anyway. the video quality will just get destroyed if you don't treat the content VERY CAREFULLY.
you really need to READ and LEARN what you're doing before you try this..
rich
Ah, you're right. I just remembered that I use -vf pp=lb in my encode-to-MPEG4 command-line. Turns out that upon reading the man page that is a deinterlacing filter. Whoops. I should have known that since the interlaced video quality problems were exactly why I added it in the first place. So I guess that takes care of the interlacing. In any case, the quality of the DVDs is fine. The source video is pretty poor but as long as I don't sit too close to the tv I don't notice.:-) -Ben
participants (4)
-
Ben Nemec -
Nico Sabbi -
RC -
Rich Felker