file play position using GstDiscover

Mayank Agarwal mayank77fromindia at gmail.com
Mon Apr 6 05:30:36 PDT 2015


Hi,

I have compiled gstreamer tutorial 9 and is able to get the following
stream info regarding file playing:

Discovering 'file:///sometsfile.ts'

(filegstreamerversionzero:25348): GStreamer-CRITICAL **: Could not
convert static caps "video/mpeg, mpegversion = (int) { 1, 2, 4 },
width=(int)[ 1, MAX ], height=(int)[ 1, MAX ] ;systemstream =
(boolean) FALSE; video/x-h264;video/x-dirac;video/x-wmv,wmvversion =
(int) 3, format = (fourcc) WVC1"
Discovered 'file:///opt/www/received_spts1.ts'

Duration: 0:00:00.000000000
Tags:
  audio codec: MPEG 1 Audio, Layer 2
  nominal bitrate: 384000
  has crc: true
  channel mode: stereo
  minimum bitrate: 4294967295
  bitrate: 384000
  maximum bitrate: 0
Seekable: no

Stream information:
  container: MPEG-2 Transport Stream
    audio: MPEG-1 Layer 3 (MP3)
      audio: MPEG-1 Layer 2 (MP2)
        Tags:
          audio codec: MPEG 1 Audio, Layer 2
          nominal bitrate: 384000
          has crc: true
          channel mode: stereo
          minimum bitrate: 4294967295
          bitrate: 384000
          maximum bitrate: 0
    video: MPEG-2 Video

Finished discovering


But the above information is static and none of the parameters give
real time info
I want to get actual frame rate,current play position of file in real time.
First is it possible to make changes to tutorial 9 to get this info

Any hints how can it be done.

Regards
Mayank


More information about the gstreamer-devel mailing list