Saving video stream to multiple files

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

Saving video stream to multiple files

Santiago Olivera
I need to save video files from a surveillance camera that runs 24/7. The closest I have got is:

gst-launch -e autovideosrc ! videorate ! ffmpegcolorspace ! x264enc ! mpegtsmux ! multifilesink next-file=key-frame loc
ation=C:\\gstest\\test%05d.ts

But does not work well. Please Help!!!!

Thanks a lot!

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

Re: Saving video stream to multiple files

Tim-Philipp Müller-2
On Tue, 2012-10-16 at 17:45 -0400, Santiago Olivera wrote:

Hi,

> I need to save video files from a surveillance camera that runs 24/7.
> The closest I have got is:
>
> gst-launch -e autovideosrc ! videorate ! ffmpegcolorspace ! x264enc !
> mpegtsmux ! multifilesink next-file=key-frame loc
> ation=C:\\gstest\\test%05d.ts
>
> But does not work well. Please Help!!!!

You need to be a bit more specific. How does it "not work well" etc. ?

Cheers
 -Tim

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

Re: Saving video stream to multiple files

Santiago Olivera
Hi, thanks.

Well, it create the files, of various sizes, the first one is always the biggest. The first one is usually playable but it's not a smooth video but jumpy frames at different times. The other files do not show anything. (I used DivX and VLC to play them).

I also tried sending the original stream to a videosink at the same time...

gst-launch -v autovideosrc ! tee name=t ! queue ! videorate ! ffmpegcolorspace ! x264enc ! mpegtsmux ! multifilesink ne
xt-file=key-frame location=C:\\gstTest\\test%05d.ts t. ! queue ! autovideosink

and it shows a jumpy video. It starts ok but after 1 second gets worse and worse.

Thanks a lot for your time.

Santiago



On Tue, Oct 16, 2012 at 6:05 PM, Tim-Philipp Müller <[hidden email]> wrote:
On Tue, 2012-10-16 at 17:45 -0400, Santiago Olivera wrote:

Hi,

> I need to save video files from a surveillance camera that runs 24/7.
> The closest I have got is:
>
> gst-launch -e autovideosrc ! videorate ! ffmpegcolorspace ! x264enc !
> mpegtsmux ! multifilesink next-file=key-frame loc
> ation=C:\\gstest\\test%05d.ts
>
> But does not work well. Please Help!!!!

You need to be a bit more specific. How does it "not work well" etc. ?

Cheers
 -Tim

_______________________________________________
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
|

Saving video stream to multiple files

tantor2012

Hi, thanks.

Well, it create the files, of various sizes, the first one is always the biggest. The first one is usually playable but it's not a smooth video but jumpy frames at different times. The other files do not show anything. (I used DivX and VLC to play them).

I also tried sending the original stream to a videosink at the same time...

gst-launch -v autovideosrc ! tee name=t ! queue ! videorate ! ffmpegcolorspace ! x264enc ! mpegtsmux ! multifilesink ne
xt-file=key-frame location=C:\\gstTest\\test%05d.ts t. ! queue ! autovideosink

and it shows a jumpy video. It starts ok but after 1 second gets worse and worse.

Thanks a lot for your time.

Santiago




On Tue, Oct 16, 2012 at 6:05 PM, Tim-Philipp Müller <[hidden email]> wrote:
On Tue, 2012-10-16 at 17:45 -0400, Santiago Olivera wrote:

Hi,

> I need to save video files from a surveillance camera that runs 24/7.
> The closest I have got is:
>
> gst-launch -e autovideosrc ! videorate ! ffmpegcolorspace ! x264enc !
> mpegtsmux ! multifilesink next-file=key-frame loc
> ation=C:\\gstest\\test%05d.ts
>
> But does not work well. Please Help!!!!

You need to be a bit more specific. How does it "not work well" etc. ?

Cheers
 -Tim

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




--
Santiago Olivera
Research assistant
Cognitive and Neural Systems Dept.
Boston University
http://www.santiagolivera.com

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