Skip to content

Qt Multimedia

This is a discussion space for

  • for audio / video playback and recording
  • media formats and codecs
  • camera and screen sharing functionality
48 Topics 203 Posts
  • qt6 QMediaDevices::audioInputs() does not return all input devices

    Unsolved
    2
    0 Votes
    2 Posts
    32 Views
    R
    It was rude of my not to include some code. Here is the relevant snippet from the qt6 example: void AudioTest::updateAudioDevices() { deviceBox->clear(); const auto devices = m_mode == QAudioDevice::Input ? m_devices->audioInputs() : m_devices->audioOutputs(); for (auto &deviceInfo : devices) { QString description = deviceInfo.description(); description.replace(u"\n"_s, u" - "_s); deviceBox->addItem(description, QVariant::fromValue(deviceInfo)); } }
  • Problem with playing sound via ffmpeg backend

    Unsolved
    4
    0 Votes
    4 Posts
    203 Views
    SGaistS
    You can run ldd on your libreoffice binary to see which libraries are linked. To enable logging categories, you have the different options describe in the documentation.
  • QVideoSink::videoFrameChanged not fired when dragging application window

    Unsolved
    7
    0 Votes
    7 Posts
    254 Views
    jsulmJ
    @BrianL said in QVideoSink::videoFrameChanged not fired when dragging application window: C:/Qt6/6.10.0/mingw_64/plugins/multimedia/ffmpegmediaplugin.dll You're using ffmpeg backend
  • How to provide SRT file to QMediaPlayer

    Moved Solved
    4
    0 Votes
    4 Posts
    673 Views
    J
    @Sikander-Rafiq said in How to provide SRT file to QMediaPlayer: I have manually added Subtitles support in my QT app Would you be so kind as to share some clues about how you did it? I'm building a PySide6 app for editing/translating subtitles, using libmpv to display the video with subtitles. But my app has to save a whole SRT file just to show one freshly-edited subtitle (even when the video is paused). So I'd be interested to know how to make a text overlay that can show text on a video (playing as well as paused). I suspect that you used a text overlay, as I could not see any other way to do it, last time I looked (maybe a year ago). Edit: I hope you meant Qt (cute), not QT (cue tee), as I'm not interested in Apple QuickTime. ;)
  • Qt Multimedia 6.7.2 with ffmpeg cannot decode h264 on Pi5

    Moved Unsolved
    3
    0 Votes
    3 Posts
    676 Views
    C
    I have a similar issue with an opi 5 (rk3588) and I can't get the hardware decoding to work at all. I am guessing that QT is using its own FFMPEG instead of the platform one.
  • Status of video playback on WebAssembly

    Unsolved
    1
    0 Votes
    1 Posts
    90 Views
    No one has replied
  • QMediaplayer 6 bad performance

    Moved Unsolved qmediaplayer 6.2
    11
    0 Votes
    11 Posts
    2k Views
    N
    Sounds like something we should improve in Qt 6 then. Could you please submit a bugreport to https://bugreports.qt.io, along with the following info? The Qt version tested Details on your machine (Windows in this case) The media backend used (Windows-native vs FFmpeg) A reproducer (including a video sample that we can use for testing)
  • 0 Votes
    8 Posts
    856 Views
    L
    Yes, on further investigation. Dolphin and the 'browse' function of Gwenview all give a basic sort of pop-up window to enter the smb credentials, and then don't seem to be able to pass those credentials to ffmpeg to play videos. BUT, if I enter the credentials in Thunar or PCManFM (which has a different style credentials popup) and then double click the file, gwenview opens and can play the files. So I do not know the difference between how the credentials are being saved/stored/shared between the 2 apps, but I do know that one works, and the other broke with the recent update. It's very odd that gwenview cannot do it itself by 'browsing' to the file location, but an external file manager can do it and then send the credentials to the right place for video playback (reminder that basic photo viewing works, it's just the video playback which has broken). I appreciate your time and help, even if it doesn't seem to be qt.multimedia related. Do you know the different methods of how ffmpeg can get permission from other processes?
  • Using QCamera WITHOUT Viewfinder

    Moved Unsolved
    3
    0 Votes
    3 Posts
    723 Views
    N
    This definitely looks like a usecase that we should support in Qt Multimedia. Can you check if you are still experiencing this issue, and if you are, could you file a bugreport on bugreports.qt.io? Please include the platform you are using, the Qt version, as well as the media backend you are using (FFmpeg vs. native)
  • HDR example code?

    Unsolved
    3
    0 Votes
    3 Posts
    661 Views
    J
    Thank you for the information. I would have responded sooner, but I did not receive a notification of your reply.
  • QMediaPlayer mp3 playback stalled

    Moved Unsolved
    10
    0 Votes
    10 Posts
    1k Views
    JoeCFDJ
    @nova_xo I am not sure either. But be aware that some delay is often needed in the pipeline for state or position change. Good you found the solution. I use raw gstreamer code and can find out where waiting is exactly needed. You may need to guess a bit with Qt.
  • No supported format in QAudioFormat

    Moved Solved
    2
    0 Votes
    2 Posts
    367 Views
    DanekoD
    I updated to Qt 6.9.0 and Qt Creator 16.0.1 and problem disappeared!
  • Qt6 QVideoSink Not Getting Frames from V4L2 Webcam

    Moved Unsolved
    2
    0 Votes
    2 Posts
    613 Views
    JoeCFDJ
    @FestivalPanda said in Qt6 QVideoSink Not Getting Frames from V4L2 Webcam: 6.2.4 QMultimedia module was basically reworked from Qt6. Qt 6.2.4 might be too new. Better to try the latest Qt6. Also better to use gstreamer + qml sink directly. The example is here: https://github.com/GStreamer/gst-plugins-good/blob/master/tests/examples/qt/qmlsink/main.cpp
  • Reading RTP ethernet Camera Stream formatted to H264

    Moved Unsolved
    4
    0 Votes
    4 Posts
    561 Views
    JoeCFDJ
    @MaximBozek Gstreamer version and OS? Qt 5 supports running gstreamer pipeline in multimedia module. However, it is better to use gstreamer + qml sink directly and you can have better control. Did you try QML sink example? https://github.com/GStreamer/gst-plugins-good/blob/master/tests/examples/qt/qmlsink/main.cpp
  • QScreenCapture and X11 virtual framebuffer

    Moved Unsolved
    2
    0 Votes
    2 Posts
    410 Views
    SGaistS
    Hi, Interesting one ! As is, I don't think so, at least from an "external application" recording point of view. I think it should work if the application is started on the virtual frame buffer.
  • Audio through QAudioOutput

    Moved Solved
    5
    0 Votes
    5 Posts
    979 Views
    S
    @Christian-Ehrlicher This was the issue , Thank you very much it is solved now.
  • QAudioDevice and (un)supported QAudioFormat formats

    Moved Unsolved
    1
    0 Votes
    1 Posts
    259 Views
    No one has replied
  • 0 Votes
    6 Posts
    1k Views
    JoeCFDJ
    @mrkprdo these are ffmpeg libs which need to be installed with your app as well. I guess there are about 8 core libs in total. It is better for you to add all of them. libavutil Utilities Shared code, math functions, cryptography libavcodec Encoding/Decoding 1000+ codec support (H.264, VP9, AAC, etc.) libavformat Container I/O 300+ formats (MP4, MKV, MP3, etc.) libavdevice Device I/O Webcams, capture cards, framebuffer libavfilter Filtering Video/audio effects (blur, crop, mix) libswscale Image Scaling Color conversion, resizing libswresample Audio Processing Resampling, mixing, format conversion libpostproc Postprocessing Legacy video filters (deblocking)
  • Changing Audio Sample Rate with QMediaRecord

    Moved Unsolved
    3
    0 Votes
    3 Posts
    621 Views
    L
    im on Windows with version 6.8.2 Thanks for letting me know! I figured out another work around so for now I should be good!
  • QT6.4 Streaming - Mediaplayer

    Moved Unsolved
    2
    1 Votes
    2 Posts
    502 Views
    M
    Hi @Fikrat Have you found any solution for your problem? We have migrating app from Qt 6.3.2 to Qt 6.7.3 and we met this problem too