Stream H264 file and Playback the same stream on network ?

ssshukla26 ssshukla26 at gmail.com
Wed Feb 3 14:14:43 CET 2016


After a long search,I got my answers on the below link (an answer given by
"/Timothy Bean/")

https://community.freescale.com/thread/308934
<https://community.freescale.com/thread/308934>  

Still the summary of all this is as follows (these points are described by
"/Timothy Bean/")

1. MAKE sure, for this method, that you start the decoder BEFORE you start
the sender.
2. Try to add in the config-interval setting on rtph264pay so it send NAL
headers every so often
3. Put a h264parse element after the rtph264depay element in the receiver
side

Hence following this I made the changes and my last constructed receiving
pipe and streaming pipe is as follows.

A) receiving/displaying pipe (on a pc present on same network as my
hardware)

*gst-launch-1.0 -e udpsrc port=5000 ! queue !
application/x-rtp,encoding-name=H264,payload=96,clock-rate=90000 !
rtph264depay ! h264parse ! decodebin  ! autovideosink*

B) streaming pipe (on my hardware "/it can be the same PC or any other PC on
the same network, here its my own proprietary hardware/")

*gst-launch-1.0 -e filesrc location=output_test.h264 !
video/x-h264,width=640,height=480,framerate=30/1 ! h264parse ! rtph264pay
config-interval=1 ! udpsink host=/<receivers_address>/ port=5000
*

NOTE :- Execute display pipe before executing streaming pipe, I don't know
why ?  I can be wrong on this note. If someone can correct me from the
gstreamer devel guys, I will be happy to get corrected and modify my
streaming/displaying pipe accordingly. 

P.S. :- <receivers_address> is the IP address of the PC where am displaying
my streamed h264 file.



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Stream-H264-file-and-Playback-the-same-stream-on-network-tp4675623p4675635.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list