View Full Version : sx264 - qt based x264 gui (Linux&Windows)
Pages :
1
2
3
4
5
6
7
8
9
10
[
11]
12
13
14
15
Riki
20th October 2009, 18:33
Thanks for the detailed answer. I have a feeling you are anticipating my next question, but I have a feeling I will need to research it well to get an understanding.
How do I find out what values I need to manually put for vbv? :)
Riki
20th October 2009, 18:38
Dont answer that, I found the perfect thread. :D
http://forum.doom9.org/showthread.php?t=147153
Selur
20th October 2009, 18:44
I would suspect that:
VBV Max Bitrate should be set to the average bit rate you are aiming for
and
VBV Buffersize should be set to e.g. 2*max Bitrate. (probably depends on what you are streaming and what the player supports; last project I worked on in this department I choose 5 as factor)
But, I'm really no expert in streaming so better ask Dark Shikari and check out the thread I linked to above. (there might also be some other threads related to streaming :))
Dont answer that, I found the perfect thread.
too late ;) btw. that's the thread I linked to ;)
Cu Selur
Riki
20th October 2009, 18:56
Doh, you beat me to it, haha.
I went ahead and asked a vbv specific question there. It all makes sense now but I just need to figure out what to put for the buffer size. Im using a dual buffer on the streaming client so i wonder if I go with the maximum buffer or not, I also wonder what the harm in setting this value to being too large. Since my large buffer is 10, maybe I can just go *10
Selur
20th October 2009, 19:01
don't know if this is only a server-sided question or if it might be a good idea to investigate if the used flash player has any internal defaults ;)
Riki
20th October 2009, 19:03
Here is one thing that seems odd to me. If I am setting the max bitrate, what does that do to the CRF? So for example if I set a CRF of 18 and a max bitrate of 500, will it conflict with the quality? Sounds like its almost the same as specifying a bitrate.
Selur
20th October 2009, 19:17
http://handbrake.dynaflashtech.net/cgi-bin/vbv_calculator.cgi might be interesting other than that I would have to test too, not sure what will have a higher priority the crf or the vbv values. ;)
Riki
20th October 2009, 19:32
thanks, this is a paradigm shift for me in many ways. I always figured smaller filesize was all that was needed to make a fast stream, but thats just not true with streaming, its a whole different transmission.
I did at test at max 500 and it did a great job!
Selur
20th October 2009, 19:34
Nice :)
Riki
20th October 2009, 19:34
in sx264 when I drag in multiple videos it resets the VBV, is there any way to type in a value there and have it remember like with other settings?
Selur
20th October 2009, 19:43
not atm. ;) iirc sx264 will reset the values to the maximum allowed by the level, but I'll try to make a quick fix to disable this behavior and send you a test version
Riki
20th October 2009, 19:48
Yeah, I was thinking something like you have with the resizing "Keep for new source"
Thanks man!
Selur
20th October 2009, 19:53
Isn't that easy since vbv values are adjusted for all kinds of reasons (level change, encoding type change, compatibility settings) will add an option that will disable this updating partially, which means it should disable setting a new value unless the value comes in conflict with the allowed maximum.
---
btw. just saw:
--b-pyramid <string> Keep some B-frames as references [none]
- none: Disabled
- strict: Strictly heirarchical pyramid
- normal: Non-strict (not Blu-ray compatible)
-> will update sx264 tomorrow
Cu Selur
Selur
21st October 2009, 10:42
rev561
*added*
- support for new bPyramid syntax:
--b-pyramid <string> Keep some B-frames as references [none]
- none: Disabled
- strict: Strictly heirarchical pyramid
- normal: Non-strict (not Blu-ray compatible)
- keep vbv values option under misc->encoding settings which is needed when vbv values should not be
resettet on source change (e.g. during batch encodes); If value conflicts with max/min values, they will
still be changed.
*cosmetics*
- minimized size of Console Output inside Job Manager
*fixed*
- mp4 multiplexing
- x264 command line updates
Important:
- Requires x264 rev 1301+
- Reset Defaults
-> updated links in 1st post
Cu Selur
Ps.: *silent update*
- fixed small typo
- removed lower refs for b-pyramid option; better use "strict"
Alex_080
22nd October 2009, 01:27
Hi Selur can you give link for x264 rev 1301+ which is comfortable with sx264 because i downloaded one but it shows error
Pitti
22nd October 2009, 05:34
http://x264.nl
Selur
22nd October 2009, 08:56
x264.nl's build are non-modified builds and normally I compile x264 myself of use the builds of JEEB (last one is here: http://forum.doom9.org/showthread.php?p=1336131#post1336131) since sx264 wants the option provided through the x264_hrd_pd_interlace patch. :)
Cu Selur
Riki
22nd October 2009, 14:13
Good to know, Ive been using the x264.nl builds.
If you arent doing interlacing, perhaps the builds of JEEB arent needed? Are there any other benefits to using this, or the sharktooth builds?
Selur
22nd October 2009, 14:55
Depends on the patches applied, since the nal-hrd patch is the only one that seemed interesting to me, since it is needed for blu-ray compatibility, it's the only one directly supported via sx264, any additional new options have to be used via custom command line additions. :) Personally I prefer to stick as closely as possible to the unpatched sources to limit the trouble with compatibility issues caused through the patches. (can't wait till the hrd patch will be a permanent part of x264 ;))
Riki
26th October 2009, 02:58
So Ive done some tests and as promised Ill just post something I found out. To achieve a lower bitrate you need to use both vbv and the CRF quality together.
For example I had a quality of 26 and a vbv of 100/1000 and I tried taking the vbv lower but it wouldnt seem to do anything if I went lower, it was as if the CRF was forcing it to stay at a certain level. If I changed CRF to 30 and left VBV alone, the bitrate would go down, so my conclusion is these work together somehow.
After my testing and many posts here I learned a lot and now Im much more confident with encoding for streaming :)
Selur
26th October 2009, 08:48
I tried taking the vbv lower but it wouldnt seem to do anything if I went lower, it was as if the CRF was forcing it to stay at a certain level.
good to know :)
Never tried it but, changing: 'Max quantizer difference' and 'Quantizer max' also have something to do with it. ;)
For those wondering what this is about: The question was how vbv limits and crf interact. :)
Selur
28th October 2009, 14:11
Since I'm working on the sx264 successor, from time to time, I compiled a small preview for the windows users. (handling in general is similar to sx264) ;)
The preview allows extracting, job creation, etc. the main thing that's not working is job handling (working of the created jobs, since I'm thinking about how to design it and I'm out of free time atm. -> so no encoding is not possible with this version).
So for the interested windows users: http://www.megaupload.com/?d=L9WBM7UD (contains a 32bit and 64bit windows binary, mediaInfo, mkvextract, mp4box, avsInfo and mplayer to allow preview, analysis and some extractions)
For those who actually check it out, would be nice if you see a bug or if you see a missing feature: mention it here.
Cu Selur
CpT
28th October 2009, 17:29
I like the gui ;)
I also dig the Target Mode option and how it saves the setting for the next encode. That was the only thing I had to change per encode.
The audio tab is a little hard to find. But I'm guessing your planning on adding labels next to x264 and the audio drop down on the Main tab.
I've done simple test with windows 7 32 and 64 bit and the gui loads up and saves/remembers all my settings on re-open for both versions.
Can't wait for a working alpha ;) :thanks:
Selur
29th October 2009, 00:14
Thanks for the feedback. :)
The audio tab is a little hard to find. But I'm guessing your planning on adding labels next to x264 and the audio drop down on the Main tab.
Maybe, not totally sure about this and some other small GUI related things, which is one of the reasons I published this preview -> there's always things one misses and if you design the frontend you know it to well to see some things. ;)
Cu Selur
microchip8
29th October 2009, 00:48
so are you phasing out sx264 and "replacing" it by this new one, or are you going to simultaneously develop both at same time? will the new one be available for linux too?
Selur
29th October 2009, 01:05
Yes, Hybrid will be available on Linux too. :)
I will fix bugs in sx264 and mainly develop Hybrid (<- better code, since it contains everything I learned with sx264 ;)). sx264 will be discontinued, when Hybrid is as stable as sx264 atm and Hybrid covers all features sx264 does.
Hybrid is mainly a rewrite of sx264, which was needed to support multiaudio/video, audio/video passthrough and some other stuff. sx264's code really is 'ugly' since it's mainly a 'testing platform'. One thing I'm thinking about atm. is how to design the job handling system, to support encoding on different systems. (One 'server' which mainly handles the queue and multiple workers which each get X jobs (and the corresponding sub-jobs), the idea is to be able to add/remove workers/pcs while a job-Queue is processed.)
But before really thinking about job handling I wanted to check if I missed a feature, screwed up the general handling, etc.
Cu Selur
Ps.: Before I start to implement the job handling I also have to buy a new keyboard, since current keyboard sometimes misses a keypress, if the key wasn't pressed hard enough,.. (which is probably my fault since this happens after I dis- and reassembled it for cleaning ;)) (going to by a Microsoft Ergonomic Keyboard 4000 again since I got used to it and my current one did perform well until I cleaned it :) *aaaargh*)
Alex_080
29th October 2009, 08:46
Hi Selur
when i m encoding any *.mkv file the encoding process done successfully but the audio and video don't match in output file ..help!
Selur
30th October 2009, 14:58
can reproduce this with input files which have an a/v delay since the muxing call got a bug, but since you said this happens with any file and I can't reproduce this with input files that have no a/v input delay it might be helpful if you could check if all your file you got a problem with do have an input a/v delay.
Cu Selur
microchip8
30th October 2009, 15:03
Selur, thx for the info on the new Hybrid... any info or ETA when first "public" release of Hybrid is due?
Selur
30th October 2009, 15:05
Nope, will wait for some input regarding current layout&Co, then update my Linux systems and after that start implementint the jobHandling part. ;) (looking at my free time plans I aim to release at the end of this year :))
Selur
30th October 2009, 16:23
rev562
*fixed*
- mkv multiplexing with a/v delay
-> updated links in 1st post
Alex_080
31st October 2009, 08:33
Hi Selur
i still face audio-video synchronization problem in *.mkv file.
For e.g when i am encoding a .mkv file which has 3235ms delay , the encoding done perfectly but the output file is not perfect.
Selur
31st October 2009, 08:48
If you upload a small sample video where this happens on reencoding I can look into it.
Riki
2nd November 2009, 16:41
Hybrid looks amazing, but it crashes everytime for me with both the 64bit and 32bit versions , Im on windows 7 pro 64bit
Edit* It crashes when I hit start/add
CpT
2nd November 2009, 17:25
-> so no encoding is not possible with this version).
Cu Selur
It's not finished.
Riki
2nd November 2009, 17:26
Oh I see, I thought it would do something because he made a full package with all the encoding stuff. So far its great!!
CpT
2nd November 2009, 17:36
Yea its really slick for sure.
@Selur:
I think I just found a bug btw.
When turning on enable resizing -> setting target resolution @ 720 width for example -> then choose auto adjust height @ mod 16 and keep for new source -> hitting save defaults @ Misc page -> then restart hybrid.
On restart it wont save those settings. It defaults back to 1280x720 @ mod 2. Save for new source seems broke.
Selur
2nd November 2009, 18:13
@CpT: Yup, there's a bug somewhere, will fix it. Thanks for the input. :)
@Riki: Found the problem, will fix it. Thanks for the input. :)
Riki
2nd November 2009, 18:21
Thanks.
btw, is there any way to do a specific filesize/bitrate (1-pass)? Ive been testing for a way to get something more of a CBR. I was reading a long thread about it and they were mentioning just doing 1 pass instead of 2.
Selur
2nd November 2009, 18:26
Best way to archive something similiar to cbr would be:
1. adjust vbv values, see: http://forum.doom9.org/showthread.php?t=102893
2. set qcomp to 0
Riki
2nd November 2009, 18:36
thanks Ill try that, Took me a while to see that its called Curve Compression in sx264 :)
Selur
2nd November 2009, 18:38
He,he happy you found it :)
Riki
2nd November 2009, 18:51
Ive noticed a few changes in sx264, now Macroblock Tree has a lookahead (frames) cap of 100 (I think it used to be 250. Also under Misc there is an Input lookahead value there that goes up to 250. What is different about the Input lookahead under Misc?
Selur
2nd November 2009, 18:56
Input Lookahead <> --sync-lookahead <integer> Number of buffer frames for threaded lookahead
--sync-lookahead is limited to [threads+bframes, 250]
Lookahead under RateControl <> --rc-lookahead <integer> Number of frames for frametype lookahead [40]
rc-lookahead is limited to [1, min(keyint,250)]
see thread: http://forum.doom9.org/showthread.php?p=1321220
Cu Selur
Riki
2nd November 2009, 19:10
thanks, the sync-lookahead is new to me. Since I have a fast computer I will set these both to as high as possible :p
Selur
2nd November 2009, 19:12
keep an eye on the RAM usage these settings will cause x264 to hock a huge amount of RAM and x264 will crash/stop when it runs out of RAM. ;)
Riki
2nd November 2009, 19:13
Ok Ill keep an eye on it, right now I have 16GB which is a lot but Im surprised to see some 64bit apps just eat it like candy :p
Selur
3rd November 2009, 21:21
btw. fixed the Hybrid bugs -> http://www.selur.info/test/HybridTest.zip cotnains fixed .exe files. :)
Riki
3rd November 2009, 21:25
Thats great news, I cant wait to test it!
CpT
3rd November 2009, 22:53
So does this one actually encode? Or another gui test?
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.