Showing posts with label divx. Show all posts
Showing posts with label divx. Show all posts

Monday, October 10, 2011

mencoder srt hardsubed AVI DIVX DX50

clipped notes from
@http://slated.org/hq_mencoder_transcoding
...................
PREVIEW:

vbitrate=1500:

" cut and paste highlights."

"video = (high bitrate) AVI video,
vbitrate=1500"

"Transcode video to a smaller faster DIVX/DX50
x/y , 640x??? , video scale."

"Transcode format with mencoder and then sync with avidemux. "
###################################
/**********************************
********* sample code **********
********* with slow trell ********
********* with subs **********
**********************************/
####################
WITH SUBS.
--](-sub *.srt "mplayer option?"
--]vbitrate=1500 [1.5gigs] for 1hour50mins.
=======
[CODE]1:
(*.SRT)

$ mencoder *.avi \
-sub *.srt -subfont-text-scale 3.3 \
-vf scale -zoom -xy 640 -sws 9 \
-mc 0 -noskip \
-ovc lavc -lavcopts vcodec=mpeg4:vbitrate=1500:\
last_pred=2:lumi_mask=0.07:dark_mask=0.2:scplx_mask=0.1:tcplx_mask=0.1:\
mv0:cbp:mbd=2:v4mv:precmp=256:cmp=256:subcmp=256:naq:trell:qns=1:\
bidir_refine=4:autoaspect:psnr:vrc_eq=\(\(mcVar*mv*10^3+tex\)*isP\)^0.7:\
-oac mp3lame -lameopts abr:br=160:aq=1 \
-ffourcc DX50 -alang en \
-o NEW-VIDEO-fulltrell-withSubs.AVI


/******************************************
***(without srt subs) *********************
*** -nosub "is for mplayer ****************
*** -qns=1 "faster and safer" than -qns=3**
******************************************/
fuck(cbp)
fuck(qns=3?) slow and (trell)"realy slows things down!--------]
stepped-on video: --] vcr "rd" distotion not neaded.
stepped-on vide0: --][no trell] needed.
steped-on video: --] mbd1=[vhq]
=======
[code2]:

$ mencoder *.avi \
-vf scale -zoom -xy 640 -sws 9 \
-mc 0 -noskip \
-ovc lavc -lavcopts vcodec=mpeg4:vbitrate=1500:\
last_pred=2:lumi_mask=0.07:dark_mask=0.2:scplx_mask=0.1:tcplx_mask=0.1:\
mv0:mbd=1:v4mv:precmp=256:cmp=256:subcmp=256:naq:qns=1:\
bidir_refine=4:autoaspect:psnr:vrc_eq=\(\(mcVar*mv*10^3+tex\)*isP\)^0.7:\
-oac mp3lame -lameopts abr:br=160:aq=1 \
-ffourcc DX50 -alang en \
-o NEW-VIDEO-no-cbp-no-subs.AVI


###################################
NO SUBS!
remove slow (:qns=1:)
"qns should only be used with trell."
=======
no subs.
[code]3:

$ mencoder *.avi \
-vf scale -zoom -xy 640 -sws 9 \
-mc 0 -noskip \
-ovc lavc -lavcopts vcodec=mpeg4:vbitrate=1500:\
last_pred=2:lumi_mask=0.07:dark_mask=0.2:scplx_mask=0.1:tcplx_mask=0.1:\
mv0:mbd=1:v4mv:precmp=256:cmp=256:subcmp=256:naq:\
bidir_refine=4:autoaspect:psnr:vrc_eq=\(\(mcVar*mv*10^3+tex\)*isP\)^0.7:\
-oac mp3lame -lameopts abr:br=160:aq=1 \
-ffourcc DX50 -alang en \
-o NEW-VIDEO-no-cbp-no-qns.AVI


################################
/****************************************
**** idx sub file need to be "srt" *********
*******************************************/
=======
[code]4:

$ mencoder *.avi \
-sws 9 -mc 0 -noskip \
-sub *.srt -subcp -subfont-text-scale:4 \
-vf softskip,scale,harddup -zoom -xy 640 \
-ovc lavc -lavcopts vcodec=mpeg4:vbitrate=1500:\
last_pred=2:lumi_mask=0.07:dark_mask=0.2:scplx_mask=0.1:tcplx_mask=0.1:\
mv0:mbd=1:v4mv:precmp=256:cmp=256:subcmp=256:naq:\
bidir_refine=4:autoaspect:psnr:vrc_eq=\(\(mcVar*mv*10^3+tex\)*isP\)^0.7:\
-oac mp3lame -lameopts abr:br=160:aq=1 \
-ffourcc DX50 -alang en \
-o NEW-VIDEO-no-cbp-no-qns-no-trell.AVI

######################
Very end. mplayer -delay 0.100 *.AVI
If synced try avidemux +0.100 av delay.