Preview plays audio but shows no images, only a black window

Bug #1745059 reported by Paulo Marcel Coelho Aragão
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
handbrake (Ubuntu)
New
Undecided
Unassigned

Bug Description

### Description of problem or feature request

`Show Preview` plays audio but doesn't show any images, only a black window. I have tried only with DVDs on disk (*VIDEO_TS* directories), around 6 different ones, and it happened the same with all of them.

I always used preset `H.264 MKV 1080p30`. I also tried the following previews: `Fast 1080p30`, `Very Fast 1080p30`, `Normal`, with the same results.

I ran **ghb** from the command line and no messages are output when I try to show a preview.

The encoding works correctly, it's only the preview which is showing no video.

I tried to select different preview frames, but the result was the same with all of them

I have just tried the latest nightly snapshot, **20180121174120-18a4158-master (x86_64)**, and the results were exactly the same.

I have reported this bug upstream and the handbrake team has updated me that the Ubuntu package is known to be broken:

https://github.com/HandBrake/HandBrake/issues/1143

### Steps to reproduce the problem

1. Select preset `H.264 MKV 1080p30`
1. Click on `Open Source` and select any DVD on disk (a *VIDEO_TS* directory)
1. Click on the `Encode and play` icon
1. The preview window will be black, and only the audio will play

### HandBrake version (e.g., 1.0.0)

**1.0.7 (x86_64)**, installed from the Ubuntu repositories

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

Xubuntu 17.10

### HandBrake Activity Log ***required*** (see https://handbrake.fr/docs/en/latest/help/activity-log.html)

~~~
[18:14:10] gtkgui: HandBrake 1.0.7 (2017082500) - Linux x86_64 - https://handbrake.fr
[18:14:11] hb_init: starting libhb thread
[18:14:11] hb_init: starting libhb thread
[18:14:11] hb_init: starting libhb thread
[18:14:16] CPU: Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz
[18:14:16] - Intel microarchitecture Sandy Bridge
[18:14:16] - logical processor count: 4
[18:14:16] hb_scan: path=/home/paulo/Downloads/The World Saxophone Quartet 2009, title_index=0
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[18:14:16] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.3
libdvdread: Couldn't find device name.
libdvdnav: Can't read name block. Probably not a DVD-ROM device.
libdvdnav: vm: dvd_read_name failed
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
libdvdread: Couldn't find device name.
[18:14:16] scan: DVD has 1 title(s)
[18:14:16] scan: scanning title 1
[18:14:16] scan: opening IFO for VTS 1
[18:14:16] scan: duration is 00:53:45 (3225680 ms)
[18:14:16] pgc_id: 1, pgn: 1: pgc: 0x7fc92800d0f0
[18:14:16] scan: vts=1, ttn=1, cells=0->7, blocks=0->1418105, 1418106 blocks
[18:14:16] scan: checking audio 1
[18:14:16] scan: id=0x80bd, lang=Unknown (AC3), 3cc=und ext=0
[18:14:16] scan: title 1 has 7 chapters
[18:14:16] scan: chap 1 c=0->0, b=0->79611 (79612), 195120 ms
[18:14:16] scan: chap 2 c=1->1, b=79612->553559 (473948), 1057200 ms
[18:14:16] scan: chap 3 c=2->3, b=553560->868750 (315191), 723360 ms
[18:14:16] scan: chap 4 c=4->4, b=868751->1130346 (261596), 585120 ms
[18:14:16] scan: chap 5 c=5->5, b=1130347->1287626 (157280), 360960 ms
[18:14:16] scan: chap 6 c=6->6, b=1287627->1394677 (107051), 247680 ms
[18:14:16] scan: chap 7 c=7->7, b=1394678->1418105 (23428), 56240 ms
[18:14:16] scan: aspect = 16:9
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
[18:14:16] scan: decoding previews for title 1
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
[18:14:16] scan: title angle(s) 1
[ac3 @ 0x7fc92821e2c0] frame sync error
[18:14:16] scan: audio 0x80bd: ac3, rate=48000Hz, bitrate=256000 Unknown (AC3) (2.0 ch)
[18:14:17] scan: 10 previews, 720x576, 25,000 fps, autocrop = 16/16/32/34, aspect 16:9, PAR 64:45
[18:14:17] libhb: scan thread found 1 valid title(s)
[swscaler @ 0x564dab3df900] Warning: data is not aligned! This can lead to a speedloss
[18:14:22] 1 job(s) to process
[18:14:22] 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": "auto",
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac"
        ],
        "FallbackEncoder": "av_aac"
    },
    "Destination": {
        "ChapterList": [
            {
                "Name": "Chapter 1"
            },
            {
                "Name": "Chapter 2"
            },
            {
                "Name": "Chapter 3"
            },
            {
                "Name": "Chapter 4"
            },
            {
                "Name": "Chapter 5"
            },
            {
                "Name": "Chapter 6"
            },
            {
                "Name": "Chapter 7"
            }
        ],
        "ChapterMarkers": true,
        "File": "/tmp/hb.1356/live01",
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "mkv"
    },
    "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": 11,
                "Settings": {
                    "crop-bottom": 16,
                    "crop-left": 32,
                    "crop-right": 34,
                    "crop-top": 16,
                    "height": 544,
                    "width": 654
                }
            }
        ]
    },
    "Metadata": {
        "Name": "The World Saxophone Quartet 2009"
    },
    "PAR": {
        "Den": 45,
        "Num": 64
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "/home/paulo/Downloads/The World Saxophone Quartet 2009",
        "Range": {
            "End": 1350000,
            "SeekPoints": 10,
            "Start": 2,
            "Type": "preview"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "ColorMatrixCode": 0,
        "Encoder": "x264",
        "Level": "4.0",
        "OpenCL": false,
        "Options": "",
        "Preset": "medium",
        "Profile": "main",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": false
        },
        "Quality": 22.0,
        "Tune": "",
        "Turbo": false,
        "TwoPass": false
    }
}
[18:14:22] CPU: Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz
[18:14:22] - Intel microarchitecture Sandy Bridge
[18:14:22] - logical processor count: 4
[18:14:22] hb_scan: path=/home/paulo/Downloads/The World Saxophone Quartet 2009, title_index=1
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[18:14:22] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.3
libdvdread: Couldn't find device name.
libdvdnav: Can't read name block. Probably not a DVD-ROM device.
libdvdnav: vm: dvd_read_name failed
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
libdvdread: Couldn't find device name.
[18:14:22] scan: DVD has 1 title(s)
[18:14:22] scan: scanning title 1
[18:14:22] scan: opening IFO for VTS 1
[18:14:22] scan: duration is 00:53:45 (3225680 ms)
[18:14:22] pgc_id: 1, pgn: 1: pgc: 0x7fc940005e00
[18:14:22] scan: vts=1, ttn=1, cells=0->7, blocks=0->1418105, 1418106 blocks
[18:14:22] scan: checking audio 1
[18:14:22] scan: id=0x80bd, lang=Unknown (AC3), 3cc=und ext=0
[18:14:22] scan: title 1 has 7 chapters
[18:14:22] scan: chap 1 c=0->0, b=0->79611 (79612), 195120 ms
[18:14:22] scan: chap 2 c=1->1, b=79612->553559 (473948), 1057200 ms
[18:14:22] scan: chap 3 c=2->3, b=553560->868750 (315191), 723360 ms
[18:14:22] scan: chap 4 c=4->4, b=868751->1130346 (261596), 585120 ms
[18:14:22] scan: chap 5 c=5->5, b=1130347->1287626 (157280), 360960 ms
[18:14:22] scan: chap 6 c=6->6, b=1287627->1394677 (107051), 247680 ms
[18:14:22] scan: chap 7 c=7->7, b=1394678->1418105 (23428), 56240 ms
[18:14:22] scan: aspect = 16:9
[18:14:22] scan: decoding previews for title 1
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
[18:14:22] scan: title angle(s) 1
[ac3 @ 0x7fc94012d220] frame sync error
[18:14:22] scan: audio 0x80bd: ac3, rate=48000Hz, bitrate=256000 Unknown (AC3) (2.0 ch)
[18:14:22] scan: 10 previews, 720x576, 25,000 fps, autocrop = 16/16/32/34, aspect 16:9, PAR 64:45
[18:14:22] libhb: scan thread found 1 valid title(s)
[18:14:22] starting job
[18:14:22] decomb filter thread started for segment 0
[18:14:22] decomb filter thread started for segment 1
[18:14:22] decomb filter thread started for segment 2
[18:14:22] decomb filter thread started for segment 3
[18:14:22] decomb check thread started for segment 0
[18:14:22] decomb check thread started for segment 1
[18:14:22] decomb check thread started for segment 3
[18:14:22] mask filter thread started for segment 0
[18:14:22] decomb check thread started for segment 2
[18:14:22] mask filter thread started for segment 1
[18:14:22] yadif thread started for segment 1
[18:14:22] mask filter thread started for segment 3
[18:14:22] mask erode thread started for segment 0
[18:14:22] mask erode thread started for segment 1
[18:14:22] mask erode thread started for segment 2
[18:14:22] mask erode thread started for segment 3
[18:14:22] mask dilate thread started for segment 0
[18:14:22] mask dilate thread started for segment 1
[18:14:22] mask dilate thread started for segment 2
[18:14:22] mask dilate thread started for segment 3
[18:14:22] yadif thread started for segment 0
[18:14:22] mask filter thread started for segment 2
[18:14:22] yadif thread started for segment 2
[18:14:22] yadif thread started for segment 3
[18:14:22] job configuration:
[18:14:22] * source
[18:14:22] + /home/paulo/Downloads/The World Saxophone Quartet 2009
[18:14:22] + title 1, start 00:00:0,00 stop 00:00:15,00
[18:14:22] * destination
[18:14:22] + /tmp/hb.1356/live01
[18:14:22] + container: Matroska (libavformat)
[18:14:22] + chapter markers
[18:14:22] * video track
[18:14:22] + decoder: mpeg2video
[18:14:22] + bitrate 200 kbps
[18:14:22] + filters
[18:14:22] + 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)
[18:14:22] + Decomb (mode=39)
[18:14:22] + Framerate Shaper (mode=2:rate=27000000/900000)
[18:14:22] + frame rate: 25,000 fps -> peak rate limited to 30,000 fps
[18:14:22] + Crop and Scale (width=654:height=544:crop-top=16:crop-bottom=16:crop-left=32:crop-right=34)
[18:14:22] + source: 720 * 576, crop (16/16/32/34): 654 * 544, scale: 654 * 544
[18:14:22] + Output geometry
[18:14:22] + storage dimensions: 654 x 544
[18:14:22] + pixel aspect ratio: 64 : 45
[18:14:22] + display dimensions: 930 x 544
[18:14:22] + encoder: H.264 (libx264)
[18:14:22] + preset: medium
[18:14:22] + profile: main
[18:14:22] + level: 4.0
[18:14:22] + quality: 22,00 (RF)
[18:14:22] * audio track 1
[18:14:22] + decoder: Unknown (AC3) (2.0 ch) (track 1, id 0x80bd)
[18:14:22] + bitrate: 256 kbps, samplerate: 48000 Hz
[18:14:22] + mixdown: Stereo
[18:14:22] + encoder: AAC (libavcodec)
[18:14:22] + bitrate: 160 kbps, samplerate: 48000 Hz
libdvdnav: Using dvdnav version 5.0.3
libdvdread: Couldn't find device name.
libdvdnav: Can't read name block. Probably not a DVD-ROM device.
libdvdnav: vm: dvd_read_name failed
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
libdvdread: Couldn't find device name.
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
[18:14:22] sync: expecting 400 video frames
[18:14:22] encavcodecaInit: Unknown avcodec option stereo_mode
[18:14:22] encx264: encoding at constant RF 22,000000
[18:14:22] encx264: unparsed options: level=4.0:8x8dct=0:vbv-bufsize=25000:vbv-maxrate=20000
x264 [info]: using SAR=64/45
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: profile Main, level 4.0
[ac3 @ 0x7fc9100118c0] frame sync error
[18:14:22] sync: first pts audio 0x80bd is 0
[18:14:22] sync: first pts video is 14400
[18:14:22] sync: "Chapter 2" (2) at frame 1 time 14400
[18:14:27] sync: reached video pts 1350000, exiting early
[18:14:27] sync: reached audio 0x80bd pts 1350720, exiting early
[18:14:29] work: average encoding speed for job is 70,128120 fps
[18:14:29] comb detect: heavy 1 | light 7 | uncombed 363 | total 371
[18:14:29] decomb: deinterlaced 1 | blended 7 | unfiltered 363 | total 371
[18:14:29] vfr: 371 frames output, 0 dropped and 0 duped for CFR/PFR
[18:14:29] vfr: lost time: 0 (0 frames)
[18:14:29] vfr: gained time: 0 (0 frames) (0 not accounted for)
[18:14:29] ac3-decoder done: 1501 frames, 0 decoder errors
[18:14:29] mpeg2video-decoder done: 1198 frames, 0 decoder errors
[18:14:29] sync: got 371 frames, 400 expected
[18:14:29] sync: framerate min 25,000 fps, max 25,000 fps, avg 25,000 fps
[aac @ 0x7fc91001efe0] Qavg: 292,574
x264 [info]: frame I:9 Avg QP:15,99 size: 21629
x264 [info]: frame P:104 Avg QP:20,38 size: 7101
x264 [info]: frame B:258 Avg QP:24,16 size: 2579
x264 [info]: consecutive B-frames: 4,6% 4,9% 9,7% 80,9%
x264 [info]: mb I I16..4: 54,6% 0,0% 45,4%
x264 [info]: mb P I16..4: 9,1% 0,0% 5,9% P16..4: 33,2% 12,3% 5,9% 0,0% 0,0% skip:33,6%
x264 [info]: mb B I16..4: 0,4% 0,0% 0,9% B16..8: 32,0% 5,0% 0,9% direct: 4,2% skip:56,6% L0:44,1% L1:46,8% BI: 9,0%
x264 [info]: coded y,uvDC,uvAC intra: 44,1% 56,7% 28,3% inter: 10,1% 16,4% 1,0%
x264 [info]: i16 v,h,dc,p: 67% 14% 8% 11%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 13% 17% 6% 8% 10% 6% 8% 4%
x264 [info]: i8c dc,h,v,p: 50% 17% 24% 8%
x264 [info]: Weighted P-Frames: Y:0,0% UV:0,0%
x264 [info]: ref P L0: 59,0% 11,0% 20,3% 9,7%
x264 [info]: ref B L0: 88,5% 9,0% 2,4%
x264 [info]: ref B L1: 96,9% 3,1%
x264 [info]: kb/s:852,49
[18:14:29] mux: track 0, 371 frames, 1598154 bytes, 850,08 kbps, fifo 512
[18:14:29] mux: track 1, 704 frames, 299943 bytes, 159,54 kbps, fifo 1024
[18:14:29] libhb: work result = 0
~~~

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: handbrake 1.0.7+ds1-2build1
ProcVersionSignature: Ubuntu 4.13.0-31.34-generic 4.13.13
Uname: Linux 4.13.0-31-generic x86_64
ApportVersion: 2.20.7-0ubuntu3.7
Architecture: amd64
CurrentDesktop: XFCE
Date: Tue Jan 23 22:06:24 2018
InstallationDate: Installed on 2017-10-20 (95 days ago)
InstallationMedia: Xubuntu 17.10 "Artful Aardvark" - Release amd64 (20171017.1)
SourcePackage: handbrake
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Paulo Marcel Coelho Aragão (marcelpaulo) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.