<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 23, 2014 at 9:36 AM, sergio_ <span dir="ltr"><<a href="mailto:myxdiablo@yahoo.com" target="_blank">myxdiablo@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I founded the solution:<br>
//client<br>
gst-launch udpsrc port=5000 !<br>
application/x-rtp,media=video,payload=100,clock-rate=100000000,encoding-name=MP4V-ES<br>
! rtpmp4vdepay ! ffdec_mpeg4 ! mfw_v4lsink<br>
<br>
//server<br>
gst-launch -v videotestsrc pattern=snow ! ffenc_mpeg4 ! rtpmp4vpay<br>
send-config=true ! udpsink host=127.0.0.1 port=5000<br>
_________________________________<br>
<br>
Now I want to stream different files, for example a mp4 file encoded h264. I<br>
run next command on the server:<br>
//new-server<br>
gst-launch -v filesrc location=h264codec_mp4format.mp4 ! ffenc_mpeg4 !<br>
rtpmp4vpay send-config=true ! udpsink host=127.0.0.1 port=5000<br></blockquote><div><br></div><div>You are trying to encode a file that is already encoded. Your previous example works because your source is a raw video frame.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
But I get this error:<br>
** (gst-launch-0.10:9752): CRITICAL **: gst_ffmpegenc_chain_video: assertion<br>
`frame_size == GST_BUFFER_SIZE (inbuf)' failed<br>
ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Internal<br>
data flow error. </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
I think I have to set the frame size, could you help me with this?<br>
And in general, is there a way to find out what capabilities has a file, for<br>
example h264codec_mp4format.mp4?<br></blockquote><div><br></div><div>On Linux you can use mediainfo for a quick summary of the media file.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<br>
Thanks<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/UDP-stream-using-good-plugins-tp4664819p4664833.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/UDP-stream-using-good-plugins-tp4664819p4664833.html</a><br>

<div class=""><div class="h5">Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><span style="color:rgb(102,102,102)"><span style="font-family:Arial">Jesper Larsen, M.Sc.E</span><span style="font-family:Arial"><br>
</span><span style="font-family:Arial">Software Engineer</span><br><span style="font-family:Arial"><span><span style="font-family:Arial"></span>Ixonos</span> <span>Denmark</span></span><br><span style="font-family:Arial"><span style="font-size:7.5pt;font-family:Arial,sans-serif" lang="EN-US"></span>Alfred Nobels Vej 21 E</span></span>
<span style="color:rgb(102,102,102)">,<br style="font-family:Arial"><span style="font-family:Arial">DK-9220 Aalborg Ø, <span>Denmark</span></span></span>

<span style="color:rgb(102,102,102)"><br style="font-family:Arial"><span style="font-family:Arial">Email: <a href="mailto:martin.lund@ixonos.com" target="_blank">jesper.larsen@<span>ixonos</span>.com</a></span></span>
<span style="color:rgb(102,102,102)"><br><span style="font-family:Arial">Phone: <a value="+4524826516">+45 27 29 41 03</a></span></span>
<span style="color:rgb(102,102,102)"><br style="font-family:Arial"><span style="font-family:Arial"><a href="http://www.ixonos.com/" target="_blank">http://www.<span>ixonos</span>.com</a></span></span>

</div></div>