Matroska plugin question

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

Matroska plugin question

Mikl


Hello,


Thank you for developing this plugin.

I have a questions about it.


I am recording video from raw rgb data (coming from camera) with 2 subtitles tracks.


How i can set name of subtitle truck?

How i can set subtitle truck as default?

It is possible?

How i can do it?


For the moment i have this pipeline

for video

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


for subtitles

appsrc ! text/x-raw format=utf8 matroskamux ! filesink location=c:\gstreamer\test.mkv 


In attachment you can see result of recording and my source code (c++ with some development garbage. sorry.) 

Video file itself can be found in dropbox https://www.dropbox.com/s/d7sd2ubars9wn91/1474357518134.mkv?dl=0


Thank you in advance for helping.


Best regards, Michael.




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

2 subtitles in one video in player.png (588K) Download Attachment
2 subtitles in one video info.png (54K) Download Attachment
gstreamer.cpp (10K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Matroska plugin question

Sebastian Dröge-3
On Di, 2016-09-20 at 13:59 +0000, Michael Yarochkin wrote:

>
> Hello,
>
> Thank you for developing this plugin.
> I have a questions about it.
>
> I am recording video from raw rgb data (coming from camera) with 2
> subtitles tracks.
>
> How i can set name of subtitle truck?
> How i can set subtitle truck as default?
> It is possible?
> How i can do it?
This needs some additions to the Matroska muxer, so that it writes
those from the information it gets from GStreamer. Default tracks are
marked in the stream-start event, title could be retrieved from the
TITLE tag.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (985 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Matroska plugin question

Mikl
Hello, Sebastian

Thank you for the answer.

But i did not understand HOW to do it?
I found THIS place in last matroska source code (matroska-mux.c line 2338), but did not found any way to change it.

-Set TITLE for pad, after linking source
-Set TITLE for source
-Make gst_object_set(...)
...

Sorry for stupid questions.