View Full Version : mencoder on Linux Help
weaver4
23rd February 2008, 14:46
I have been working on doing some encoding on Linux and I am having a couple of minor problems.
I am using Ubuntu 7.10 and here is what I am doing.
To see what Title I should use I do:
lsdvd /dev/dvd
Then to rip the main title I use.
mplayer dvd://1 -dumpstream -dumpfile dvd.mpg
Then to look at cropping values I use:
mplayer dvd://1 -vf cropdetect=24:16
Then to encode I use (where cropping values are from above):
mencoder -ovc xvid -oac mp3lame -xvidencopts fixed_quant=3 -alang en -vf ivtc,crop=720:352:0:62,scale=640:-10 -o ~/Videos/test4.avi dvd.mpg
One problem that I have is that my framerate is 29.996fps even though the movie is a ivtc movie. Other windows tools bring the movie down to the original Film framerate of 23.976.
Any help would be appreciated.
microchip8
23rd February 2008, 15:06
when doing ivtc with mencoder, you need to set both -fps and -ofps, so in your case you add to the parameters
-fps 30000/1001 -ofps 24000/1001
or try my script - http://xvidenc.sourceforge.net
weaver4
23rd February 2008, 17:35
Thanks!
I would like to try your script...do you have a build for Ubuntu?
microchip8
23rd February 2008, 17:50
Thanks!
I would like to try your script...do you have a build for Ubuntu?
it's just a script and it has a "install" script as well, you can use that... I don't have any pre-packaged releases for ubuntu, only RPMs and slackware tgz's
Rasi
23rd February 2008, 21:22
couldnt find it in the manpage... if i want to have a mkv file with vorbis audio... xvidenc doesnt do vorbis encoding, so lets say i do the encoding manually and get 2 vorbis files with together 100MB
if i want a video file which has 1400MB in the end (so 1300MB of video data), what options should i use?
microchip8
23rd February 2008, 21:42
couldnt find it in the manpage... if i want to have a mkv file with vorbis audio... xvidenc doesnt do vorbis encoding, so lets say i do the encoding manually and get 2 vorbis files with together 100MB
if i want a video file which has 1400MB in the end (so 1300MB of video data), what options should i use?
you should use NOSOUND with xvidenc to encode only the video stream, then mux your Vorbis audio streams with mkvmerge
Tack
23rd February 2008, 22:07
when doing ivtc with mencoder, you need to set both -fps and -ofps[/url]Actually only -ofps is necessary. But the OP should use -vf softskip,pullup rather than ivtc, which is older and not as good for most material.
microchip8
23rd February 2008, 22:12
Actually only -ofps is necessary. But the OP should use -vf softskip,pullup rather than ivtc, which is older and not as good for most material.
it should be -vf pullup,softskip
:)
Tack
23rd February 2008, 22:20
it should be -vf pullup,softskip :)
Quite right. Brain fart. :)
Rasi
24th February 2008, 14:32
you should use NOSOUND with xvidenc to encode only the video stream, then mux your Vorbis audio streams with mkvmerge
thats alright, but whats the xvidenc option for fixed filesize? searching the manpage for "size" didnt give a helpful result...
microchip8
24th February 2008, 16:40
thats alright, but whats the xvidenc option for fixed filesize? searching the manpage for "size" didnt give a helpful result...
that's not supported yet, what you can do though is encode with audio and calculate the video bitrate for a specific filesize, then substract the filesize of the audio from the filesize given by the target filesize
microchip8
24th February 2008, 16:54
thats alright, but whats the xvidenc option for fixed filesize? searching the manpage for "size" didnt give a helpful result...
here is a patched xvidenc which can calculate a video bitrate for encoding without audio - http://www.mediafire.com/?u2enedydicz
the option for fixed filesize is the first one (video bitrate calculation) in the Miscellaneous Settings
foridea
24th February 2008, 20:56
here is a patched xvidenc which can calculate a video bitrate for encoding without audio - http://www.mediafire.com/?u2enedydicz
the option for fixed filesize is the first one (video bitrate calculation) in the Miscellaneous Settings
good information thanks.
weaver4
25th February 2008, 00:45
when doing ivtc with mencoder, you need to set both -fps and -ofps, so in your case you add to the parameters
-fps 30000/1001 -ofps 24000/1001
or try my script - http://xvidenc.sourceforge.net
Tried your script and really liked it! Thanks, great job.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.