Important: Please read the Qt Code of Conduct -

Gstreamer can't play video only sound

  • Dear all,

    I used videowidget samples to play a video.
    But only sound is play ( audio-sink), video don't show anything on screen.
    Only error message "failed to start video surface"
    I guess I need to modify qgstreamerplayersession.cpp in qtmultimedia/src/plugins/gstreamer/mediaplayer
    Because in this file video-sink is fakesink.
    But I don't know how to modify it for showing video stream.
    Could you please help me ?
    My Qt has already built with Gstreamer.
    Thank you so much !

  • Have you solved this problem?
    Same to mine.I used CentOS6.3 ,and I has installed Gsteamer good/bad/ugly .But when I run this demo,it just can play ".mp3".
    When I play mp4 or avi or mkv, it shown me "Internal data stream error" or "GStreamer encountered a general stream error".

  • Dear cslw,
    Unfortunately, I have not found solution for this problem yet.
    I tried to modify qgstreamerplayersession.cpp many times, but the issue still occurs.
    I got same error with you "GStreamer encountered a general stream error"
    I will update this topic if i find the solutions.

Log in to reply