Skip to content

Linux UI: Offer external playback when preview playback fails - #8264

Open
aanthoonyy wants to merge 5 commits into
HandBrake:masterfrom
aanthoonyy:LinuxUI--Offer-external-playback-when-preview-playback-fails
Open

aanthoonyy wants to merge 5 commits into
HandBrake:masterfrom
aanthoonyy:LinuxUI--Offer-external-playback-when-preview-playback-fails

Conversation

@aanthoonyy

Copy link
Copy Markdown
Contributor

Description of Change

Similar to Mac OS (I think) I added the ability to add an option to open a preview in an external player when the GTK preview fails.

Github Issue

#8247 (comment)

AI Usage

Select one option. If AI was used, briefly describe how.

  • No AI used.
  • AI-assisted: I wrote the changes and used AI for guidance, review, or troubleshooting.
  • AI-generated: AI produced most of the code or content in this pull request, even if I subsequently edited it.

I used AI to:

  • Find already put in place patterns and paradigms within the code base
  • Find methods within glib easily
  • Work through ideas with me
  • Find edge cases I would've never caught
  • Generate a .mkv file to test with
  • Generate code

I did not use AI to:

  • Outsource my thinking, AI works for me :D
  • Test the work
  • Write anything such as PRs or comments (never ever ever ever)

In general with every PR I put up, I hope that it does not come across as slop as I really try to put good effort into my contributions

Details:

Testing

Describe the tests performed, results, and platform versions tested. Note any testing limitations.

  • Windows 10+ (via MinGW)
  • macOS 10.13+
  • Fedora 44

Verified changes worked as expected, tried to find edge cases such as pressing play multiple times in a row but I'm not aware of any other edge cases

I did not test on BSD.

Screenshots / Activity logs (If Relevant)

image

@aanthoonyy

Copy link
Copy Markdown
Contributor Author

@ell1e Does this work as you'd expect?

@sr55 sr55 added the LinuxUI label Nov 14, 2026
@sr55 sr55 added this to the 1.12.0 milestone Nov 14, 2026
@ell1e

ell1e commented Nov 15, 2026

Copy link
Copy Markdown

I was curious and tried to build it, but there seems to be some msgfmt detection issue on NetBSD:

$ /usr/pkg/bin/gmake
CC="/usr/bin/gcc" CXX="/usr/bin/g++" /usr/pkg/bin/meson setup \
	/home/user/Projects/Code/HandBrake/build/gtk/ /home/user/Projects/Code/HandBrake/build/../gtk/ -Dc_args="-DLIBICONV_PLUG -mfpmath=sse -msse2 -fstack-protector-strong -D_FORTIFY_SOURCE=2" -Dc_link_args="-L/usr/pkg/lib -Wl,-R/usr/pkg/lib -fstack-protector-strong -L/usr/pkg/lib" --pkg-config-path=/home/user/Projects/Code/HandBrake/build/contrib/lib/pkgconfig: --prefix=/usr/local -Dhb-dir=/home/user/Projects/Code/HandBrake/build/ -Ddebug=false -Doptimization=2 -Db_lto=false -Dfdk-aac=disabled -Dx265=enabled -Dnuma=disabled -Dqsv=disabled -Dlibdovi=disabled -Dflatpak=false
The Meson build system
Version: 1.12.0
Source dir: /home/user/Projects/Code/HandBrake/gtk
Build dir: /home/user/Projects/Code/HandBrake/build/gtk
Build type: native build
Project name: handbrake-gtk
Project version: 20261113-git-a0a1c2b90
C compiler for the host machine: /usr/bin/gcc (gcc 12.5.0 "gcc (nb3 20260326) 12.5.0")
C linker for the host machine: /usr/bin/gcc ld.bfd 2.42
C++ compiler for the host machine: /usr/bin/g++ (gcc 12.5.0 "g++ (nb3 20260326) 12.5.0")
C++ linker for the host machine: /usr/bin/g++ ld.bfd 2.42
Host machine cpu family: x86_64
Host machine cpu: x86_64
Library handbrake found: YES
Found pkg-config: YES (/usr/pkg/bin/pkg-config) 3.0.7
Run-time dependency dvdnav found: YES 7.0.0
Run-time dependency dvdread found: YES 7.1.1
Run-time dependency svtav1enc found: YES 4.3.0
Run-time dependency glib-2.0 found: YES 2.88.3
Run-time dependency gio-2.0 found: YES 2.88.3
Run-time dependency gthread-2.0 found: YES 2.88.3
Run-time dependency gmodule-2.0 found: YES 2.88.3
Run-time dependency gtk4 found: YES 4.22.4
Run-time dependency jansson found: YES 2.15.1
Run-time dependency libass found: YES 0.17.5
Run-time dependency libavcodec found: YES 63.1.102
Run-time dependency libavfilter found: YES 12.1.102
Run-time dependency libavformat found: YES 63.1.102
Run-time dependency libavutil found: YES 61.1.102
Run-time dependency libbluray found: YES 1.5.1
Run-time dependency libudfread found: YES 1.2.0
Run-time dependency libswresample found: YES 7.1.102
Run-time dependency libswscale found: YES 10.1.102
Run-time dependency libturbojpeg found: YES 3.2.1
Run-time dependency libxml-2.0 found: YES 2.15.4
Run-time dependency ogg found: YES 1.3.6
Run-time dependency theoradec found: YES 1.2.0
Run-time dependency theoraenc found: YES 1.2.0
Run-time dependency threads found: YES
Run-time dependency vorbis found: YES 1.3.7
Run-time dependency vorbisenc found: YES 1.3.7
Run-time dependency x264 found: YES 0.165.x
Run-time dependency x265 found: YES 4.3
Checking for function "dlopen" : YES
Checking for function "iconv" : YES
Checking for function "strerror_r" : YES
Compiler for C supports arguments -Wno-missing-field-initializers: YES
Compiler for C supports arguments -Wno-sign-compare: YES
Compiler for C supports arguments -Wno-unused-parameter: YES
Compiler for C supports arguments -Wignored-qualifiers: YES
Compiler for C supports arguments -Wimplicit-function-declaration: YES
Compiler for C supports arguments -Wincompatible-pointer-types: YES
Compiler for C supports arguments -Wint-conversion: YES
Compiler for C supports arguments -Wint-to-pointer-cast: YES
Compiler for C supports arguments -Wlogical-op: YES
Compiler for C supports arguments -Wmissing-format-attribute: YES
Compiler for C supports arguments -Wmissing-noreturn: YES
Compiler for C supports arguments -Wmissing-include-dirs: YES
Compiler for C supports arguments -Wnested-externs: YES
Compiler for C supports arguments -Wold-style-definition: YES
Compiler for C supports arguments -Woverflow: YES
Compiler for C supports arguments -Wpointer-to-int-cast: YES
Compiler for C supports arguments -Wshadow: YES
Compiler for C supports arguments -Wstrict-prototypes: YES
Compiler for C supports arguments -Wunused: YES
Compiler for C supports arguments -Wwrite-strings: YES
Compiler for C supports link arguments -Wl,--export-dynamic: YES
Compiler for C supports link arguments -Wl,--exclude-libs,ALL: YES
Program /usr/pkg/bin/msgfmt found: NO

../gtk/po/meson.build:7:40: ERROR: Program '/usr/pkg/bin/msgfmt' not found or not executable

The tool does exist, but it's in a different location: /usr/bin/msgfmt

@aanthoonyy

Copy link
Copy Markdown
Contributor Author

Sorry I can't really comment on this because I don't know anything about this unfortunately

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

3 participants