GNOME Bugzilla – Bug 774507
splitmuxsink: pad request fails for flvmux
Last modified: 2016-11-18 09:41:06 UTC
All, Splitmuxsink is not compatible with flvmux. splitmuxsink is not able to request pad due to incompatible pad templates. Below pipeline fails. gst-launch-1.0 videotestsrc is-live=1 ! x264enc ! h264parse ! splitmuxsink muxer=flvmux location=./test.flv (gst-launch-1.0:25551): GStreamer-CRITICAL **: gst_element_request_pad: assertion 'templ != NULL' failed 0:00:00.034612942 25551 0x2675100 ERROR GST_PIPELINE grammar.y:728:gst_parse_perform_link: could not link h264parse0 to splitmuxsink0 splitmuxsink requests pad from element using pad template like "video_%u", "audio_%u" and "sink_%d". This is true for most of the muxers. But splitmuxsink not able to request pad to flvmux as flvmux has "audio" and "video" as pad templates. Regards, Vinod
Created attachment 339992 [details] [review] splitmuxsink: pad request fails for flvmux splitmuxsink requests pad from element using pad template like "video_%u", "audio_%u" and "sink_%d". This is true for most of the muxers. But splitmuxsink not able to request pad to flvmux as flvmux has "audio" and "video" as pad templates. fix: splitmuxsink should fallback to "audio" and "video" when template not found.
Review of attachment 339992 [details] [review]: Thanks! Seems fine, apart from the one typo. ::: gst/multifile/gstsplitmuxsink.c @@ +1401,3 @@ + mux_template = + gst_element_class_get_pad_template (GST_ELEMENT_GET_CLASS + (splitmux->muxer), "video"); You meant to write "audio" here, not "video"
Created attachment 340014 [details] [review] Pad name typo corrected Hello Jan, I have corrected the typo and patch is created. Regards, Vinod
Thanks! pushed as commit 11fd0e on master, and 83bf7d on 1.10