save stream to file

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

save stream to file

BGU-foxo
This post was updated on .
Hi,
I would like to save streaming video ( received via Ethernet) to a file, that could later been played.
In my current pipeline I can "play" that streaming to screen, useing xvimagesink, However I want to save it as video file..

my pipeline is

Send
gst-launch v4l2src always-copy=false ! 'video/x-raw-yuv,format=(fourcc)UYVY,width=640,height=480,framerate=25/1' ! TIVidenc1 codecName=h264enc
 engineName=codecServer ! rtph264pay pt=96 ! udpsink host=192.168.1.100 port=4000

Receive
gst-launch-0.10 -v udpsrc port=4000 caps='application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264,
 sprop-parameter-sets=(string)\"Z0KAHukBQHpCAAAH0AAB1MAIAA\\=\\=\\,aM48gAA\\=\"' ! \ rtph264depay ! ffdec_h264 ! xvimagesink sync=true

Please help me if you know how.
Thanks !



****   solved ****
Receive
gst-launch-0.10 -v udpsrc port=4000 caps='application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264,
 sprop-parameter-sets=(string)\"Z0KAHukBQHpCAAAH0AAB1MAIAA\\=\\=\\,aM48gAA\\=\"' ! \ rtph264depay !  ffdec_h264 ! avimux ! filesink location=sample.h264
Reply | Threaded
Open this post in threaded view
|

Re: save stream to file

BGU-foxo
Any help will be appreciated
Reply | Threaded
Open this post in threaded view
|

Re: save stream to file

BGU-foxo
In reply to this post by BGU-foxo
guys, please help me if u can, I tryed many pipelines, but with no success... thx !
Reply | Threaded
Open this post in threaded view
|

Re: save stream to file

deepth pk
use filesink location ="output.ext"




   Cheers!
   Deepth

 
     
 



On Mon, Apr 30, 2012 at 2:45 PM, BGU-foxo <[hidden email]> wrote:
guys, please help me if u can, I tryed many pipelines, but with no success...
thx !

--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/save-stream-to-file-tp4587185p4597721.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


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

Re: save stream to file

Stefan Sauer
In reply to this post by BGU-foxo
On 04/25/2012 06:27 PM, BGU-foxo wrote:

> Hi,
> I would like to save streaming video ( received via Ethernet) to a file,
> that could later been played.
> In my current pipeline I can "play" that streaming to screen, useing
> xvimagesink, However I want to save it as video file.
>
> my pipeline is
>
> Send
>
>
> *Receive*

That is not your pipeline, right? Anyway, you will need to connect the
audio/video branches to a muxer ! filesink. If you decode audio/video
you need encoders as well. You might want to look into encodebin.

Stefan

>
>
> Please help me if you know how.
> Thanks !
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/save-stream-to-file-tp4587185p4587185.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

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

Re: save stream to file

Luis de Bethencourt
On 1 May 2012 10:25, Stefan Sauer <[hidden email]> wrote:

> On 04/25/2012 06:27 PM, BGU-foxo wrote:
>> Hi,
>> I would like to save streaming video ( received via Ethernet) to a file,
>> that could later been played.
>> In my current pipeline I can "play" that streaming to screen, useing
>> xvimagesink, However I want to save it as video file.
>>
>> my pipeline is
>>
>> Send
>>
>>
>> *Receive*
>
> That is not your pipeline, right? Anyway, you will need to connect the
> audio/video branches to a muxer ! filesink. If you decode audio/video
> you need encoders as well. You might want to look into encodebin.
>
> Stefan
>>
>>
>> Please help me if you know how.
>> Thanks !
>>
>> --

As Stefan mentioned, look into encodebin. Or if you want to handle the
encoding manually videostream->muxer->encoder

For example: oggmux ! theoraenc ! filesink

and in case it wasn't clear, your copy paste of your pipeline is empty.

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

RE: save stream to file

Charlie X. Liu
The order should be adjusted, I guess. As the followings worked for me
pretty good:
( Capture card:  Sensoray Model 811 or 812 --- 4/8-channel Frame Grabber )

$ gst-launch-0.10 v4l2src device=/dev/video2 ! ffmpegcolorspace ! \
             video/x-raw-yuv,width=640,height=480 ! clockoverlay \
             text="2012-04-25:" ! theoraenc quality=32 ! oggmux ! \
             filesink location=./video-ogg-ch3.ogg
             ( capturing video from Channel-3, with clockoverlay, resolution
VGA,
               compressing with Theora encoder, and save the video data into
an .ogg file )
$ gst-launch-0.10 filesrc location=./video-ogg-ch3.ogg ! oggdemux !
theoradec! xvimagesink
             ( play-back with GStreamer itself )
$ mplayer ./video-ogg-ch3.ogg
             ( Or, play-back with MPlayer )


Charlie X. Liu
Sensoray Company, Inc.
http://www.sensoray.com/


-----Original Message-----
From: gstreamer-devel-bounces+charlie=[hidden email]
[mailto:gstreamer-devel-bounces+charlie=[hidden email]]
On Behalf Of Luis de Bethencourt
Sent: Wednesday, May 02, 2012 10:41 AM
To: Discussion of the development of and with GStreamer
Subject: Re: save stream to file

On 1 May 2012 10:25, Stefan Sauer <[hidden email]> wrote:

> On 04/25/2012 06:27 PM, BGU-foxo wrote:
>> Hi,
>> I would like to save streaming video ( received via Ethernet) to a
>> file, that could later been played.
>> In my current pipeline I can "play" that streaming to screen, useing
>> xvimagesink, However I want to save it as video file.
>>
>> my pipeline is
>>
>> Send
>>
>>
>> *Receive*
>
> That is not your pipeline, right? Anyway, you will need to connect the
> audio/video branches to a muxer ! filesink. If you decode audio/video
> you need encoders as well. You might want to look into encodebin.
>
> Stefan
>>
>>
>> Please help me if you know how.
>> Thanks !
>>
>> --

As Stefan mentioned, look into encodebin. Or if you want to handle the
encoding manually videostream->muxer->encoder

For example: oggmux ! theoraenc ! filesink

and in case it wasn't clear, your copy paste of your pipeline is empty.

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

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