<div dir="ltr"><div>Well, videotestsrc generates raw video frames that aren't encoded. Your file (movie.mpeg4) should be encoded already, so you don't need the ffenc_mpeg4 filter. I think that your pipeline should be something like gst-launch -v filesrc location=movie.mp4 ! rtpmp4vpay ! udpsink host=192.168.1.16 port=5000<br>
<br></div>I don't know mpeg very well so there might be some other conversion required, but that should be close.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 28, 2014 at 4:48 AM, d <span dir="ltr"><<a href="mailto:dudi017@gmail.com" target="_blank">dudi017@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi!<br>
<br>
im trying to transmit video and play it on the client pc.<br>
<br>
the pipeline: gst-launch *videotestsrc* ! ffenc_mpeg4 ! rtpmp4vpay !<br>
udpsink host=192.168.1.16 port=5000<br>
works fine<br>
<br>
but now, I need to transfer a video file from the pc. this is the pipeline:<br>
<br>
gst-launch *filesrc location=movie.mp4* ! ffenc_mpeg4 ! rtpmp4vpay ! udpsink<br>
host=192.168.1.16 port=5000<br>
<br>
and I get this error:<br>
<br>
Setting pipeline to PAUSED ...<br>
Pipeline is PREROLLING ...<br>
<br>
** (gst-launch-0.10:10550): CRITICAL **: gst_ffmpegenc_chain_video:<br>
assertion `frame_size == GST_BUFFER_SIZE (inbuf)' failed<br>
ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Internal<br>
data flow error.<br>
Additional debug info:<br>
gstbasesrc.c(2625): gst_base_src_loop ():<br>
/GstPipeline:pipeline0/GstFileSrc:filesrc0:<br>
streaming task paused, reason error (-5)<br>
ERROR: pipeline doesn't want to preroll.<br>
Setting pipeline to NULL ...<br>
Freeing pipeline ...<br>
*** stack smashing detected ***: ./RTPserver terminated<br>
Segmentation fault (core dumped)<br>
<br>
<br>
<br>
do someone know how to fix it?<br>
thank you!<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/transmit-video-stream-file-from-the-pc-tp4664924.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/transmit-video-stream-file-from-the-pc-tp4664924.html</a><br>
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>
</blockquote></div><br></div>