video with custom data

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

video with custom data

brateesh
hi all,
i want to convert images into video, image has the custom data for each and has to store it in video, when video is converted back to images want to get back this custom data of respective image (custom data are the pre-processed information of the image)

whether this can be implemented using the gstreamer???
Reply | Threaded
Open this post in threaded view
|

Re: video with custom data

Nicolas Dufresne-4
Le dimanche 08 mai 2016 à 11:05 -0700, brateesh a écrit :
> i want to convert images into video, image has the custom data for
> each and
> has to store it in video, when video is converted back to images want
> to get
> back this custom data of respective image (custom data are the pre-
> processed
> information of the image) 
>
> whether this can be implemented using the gstreamer???

Most likely, though you'll need to clarify a bit before anyone can
guide you toward a specific format / method.

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

Re: video with custom data

brateesh
i have set of images which contain custom-data(may be of key value pair type ,for example number of red pixel in image etc) which is different  for different image.
 
when set of images are converted to video, frames are compressed to video along with properties such as height,width,encoder used etc added in the header. i am asking whether custom-data can be stored in the video so that while reading the frames from the video i can even read the custom data of individual frames.

i tried to use GstMeta to store the custom-data, but since Gstmeta was lost when format changes in the pipeline GstMeta was not helpful.
   
Nicolas Dufresne,  i think now you can get the picture if still it is not clear please let me know.

Reply | Threaded
Open this post in threaded view
|

Re: video with custom data

Nicolas Dufresne-4
Le mardi 10 mai 2016 à 22:04 -0700, brateesh a écrit :

> i have set of images which contain custom-data(may be of key value
> pair type
> ,for example number of red pixel in image etc) which is
> different  for
> different image. 
>  
> when set of images are converted to video, frames are compressed to
> video
> along with properties such as height,width,encoder used etc added in
> the
> header. i am asking whether custom-data can be stored in the video so
> that
> while reading the frames from the video i can even read the custom
> data of
> individual frames.
>
> i tried to use GstMeta to store the custom-data, but since Gstmeta
> was lost
> when format changes in the pipeline GstMeta was not helpful.
>    
> Nicolas Dufresne,  i think now you can get the picture if still it is
> not
> clear please let me know.

The solution will depends on the container you have chosen. You could
probably abuse tags like POI for many formats.

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

Re: video with custom data

brateesh
what is POI??
tags will be popped on the pipeline then we have to make use of them by event handler, if i seeked to the 50th frame then i have to wait until all the tags related to first 49 frames are popped out, that will be overhead.

is their any way to get a particular tag information in random way
Reply | Threaded
Open this post in threaded view
|

Re: video with custom data

Nicolas Dufresne-4
Le mercredi 11 mai 2016 à 22:55 -0700, brateesh a écrit :
> what is POI??

Point of Interest. But I realize there is nothing that exist under this
name. Digging further, GST_TAG_APPLICATION_DATA seems very appropriate
if supported by the container you have chosen. Maybe GST_TAG_ATTACHMENT
could also be used (you can specify a filename and content type). There
is a tag called GST_TAG_COMMENT that is often suitable, as long as you
data is a string, otherwise it won't work with standard player.

> tags will be popped on the pipeline then we have to make use of them
> by
> event handler, if i seeked to the 50th frame then i have to wait
> until all
> the tags related to first 49 frames are popped out, that will be
> overhead.

No, if you seek to location 50, only the serialized tag from that
location will be sent. Again, it requires a container (or encoding like
JPEG) that supports this.

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

Re: video with custom data

brateesh
Thank you for the answer, it seems to be very useful. I have some problem to understand how the tags can be used, can you share the example to understand how it works.