Hi All,
Using the pipeline i C below, I have some packets moving between gstremer and a media server(or ffmpeg) on a different machine, however when I ffprobe I get the error. [h264 @ 0x18514e0] decode_slice_header error [h264 @ 0x18514e0] no frame! [h264 @ 0x18514e0] non-existing PPS 0 referenced Last message repeated 1 times Using ffmpeg to send with the following works fine, -vcodec libx264 -vb 150000 -g 60 -vprofile baseline -level 2.1 \ -acodec aac -ab 64000 -ar 48000 -ac 2 -vbsf h264_mp4toannexb -strict experimental \ -f mpegts udp://10.0.10.237:10000?pkt_size=1316 my pipeline is elem_1 = gst_element_factory_make ("x264enc", elem_name); elem_3 = gst_element_factory_make ("capsfilter", elem_name); g_object_set( G_OBJECT ( elem_5 ), "caps", elem_5_caps, NULL ); // w,h,fr elem_5 = gst_element_factory_make ("mpegtsmux", elem_name); //g_object_set( G_OBJECT ( elem_5 ), "alignment", "7", NULL ); // Did not work, blocked pipeline elem_7 = gst_element_factory_make ("udpsink", elm_name); g_object_set( G_OBJECT ( elem_7 ), "caps", "application/x-rtp", NULL ); Do I need to add something like rndbuffersize or rtpL16pay mtu=1316 to the pipeline? where would I add these, between 5 & 7 or 3 & 5 thx Art |
On Tue, 2017-01-10 at 08:36 -0800, vanderhoffer wrote:
> elem_5 = gst_element_factory_make ("mpegtsmux", elem_name); > //g_object_set( G_OBJECT ( elem_5 ), "alignment", "7", NULL ); // > Did not work, blocked pipeline Tried g_object_set(elem_5, "alignment", 7, NULL ); ? (no quotes) Cheers -Tim -- Tim Müller, Centricular Ltd - http://www.centricular.com _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Administrator
|
I'm not sure if alignment property of mpegtsmux is functional. You can also try rndbuffersize min=max=1316
|
In reply to this post by Tim Müller
Good catch Tim, the no quotes unblocked but did not help with the packet size
Thx Art |
This post was updated on .
In reply to this post by Baby Octopus
@Baby Octopus,
I added that element with g_object_set( G_OBJECT ( myRndbuffersize ), "min", 1316, NULL ); g_object_set( G_OBJECT ( myRndbuffersize ), "max", 1316, NULL ); But I still get a weird stream start with some green tearing on the bottom half of the player for the first few seconds. ffprobe on same box reports Last message repeated 1 times [h264 @ 0x6f04e0] decode_slice_header error [h264 @ 0x6f04e0] non-existing PPS 0 referenced [h264 @ 0x6f04e0] decode_slice_header error [h264 @ 0x6f04e0] no frame! [h264 @ 0x6f04e0] non-existing PPS 0 referenced [mpegts @ 0x6cdda0] decoding for stream 0 failed [mpegts @ 0x6cdda0] Could not find codec parameters for stream 0 (Video: h264 (HDMV / 0x564D4448), none): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options I will run a packet trace to see if packet sizes are actually 1316, but this does not happen with ffmpeg. It is solid from first frame Thx Art |
In reply to this post by vanderhoffer
On Tue, 2017-01-10 at 13:58 -0800, vanderhoffer wrote:
> Good catch Tim, the no quotes unblocked but did not help with the > packet size What's the output of gst-inspect-1.0 mpegtsmux | grep Version for you? There were some bug fixes at some point. Cheers -Tim -- Tim Müller, Centricular Ltd - http://www.centricular.com _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hey Tim
Ver = 1.11.01 as per https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-bad-plugins/html/gst-plugins-bad-plugins-plugin-mpegtsmux.html it shows filename libgstmpegtsmux.so version 1.10.1 so it seems the docs are not updated yet. Is there a way to see the version through GIT? |
Free forum by Nabble | Edit this page |