Welcome to BlogDogIt Thursday, September 19 2019 @ 09:32 AM EDT

Secrets of encoding.

  • Contributed by:
  • Views: 1,004
GeekLogIt

[published draft]

Below is a collection of batch files that I have used for various A/V tasks.

using ffmpeg, mplayer, mencoder, lame

Posted now for posterity - will detail some day - until then you might find the clue you have been looking for.

DShow driver for mplayer: http://doors.univer.omsk.su/~voroshil/

Get MPLAYER/MENCODER [http://www.mplayerhq.hu/design7/news.html]

 


a2f.bat
d:_mplay_ffmpeg.exe -i "%1" -acodec copy "%1.flv"


pspvid.bat
codecsffmpeg-10 -i %1 -acodec aac -ab 128k -ar 48000 %1.mp4


sync.bat
call mencoder.exe "%1" -audio-delay %2 -ovc copy -oac copy -o "sync-%1.avi"


resample.bat
call mencoder.exe "%1" -vf scale -zoom -xy %2 -vobsubout l:worksubfile -oac mp3lame -lameopts vbr=0:cbr:vol=%3:br=%4 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=%5 -ofps %6 -ffourcc DX50 -o "%7"


resamplist22.bat
md %1resampled
dir /b %1*.avi > %1dolist.txt
for /F %%T in (%1dolist.txt) do resample "%1%%T" 320 2 48 400 22 "%1resampled%%T"


resamplist480.bat
md %1resampled
dir /b %1*.avi > %1dolist.txt
for /F %%T in (%1dolist.txt) do resample "%1%%T" 480 2 48 800 23 "%1resampled%%T"


HQresample.bat
call mencoder.exe "%1" -vf scale -zoom -xy %2 -vobsubout e:worksubfile -oac mp3lame -lameopts vbr=0:cbr:vol=%3:br=%4 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=%5 -ofps %6 -o "%7.avi"


mkv2avi.bat
C:_mplay_codecsffmpeg-distffmpeg -i %1 -sameq -vcodec mpeg4 %1.avi


3gp.bat
c:_mplay_codecsffmpeg-10.exe -i "%1" -s qcif -vcodec h263 -acodec aac -ac 1 -ar 8000 -r 25 -ab 32 -y %1.3gp


WAV2mp3.bat
for %%t in (04) do lame --preset 32 part%%t.wav g:book_convertpart%%t.mp3


lamecon.bat
for /F %%t in (h:flashdolist.txt) do lame --preset 128 h:flash%%t.m4a h:flashmp3%%t.mp3


bookcon14.bat
for %%t in (01 02 03 04 05 06 07 08 09 10 11 12 13 14) do ffmpeg -i G:book_convertpart%%t.wma -ab 32 -vn G:book_convertpart%%t.mp3


tv.bat
E:mplayermplayer.exe -v -tv device=0:input=1:adevice=1:input=0:audiorate=44100:amode=1:immediatemode=0 -vm -adapter 2 -fs -framedrop -nocache tv://


rescale.bat
c:_mplay_mplayermencoder.exe %1 -vf scale -zoom -xy %2 -oac lavc -ovc lavc -ofps %3 -ffourcc DX50 -o %1.avi"


dvdDump.bat
mplayer dvd://1 -chapter 2 -dvd-device o: -dumpstream -dumpfile K:workDUMP.vob

Share
  • Facebook
  • Google Bookmarks
  • Digg
  • Twitter
  • Reddit