Help - Using GStreamer decoders to decode

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

Help - Using GStreamer decoders to decode

ak.ashwini
Hi All,
 
  I am writing an mediaplay application in which i have to use GStreamer decoders to decode data and send it back. For the purpose I am going to use "appsrc ! decoder ! appsink" . Where decoder can be a specific decoder or decodebin.
 
I will be reading the file, demuxing it and then send the demuxed packet to GStreamer decoder part as described above. Here I want to know few things....
 
  1. Does the  decoder in gstreamer output a complete Frame or is it partial data? I assume it to be a complete frame... please correct my assumption.
  2. Can I know from the output buffer/frame (at src pad of decoder), whether it is a Key-frame or not?
  3. Is it possible to check whether the complete frame can be generated from the given demuxed data or does it require more?
  4. Is there any way to get the PTS of the decoded frame?
Please help, as this is urgent for me.
 
Thanks,
Ashwini

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

AW: Help - Using GStreamer decoders to decode

BGraaf

Hi Ashwini,

 

Do you have more details about what appsrc, decoder and appsink you want to use? It’s a little bit different.

 

Bernhard

 


Von: gstreamer-devel-bounces+bernhard.graaf=[hidden email] [mailto:gstreamer-devel-bounces+bernhard.graaf=[hidden email]] Im Auftrag von Ashwini Sharma
Gesendet: Dienstag, 28. Juni 2011 07:49
An: Discussion of the development of and with GStreamer
Betreff: Help - Using GStreamer decoders to decode

 

Hi All,

 

  I am writing an mediaplay application in which i have to use GStreamer decoders to decode data and send it back. For the purpose I am going to use "appsrc ! decoder ! appsink" . Where decoder can be a specific decoder or decodebin.

 

I will be reading the file, demuxing it and then send the demuxed packet to GStreamer decoder part as described above. Here I want to know few things....

 

  1. Does the  decoder in gstreamer output a complete Frame or is it partial data? I assume it to be a complete frame... please correct my assumption.
  2. Can I know from the output buffer/frame (at src pad of decoder), whether it is a Key-frame or not?
  3. Is it possible to check whether the complete frame can be generated from the given demuxed data or does it require more?
  4. Is there any way to get the PTS of the decoded frame?

Please help, as this is urgent for me.

 

Thanks,

Ashwini


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

Re: Help - Using GStreamer decoders to decode

ak.ashwini
Hi Bernhard,
  I will be using appsrc element to push buffers, appsink element to grab the decoded frame and my decoder will be ffdec_mpeg2video
 
-Ashwini

On Tue, Jun 28, 2011 at 12:45 PM, Bernhard Graaf <[hidden email]> wrote:

Hi Ashwini,

 

Do you have more details about what appsrc, decoder and appsink you want to use? It’s a little bit different.

 

Bernhard

 


Von: gstreamer-devel-bounces+bernhard.graaf=gmx.de@lists.freedesktop.org [mailto:[hidden email]=gmx.de@lists.freedesktop.org] Im Auftrag von Ashwini Sharma
Gesendet: Dienstag, 28. Juni 2011 07:49
An: Discussion of the development of and with GStreamer
Betreff: Help - Using GStreamer decoders to decode

 

Hi All,

 

  I am writing an mediaplay application in which i have to use GStreamer decoders to decode data and send it back. For the purpose I am going to use "appsrc ! decoder ! appsink" . Where decoder can be a specific decoder or decodebin.

 

I will be reading the file, demuxing it and then send the demuxed packet to GStreamer decoder part as described above. Here I want to know few things....

 

  1. Does the  decoder in gstreamer output a complete Frame or is it partial data? I assume it to be a complete frame... please correct my assumption.
  2. Can I know from the output buffer/frame (at src pad of decoder), whether it is a Key-frame or not?
  3. Is it possible to check whether the complete frame can be generated from the given demuxed data or does it require more?
  4. Is there any way to get the PTS of the decoded frame?

Please help, as this is urgent for me.

 

Thanks,

Ashwini


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

AW: Help - Using GStreamer decoders to decode

BGraaf

Hi Ashwini,

 

I don’t know anything about the ‘ffdec_mpe2dec’. But the most decoders generates a pad per data (video, audio, etc - anything else doesn’t matter). So you should handle these pads at the pad-added-event separately. After that, you should queue these data’s into an encoder and then pushing this into a sink-element.

 

Bernhard

 


Von: gstreamer-devel-bounces+bernhard.graaf=[hidden email] [mailto:gstreamer-devel-bounces+bernhard.graaf=[hidden email]] Im Auftrag von Ashwini Sharma
Gesendet: Dienstag, 28. Juni 2011 09:19
An: Discussion of the development of and with GStreamer
Betreff: Re: Help - Using GStreamer decoders to decode

 

Hi Bernhard,

  I will be using appsrc element to push buffers, appsink element to grab the decoded frame and my decoder will be ffdec_mpeg2video

 

-Ashwini

On Tue, Jun 28, 2011 at 12:45 PM, Bernhard Graaf <[hidden email]> wrote:

Hi Ashwini,

 

Do you have more details about what appsrc, decoder and appsink you want to use? It’s a little bit different.

 

Bernhard

 


Von: gstreamer-devel-bounces+bernhard.graaf=gmx.de@lists.freedesktop.org [mailto:[hidden email]=gmx.de@lists.freedesktop.org] Im Auftrag von Ashwini Sharma
Gesendet: Dienstag, 28. Juni 2011 07:49
An: Discussion of the development of and with GStreamer
Betreff: Help - Using GStreamer decoders to decode

 

Hi All,

 

  I am writing an mediaplay application in which i have to use GStreamer decoders to decode data and send it back. For the purpose I am going to use "appsrc ! decoder ! appsink" . Where decoder can be a specific decoder or decodebin.

 

I will be reading the file, demuxing it and then send the demuxed packet to GStreamer decoder part as described above. Here I want to know few things....

 

  1. Does the  decoder in gstreamer output a complete Frame or is it partial data? I assume it to be a complete frame... please correct my assumption.
  2. Can I know from the output buffer/frame (at src pad of decoder), whether it is a Key-frame or not?
  3. Is it possible to check whether the complete frame can be generated from the given demuxed data or does it require more?
  4. Is there any way to get the PTS of the decoded frame?

Please help, as this is urgent for me.

 

Thanks,

Ashwini


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

Re: Help - Using GStreamer decoders to decode

Kapil Agrawal
In reply to this post by ak.ashwini
1. Yes
2. Yes
3. You can do that by making changes in the decoder plugin , but I doubt in application you can do that.
4. Yes the buffer at decoder srcpad gives PTS for that frame of data contained in buffer.

On Tue, Jun 28, 2011 at 11:18 AM, Ashwini Sharma <[hidden email]> wrote:
Hi All,
 
  I am writing an mediaplay application in which i have to use GStreamer decoders to decode data and send it back. For the purpose I am going to use "appsrc ! decoder ! appsink" . Where decoder can be a specific decoder or decodebin.
 
I will be reading the file, demuxing it and then send the demuxed packet to GStreamer decoder part as described above. Here I want to know few things....
 
  1. Does the  decoder in gstreamer output a complete Frame or is it partial data? I assume it to be a complete frame... please correct my assumption.
  2. Can I know from the output buffer/frame (at src pad of decoder), whether it is a Key-frame or not?
  3. Is it possible to check whether the complete frame can be generated from the given demuxed data or does it require more?
  4. Is there any way to get the PTS of the decoded frame?
Please help, as this is urgent for me.
 
Thanks,
Ashwini

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




--
www.mediamagictechnologies.com (Gstreamer, ffmpeg, Red5, Streaming)
twitter handle: @gst_kaps
http://www.linkedin.com/in/kapilagrawal

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

Re: Help - Using GStreamer decoders to decode

sreerenj
For key frame , check the buffer flag GST_BUFFER_FLAG_DELTA_UNIT.

On Tue, Jun 28, 2011 at 10:37 AM, Kapil Agrawal <[hidden email]> wrote:
1. Yes
2. Yes
3. You can do that by making changes in the decoder plugin , but I doubt in application you can do that.
4. Yes the buffer at decoder srcpad gives PTS for that frame of data contained in buffer.

On Tue, Jun 28, 2011 at 11:18 AM, Ashwini Sharma <[hidden email]> wrote:
Hi All,
 
  I am writing an mediaplay application in which i have to use GStreamer decoders to decode data and send it back. For the purpose I am going to use "appsrc ! decoder ! appsink" . Where decoder can be a specific decoder or decodebin.
 
I will be reading the file, demuxing it and then send the demuxed packet to GStreamer decoder part as described above. Here I want to know few things....
 
  1. Does the  decoder in gstreamer output a complete Frame or is it partial data? I assume it to be a complete frame... please correct my assumption.
  2. Can I know from the output buffer/frame (at src pad of decoder), whether it is a Key-frame or not?
  3. Is it possible to check whether the complete frame can be generated from the given demuxed data or does it require more?
  4. Is there any way to get the PTS of the decoded frame?
Please help, as this is urgent for me.
 
Thanks,
Ashwini

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




--
www.mediamagictechnologies.com (Gstreamer, ffmpeg, Red5, Streaming)
twitter handle: @gst_kaps
http://www.linkedin.com/in/kapilagrawal

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




--
Sreerenj Balachandran (Intel OTC, Finland)
https://github.com/sreerenjb

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

Re: Help - Using GStreamer decoders to decode

ak.ashwini
In reply to this post by Kapil Agrawal
Hi Kapil,
 
 Can you suggest what kind of changes or checks i should perform in the decoder plugin to fullfill the point no. 3?
for 4. is it the buffer timestamp which is PTS for that buffer?
 
-Ashwini


On Tue, Jun 28, 2011 at 1:07 PM, Kapil Agrawal <[hidden email]> wrote:
1. Yes
2. Yes
3. You can do that by making changes in the decoder plugin , but I doubt in application you can do that.
4. Yes the buffer at decoder srcpad gives PTS for that frame of data contained in buffer.

On Tue, Jun 28, 2011 at 11:18 AM, Ashwini Sharma <[hidden email]> wrote:
Hi All,
 
  I am writing an mediaplay application in which i have to use GStreamer decoders to decode data and send it back. For the purpose I am going to use "appsrc ! decoder ! appsink" . Where decoder can be a specific decoder or decodebin.
 
I will be reading the file, demuxing it and then send the demuxed packet to GStreamer decoder part as described above. Here I want to know few things....
 
  1. Does the  decoder in gstreamer output a complete Frame or is it partial data? I assume it to be a complete frame... please correct my assumption.
  2. Can I know from the output buffer/frame (at src pad of decoder), whether it is a Key-frame or not?
  3. Is it possible to check whether the complete frame can be generated from the given demuxed data or does it require more?
  4. Is there any way to get the PTS of the decoded frame?
Please help, as this is urgent for me.
 
Thanks,
Ashwini

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




--
www.mediamagictechnologies.com (Gstreamer, ffmpeg, Red5, Streaming)
twitter handle: @gst_kaps
http://www.linkedin.com/in/kapilagrawal

_______________________________________________
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