UDP stream using good plugins

Jesper Larsen jesper.larsen at ixonos.com
Thu Jan 23 00:55:18 PST 2014


On Thu, Jan 23, 2014 at 9:36 AM, sergio_ <myxdiablo at yahoo.com> wrote:

> I founded the solution:
> //client
> gst-launch udpsrc port=5000 !
>
> application/x-rtp,media=video,payload=100,clock-rate=100000000,encoding-name=MP4V-ES
> ! rtpmp4vdepay ! ffdec_mpeg4 ! mfw_v4lsink
>
> //server
> gst-launch -v videotestsrc pattern=snow ! ffenc_mpeg4 ! rtpmp4vpay
> send-config=true ! udpsink host=127.0.0.1 port=5000
> _________________________________
>
> Now I want to stream different files, for example a mp4 file encoded h264.
> I
> run next command on the server:
> //new-server
> gst-launch -v filesrc location=h264codec_mp4format.mp4 ! ffenc_mpeg4 !
> rtpmp4vpay send-config=true ! udpsink host=127.0.0.1 port=5000
>

You are trying to encode a file that is already encoded. Your previous
example works because your source is a raw video frame.


>
> But I get this error:
> ** (gst-launch-0.10:9752): CRITICAL **: gst_ffmpegenc_chain_video:
> assertion
> `frame_size == GST_BUFFER_SIZE (inbuf)' failed
> ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Internal
> data flow error.


> I think I have to set the frame size, could you help me with this?
> And in general, is there a way to find out what capabilities has a file,
> for
> example h264codec_mp4format.mp4?
>

On Linux you can use mediainfo for a quick summary of the media file.


>
> Thanks
>
>
>
> --
> View this message in context:
> http://gstreamer-devel.966125.n4.nabble.com/UDP-stream-using-good-plugins-tp4664819p4664833.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>



-- 
Jesper Larsen, M.Sc.E
Software Engineer
Ixonos Denmark
Alfred Nobels Vej 21 E ,
DK-9220 Aalborg Ø, Denmark
Email: jesper.larsen at ixonos.com <martin.lund at ixonos.com>
Phone: +45 27 29 41 03
http://www.ixonos.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140123/789c0517/attachment.html>


More information about the gstreamer-devel mailing list