Dynamically record a h264 stream
Sebastian Dröge
sebastian at centricular.com
Fri Mar 18 08:58:26 UTC 2016
On Fr, 2016-03-18 at 04:59 +0100, Davide Tuccilli wrote:
> I have a pipeline like this:
>
> v4l2src device=/dev/video0 ! video/x-h264 ! tee ! queue ! h264parse !
> omxh264dec ! glimagesink
> [...]
>
> Now, when I try to start recording, every frame is dropped with messages
> like this:
>
> 0:01:23.413955057 1546 0x6bb03340 WARN h264parse
> gsth264parse.c:1205:gst_h264_parse_handle_frame:
> broken/invalid nal Type: 1 Slice, Size: 6860 will be dropped
>
> Am I doing this wrong? How can h264parse fail on the recording branch
> when it succeeds on the decoding one?
That's indeed a good question. Does it work better if you put the
h264parse in front of the tee? What stream-format and alignment is
output by h264parse?
You will also need to ensure that (ideally) the recorded stream starts
with a keyframe and SPS/PPS.
--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160318/d605c7b6/attachment.sig>
More information about the gstreamer-devel
mailing list