mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 16:18:16 +00:00
v4l2src: Fix support for mpegts streams
It seems that GStreamer's mpegts elements (tsdemux, tsparse) require caps `video/mpegts,systemstream=true`. As far as I can see the significance of systemstream is to indicate that this is a container format rather than an elementary stream. As this is the case (and I can't understand how it could not be the case with mpegts) I add systemstream=true to v4l2src's caps. This allows v4l2src to be linked with tsdemux for playback from my Hauppauge HD-PVR with the pipeline: v4l2src ! queue ! tsdemux ! video/x-h264 ! decodebin ! xvimagesink In combination with the next commit this fixes using Hauppauge HD-PVR with GStreamer 1.0+.
This commit is contained in:
parent
4d0e1a4536
commit
517f50f54f
1 changed files with 2 additions and 1 deletions
|
@ -1232,7 +1232,8 @@ gst_v4l2_object_v4l2fourcc_to_structure (guint32 fourcc)
|
||||||
NULL);
|
NULL);
|
||||||
break;
|
break;
|
||||||
case V4L2_PIX_FMT_MPEG: /* MPEG */
|
case V4L2_PIX_FMT_MPEG: /* MPEG */
|
||||||
structure = gst_structure_new_empty ("video/mpegts");
|
structure = gst_structure_new ("video/mpegts",
|
||||||
|
"systemstream", G_TYPE_BOOLEAN, TRUE, NULL);
|
||||||
break;
|
break;
|
||||||
case V4L2_PIX_FMT_WNVA: /* Winnov hw compres */
|
case V4L2_PIX_FMT_WNVA: /* Winnov hw compres */
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue