Results 1 to 1 of 1

Thread: problem in media duration while stream is played through QTgstreamer player

  1. #1
    Join Date
    Oct 2015
    Posts
    1
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Default problem in media duration while stream is played through QTgstreamer player

    Hi,

    I am working QT gstreamer player. I have played media coming on tcpserversrc through qtgstreamer player on ubuntu 14.04 LTS but when i query the media duration from qtgstreamer, i get the wrong value. I used following launch line to receive media and give it to sink:

    QString pipe1Descr = QString("tcpserversrc host=x.x.x.x port=3000 ! "
    "decodebin name=demux demux. ! "
    "autoaudiosink demux. !"
    "queue2 !"
    "imxipuvideotransform !"
    "imxeglvivsink force-aspect-ratio=false async=false");
    m_pipeline = QGst::Parse::launch(pipe1Descr).dynamicCast<QGst:: Pipeline>();

    But when i query duration with following code then it gives wrong duration:
    QGst:: DurationQueryPtr query = QGst:: DurationQuery::create(QGst::FormatTime);
    m_pipeline->query(query);
    return QGst::ClockTime(query->duration()).toTime();

    I am sending video from tcpclientsink with following launchline:
    pipeline = gst_parse_launch("filesrc location=E:/video/BismillahSalim.mp4 ! tcpclientsink host=x.x.x.x port=3000", &error);

    What can i do to get correct media duration from qtgstreamer?
    Last edited by vaibhav@wowvision.in; 15th October 2015 at 07:33. Reason: smileys were coming in between text

Similar Threads

  1. Media Player Example - removeMedia
    By Festus Hagen in forum Qt Programming
    Replies: 1
    Last Post: 1st June 2014, 15:52
  2. How to make media duration timer?
    By adutzu89 in forum Newbie
    Replies: 2
    Last Post: 11th October 2013, 09:21
  3. my media player
    By Fafa in forum Qt Programming
    Replies: 0
    Last Post: 23rd July 2011, 06:50
  4. media player problem
    By emrez in forum Qt Programming
    Replies: 1
    Last Post: 16th July 2010, 17:50
  5. Media Player for Windows.
    By merry in forum Qt Programming
    Replies: 6
    Last Post: 5th March 2008, 06:49

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.