View Full Version : Research :x264 patched version with multi-slicing + hrd
Genki
4th April 2009, 17:15
Hello,
I'm trying to encode video for Scenarist, but I've some problem with multi-slices and MUI Generator import.
I looked a lot of thread talking about this problem and I saw apparently it exist a version of x264 including the patch for multi-slicing (+ hdr).
I'm looking for this version, does someone have it and could send it to me or tell me where I can find it ?
Thank you very much for your help ;)
tal.aloni
7th April 2009, 11:19
1. be more specific, what error message do you get? which scenarist version?
2. try running your stream through h264info (v25 alpha), uncheck all checkboxes, this is how I'm getting Scenarist Workgroup Blu-Ray Authoring 4.2 to work.
Tal
Genki
9th April 2009, 07:43
Hello,
Thank for your answer, I solve my problem using MUI Generator 4.5 instead 5.0.
davey1
15th May 2009, 07:38
The message is.
Error : The picture is not encoded as multi-slice picture with 4 or more slices per picture in case of Level 4.1.(Slice:1)
The latest versions of Scenarist (5.0 up) will not import Level 4.1 unless it meets BD spec. It will import .ves files created with earlier versions MUI generator(below 5.0), but I believe you have to completely uninstall Scenarist to install an earlier version. Are there any plans to add picture multi-slice to X.264?
Emulgator
15th May 2009, 13:36
I guess r606 was the last version of x264 where multi-slicing was available.
Multi-slicing has been dropped in x264 since then and I would welcome its return
for Sony DVD-A 5.0 or DVDitHD 6.4 (Sonic) compliance.
But development has gone a different way.
I feel that Sony and Sonic's demand for multi-sliced encodes
has something to do with forcing users into their expensive encoders which supply these streams,
not necessarily with a better picture quality in prospect.
Multi-slicing won't help picture quality I feel. (I may be wrong,though...)
Better Sony and Sonic lift their unnecessary blockage.
They use terms like "Only professional (meaning "Our") encoders provide professional quality"
and I tend to doubt that, seeing x264 refinement. ;-)
Dark Shikari
15th May 2009, 13:38
Multi-slicing won't help picture quality I feel. (I may be wrong,though...)Of course not, it will only reduce it.
I may add slicing back to x264 when ffmpeg-mt is merged to trunk ffmpeg.
Emulgator
15th May 2009, 13:53
I may add slicing back to x264 when ffmpeg-mt is merged to trunk ffmpeg.
Very happy to hear that, Dark Shikari.
Maybe my DVD-A and DVDitHD, (sitting almost H264-unused since purchase)
will happily be revived.
poisondeathray
15th May 2009, 16:04
Emulgator - DVD Architect 5 doesn't require slicing for pass through, just encode to raw avc with compatible blu-ray setttings using x264.
Emulgator
16th May 2009, 12:19
Hi poisondeathray !
I had no success with DVD-A 5.0a Build 173 until a few weeks ago,
but certainly would be happy if you could share some of your successful settings.
poisondeathray
16th May 2009, 17:32
You need need the nal-hrd patched build, with correct vbv settings, and encoded to raw avc (no container). MeGUI comes with the patched build and presets, and it seems to pass through fine (no re-encoding)
Another option is to use h264info to process the stream, but apparently it changes some things in the stream (that I don't understand, so I prefer option #1)
see for more info:
http://forum.doom9.org/showthread.php?t=146199
DVD-A won't "see" a raw streams when importing , so select "all files" from the drop down menu to "see" it
Emulgator
16th May 2009, 17:46
Thank you, especially for the link, I will report back.
G_M_C
1st September 2009, 09:50
Yesterday Multi-slicing was added. When the nal-hrd patch is adapted for this addition, x264 should now be able to generate BD-compliant streams as i understand. (or does the MUI generator not need to have nal-hrd units in the stream, only slices ?)
Anyway: Is anyone that has access to Scenarist BD able to try the new x264 builds ? Would be very very nice to be able to use x264 for BD project, in stead of other encoders (that often produce streams of less quality).
http://forum.doom9.org/showthread.php?p=1320574#post1320574
Multi-slice encoding support
Slicing support is available through three methods (which can be mixed):
--slices sets a number of slices per frame and ensures rectangular slices (required for Blu-ray). Overridden by either of the following options:
--slice-max-mbs sets a maximum number of macroblocks per slice.
--slice-max-size sets a maximum slice size, in bytes (includes NAL overhead).
Implement macroblock re-encoding support to allow highly accurate slice size limitation. Might be useful for other things in the future, too.
shon3i
1st September 2009, 12:35
I generate short stream (5000 frames) which passed sucessfully tought MUI generator (scenarist bd 5.1), but i not compile project yet.
G_M_C
1st September 2009, 12:50
I generate short stream (5000 frames) which passed sucessfully tought MUI generator (scenarist bd 5.1), but i not compile project yet.
Thats good news, did you need to use --nal-hrd, or did it work OK without ?
shon3i
1st September 2009, 13:26
I encode without --nal-hrd but i run stream tought lastest H264Info. Aslo tsmuxer can be used to insert HRD.
Selur
1st September 2009, 14:02
while at it, what values for slices/slice-max-mbs/slice-max-size are needed/recommend to get blu-ray compatibility?
Cu Selur
froggy1
1st September 2009, 14:25
while at it, what values for slices/slice-max-mbs/slice-max-size are needed/recommend to get blu-ray compatibility?
Cu Selur
--slices 4
I don't think you should touch the max-size and mbs ones, unless you really need to (correct me if I'm wrong, someone). Also keep in mind that you can do just fine without slices if you choose L4.0 for BD. L4.1 requires slices, though I'd add slices even for L4.0 just to be on the safe side
rack04
1st September 2009, 14:33
I encode without --nal-hrd but i run stream tought lastest H264Info. Aslo tsmuxer can be used to insert HRD.
tsMuxeR assumes a certain --vbv-bufsize and --vbv-maxrate when applying NAL HRD. I would wait for the updated NAL HRD patch.
EDIT: I see you are the one I got this information from . :)
http://forum.doom9.org/showthread.php?p=1312934#post1312934
moviefan
1st September 2009, 18:04
If tsMuxer assumes certain VBV values, how can I then mux a .264 stream that contains already the NAL HRD information? Does tsMuxer recognize it and simply leave it as it is?
rack04
1st September 2009, 18:11
If tsMuxer assumes certain VBV values, how can I then mux a .264 stream that contains already the NAL HRD information? Does tsMuxer recognize it and simply leave it as it is?
I don't believe so. In my tests it adds "on top". You can use VBVChecker 1.5 (http://forum.doom9.org/showthread.php?t=144409). I don't have a license on laptop of else I would test.
EDIT: Here (http://forum.doom9.org/showthread.php?p=1240478#post1240478) is a post I made that illustrates this point.
Emulgator
1st September 2009, 19:45
I generate short stream (5000 frames) which passed sucessfully tought MUI generator
(scenarist bd 5.1), but i not compile project yet.
Sigh, relief.
Not at home at the moment, but as soon as i can I will try to feed this
into Sony DVD-A 5.0 and Roxio Sonic DVDitProHD 6.4 and hope it will compile without reencoding.
moviefan
1st September 2009, 22:22
I don't believe so. In my tests it adds "on top". You can use VBVChecker 1.5 (http://forum.doom9.org/showthread.php?t=144409). I don't have a license on laptop of else I would test.
EDIT: Here (http://forum.doom9.org/showthread.php?p=1240478#post1240478) is a post I made that illustrates this point.
So if I encoded a stream with the NAL HRD option enabled in x264 and wanted to mux it to Blu-ray format, how could I do this properly?
rack04
1st September 2009, 22:49
So if I encoded a stream with the NAL HRD option enabled in x264 and wanted to mux it to Blu-ray format, how could I do this properly?
I can't answer your question about "properly" although I use tsMuxeR and have absolutely no problem. I was just pointing out that tsMuxeR will add HRD information to an already encoded x264 with --nal-hrd switch.
shon3i
2nd September 2009, 20:30
If tsMuxer assumes certain VBV values, how can I then mux a .264 stream that contains already the NAL HRD information? Does tsMuxer recognize it and simply leave it as it is?
Yes but you need deselect Continualy insert SPS/PPS
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.