[FFmpeg-devel] [PATCH v4] lavf/h264: add support for h264 video from Arecont camera, fixes ticket #5154

Shivam Goyal shivgo at iitk.ac.in
Thu May 9 21:15:59 EEST 2019


The patch is for ticket #5154. 

Support for h264 stream from Arecont Camera, The video contains a http
header at several places in the stream, which makes it not possible to
demux, the structure of the http header is- 

--fbdr 
Content-Type: video/H.264I 
ETag: Channel=1 

( there are two CR+LF characters at the end ) 

I also detected the stream by detecting this header. For the video to
play, i removed the header. The function arecont_find_sign() searches
for the signature  and returns its position, (-1 when not found ). 

Also, in the function read_raw_arecont_h264_packet, i used two variables
to store data, the 'pkt->data' and 'data'. I first filled the 'data' and
find the position of http header ( if it is present) and copied the
bytes before the position of the http header, skipped the header, and
again did the same thing for rest of the bytes. also as the packet can
contain partial header at the beginning and end of the pkt, i took extra
size to read from the input stream 

Please review 

Thank You 

Shivam Goyal
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add_arecont_h264_support_v4.patch
Type: text/x-diff
Size: 7154 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20190509/4d191f08/attachment.patch>


More information about the ffmpeg-devel mailing list