Handbrake 1.3.1 Flatpak does not detect or list disk drives

Support for HandBrake on Linux, Solaris, and other Unix-like platforms
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
allenb
Posts: 3
Joined: Tue Mar 03, 2020 1:33 pm

Handbrake 1.3.1 Flatpak does not detect or list disk drives

Post by allenb »

Description of problem or question:
Handbrake 1.3.1 GUI, Flatpak version installed on Linux Mint 19.3, XFCE 64-bit version -- "Open Source" button opens window, but "Detected DVD devices" drop-down menu includes only "Not Selected," while normally /dev/sr0 (SATA disk drive installed in desktop computer) and /dev/sr1 (external USB CD/DVD drive) are detected and listed, and can be opened as source when using older Handbrake 1.1.0 from Ubuntu repositories.



Steps to reproduce the problem (If Applicable):
1. Put DVD in CD/DVD drive (automounts)
2. Click "Open Source" button in Handbrake 1.3.1 GUI
3. In source-selection window, under "Detected DVD devices," no device appears
4. In same window, find VIDEO_TS file of mounted DVD and attempt to select and open it ("no title found")
5. Unmount DVD, attempt steps 2 & 3 above to see if DVD drive is now detected and listed (it is not)



HandBrake version (e.g., 1.0.0):
Handbrake 1.3.1, Flatpak version installed using the Linux Mint Software Manager (which has built-in Flatpak support)



Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
Linux Mint 19.3 XFCE edition, based on Ubuntu 18.04



HandBrake Activity Log ***required*** (see How-to get an activity log)

Code: Select all

[06:53:21] gtkgui: HandBrake 1.3.1 (2020020500) - Linux x86_64 - https://handbrake.fr
[06:53:21] Nvenc version 8.1

[06:53:21] NVENC version not supported. Disabling feature.
[06:53:21] hb_init: starting libhb thread
[06:53:21] hb_init: starting libhb thread
[06:53:21] hb_init: starting libhb thread
[06:53:36] CPU: Intel(R) Core(TM) i7-3930K CPU @ 3.20GHz
[06:53:36]  - Intel microarchitecture Sandy Bridge
[06:53:36]  - logical processor count: 12
[06:53:36] hb_scan: path=/media/xscd/DVD_VIDEO_RECORDER/VIDEO_TS, title_index=0
disc.c:323: failed opening UDF image /media/xscd/DVD_VIDEO_RECORDER/VIDEO_TS
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2585: nav_get_title_list(/media/xscd/DVD_VIDEO_RECORDER/VIDEO_TS/) failed
[06:53:36] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread: Can't stat /media/xscd/DVD_VIDEO_RECORDER/VIDEO_TS
Permission denied
libdvdread: Could not open /media/xscd/DVD_VIDEO_RECORDER/VIDEO_TS
libdvdnav: vm: failed to open/read the DVD
[06:53:36] dvd: not a dvd - trying as a stream/file instead
[06:53:36] hb_stream_open: open /media/xscd/DVD_VIDEO_RECORDER/VIDEO_TS failed
[06:53:36] scan: unrecognized file type
[06:53:36] libhb: scan thread found 0 valid title(s)
[07:04:20] CPU: Intel(R) Core(TM) i7-3930K CPU @ 3.20GHz
[07:04:20]  - Intel microarchitecture Sandy Bridge
[07:04:20]  - logical processor count: 12
[07:04:20] hb_scan: path=/media/xscd/DVD_VIDEO_RECORDER/VIDEO_TS, title_index=0
disc.c:323: failed opening UDF image /media/xscd/DVD_VIDEO_RECORDER/VIDEO_TS
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2585: nav_get_title_list(/media/xscd/DVD_VIDEO_RECORDER/VIDEO_TS/) failed
[07:04:20] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread: Can't stat /media/xscd/DVD_VIDEO_RECORDER/VIDEO_TS
Permission denied
libdvdread: Could not open /media/xscd/DVD_VIDEO_RECORDER/VIDEO_TS
libdvdnav: vm: failed to open/read the DVD
[07:04:20] dvd: not a dvd - trying as a stream/file instead
[07:04:20] hb_stream_open: open /media/xscd/DVD_VIDEO_RECORDER/VIDEO_TS failed
[07:04:20] scan: unrecognized file type
[07:04:20] libhb: scan thread found 0 valid title(s)

(ghb:2): Gtk-CRITICAL **: 07:05:02.061: gtk_widget_set_visible: assertion 'GTK_IS_WIDGET (widget)' failed
[07:05:04] CPU: Intel(R) Core(TM) i7-3930K CPU @ 3.20GHz
[07:05:04]  - Intel microarchitecture Sandy Bridge
[07:05:04]  - logical processor count: 12
[07:05:04] hb_scan: path=/media/xscd/DVD_VIDEO_RECORDER/VIDEO_TS, title_index=0
disc.c:323: failed opening UDF image /media/xscd/DVD_VIDEO_RECORDER/VIDEO_TS
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2585: nav_get_title_list(/media/xscd/DVD_VIDEO_RECORDER/VIDEO_TS/) failed
[07:05:04] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread: Can't stat /media/xscd/DVD_VIDEO_RECORDER/VIDEO_TS
Permission denied
libdvdread: Could not open /media/xscd/DVD_VIDEO_RECORDER/VIDEO_TS
libdvdnav: vm: failed to open/read the DVD
[07:05:04] dvd: not a dvd - trying as a stream/file instead
[07:05:04] hb_stream_open: open /media/xscd/DVD_VIDEO_RECORDER/VIDEO_TS failed
[07:05:04] scan: unrecognized file type
[07:05:04] libhb: scan thread found 0 valid title(s)

Woodstock
Veteran User
Posts: 3618
Joined: Tue Aug 27, 2013 6:39 am

Re: Handbrake 1.3.1 Flatpak does not detect or list disk drives

Post by Woodstock »

Since handbrake has no decryption capability, giving it special access to optical disks is a moot point.

allenb
Posts: 3
Joined: Tue Mar 03, 2020 1:33 pm

Re: Handbrake 1.3.1 Flatpak does not detect or list disk drives

Post by allenb »

Woodstock wrote:
Tue Mar 03, 2020 6:29 pm
Since handbrake has no decryption capability, giving it special access to optical disks is a moot point.
I don't believe that this homemade DVD is encrypted. Is there a way to tell whether it is or not, or whether that is the problem? Thanks.

A non-Flatpak older version of Handbrake (1.1.0), both detects the available DVD drives, and loads their contents using the "Open Source" button or function.

User avatar
JohnAStebbins
HandBrake Team
Posts: 5575
Joined: Sat Feb 09, 2008 7:21 pm

Re: Handbrake 1.3.1 Flatpak does not detect or list disk drives

Post by JohnAStebbins »

To access optical discs, the flatpak needs full device access. By default, I set as restrictive permissions as possible on the package. You can override this with the "flatpak override" command. I think this is sufficient

Code: Select all

flatpak override --device=all org.handbrake.ghb

allenb
Posts: 3
Joined: Tue Mar 03, 2020 1:33 pm

Re: Handbrake 1.3.1 Flatpak does not detect or list disk drives

Post by allenb »

JohnAStebbins wrote:
Tue Mar 03, 2020 9:05 pm
To access optical discs, the flatpak needs full device access. By default, I set as restrictive permissions as possible on the package. You can override this with the "flatpak override" command. I think this is sufficient

Code: Select all

flatpak override --device=all org.handbrake.ghb
Thank you John for your reply and help. I issued the following command--

Code: Select all

sudo flatpak override --device=all org.handbrake.ghb
--and it did create a file in/var/lib/flatpak/overrides/org.handbrake.ghb, the content of which is--

Code: Select all

[Context]
devices=all;
Then I launched handbrake, but that command and file did not change the issue (no DVD drives were detected or listed to open as source). I rebooted the computer and tried again, with the same result, and then modified the command you suggested as follows--

Code: Select all

sudo flatpak override --device=all fr.handbrake.ghb
--because the app was installed by the Linux Mint Software Manager as fr.handbrake.ghb, but still there was no effect. The command to launch Handbrake in my XFCE menu is--

Code: Select all

/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=ghb --file-forwarding fr.handbrake.ghb @@ %f @@
So the issue persists so far.

Activity log after launching Handbrake and using the Open Source button which opens its own window (no CD/DVD drives were detected or listed).

Code: Select all

[19:35:03] gtkgui: HandBrake 1.3.1 (2020020500) - Linux x86_64 - https://handbrake.fr
[19:35:03] Nvenc version 8.1

[19:35:03] NVENC version not supported. Disabling feature.
[19:35:03] hb_init: starting libhb thread
[19:35:03] hb_init: starting libhb thread
[19:35:03] hb_init: starting libhb thread

User avatar
JohnAStebbins
HandBrake Team
Posts: 5575
Joined: Sat Feb 09, 2008 7:21 pm

Re: Handbrake 1.3.1 Flatpak does not detect or list disk drives

Post by JohnAStebbins »

ah, right, "fr.handbrake.ghb" is the correct package name. I'm not sure why it still doesn't see the DVD device. I'll have to do some digging...

Post Reply