PDA

View Full Version : Filesize and mux problem


juGGaKNot
25th August 2008, 18:29
Hello

My footage comes from the game "Counter Strike 1.6", it is a 60 seconds clip at 1000 FPS uncompressed 768x432 ( 106.4 GB )

I work on it in vegas and render it at 40 FPS ( smart resample on to make 1000 FPS to 40 FPS by frame blending )

i get a 2.22 GB 40 FPS uncompressed AVI.

Now the problem :

If i render with no Video FX i can render at 2500 bitrate and get final ratefactor of 20.82

If i render at 7500 bitrate and get final ratefactor of 12.36

GOOD so far BUT if i use video FX i get this for the same 2.22 GB uncompressed file :

2500 final rate factor 31.13

and 7500 final rate factor 21.77 ( k but 55MB/S is huge, i want max 30 MB and all QP <25 )

So : what can i do ? less FX on the track is the only way ?

My settings : CLI

@echo off

set myaudio=audio
set mymovie=movie

set mypath=K:\@mkv
set myimputpath=K:\@mkv\Imput
set myoutputpath=K:\@mkv\Output

set myaudiobitrate=128
set myvideobitrate=2700

rmdir /S /Q %myimputpath%\temp
mkdir %myimputpath%\temp

if EXIST "%myoutputpath%\%mymovie%.mkv" del "%myoutputpath%\%mymovie%.mkv"
if EXIST "%myoutputpath%\%myaudio%.ogg" del "%myoutputpath%\%myaudio%.ogg"

cls

echo Are You Ready To Start ?
echo.
pause
echo.
cls
echo Encoding juGGaKNot's OGG Audio Track 1 And 2
echo.
"%mypath%\bin\ogg.exe" -b %myaudiobitrate% -o "%myoutputpath%\%myaudio%.ogg" "%myimputpath%\%myaudio%.wav"
echo.
echo Audio Done ! Video Next :
echo.

echo directShowSource("%myimputpath%\%mymovie%.avi") > "%myimputpath%\temp\%mymovie%.avs"
echo Crop(0,0,-0,-0) >> "%myimputpath%\temp\%mymovie%.avs"
echo spline64resize(1024,576) >> "%myimputpath%\temp\%mymovie%.avs"
echo ConvertToYV12() >> "%myimputpath%\temp\%mymovie%.avs"

echo Encoding juGGaKNot's x264 Pass 1/2
echo.
echo.
"%mypath%\bin\x264.exe" --pass 1 --bitrate %myvideobitrate% --stats "%myimputpath%\temp\%mymovie%.stats" --level 4.1 --ref 3 --mixed-refs --no-fast-pskip --bframes 3 --b-pyramid --b-rdo --bime --weightb --direct auto --filter -3,-3 --subme 6 --trellis 2 --partitions p8x8,b8x8,i4x4,i8x8 --8x8dct --me esa --merange 24 --threads auto --thread-input --sar 1:1 --cqmfile "%mypath%\bin\eqm_avc_hr.cfg" --progress --no-dct-decimate --no-psnr --no-ssim --output NUL "%myimputpath%\temp\%mymovie%.avs"
echo.
echo Encoding juGGaKNot's x264 Pass 2/2
echo.
"%mypath%\bin\x264.exe" --pass 2 --bitrate %myvideobitrate% --stats "%myimputpath%\temp\%mymovie%.stats" --level 4.1 --ref 3 --mixed-refs --no-fast-pskip --bframes 3 --b-pyramid --b-rdo --bime --weightb --direct auto --filter -3,-3 --subme 6 --trellis 2 --partitions p8x8,b8x8,i4x4,i8x8 --8x8dct --me esa --merange 24 --threads auto --thread-input --sar 1:1 --cqmfile "%mypath%\bin\eqm_avc_hr.cfg" --progress --no-dct-decimate --no-psnr --no-ssim --output "%myoutputpath%\%mymovie%.mkv" "%myimputpath%\temp\%mymovie%.avs"

I use x264 947 from x264.nl 962 KB

Is my configuration k ? i made it for DXVA but i can go to "maxed out quality" if i get less filesize

Second problem : MKVmuxtools

i got the mkvmerge.exe from MKVmuxtools to add to my bat, it works k for 25 FPS footage but i dont now how to set the bitrate, here is my mux line :

"mkvmerge.exe" -o %mypath%\%mymovie%.mkv "%mypath%\temp\%mymovie%.mkv" "%mypath%\temp\%mymovie%.m4a"

this line makes the "movie with sound" mkv but all at 25 FPS and i use 40 FPS

Thanks in advance.

Atak_Snajpera
25th August 2008, 18:39
add

--default-duration 0:40fps

before "%mypath%\temp\%mymovie%.mkv"

If I were you I would stick with more common fps (23.976 , 24 ,25,29.97 ,30 ,50 ,59.94 ,60) instead of 40 (?!)

juGGaKNot
25th August 2008, 18:45
add

--default-duration 0:40fps

before "%mypath%\temp\%mymovie%.mkv"

If I were you I would stick with more common fps (23.976 , 24 ,25,29.97 ,30 ,50 ,59.94 ,60) instead of 40 (?!)

Thnx, i will do a 50 trial now but 50 + x264 + 720p is to much for the people i'm making the movies.

as for the other problem : does adding video FX ( about 5-6 fx on all the footage ) adds so much to the filesize ?

i can get good quality at 12 mb/min without FX ( 768x432 ) witch is great because all cs videos start at 20mb/min.

PS : --default-duration 0.40fps for 40 FPS so

--default-duration 0.30fps for 30
--default-duration 0.25fps for 25

and etc no ?

thnx again.

juGGaKNot
25th August 2008, 19:02
it works like this :

echo Muxing Audio And Video
"mkvmerge.exe" --default-duration 0:40fps -o %myoutputpath%\xxx.mkv "%myoutputpath%\%mymovie%.mkv" "%myoutputpath%\%myaudio%.ogg"
echo.

all fine

Encoding juGGaKNot's OGG Audio Track 1 And 2

Opening with wav module: WAV file reader
[ 99.6%] [ 0m00s remaining] \

Done encoding file "K:\@mkv\Output\audio.ogg"

File length: 1m 00.0s
Elapsed time: 0m 04.0s
Rate: 15.0100
Average bitrate: 120.8 kb/s


Audio Done ! Video Next :

Muxing Audio And Video
mkvmerge v2.2.0 ('Turn It On Again') built on Mar 4 2008 12:58:13
'K:\@mkv\Output\movie.mkv': Using the Matroska demultiplexer.
'K:\@mkv\Output\audio.ogg': Using the OGG/OGM demultiplexer.
'K:\@mkv\Output\movie.mkv' track 1: Using the MPEG-4 part 10 (AVC) video output
module.
'K:\@mkv\Output\audio.ogg' track 0: Using the Vorbis output module.
The file 'K:\@mkv\Output\xxx.mkv' has been opened for writing.
progress: 100%
The cue entries (the index) are being written...
Muxing took 0 seconds.

THNX!