Not able to stream H.264 video over RTP

Chuck Crisler ccrisler at mutualink.net
Mon Mar 3 06:42:24 PST 2014


You server pipeline look wicked complicated. On the server you are h264
Decoding the file and then re-encoding. Try taking the decoder,
videoconvert and x264enc out of the pipeline. Enable logging to see what
the negotiation error is on the receiver. Sorry, I don't know the syntax on
Windows. Here are some sample pipelines of mine. These are based on 0.10
1.X will be similar but slightly different.

Using MP2T, server:
gst-launch v4l2src device=/dev/video0 always-copy=false !
'video/x-h264,width=640,height=480,framerate=30000/1001,media=(string)video,clock-rate=(int)90000,format=(fourcc)I420'
! \
    mpegtsmux ! udpsink host=$1 port=$2

receiver
gst-launch udpsrc port=$1 !  mpegtsdemux ! video/x-h264 ! ffdec_h264 !
xvimagesink

RTP, server

gst-launch v4l2src device=/dev/video0 always-copy=false !
'video/x-h264,width=640,height=480,framerate=30000/1001,format=(fourcc)H264'
\
   ! rtph264pay pt=96 config-interval=2 ! udpsink host=$1 port=$2

receiver

gst-launch udpsrc port=$1 !
'application/x-rtp,media=video,payload=96,clock-rate=90000,encoding-name=H264'
\
    ! gstrtpjitterbuffer mode=0 ! rtph264depay byte-stream=true !
video/x-h264 ! ffdec_h264 \
    ! ffmpegcolorspace ! xvimagesink sync=false



On Sun, Mar 2, 2014 at 1:52 AM, dabh <dpsbhamra at yahoo.com> wrote:

> Hi , Now i have used avdec_h264 instead of ffdec_h264 and videoconvert
> instead of ffmpegcolorspace in case of 1.0 version then i received an error
> at the receiver side. Here are the commands i am firing :- Sender :-
> gst-launch-0.10.exe filesrc location="F:\\Movies\\English\\Avatar
> [2010]\\Avatar [2010].mp4" ! qtdemux ! h264parse ! avdec_h264 !
> videoconvert ! x264enc ! rtph264pay ! udpsink host=127.0.0.1 port=5000
> command executed successfully. Receiver :- gst-launch-1.0.exe -v udpsrc
> uri=udp://127.0.0.1:5000 ! rtph264depay ! avdec_h264 ! videoconvert !
> autovideosink receives an error during format negotiation Here is an error Thanks,
>
> ------------------------------
> View this message in context: Re: Not able to stream H.264 video over RTP<http://gstreamer-devel.966125.n4.nabble.com/Not-able-to-stream-H-264-video-over-RTP-tp4665612p4665639.html>
>
> Sent from the GStreamer-devel mailing list archive<http://gstreamer-devel.966125.n4.nabble.com/>at Nabble.com.
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140303/d5e949b5/attachment.html>


More information about the gstreamer-devel mailing list