Streaming avi file

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Streaming avi file

f_neves88
Hi all. I'm a noob on gstreamer but i have a few problems to send a avi file
do another pc and see it, @ same time, in the PC source. What I want to do
is:

PC A
(Streaming avi file and play it on desktop)

|
|
|
|
\/

PC B (capture de file streaming from A)

I can play the video on the desktop with this two command lines:
gst-launch filesrc location=/home/filipe/Área\ de\ Trabalho/contador2.avi !
decodebin2 name=dec ! queue ! ffmpegcolorspace ! autovideosink

gst-launch filesrc location=/home/filipe/Área\ de\ Trabalho/contador2.avi !
avidemux name=demux ! decodebin ! queue ! decodebin ! ffmpegcolorspace !
videoscale ! autovideosink


But how i can send it by udpsink and receive this video @ PC B?

Thank you very much

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Streaming avi file

Sudarshan Bisht
You need to split the data right after demux (using tee element) and then form rtp packets of encoded data and finally push them to udpsink.
At receiver side use udpsrc to receive the rtp packets, extract those rtp packets,  decode the data and finally push to videosink.



On Thu, Jul 7, 2011 at 1:47 PM, Filipe Neves <[hidden email]> wrote:
Hi all. I'm a noob on gstreamer but i have a few problems to send a avi file
do another pc and see it, @ same time, in the PC source. What I want to do
is:

PC A
(Streaming avi file and play it on desktop)

|
|
|
|
\/

PC B (capture de file streaming from A)

I can play the video on the desktop with this two command lines:
gst-launch filesrc location=/home/filipe/Área\ de\ Trabalho/contador2.avi !
decodebin2 name=dec ! queue ! ffmpegcolorspace ! autovideosink

gst-launch filesrc location=/home/filipe/Área\ de\ Trabalho/contador2.avi !
avidemux name=demux ! decodebin ! queue ! decodebin ! ffmpegcolorspace !
videoscale ! autovideosink


But how i can send it by udpsink and receive this video @ PC B?

Thank you very much

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Streaming avi file

f_neves88
Hi. Many thanks for your response.
Im trying to apply your counsel but i can't do it, and its seems so simple!

Can you help me do this? Its so important to my objectives, and I have only one day to make this.

I only need two command lines that play the video and streaming to another pc and the other pc receive the video that im sending and play it (i can see the delay between the two computers with an avi file).

Many thanks for you help.



P.S.:
I can do this: the first line stream video from a webcam and the second line allow to me to receive the video. What i want to do is, instead of the webcam, send a avi file and play it @ same time, and receive a avi file, instead a webcam video


gst-launch v4l2src ! video/x-raw-yuv, width=320,height=240,framerate=30/1 ! ffmpegcolorspace ! smokeenc keyframe=8 qmax=40 ! udpsink host=127.0.0.1 port=9000

gst-launch udpsrc port=9000 ! smokedec ! ffmpegcolorspace ! autovideosink