Video processing(record\play) real time from camera with metadata

Mikl michael.yarochkin at timetronics.be
Mon Sep 19 09:27:23 UTC 2016


Hello, Tim


Thank you for the answers. It is really helping me.


Using gst_element_send_event(), now i see another error message from player.

It is a bit step for me. It means container is readable, but can not me played.

Thank you for help. I can look for this for a days.


But i do no really understand how my pipeline should looks like. something like this?

videotestsrc ! video/x-raw,format=RGB,width=800,height=400,framerate=24/1 ! ffmpegcolorspace ! x264enc ! matroskamux  ! filesink location=c:\gstreamer\test.mkv


But:

1) i can not make

_videoConverter = gst_element_factory_make("ffmpegcolorspace","VideoConvertor");

It is returning null.


2) can i really use x264enc?  is marked as "ugly"

<https://www.freedesktop.org/software/gstreamer-sdk/data/docs/latest/gst-plugins-ugly-plugins-0.10/gst-plugins-ugly-plugins-x264enc.h>https://www.freedesktop.org/software/gstreamer-sdk/data/docs/latest/gst-plugins-ugly-plugins-0.10/gst-plugins-ugly-plugins-x264enc.html

Am i right in my pipeline?

It is a way to do what i need?

Is any more simple way exist?

Thank you in advance.


Best regards, Michael.



________________________________
From: Tim Müller [via GStreamer-devel] <ml-node+s966125n4679636h65 at n4.nabble.com>
Sent: Friday, September 16, 2016 6:19:47 PM
To: Michael Yarochkin
Subject: Re: Video processing(record\play) real time from camera with metadata

On Fri, 2016-09-16 at 06:49 -0700, Mikl wrote:

Hi,

> For the moment i am doing only video and from test source.
> Here is my pipeline
> videotestsrc ! video/x-
> raw,format=RGB,width=800,height=400,framerate=24/1 ! matroskamux
> ! filesink location=c:\gstreamer\test.mkv
> I have file. It have size (big one). I can see structure
> using MKVToolNix.
> videotestsrc  will be replaced by appsrc.  And i will not
> need capsfilter anymore.
>
> But:
> -i can not play it
> -see no information

Yes, it will be very big, because you are storing raw (unencoded) video
frames in the file. If you want to encode them, add a x264enc (for
example) before matroskamux.


> Even when i did simple pipeline
> videotestsrc ! avimux ! filesink location=c:\gstreamer\test.avi
> i was not able to see information about video, navigate in video.
> And it was opened not in all players.

I suspect not all players will be able to handle raw video in AVI.
Also, if you use gst-launch-1.0 (or your own app) you will need to make
sure that you shut down the pipeline 'cleanly', so that the muxer has
an opportunity to finalise the file properly (write indices, fix up the
header, etc.). In gst-launch-1.0 you do that by passing the -e command
line option, or using videotestsrc num-buffers=100 or such. In your
application you would have to send an EOS event on the pipeline with
gst_element_send_event(pipeline, gst_event_new_eos()) and then wait for
an EOS message on the bus before shutting down the pipeline with
gst_element_set_state().

Cheers
 -Tim

--
Tim Müller, Centricular Ltd - http://www.centricular.com

Join us at the GStreamer Conference!
10-11 October 2016 in Berlin,
Germany
http://gstreamer.freedesktop.org/conference/


_______________________________________________
gstreamer-devel mailing list
[hidden email]</user/SendEmail.jtp?type=node&node=4679636&i=0>
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


________________________________
If you reply to this email, your message will be added to the discussion below:
http://gstreamer-devel.966125.n4.nabble.com/Video-processing-record-play-real-time-from-camera-with-metadata-tp4679305p4679636.html
To unsubscribe from Video processing(record\play) real time from camera with metadata, click here<http://gstreamer-devel.966125.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4679305&code=bWljaGFlbC55YXJvY2hraW5AdGltZXRyb25pY3MuYmV8NDY3OTMwNXwyMDkyNzIxODU=>.
NAML<http://gstreamer-devel.966125.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>


wrong codec.png (37K) <http://gstreamer-devel.966125.n4.nabble.com/attachment/4679645/0/wrong%20codec.png>




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Video-processing-record-play-real-time-from-camera-with-metadata-tp4679305p4679645.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160919/dcbca69b/attachment.html>


More information about the gstreamer-devel mailing list