Showing posts with label mencoder. Show all posts
Showing posts with label mencoder. Show all posts

Saturday, April 17, 2010

mencoder wmv to divx dx50 for sd 480p tv lowrez.

source wmv. source aspect 1.77 xxxxxxxxxxxxxxxxxxxxxxxxxxxxx (no)me_range=2 (no)vme=2 (yes):mpeg_quant # works ok on sd 480p tv's (yes)vqscale=5 # works ok on sd 480p tv's (yes):mbd=0: (yes)v4mv: (yes)vqmin=2: (yes)vqmax=10: (yes)vqdiff=3 #default is 3 (yes)vratetol=8000 #default is 8000 (yes)vqcomp=0.5: (yes)vqblur=0.5 $ nice -n 19 mencoder -sws 2 -ofps 25 \ -oac mp3lame -lameopts abr:br=192:vol=0 \ -ffourcc DX50 \ -vf scale=704:398,harddup -aspect 1.77 \ -ovc lavc -lavcopts \ vcodec=mpeg4:mpeg_quant:vqscale=5:mbd=0:v4mv:\ vqmin=3:vqmax=10:vqdiff=3:\ vratetol=8000:vqcomp=0.5:vqblur=0.5\ -o step3-created-DX50-subHQ-tv--.AVI \ foo*.wmv ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ notes mybox = vqscale=[1-31] Constant quantizer /: constant quality encoding (selects fixed quantizer mode). A lower value means better quality but larger files (default: 0 (disabled)). 1 is not recommended (see vqmin for details). #################### ### Motion estimation ### mbd=[0-2] ! ! !! !!! !!!!!! Macroblock decision algorithm (high quality mode), encode each macro block in all modes and choose the best. This is slow but results in better quality and file size. Use mbcmp (default). Select the MB mode which needs the fewest bits (=vhq). Select the MB mode which has the best rate distortion. vhq Same as mbd=1, kept for compatibility reasons. .................................. !!!!!!!!!!!!!v4mv!!!!!!!!!!!!! v4mv Allow 4 motion vectors per macroblock (slightly better quality). Works better if used with mbd set greater than 0 ?????? ######################### ## Quantization ########## mbqmin=[1-31] obsolete, use vqmin
mbqmax=<[-31] obsolete, use vqmax
vqdiff=[1-31] !!!!!!!!!!!!!!!!! maximum quantizer difference between consecutive I- or P-frames (pass 1/:2) (default: 3) ####################### ## Quantization part3 ##########3 mpeg_quant *!!!!!!!!!!!!!! Use MPEG quantizers instead of H.263. ################### ####(rate conctrol)######## vratetol=[value] approximated file size tolerance in kbit. 1000-100000 is a sane range. (warning: 1kbit = 1000 bits) (default: 8000) NOTE: vratetol should not be too large during the second pass or there might be problems if vrc_(min|max)rate is used. ....................... vqcomp=[0.0-1.0] Quantizer compression, vrc_eq depends upon this (pass 1/:2) (default: 0.5). For instance, assuming the default rate control equation is used, if vqcomp=1.0, the ratecontrol allocates to each frame the number of bits needed to encode them all at the same QP. If vqcomp=0.0, the ratecontrol allocates the same number of bits to each frame, i.e. strict CBR. NOTE: Those are extreme settings and should never be used. Perceptual quality will be optimal somewhere in between these two extremes.
.......... vqblur=[0.0-1.0] (pass one) Quantizer blur (default: 0.5), larger values will average the quantizer more over time (slower change). Quantizer blur disabled. Average the quantizer over all previous frames. #################################### http://pwet.fr/man/linux/commandes/mplayer

Tuesday, January 6, 2009

DIY gifs on linux... cheat sheet...

DIY gifs on linux. cheat sheet. # FIRST. # LIMET THE number of frame per second to something small. ) #(between 5 or 6 is OK ) === -ofps 6 #(SCALE VIDEO TO A thumbnail size) === -vf scale=280:200 $ mencoder *.mpg -ofps 6 -ovc lavc -oac copy -vf scale=280:200 -o out2avi-thumb-ofps6.avi xxxxxxxxxxxxxxxxxxxxxxxxx # NEXT # TURN YOUR AVI FILE INTO STILL JPEGS. # KEEP YOUR PROJECT IN A ISOLATED FOLDER WITH NO OTHER jpegs $ mplayer *.avi -vo jpeg:quality=100 xxxxxxxxxxxxxxxxxxxxxxx # NEXT. # TURN jpegs INTO A thumbnail gif. # USING IMAGE MAGIKS convert comand. $ convert -verbose -delay 15.3 *.jpg final-thumb280x200-.gif #------------ #------------ # convert needs non free " mpeg2decode." xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx GET THE non free source from. # http://www.mpeg.org/MPEG/video/mssg-free-mpeg-software.html # look for ( mpeg2vidcodec_v12.tar.gz ) this has mpeg2decode in it.

Monday, January 7, 2008

XviD mENCODER settings for anime.

1). I Have a video thats needs to be encoded to play on a hardware dvd/divx player for my TV. I don't wont the player cutting of the hardcoded english subtitle text. So the video needs to be padded.
2). Set top box Hardware dvd/divx certified players can play back (generic mpeg4 avi) video files... If you use a supported codec.
***************************************
Generic MPEG4 Suported codecs:
CODEC : msmpeg4 = DIV3 *ffmpeg *MEncoder. 
CODEC : DIVX  = DX50 * MEncoder.
CODEC : XVID = XVID *ffmpeg *MEncoder.
*************************************
3) So i try using MEncoder to transcode some anime. ffmpeg works better for me... But heres a look at MEncoder for some verity.
VIDEO ==> 640x480 
AUDIO ==> mp3 96kbs
CODEC ==> XVID
RATE ==> 23.976 frames per second
SOURCE ==> DB BLEACH anime XVID not padded avi video.
##-----------------------< XviD 640x480 >-------------
CODE XviD:

@shell
$ mencoder -ofps 23.976 -ovc xvid -oac mp3lame -lameopts abr:br=96:vol=0 -xvidencopts bitrate=878 -vf scale=576:416,harddup -vf-add expand=640:480:::1 -ss 00:01:28 -o destination.avi *.AVI

Friday, January 4, 2008

rip DVD's with mENCODER (LOW REZ DivX setting)

LOw REZ DivX setting -- with mencoder ************************************* The slow computer * EDITION. ************************************* 1). For ripping DVD movies on a slow pc. I rip the video to a low rez generic mpeg4 using mENCODER.
2). I use mENCODER on my linux box. 3). I do a low rez single pass on the DVD with mENCODER. I'm just going to use the low rez DivX outpute video as a low rez screener for my TV ... So i can pute the DVD away. 4). A HI REZ copy takes two passes to encode to mpeg4 and it's slow. I can make complete DVD copy in the same amount of time on my windows box. 5). I'm not trying to backup the FULL DVD... i can do that on my windows XP box with ripit4me if i would like a fULL DVD BACKUP. 6). So lets try mENCODER to get a generic DivX - mpeg4 AVI video file that will play back on my set top box dvd/divx certified player.
##------------ < setting NFO >------------- VIDEO : 480x240 VIDEO BITRATE : vbr max 720kbs VIDEO CODEC : generic mpeg4 divx DX50 AUDIO : mp3 AUDIE bitrate : 96kb very very low rez... "-vf scale=480:240,harddup " setting is used on my slow pc. ******************************************************** CODE: mencoder -sws 1 -ofps 23.976 -ffourcc DX50 -oac mp3lame -lameopts abr:br=96:vol=0 -ovc lavc -lavcopts vcodec=mpeg4:vrc_buf_size=4096:vrc_minrate=512:vbitrate=592:cmp=2:vrc_maxrate=720 -vf scale=480:240,harddup -alang C -dvd-device /dev/cdrom dvd:// -chapter1 -o movie-DivX-dx50_7-7.avi

Thursday, January 3, 2008

MEncoder - Low rez DivX anime video...

Source = *MID REZ mpeg4 XVID ( Bleach anime) not padded . Transcoded with mENCODR to DivX low rez mpeg4 with padding for hardware dvd/divx player. ###----------< DivX CODE: >--------------- CODE: $ mencoder *.AVI -sws 1 -ofps 23.976 -ffourcc DX50 -oac mp3lame -lameopts abr:br=96:vol=0 -ovc lavc -lavcopts vcodec=mpeg4:vrc_buf_size=4096:vbitrate=592:cmp=2:vrc_maxrate=720: -vf scale=576:416,harddup -vf-add expand=640:480:::1 -ss 00:01:28 -o new-asp-dx50-bleach-low-REZ.avi ###--------< NFO NOTES >---------------- :cmp=2 is good for anime.
-sws 1 not as good as ( sws 2 ) but is faster on my slow pc.
-ffourcc DX50 DX50 is a old DivX video codec vtag header: players use vtag info for picking the rite play back video codec. DX50 works on alot of hardware dvd/divx players.
-ss 00:01:28 Skip intro . starts coding after skiping the first 1min and 28seconds. ###---------------------------------- MEncoder NOTES 2008 - jan.

Wednesday, March 21, 2007

Windows XP ffmpeg.exe

Windows XP ffmpeg.exe

-

normally i use linux with ffmpeg and mENCODER to convert video into [xvid - avi] but it can be done with windows XP.

-

download pspvideo9

install pspvideo9
and then click my computer and browse the the program folder till you find the folder with ffmpeg in it. drag a copy of the ffmpeg folder to your desk top.

-

also grab a copy of cmd.exe from yor system folder and place it in the ffmpeg folder.

-

place video in the ffmpeg folder . -

click on cmd.exe it will bring up a command shell that you can type into.
@command line.

ffmpeg.exe -i inputfile.avi -vcodec xvid -vtag XVID -s 320x240 -r 23.98 -b 592 -maxrate 728 -qmin 3 -qmax 3 -mbd 2 -acodec mp3 -ab 192 -ar 48000 NEW-VIDEO-XVID.AVI
ffmpeg runs in emulation on windows

I only used it a few time on windows it works if you wont to view the video your going to need a player like vlc video lan client or mplayer.

-

another free video tool that works with ffmpeg is super do a google search for [super and flv]

super uses ffmpeg and mENCODER.
Mencoder can be used to copy video made by ffmpeg. i use mencoder to fix audio sync and the codec header.

@commandline

mencoder.exe old-video.AVI -ovc copy -oac copy -o new-video-xvid-XVID.avi -ffourcc XVID
NOTE: -fforcc XVID will make the codec header xvid in capt XVID when i use linux ffmpeg only vtags the video in lowercase xvid and some of my players will not play the video. so i run Mencder on the video to fix it. -

so before you buy $$ a video encoder try some of the free ones you don't need the gui's their just front ends for ffmpeg command line or some other command line encoder. #
I don't test a lot of widows apps but " pspvideo9 and super " are keepers because i like using ffmpeg and mENCODER. but i to lazy to build them from source.

Monday, February 5, 2007

[6] My Humps. music video (mencoder test)

-------removed video------------- sorry i removed the video it had a mtv logo on it fuck viacom. ------removed video------------ - http://youtube.com/user/thornwolf - My humps and my mencoder test - MENCODER NOTES: ------------------------------------- mencoder my-old-video.mpg -vf scale=320:240 -o my-new-video-DX50.AVI -ovc lavc -lavopts vcodec=mpeg4:vrc_buf_size=4096:vrc_minrate=300:vbitrate=512:vrc_maxrate=700:acodec=mp3lame:abitrate=128 -ofps 25 -oac mp3lame -ffourcc DX50 -------------------------------------- NOTE: (DX50) is a old divx header codec. I wont to see what youtube does with this video codec. - Review My Humps video plays back OK on youtube. - my old video was a 40 MB ntsc mpeg and the new out pute file = 24 MB divx (DX50) AVI thta look much better on my pc than on youtube but thats normal. - I don't like 320x240 video they don't scale good but thats youtube and it's free. - I AM going to test some more settings later ------------------------------------------- UPDATE: I tested a mencoder video and audio of "Bleach.avi" with the mencoder code above . on my TV divx/dvd player and the video was completey out of sync with the audio. NOTE: I think I will keap using FFMPEG and not MENCODER. - tnx