LinHES Forums
http://forum.linhes.org/

transcoding using mencoder
http://forum.linhes.org/viewtopic.php?f=6&t=6987
Page 1 of 1

Author:  declanh [ Sat Nov 19, 2005 2:21 pm ]
Post subject:  transcoding using mencoder

Divx transcoding using mencoder seems pretty fast (faster than I was expecting at any rate on a 1.4ghz athlon).

unfortunately the quality is suboptimal with

mencoder /myth/tv/1069_20051118233500_20051119020000.nuv -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=680:vhq:vqmin=2:vlelim=-4:vcelim=9:lumi_mask=0.05:dark_mask=0.01 -vop scale -zoom -xy 640 -oac mp3lame -lameopts abr:br=96 -o /myth/video/The_Game__11182335.avi



anyone suggest a better command line for this ?

Author:  pkscout [ Sat Nov 19, 2005 3:59 pm ]
Post subject: 

I'm not a command line guy when it comes to menencoder, but I don't see anything there for 2-pass. You'll probably get much better quality with 2-pass encoding. Of course it'll take about twice as long, but then it'll probably take about as long as you thought it should. ;)

Author:  spalVl [ Sat Nov 19, 2005 7:25 pm ]
Post subject: 

may want to give nuvexport a try. I have been really impressed.

If you want to stick with Divx

Code:
nuvexport


If you want to use multipass XviD

Quote:
nuvexport --transcode

Author:  declanh [ Sun Nov 20, 2005 6:55 am ]
Post subject: 

Yeah - looked at this before - but gave up cos it was transcoding at less than 1 frame/second 2 pass

mencoder was managing up to 35 fps which made it seem more attractive to me.

even nuvexport in single pass is much slower - (according to my benchmarks over 100hours elapsed to do a single film (never waited that long for it to complete!) - this compares with 2-3 for mencoder)

Author:  declanh [ Tue Nov 22, 2005 1:38 pm ]
Post subject:  nuvexport - stats weirdness

More oddness here - keen to explore the diff between nuvexport and mencoder i decided to transcode using nuvexport and just wait and see how long it would take to produce the divx.

When you start it says anything from 1-15fps depending on the options chosen

I chose the following




Code:
Where would you like to export the files to? [.] /myth/video
Enable Myth cutlist? [Yes] n
Enable noise reduction (slower, but better results)? [Yes] n
Enable deinterlacing? [Yes]
Crop broadcast overscan (2% border)? [Yes]
Audio bitrate? [128]
Variable bitrate video? [Yes]
Multi-pass (slower, but better quality)? [Yes]
Video bitrate? [960]
Default resolution based on 4:3 aspect ratio.
Width? [624]
Height? [464]

Now encoding:  Terminator 3: Rise of the Machines:  Untitled
Encode started:  Tue Nov 22 11:35:45 2005
First pass...
Waiting for mythtranscode to set up the fifos.
Starting ffmpeg.
processed:  194155 of 2357976 frames (8.23%),  16.54 fps
mythtranscode finished.
processed:  194156 of 2357976 frames (8.23%),  16.54 fps
ffmpeg finished.
Final pass...
Waiting for mythtranscode to set up the fifos.
Waiting for mythtranscode to set up the fifos.
Starting ffmpeg.
processed:  194143 of 2357976 frames (8.23%),  14.85 fps
mythtranscode finished.
processed:  194156 of 2357976 frames (8.23%),  14.85 fps
ffmpeg finished.

Encode finished:  Tue Nov 22 18:29:21 2005
Encode lasted: 6h 53m 36s


What I cant understand it
1) why it completed in only 7 hours (my estimations based on the framerate and the percentage complete suggested closer to 100hrs)

2) why when it finished it says 8.23% and not 100%


is this a issue with nuvexport or am i missing something ?

Author:  MisoSoup777 [ Tue Nov 22, 2005 2:30 pm ]
Post subject: 

I use the following to get good results from MPEG2 files...

Code:
#set the variables for transcoding
opt="vbitrate=2160000:mbd=2:keyint=132:vqblur=1.0:cmp=2:subcmp=2:dia=2:mv0:last_pred=3"

#Pass 1
mencoder -oac mp3lame -lameopts abr:br=224 -ovc lavc -lavcopts vcodec=msmpeg4v2:vpass=1:$opt -mf type=sgi:fps=29.97 -vf lavcdeint -vf-add scale -zoom -xy 720 -o /dev/null /PATH/TO/INPUT.FILE

#Pass 2
mencoder -oac mp3lame -lameopts abr:br=224 -ovc lavc -lavcopts vcodec=msmpeg4v2:vpass=2:$opt -mf type=sgi:fps=29.97 -vf lavcdeint -vf-add scale -zoom -xy 720 -o /PATH/TO/OUTPUT.avi /PATH/TO/INPUT.FILE

I use msmpeg4v2 to ensure it will play on windows (I'm normally transcoding unencrypted DVD's of inhouse materials).


To be fair, this is an adaptation of some other info I found on the net...

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/