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. qt.multimedia.ffmpeg.mediadataholder: Could not open media. FFmpeg error description: Permission denied
Forum Updated to NodeBB v4.3 + New Features

qt.multimedia.ffmpeg.mediadataholder: Could not open media. FFmpeg error description: Permission denied

Scheduled Pinned Locked Moved Unsolved Qt Multimedia
8 Posts 2 Posters 263 Views 1 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.
  • L Offline
    L Offline
    lohnjohn
    wrote last edited by
    #1

    This used to work prior to updating Tumbleweed. Now, I cannot play media files from a smb (or sftp) network shared location. Here was my workflow: Open Dolphin, navigate to network share, enter credentials, then double click any file and have it open. Media files (pictures, videos) open in Gwenview. Images still open fine, but the video files throw this permission error. I've been searching for days and days for any help, and since QT.multimedia is in the title of the error, I am posting here. Here is more from the warning/error log: https://pastebin.com/xnJhVZTy

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

      Hi,

      Looks like it is not specific to Qt Multimedia. The kio framework also seems to have trouble with these.
      Did you check the file permissions on that share ?

      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
      • L Offline
        L Offline
        lohnjohn
        wrote last edited by
        #3

        I'm not entirely sure how the permissions are being shared, but presumably KIO has something to do with that and the KIO worker is failing at some point at getting the permission to ffmpeg (which I think goes through QT.multimedia). So not sure if it is compatibility or what changed with the update. Yeah, file permission didn't change, and I can open jpg from the exact same folder with the same permission 644. Not sure how ffmpeg normally is supposed to inherit the access permission, but that process broke apparently during the update. Any ideas what could be going on? or who else to bug :)?

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

          Can you open one of these video with ffmpeg on the command line ?

          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
          • L Offline
            L Offline
            lohnjohn
            wrote last edited by lohnjohn
            #5

            [smb @ 0x55e9880a4e80] File open failed: Permission denied
            [in#0 @ 0x55e9980a4580] Error opening input: Permission denied
            Error opening input file smb://username@server//path/to/file.mp4
            Error opening input files: Permission denied

            The command I used was ffmpeg -i smb://username@server//path/to/file.mp4 test.mp4

            1 Reply Last reply
            0
            • L Offline
              L Offline
              lohnjohn
              wrote last edited by
              #6

              if I change the command to -i smb://username:password@server.... it works. Same for running gwenview from the cli, if I have username:password in the file path, it will work.... but, double clicking files from Dolphin (which used to work) doesn't, because whatever in the backend was getting the password to ffmpeg apparently has broken. Again, jpgs and other filetypes can be opened from dolphin double click action, but not these video files.

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

                So it seems to be at a different level than Qt alone.

                I would check if there's something with the distribution, then KDE.

                Are you storing your credentials in KWallet ? If so, is it properly opened ?

                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
                • L Offline
                  L Offline
                  lohnjohn
                  wrote last edited by
                  #8

                  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?

                  1 Reply Last reply
                  0

                  • Login

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