Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
23rd July 2013, 12:35 | #1 | Link |
Registered User
Join Date: Mar 2007
Posts: 192
|
rbsp_alignemnt_zero_bit
We're getting some x264 streams rejected by the decoder, claiming that they have rbsp_alignment_zero_bit = 1, where only rbsp_alignment_zero_bit = 0 is allowed.
Anyone knows how to fix this? Thanks Last edited by leoenc; 23rd July 2013 at 15:13. Reason: Spelling error |
24th July 2013, 10:41 | #3 | Link |
Registered User
Join Date: Mar 2007
Posts: 192
|
Thanks for your reply, neuron2
The decoder is a Tektronix Cerify. Would the command line be enough? x264.exe --pass 1 --stats "test.stats" --preset medium --bitrate 1500 --profile high --level 4.1 --keyint 25 --open-gop --ref 3 --mixed-refs --b-pyramid strict --bframes 3 --vbv-bufsize 1500 --vbv-maxrate 6000 --thread-input --threads auto --interlaced --tff --sar 64:45 --nal-hrd cbr --videoformat component --colorprim bt709 --transfer bt709 --colormatrix bt709 --pic-struct --output x264.264 source.avs x264.exe --pass 2 --stats "test.stats" --preset medium --bitrate 1500 --profile high --level 4.1 --keyint 25 --open-gop --ref 3 --mixed-refs --b-pyramid strict --bframes 3 --vbv-bufsize 1500 --vbv-maxrate 6000 --thread-input --threads auto --interlaced --tff --sar 64:45 --nal-hrd cbr --videoformat component --colorprim bt709 --transfer bt709 --colormatrix bt709 --pic-struct --output x264.264 source.avs |
25th July 2013, 10:49 | #6 | Link |
Software Developer
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
|
Found some info, that might be helpful here:
http://mailman.videolan.org/pipermai...er/005169.html
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ |
25th July 2013, 13:02 | #9 | Link |
Software Developer
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
|
From what I see the "output" is TS. Since x264 doesn't output TS, how did you create that?
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ |
25th July 2013, 14:29 | #12 | Link |
Guest
Join Date: Jan 2002
Posts: 21,901
|
You're confusing me now. Your original post says you have some AVC streams that are confusing the decoder. So why are you giving us an MPEG2 stream?
Please give us the AVC stream that is not properly decoded. Or please better explain your issue to resolve the confusion. Thank you. |
25th July 2013, 14:32 | #13 | Link |
Registered Developer
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,346
|
I thought it was pretty clear.
He has this MPEG-2 stream which he transcodes to H.264 using the command lines mentioned earlier. He provided both the input MPEG-2 and the output H.264 (in TS). This was his output H.264 stream: http://www.sendspace.com/file/eewy8a as linked a few posts above.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders |
25th July 2013, 14:37 | #14 | Link |
Software Developer
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
|
So I think we have three options here:
(1) His H.264 decoder is parsing the stream in the wrong way (rbsp_alignemnt_zero_bit can not be non-zero, see link above) (2) x264 creates invalid bitstream, which I think is unlikely - but you never know (3) His TS muxer somehow screwed up the stream or at least produced something his decoder/demuxer doesn't handle right
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ Last edited by LoRd_MuldeR; 25th July 2013 at 14:52. |
25th July 2013, 14:48 | #15 | Link |
Registered Developer
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,346
|
If its truely syntactically impossible for this to be non-zero, it would seem odd that a validation would check this, unless its an assert that somehow checks its own function for correctness instead of the bitstream.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders |
25th July 2013, 14:49 | #16 | Link |
Registered User
Join Date: Mar 2007
Posts: 192
|
Sorry about the confusion, nevcairiel got it right, the AVC stream which is causing the error is here: http://www.sendspace.com/file/eewy8a.
@LoRd_MuldeR, I agree. I'll check with the Manzanita team if option 3 is a possibility. |
25th July 2013, 14:51 | #17 | Link |
Software Developer
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
|
For testing purposes: Can you pump the "raw" AVS, exactly as it pops out of x264, into the "Tektronix Cerify" decoder directly and avoid the TS muxing+demuxing altogether?
(If that does work, you know where the problem is probably located)
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ Last edited by LoRd_MuldeR; 25th July 2013 at 15:58. |
26th July 2013, 01:20 | #20 | Link |
x264 developer
Join Date: Sep 2004
Posts: 2,392
|
As nevcairiel said, this should be syntactically impossible. rbsp_stop_one_bit is defined to be the last 1-bit in a RBSP, and rbsp_alignment_zero_bit are the trailing 0-bits (if any). rbsp_stop_one_bit determines which bit a slice ends at, not the other way around.
|
Thread Tools | Search this Thread |
Display Modes | |
|
|