Log in

View Full Version : Still getting underflow error when muxing x264 stream in Scenarist


radius
10th January 2011, 16:33
Hi,

I've been looking for this problem in older posts and I can't find a way to fix it,
I want to encode a blu-ray compatible stream and get it muxed in Scenarist, for some reason it will always pop an underflow error because of the video (tried without audio too),
I tested the method from http://sites.google.com/site/x264bluray/home :

x264 --bitrate 20000 --preset veryslow --tune film --weightp 1 --bframes 3 --nal-hrd vbr --vbv-maxrate 40000 --vbv-bufsize 30000 --level 4.1 --keyint 24 --b-pyramid strict --slices 4 --aud --colorprim "bt709" --transfer "bt709" --colormatrix "bt709" --sar 1:1 --pass 1 -o out.264 input.file

I tried to reduce maxrate and bufsize as it was said here http://forum.doom9.org/showthread.php?t=155373
but I still can't get it to mux even at maxrate = 20000 and bufsize = 15000 for exemple,
I'm using x264 (32bit) version 1834,

could someone tell if I'm doing something bad, any way to check the stream and identify the problem or something ?

Thanks

kieranrk
10th January 2011, 16:57
Upload a sample or send a PM.

radius
11th January 2011, 00:58
Here's a sample http://r4di.us/temp/out.264 it's 52MB
this one uses --vbv-maxrate 40000 --vbv-bufsize 30000,
but just tried the same at --vbv-maxrate 20000 --vbv-bufsize 10000 and got the same "buffer underflows" at the immediate beginning of the mux

kieranrk
11th January 2011, 01:33
You need to add "--fps 24000/1001 --force-cfr" to your command line. Your source material is detected as VFR and is therefore being encoded as VFR.

radius
11th January 2011, 02:45
Thanks !
I totally skipped that part :/
Just tried and it's muxing now, thanks again