Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Multimedia
  4. I need to use an ffmpeg argument in a Qt video player
Qt 6.11 is out! See what's new in the release blog

I need to use an ffmpeg argument in a Qt video player

Scheduled Pinned Locked Moved Unsolved Qt Multimedia
4 Posts 3 Posters 1.7k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    Zoox
    wrote on last edited by Zoox
    #1

    I'm trying to play a video stream in a Qt6 application, but i'm getting this error at some point:

    [hls @ 0000018D40E09880] Filename extension of 'data:application/octet-stream;base64,K5sAj2KWglQkHrLHwQlEdg==' is not a common multimedia extension, blocked for security reasons.
    If you wish to override this adjust allowed_extensions, you can set it to 'ALL' to allow all
    

    In order to allow ffmpeg playing that stream, I would need to pass -allowed_extensions ALL to ffplay, for instance. But i'm not too sure if I can do something to allow it when using ffmpeg from inside Qt.

    What options do I have in this instance? As documented here there are some environment variables that can be used to modify ffmpeg, but none of them are referring to "allowed_extensions".

    Any ideas of what can I do?

    Thanks in advance.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      From the looks of it that is an option that is exclusive to the hls demuxer.
      You might want to check the bug report system and if there's nothing there open a feature request.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • C Offline
        C Offline
        ChrisW67
        wrote on last edited by
        #3

        What sort of multimedia stream fits in a 16-byte embedded block of data anyway?

        Z 1 Reply Last reply
        0
        • C ChrisW67

          What sort of multimedia stream fits in a 16-byte embedded block of data anyway?

          Z Offline
          Z Offline
          Zoox
          wrote on last edited by
          #4

          @ChrisW67 It's an HLS encrypted stream, and those 16 bytes are the encryption key

          1 Reply Last reply
          0
          • Nhan NguyenN Nhan Nguyen moved this topic from General and Desktop on

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved