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.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 23rd July 2013, 12:35   #1  |  Link
leoenc
Registered User
 
Join Date: Mar 2007
Posts: 181
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
leoenc is offline   Reply With Quote
Old 23rd July 2013, 20:25   #2  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,922
What decoder are you talking about? Can you post a sample source stream that invokes this problem?
Guest is offline   Reply With Quote
Old 24th July 2013, 10:41   #3  |  Link
leoenc
Registered User
 
Join Date: Mar 2007
Posts: 181
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
leoenc is offline   Reply With Quote
Old 24th July 2013, 13:49   #4  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,922
I ask again: Can you post a sample source stream that invokes this problem?
Guest is offline   Reply With Quote
Old 25th July 2013, 07:18   #5  |  Link
leoenc
Registered User
 
Join Date: Mar 2007
Posts: 181
I will prepare a sample asap
leoenc is offline   Reply With Quote
Old 25th July 2013, 10:49   #6  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,229
Found some info, that might be helpful here:
http://mailman.videolan.org/pipermai...er/005169.html
__________________
There was of course no way of knowing whether you were being watched at any given moment.
How often, or on what system, the Thought Police plugged in on any individual wire was guesswork.


LoRd_MuldeR is offline   Reply With Quote
Old 25th July 2013, 11:48   #7  |  Link
leoenc
Registered User
 
Join Date: Mar 2007
Posts: 181
Source:
http://www.hamburgpromedia.com/hpm-downloads/MXF-Testfiles/IMX_XDCAM_50Mbit_SD.mxf

And output:
http://www.sendspace.com/file/eewy8a
leoenc is offline   Reply With Quote
Old 25th July 2013, 12:28   #8  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,922
Sorry but I can't process MXF. Can you demux the raw AVC and link that?
Guest is offline   Reply With Quote
Old 25th July 2013, 13:02   #9  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,229
From what I see the "output" is TS. Since x264 doesn't output TS, how did you create that?
__________________
There was of course no way of knowing whether you were being watched at any given moment.
How often, or on what system, the Thought Police plugged in on any individual wire was guesswork.


LoRd_MuldeR is offline   Reply With Quote
Old 25th July 2013, 13:02   #10  |  Link
leoenc
Registered User
 
Join Date: Mar 2007
Posts: 181
Sure:
http://www.sendspace.com/file/jw381e
(raw MPEG-2, not AVC)
leoenc is offline   Reply With Quote
Old 25th July 2013, 13:03   #11  |  Link
leoenc
Registered User
 
Join Date: Mar 2007
Posts: 181
@LoRd_MuldeR, with a Manzanita multiplexer.
leoenc is offline   Reply With Quote
Old 25th July 2013, 14:29   #12  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,922
Quote:
Originally Posted by leoenc View Post
(raw MPEG-2, not AVC)
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.
Guest is offline   Reply With Quote
Old 25th July 2013, 14:32   #13  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,153
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
nevcairiel is offline   Reply With Quote
Old 25th July 2013, 14:37   #14  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,229
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
__________________
There was of course no way of knowing whether you were being watched at any given moment.
How often, or on what system, the Thought Police plugged in on any individual wire was guesswork.



Last edited by LoRd_MuldeR; 25th July 2013 at 14:52.
LoRd_MuldeR is offline   Reply With Quote
Old 25th July 2013, 14:48   #15  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,153
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
nevcairiel is offline   Reply With Quote
Old 25th July 2013, 14:49   #16  |  Link
leoenc
Registered User
 
Join Date: Mar 2007
Posts: 181
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.
leoenc is offline   Reply With Quote
Old 25th July 2013, 14:51   #17  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,229
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)
__________________
There was of course no way of knowing whether you were being watched at any given moment.
How often, or on what system, the Thought Police plugged in on any individual wire was guesswork.



Last edited by LoRd_MuldeR; 25th July 2013 at 15:58.
LoRd_MuldeR is offline   Reply With Quote
Old 25th July 2013, 18:15   #18  |  Link
leoenc
Registered User
 
Join Date: Mar 2007
Posts: 181
Just tried that. The raw x264 stream passes the test.
It is strange, as the stream isn't altered in a way by the muxer. I have demuxed it and compared it to the pre-muxed .264 and they are identical bit for bit.
leoenc is offline   Reply With Quote
Old 25th July 2013, 18:20   #19  |  Link
leoenc
Registered User
 
Join Date: Mar 2007
Posts: 181
Strike my last message, I was looking at the wrong place.
The raw x264 stream DOESN'T pass the test too.
leoenc is offline   Reply With Quote
Old 26th July 2013, 01:20   #20  |  Link
akupenguin
x264 developer
 
akupenguin's Avatar
 
Join Date: Sep 2004
Posts: 2,393
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.
akupenguin is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:00.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.