h264bitstream
h264bitstream copied to clipboard
A complete set of functions to read and write H.264 video bitstreams, in particular to examine or modify headers.
``` $ cat ./build.sh #!/bin/bash gcc -I /usr/local/src/h264bitstream/ gen_stream.c /usr/local/src/h264bitstream/.libs/libh264bitstream.a -o gen_stream [OK] 15:49:26krieger@zver ~/work/employers/bluecherry/h264_stream_gen $ ./build.sh [OK] 15:49:27krieger@zver ~/work/employers/bluecherry/h264_stream_gen $ ./gen_stream Stream start headers: 00 00 00 01 00...
Fixes #45
https://github.com/aizvorski/h264bitstream/blob/34f3c58afa3c47b6cf0a49308a68cbf89c5e0bff/h264_sei.c#L687 See: https://github.com/FD-/RPiPlay/issues/197 https://github.com/FD-/RPiPlay/pull/198
As https://github.com/aizvorski/h264bitstream/issues/31 points out, the `debug_nal` function doesn't exist anymore. I did a git bisect, and found that it was removed in https://github.com/aizvorski/h264bitstream/commit/eba676c485f68a296bf9d423f07ee1d41c09d8cb. This patch just adds the functions back...
Hello. I caught a segmentation fault while working with an H264 video. This happens after calling the methods find_nal_unit(...) and read_nal_unit(...) with the next set of bytes in hex: "00000001419a246c437ffea7840000030000097800000001"...
Hello, in line: https://github.com/aizvorski/h264bitstream/blob/master/h264_stream.c#L1727, it is assumed the count of `seq_scaling_list_present_flag` and `ScalingListn*n` always sum up to 8. As I saw from the reader code: https://github.com/aizvorski/h264bitstream/blob/master/h264_stream.c#L398 it seems the count...
Hello, I'd need to write a small tool that reads an h264 file, reads the NALs, modifies current data and eventually adds new units (more specifically, SEI data). I would...
Fix parsing error when duplicate 00 00 00 01 occurs. For example 00 00 00 01 00 00 00 01 Original code will bypass first startcode but not modify "p"...