Dinamically start and stop recording using valve

Sérgio Agostinho sergio.r.agostinho at gmail.com
Tue Jan 6 08:57:59 PST 2015


Three observations:
- You're not linking all your elements in your snippet. You should need at
least   'raw video' -> x264enc -> mp4mux -> filesink to store something
most players can open.
- Instead of sending the EOS on your filesink element try sending it on the
encoder (once you link things properly) because both mp4mux and the
filesink need to receive the EOS.
- You're not checking if the EOS actually reaches the filesink before
setting the pipeline state to NULL. Install an event probe on the filesink
just to be sure.

Cheers

2015-01-06 17:12 GMT+01:00 Forzaferrarileo <leonardo.ferroro at gmail.com>:

> hi , after your hints , i wrote this snippet  , but there's a problem with
> the output file . It contains data , but when i open the file , the player
> can't found any playable stream , like when you miss the eos , even if i'm
> doing it .
>
> this is the snippet :
>
> https://gist.github.com/Forzaferrarileo/04f7b3229d94dd2ee6f9#file-gistfile1-cpp
>
>
>
> --
> View this message in context:
> http://gstreamer-devel.966125.n4.nabble.com/Dynamically-start-and-stop-recording-using-valve-tp4670091p4670118.html
> Sent from the GStreamer-devel mailing list archive 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/20150106/d2f1c727/attachment-0001.html>


More information about the gstreamer-devel mailing list