Flatpak: No preview because of missing GStreamer plugin

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
sm80
Posts: 3
Joined: Mon Nov 02, 2020 1:04 pm

Flatpak: No preview because of missing GStreamer plugin

Post by sm80 »

Description of problem or question:

I installed the latest version (1.3.3) with flatpak on Kubuntu 18.04. At first I thought that everything is working fine, but then I noticed that the preview doesn't work properly. More details can be found in the following section.


Steps to reproduce the problem (If Applicable):

Open an arbitrary video. Open preview windows. Click on start-button to start encoding the preview. After the encodingthe preview, the preview should start. Instead, I'm shown the following error message:

"Missing GStreamer plugin
Audio or Video may not play as expected

H.265 (Main Profile)-Decoder"

Audio and video preview will not play. The trackbar is moving, but the video is not.

I did try to install different gstreamer libraries with apt, but I didn't expect this to help and it didn't. I also tried to find a solution myself and found this topic, but I was unsuccessful.


HandBrake version (e.g., 1.0.0):

1.3.3


Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):

Kubuntu 18.04


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

Code: Select all

[14:09:29] gtkgui: HandBrake 1.3.3 (2020061300) - Linux x86_64 - https://handbrake.fr
[14:09:29] Nvenc version 10.0

[14:09:29] hb_init: starting libhb thread
[14:09:29] hb_init: starting libhb thread
[14:09:29] hb_init: starting libhb thread
[14:09:33] CPU: Intel(R) Core(TM) i7-7800X CPU @ 3.50GHz
[14:09:33]  - logical processor count: 12
[14:09:33] Intel Quick Sync Video support: no
[14:09:33] hb_scan: path=/home/user/temp/dvdrip/testvideo.mp4, title_index=0
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /home/user/temp/dvdrip/testvideo.mp4
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(/home/user/temp/dvdrip/testvideo.mp4/) failed
[14:09:33] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[14:09:33] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/user/temp/dvdrip/testvideo.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.83.100
  Duration: 02:52:54.00, start: 0.000000, bitrate: 5923 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 5781 kb/s, 30 fps, 30 tbr, 90k tbn, 60 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 131 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
[14:09:33] scan: decoding previews for title 1
[14:09:33] scan: audio 0x1: aac, rate=48000Hz, bitrate=131951 Unknown (AAC LC) (2.0 ch) (131 kbps)
[14:09:33] scan: 10 previews, 1920x1080, 30,000 fps, autocrop = 4/0/0/0, aspect 16:9, PAR 1:1
[14:09:33] scan: supported video decoders: avcodec qsv
[14:09:33] libhb: scan thread found 1 valid title(s)
[14:09:42] Starting work at: Mon Nov  2 14:09:42 2020

[14:09:42] 1 job(s) to process
[14:09:42] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 160,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "av_aac",
                "Gain": 0.0,
                "Mixdown": "stereo",
                "NormalizeMixLevel": false,
                "PresetEncoder": "av_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac"
        ],
        "FallbackEncoder": "av_aac"
    },
    "Destination": {
        "AlignAVStart": true,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 2,
                    "Minutes": 52,
                    "Seconds": 53,
                    "Ticks": 933659550
                },
                "Name": ""
            }
        ],
        "ChapterMarkers": false,
        "File": "/tmp/hb.2/live01",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "m4v"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 3,
                "Settings": {
                    "block-height": "16",
                    "block-thresh": "40",
                    "block-width": "16",
                    "filter-mode": "2",
                    "mode": "3",
                    "motion-thresh": "1",
                    "spatial-metric": "2",
                    "spatial-thresh": "1"
                }
            },
            {
                "ID": 4,
                "Settings": {
                    "mode": "7"
                }
            },
            {
                "ID": 6,
                "Settings": {
                    "mode": 2,
                    "rate": "27000000/900000"
                }
            },
            {
                "ID": 12,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 4,
                    "height": 1076,
                    "width": 1920
                }
            }
        ]
    },
    "Metadata": {
        "Name": "testvideo"
    },
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "/home/user/temp/dvdrip/testvideo.mp4",
        "Range": {
            "End": 1350000,
            "SeekPoints": 10,
            "Start": 2,
            "Type": "preview"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "ColorFormat": 0,
        "ColorMatrix": 1,
        "ColorPrimaries": 1,
        "ColorRange": 0,
        "ColorTransfer": 1,
        "Encoder": "x264",
        "Level": "4.0",
        "Options": "",
        "Preset": "fast",
        "Profile": "main",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": false
        },
        "Quality": 22.0,
        "Tune": "",
        "Turbo": false,
        "TwoPass": false
    }
}
[14:09:42] CPU: Intel(R) Core(TM) i7-7800X CPU @ 3.50GHz
[14:09:42]  - logical processor count: 12
[14:09:42] Intel Quick Sync Video support: no
[14:09:42] hb_scan: path=/home/user/temp/dvdrip/testvideo.mp4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /home/user/temp/dvdrip/testvideo.mp4
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(/home/user/temp/dvdrip/testvideo.mp4/) failed
[14:09:42] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[14:09:42] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/user/temp/dvdrip/testvideo.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.83.100
  Duration: 02:52:54.00, start: 0.000000, bitrate: 5923 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 5781 kb/s, 30 fps, 30 tbr, 90k tbn, 60 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 131 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
[14:09:42] scan: decoding previews for title 1
[14:09:42] scan: audio 0x1: aac, rate=48000Hz, bitrate=131951 Unknown (AAC LC) (2.0 ch) (131 kbps)
[14:09:42] scan: 10 previews, 1920x1080, 30,000 fps, autocrop = 4/0/0/0, aspect 16:9, PAR 1:1
[14:09:42] scan: supported video decoders: avcodec qsv
[14:09:42] libhb: scan thread found 1 valid title(s)
[14:09:42] Starting Task: Encoding Pass
[14:09:42] job configuration:
[14:09:42]  * source
[14:09:42]    + /home/user/temp/dvdrip/testvideo.mp4
[14:09:42]    + title 1, start 00:00:0,00 stop 00:00:15,00
[14:09:42]    + container: mov,mp4,m4a,3gp,3g2,mj2
[14:09:42]    + data rate: 5923 kbps
[14:09:42]  * destination
[14:09:42]    + /tmp/hb.2/live01
[14:09:42]    + container: MPEG-4 (libavformat)
[14:09:42]      + align initial A/V stream timestamps
[14:09:42]  * video track
[14:09:42]    + decoder: h264
[14:09:42]      + bitrate 5781 kbps
[14:09:42]    + filters
[14:09:42]      + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[14:09:42]      + Decomb (mode=39)
[14:09:42]      + Framerate Shaper (mode=2:rate=27000000/900000)
[14:09:42]        + frame rate: 30,000 fps -> peak rate limited to 30,000 fps
[14:09:42]      + Crop and Scale (width=1920:height=1076:crop-top=4:crop-bottom=0:crop-left=0:crop-right=0)
[14:09:42]        + source: 1920 * 1080, crop (4/0/0/0): 1920 * 1076, scale: 1920 * 1076
[14:09:42]    + Output geometry
[14:09:42]      + storage dimensions: 1920 x 1076
[14:09:42]      + pixel aspect ratio: 1 : 1
[14:09:42]      + display dimensions: 1920 x 1076
[14:09:42]    + encoder: H.264 (libx264)
[14:09:42]      + preset:  fast
[14:09:42]      + profile: main
[14:09:42]      + level:   4.0
[14:09:42]      + quality: 22,00 (RF)
[14:09:42]      + color profile: 1-1-1
[14:09:42]  * audio track 1
[14:09:42]    + decoder: Unknown (AAC LC) (2.0 ch) (131 kbps) (track 1, id 0x1)
[14:09:42]      + bitrate: 131 kbps, samplerate: 48000 Hz
[14:09:42]    + mixdown: Stereo
[14:09:42]    + dither: triangular
[14:09:42]    + encoder: AAC (libavcodec)
[14:09:42]      + bitrate: 160 kbps, samplerate: 48000 Hz
[14:09:43] sync: expecting 480 video frames
[14:09:43] encx264: min-keyint: 30, keyint: 300
[14:09:43] encx264: encoding at constant RF 22,000000
[14:09:43] encx264: unparsed options: level=4.0:ref=2:8x8dct=0:weightp=1:subme=6:vbv-bufsize=25000:vbv-maxrate=20000:rc-lookahead=30
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 AVX512
x264 [info]: profile Main, level 4.0, 4:2:0, 8-bit
[14:09:43] sync: first pts video is 0
[14:09:43] sync: Chapter 1 at frame 1 time 0
[14:09:43] sync: first pts audio 0x1 is 0
[14:09:50] sync: reached video pts 1350000, exiting early
[14:09:50] sync: reached audio 0x1 pts 1351680, exiting early
[14:09:52] work: average encoding speed for job is 62,316830 fps
[14:09:52] comb detect: heavy 0 | light 23 | uncombed 427 | total 450
[14:09:52] decomb: deinterlaced 0 | blended 23 | unfiltered 427 | total 450
[14:09:52] vfr: 450 frames output, 0 dropped and 0 duped for CFR/PFR
[14:09:52] vfr: lost time: 0 (0 frames)
[14:09:52] vfr: gained time: 0 (0 frames) (0 not accounted for)
[14:09:52] aac-decoder done: 1818 frames, 0 decoder errors
[14:09:52] h264-decoder done: 1141 frames, 0 decoder errors
[14:09:52] sync: got 450 frames, 480 expected
[14:09:52] sync: framerate min 30,000 fps, max 30,000 fps, avg 30,000 fps
x264 [info]: frame I:3     Avg QP:19,76  size:114952
x264 [info]: frame P:179   Avg QP:22,82  size: 48647
x264 [info]: frame B:268   Avg QP:26,02  size: 20222
x264 [info]: consecutive B-frames: 16,4%  7,6% 14,7% 61,3%
x264 [info]: mb I  I16..4: 35,0%  0,0% 65,0%
x264 [info]: mb P  I16..4:  9,8%  0,0%  7,8%  P16..4: 39,6% 16,8%  7,0%  0,0%  0,0%    skip:19,1%
x264 [info]: mb B  I16..4:  4,8%  0,0%  1,4%  B16..8: 37,9% 13,6%  0,8%  direct: 6,7%  skip:34,8%  L0:51,4% L1:40,4% BI: 8,1%
x264 [info]: coded y,uvDC,uvAC intra: 32,5% 46,3% 15,7% inter: 14,1% 13,8% 0,7%
x264 [info]: i16 v,h,dc,p: 35% 32% 17% 16%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 24% 23%  4%  6%  5%  6%  4%  4%
x264 [info]: i8c dc,h,v,p: 52% 22% 20%  6%
x264 [info]: Weighted P-Frames: Y:0,6% UV:0,0%
x264 [info]: ref P L0: 81,5% 18,5%
x264 [info]: ref B L0: 91,3%  8,7%
x264 [info]: ref B L1: 97,4%  2,6%
x264 [info]: kb/s:7718,53
[14:09:52] mux: track 0, 450 frames, 14472116 bytes, 7701,35 kbps, fifo 512
[14:09:52] mux: track 1, 705 frames, 303262 bytes, 161,38 kbps, fifo 1024
[14:09:52] Finished work at: Mon Nov  2 14:09:52 2020

[14:09:52] libhb: work result = 0
AL lib: (EE) ALCplaybackOSS_open: Could not open /dev/dsp: Datei oder Verzeichnis nicht gefunden
AL lib: (EE) ALCplaybackOSS_open: Could not open /dev/dsp: Datei oder Verzeichnis nicht gefunden
The way I understand it, the flatpak package is missing the GStreamer plugin.

Can you please help me with this problem? If it will get complicated, please just tell me that: In this case, I'd probably rather downgrade to the old version available for my distribution on the launchpad PPA.

Thanks in advance for your efforts!
sm80
Posts: 3
Joined: Mon Nov 02, 2020 1:04 pm

Re: Flatpak: No preview because of missing GStreamer plugin

Post by sm80 »

Since I cannot find a way to edit my post above, here is some additional information in a separate post:

I did install the following packages with flatpak:
  • org.gnome.Platform/x86_64/3.28
  • org.gnome.Platform/x86_64/3.36
According to the flatpak runtime dokumentation this should contain GStreamer, but it didn't solve the problem stated in the post above.
sm80
Posts: 3
Joined: Mon Nov 02, 2020 1:04 pm

Re: Flatpak: No preview because of missing GStreamer plugin

Post by sm80 »

Since I didn't receive an answer yet, I assume that the solution for this problem is not an obvious one. Therefore, I decided to downgrade to the version available in the launchpad PPA and will not look for answers to my question anymore.
Post Reply