<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="MSHTML 6.00.6000.17107" name=GENERATOR></HEAD>
<BODY><p><font face='Microsoft Sans Serif' color='Black' size='2'><b>UNCLASSIFIED</b></font></p>
<DIV><FONT face=Arial size=2><SPAN class=547373303-09022012>I am trying to
modify the mpegtsmux plugin to process KLV metadata. I am currently having
trouble creating a pipeline which will allow me to write a video and metadata
with multiple appsrc plugins.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=547373303-09022012></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=547373303-09022012>A new cap has been
created on mpegtsmux named "application/x-klv". I am trying to attach an appsrc
element directly to this which will mux with an mpeg2 video via
ffenc_mpeg2video.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=547373303-09022012></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=547373303-09022012>My pipeline looks
like this and is called using gst_parse_bin_from_description()
:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=547373303-09022012></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=547373303-09022012>mpegtsmux
name="muxer" ! filesink location=gstreamer.out.mpg appsrc name="adsssrc"
caps="video/x-raw-rgb,width=704,height=480,framerate=(fraction)25/1,bpp=24,depth=24,red_mask=255,green_mask=65280,blue_mask=16711680,endianness=4321"
! ffmpegcolorspace ! videorate ! ffenc_mpeg2video bitrate=15000000 ! muxer.
appsrc name="metasrc" caps="application/x-klv" ! muxer.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=547373303-09022012></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=547373303-09022012>The
mpegtsmux_create_stream() function is never hit when using this pipeline and a
video is never created. In the debug there are lots of references to queuing the
buffer in gst_app_src_push_buffer_full().</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=547373303-09022012></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=547373303-09022012>If I remove the
additional appsrc as below, the megtsmux_create_stream() function is hit (shown
through debug):</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=547373303-09022012></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=547373303-09022012>mpegtsmux
name="muxer" ! filesink location=gstreamer.out.mpg appsrc name="adsssrc"
caps="video/x-raw-rgb,width=704,height=480,framerate=(fraction)25/1,bpp=24,depth=24,red_mask=255,green_mask=65280,blue_mask=16711680,endianness=4321"
! ffmpegcolorspace ! videorate ! ffenc_mpeg2video bitrate=15000000 !
muxer.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=547373303-09022012></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=547373303-09022012>Can anyone tell me
if the syntax for my pipeline is correct for using multiple appsrc with
mpegtsmux? </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=547373303-09022012></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=547373303-09022012>Any help would be
appreciated.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=547373303-09022012></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=547373303-09022012>Thanks,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=547373303-09022012>Paul</SPAN></FONT></DIV><p><font face='microsoft sans serif' color='Red' size='2'><b>IMPORTANT</b>: This email remains the property of the Department of Defence and is subject to the jurisdiction of section 70 of the Crimes Act 1914. If you have received this email in error, you are requested to contact the sender and delete the email.
<br></font><font face='microsoft sans serif' color='Black' size='2'></font></p></BODY></HTML>