Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 Playing a compressed audio/video file with mplayer, zip/rar/7z/lhz-ed and so on.

views
     
TS1024kbps
post Jul 15 2007, 03:12 PM, updated 19y ago

李素裳
*******
Senior Member
6,015 posts

Joined: Feb 2007



ok its realy simple, we just need 2 cli app, mplayer and 7z.
http://www.7-zip.org/
http://ffdshow.faireal.net/mirror/mplayer/

i assume user will install 7z and mplayer to "program files" folder, so:
QUOTE
@echo off
title 7z-Mplayer - %1
if "%~1"=="" goto eof
start/b/w/low C:\"Program Files"\7-Zip\7z.exe e -so %1 | start/b/w/abovenormal C:\"Program Files"\mplayer\mplayer.exe -autosync 30 -msglevel all=4 -
pause>nul:
:eof

save it to batch file. then drag any of ur favorite compressed a/v to it, done notworthy.gif
remember, the highlighted line is one line only.

========================================

Ok, now is encode a compressed a/v with ffmpeg.
download ffmpeg here:
http://esby.free.fr/CelticDruid/mirror/ffmpeg/
extract ffmpeg.exe and pthreadGC2.dll to "windows" folder.

QUOTE
@echo off
title 7z-FFMPEG - %1
if "%~1"=="" goto eof

set s=-vcodec xvid -g 300 -lumi_mask 0.2 -frame_size 396 -maxrate 384000 -bufsize 654720 -bt 11880000 -s 352x288 -flags +aic+mv0+naq -f mp4

start/b/w/low C:\"Program Files"\7-Zip\7z.exe e -so %1 | start /b/w/low ffmpeg -i - -an %s% -pass 1 "%userprofile%\desktop\%~n1.mp4"
start/b/w/low C:\"Program Files"\7-Zip\7z.exe e -so %1 | start /b/w/low ffmpeg -i - -acodec aac -aq 75 -cutoff 16000 -ar 44100 %s% -me_method 2 -mbd 2 -pass 2 "%userprofile%\desktop\%~n1.mp4"
pause>nul:
:eof


if u see something like this means ur encoding is done:
QUOTE
Everything is Ok
frame=16135 fps= 62 q=6.5 Lsize= 20527kB time=538.4 bitrate= 312.3kbit
s/s
video:13317kB audio:6309kB global headers:0kB muxing overhead 4.588457%


Update1: improved 7z-ffmpeg encoding batch file, now it can encode to MPEG4 Simple profile level3 but without 15 frame per second restriction,
featured adaptive quantization, 2 pass encoding and hq mode.
tested the encoded video, its play on my sonyerricson w610i.

Update2: remove the blue colored line and change it to this"-flags aic+mv4+qpel+gmc+trell+mv0+naq -bf 2 -b 1200000" if u wan to encode to advance simple profile level 5 at 1200kbps.
pls note tht advance simple profile lv5 only playable on computer.

This post has been edited by 1024kbps: Aug 11 2007, 02:49 AM

 

Change to:
| Lo-Fi Version
0.0137sec    0.96    5 queries    GZIP Disabled
Time is now: 19th December 2025 - 04:15 PM