I wrote function to extract SSEI from H.264 file, just as it is in Spec. (Pg. 580 - G.13.1.1 Scalability information SEI message syntax) but for some reason I'm getting wrong values. Has any of you implemented similar function?
I believe I made mistake at the beginningm here's how I did it:
and the rest of the code exactly as it is described in spec.Code:nal_size = AVC_NextStartCode(bs); nal_start = gf_bs_get_position(bs); gf_bs_seek(bs, nal_start); nal_hdr = gf_bs_read_int(bs, 8); sei_type = gf_bs_read_int(bs, 8); sei_size = gf_bs_read_int(bs, 8);
I'm getting really weird Avg Bitrate value. If anyone has done something similar, I'd appreciate sharing the experience. If you need more details on my implementation I'd be glad to provideCode:gf_bs_read_int(bs, 1); /* sei__scalability_info__temporal_id_nesting_flag */ gf_bs_read_int(bs, 1); /* sei__scalability_info__priority_layer_info_flag */ gf_bs_read_int(bs, 1); /* sei__scalability_info__priority_id_setting_flag */ num_layers = avc_get_ue(bs) + 1; /* sei__scalability_info__num_layers_minus1 */ for( i = 0; i <= num_layers_minus1; i++ ) { etc...
thanks
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 1 of 1
Thread
Similar Threads
-
creating MPEG-2 TS from Scalable Video Coding (SVC) bitstream
By Ersin Ekenoglu in forum Video ConversionReplies: 1Last Post: 14th Oct 2010, 08:10 -
creating MPEG-2 TS from Scalable Video Coding (SVC) bitstream
By Ersin Ekenoglu in forum Video Streaming DownloadingReplies: 0Last Post: 13th Oct 2010, 07:19 -
parsing an avi file
By pi-1966 in forum ProgrammingReplies: 0Last Post: 27th Apr 2009, 05:08 -
H.264 SVC
By tb582 in forum Video ConversionReplies: 2Last Post: 9th Apr 2009, 22:30 -
Parsing error
By screenhoofd in forum ffmpegX general discussionReplies: 6Last Post: 6th Oct 2007, 07:17