iTunes Black Screen

HandBrake for Mac support
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
thePoet
Posts: 8
Joined: Mon Mar 07, 2011 4:10 am

iTunes Black Screen

Post by thePoet »

I've had a long standing oddity with iTunes and x265 encodings. When playing back, iTunes always presents a black screen with audio. Quicklook, QuickTime, and all iOS devices are fine. The issue is just iTunes.

Handbrake 1.2.0
MacOS 10.13.6
iTunes 12.8.1.2

I usually setup my own presets. Below is an example. Is there some setting that iTunes explicitly needs? I've searched the forums, and except for a bug listed as fixed, I haven't seen any other complaints.

Code: Select all

  "PresetList" : [
    {
      "AlignAVStart" : false,
      "AudioCopyMask" : [

      ],
      "AudioEncoderFallback" : "ac3",
      "AudioLanguageList" : [

      ],
      "AudioList" : [
        {
          "AudioBitrate" : 160,
          "AudioCompressionLevel" : -1,
          "AudioDitherMethod" : "auto",
          "AudioEncoder" : "ca_aac",
          "AudioMixdown" : "dpl2",
          "AudioNormalizeMixLevel" : false,
          "AudioSamplerate" : "auto",
          "AudioTrackDRCSlider" : 0,
          "AudioTrackGainSlider" : 0,
          "AudioTrackQuality" : -1,
          "AudioTrackQualityEnable" : false
        }
      ],
      "AudioSecondaryEncoderMode" : false,
      "AudioTrackSelectionBehavior" : "first",
      "ChapterMarkers" : true,
      "ChildrenArray" : [

      ],
      "Default" : false,
      "FileFormat" : "av_mp4",
      "Folder" : false,
      "FolderOpen" : false,
      "InlineParameterSets" : false,
      "Mp4HttpOptimize" : false,
      "Mp4iPodCompatible" : false,
      "PictureAutoCrop" : false,
      "PictureBottomCrop" : 0,
      "PictureCombDetectCustom" : "",
      "PictureCombDetectPreset" : "off",
      "PictureDARWidth" : 0,
      "PictureDeblock" : 0,
      "PictureDeblockCustom" : "qp=0:mode=2",
      "PictureDeinterlaceCustom" : "",
      "PictureDeinterlaceFilter" : "deinterlace",
      "PictureDeinterlacePreset" : "default",
      "PictureDenoiseCustom" : "",
      "PictureDenoiseFilter" : "off",
      "PictureDenoisePreset" : "medium",
      "PictureDenoiseTune" : "none",
      "PictureDetelecine" : "off",
      "PictureDetelecineCustom" : "",
      "PictureForceHeight" : 0,
      "PictureForceWidth" : 0,
      "PictureHeight" : 0,
      "PictureItuPAR" : false,
      "PictureKeepRatio" : true,
      "PictureLeftCrop" : 0,
      "PictureLooseCrop" : false,
      "PictureModulus" : 16,
      "PicturePAR" : "auto",
      "PicturePARHeight" : 27,
      "PicturePARWidth" : 32,
      "PictureRightCrop" : 0,
      "PictureRotate" : "angle=0:hflip=0",
      "PictureSharpenCustom" : "",
      "PictureSharpenFilter" : "off",
      "PictureSharpenPreset" : "medium",
      "PictureSharpenTune" : "none",
      "PictureTopCrop" : 0,
      "PictureWidth" : 0,
      "PresetDescription" : "",
      "PresetName" : "Corner Gas",
      "SubtitleAddCC" : false,
      "SubtitleAddForeignAudioSearch" : false,
      "SubtitleAddForeignAudioSubtitle" : false,
      "SubtitleBurnBDSub" : false,
      "SubtitleBurnBehavior" : "none",
      "SubtitleBurnDVDSub" : false,
      "SubtitleLanguageList" : [

      ],
      "SubtitleTrackSelectionBehavior" : "none",
      "Type" : 1,
      "UsesPictureFilters" : true,
      "UsesPictureSettings" : 2,
      "VideoAvgBitrate" : 2500,
      "VideoColorMatrixCode" : 0,
      "VideoEncoder" : "x265",
      "VideoFramerate" : "auto",
      "VideoFramerateMode" : "vfr",
      "VideoGrayScale" : false,
      "VideoLevel" : "auto",
      "VideoOptionExtra" : "",
      "VideoPreset" : "medium",
      "VideoProfile" : "auto",
      "VideoQSVAsyncDepth" : 4,
      "VideoQSVDecode" : false,
      "VideoQualitySlider" : 21,
      "VideoQualityType" : 2,
      "VideoScaler" : "swscale",
      "VideoTune" : "",
      "VideoTurboTwoPass" : false,
      "VideoTwoPass" : false,
      "x264Option" : "b-adapt=2:bframes=5:me=umh:merange=20:ref=6:deblock=1,1:psy-rd=0.40,0.00:aq-strength=0.60",
      "x264UseAdvancedOptions" : false
    }
  ],
  "VersionMajor" : 34,
  "VersionMicro" : 0,
  "VersionMinor" : 0
}
mduell
Veteran User
Posts: 8198
Joined: Sat Apr 21, 2007 8:54 pm

Re: iTunes Black Screen

Post by mduell »

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.
thePoet
Posts: 8
Joined: Mon Mar 07, 2011 4:10 am

Re: iTunes Black Screen

Post by thePoet »

Sorry, I was away from that machine for a few days. Here is an example log.

Code: Select all

HandBrake Activity Log for Session: 2018-12-27T23:56:42Z
Handbrake Version: 1.2.0 (2018122200)
Bws1D1 -- 1.mp4
Preset: Test
[16:56:42] macgui: QueueCore prevented sleep
[16:56:42] macgui: QueueCore scanning specifically for title: 1
[16:56:42] CPU: Intel(R) Core(TM) i7-3720QM CPU @ 2.60GHz
[16:56:42]  - Intel microarchitecture Ivy Bridge
[16:56:42]  - logical processor count: 8
[16:56:42] hb_scan: path=/Volumes/Blue Midget/video_processing/BWS1D1, title_index=1
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[16:56:42] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
libdvdread: Encrypted DVD support unavailable.
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 0x00fe0000. Regions: 1
libdvdread: Encrypted DVD support unavailable.
libdvdread: Couldn't find device name.
[16:56:42] scan: DVD has 12 title(s)
[16:56:42] scan: scanning title 1
[16:56:42] scan: opening IFO for VTS 1
[16:56:42] scan: duration is 00:25:31 (1531133 ms)
[16:56:42] pgc_id: 1, pgn: 1: pgc: 0x7fc423dbf2e0
[16:56:42] scan: vts=1, ttn=1, cells=0->4, blocks=0->325346, 325347 blocks
[16:56:42] scan: checking audio 1
[16:56:42] scan: id=0x80bd, lang=English (AC3), 3cc=eng ext=0
[16:56:42] scan: title 1 has 5 chapters
[16:56:42] scan: chap 1 c=0->0, b=0->27107 (27108), 131467 ms
[16:56:42] scan: chap 2 c=1->1, b=27108->183497 (156390), 742200 ms
[16:56:42] scan: chap 3 c=2->2, b=183498->313235 (129738), 608200 ms
[16:56:42] scan: chap 4 c=3->3, b=313236->325337 (12102), 48767 ms
[16:56:42] scan: chap 5 c=4->4, b=325338->325346 (9), 500 ms
[16:56:42] scan: aspect = 4:3
[16:56:42] scan: decoding previews for title 1
libdvdnav: DVD disk reports itself with Region mask 0x00fe0000. Regions: 1
[16:56:42] scan: title angle(s) 1
[ac3 @ 0x7fc424984a00] frame sync error
[16:56:42] scan: audio 0x80bd: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch)
[16:56:42] scan: 10 previews, 720x480, 29.970 fps, autocrop = 0/0/0/0, aspect 4:3, PAR 8:9
[16:56:42] libhb: scan thread found 1 valid title(s)
[16:56:42] macgui: QueueCore scan done
[16:56:42] 1 job(s) to process
[16:56:42] starting job
[16:56:42] macgui: QueueCore started encoding Bws1D1 -- 1.mp4
[16:56:42] macgui: QueueCore with preset Bewitched (greyscale)
[16:56:42] Grayscale thread started for segment 0
[16:56:42] Grayscale thread started for segment 1
[16:56:42] Grayscale thread started for segment 2
[16:56:42] Grayscale thread started for segment 3
[16:56:42] Grayscale thread started for segment 4
[16:56:42] Grayscale thread started for segment 5
[16:56:42] Grayscale thread started for segment 6
[16:56:42] Grayscale thread started for segment 7
[16:56:42] job configuration:
[16:56:42]  * source
[16:56:42]    + /Volumes/Blue Midget/video_processing/BWS1D1
[16:56:42]    + title 1, chapter(s) 1 to 5
[16:56:42]  * destination
[16:56:42]    + /Volumes/Blue Midget/video_processing/IDJ S1D1/Bws1D1 -- 1.mp4
[16:56:42]    + container: MPEG-4 (libavformat)
[16:56:42]      + chapter markers
[16:56:42]  * video track
[16:56:42]    + decoder: mpeg2video
[16:56:42]      + bitrate 200 kbps
[16:56:42]    + filters
[16:56:42]      + avfilter (yadif='mode=0')
[16:56:42]        + yadif: mode=0
[16:56:42]      + Framerate Shaper (mode=0:rate=27000000/900900)
[16:56:42]        + frame rate: same as source (around 29.970 fps)
[16:56:42]      + Crop and Scale (width=640:height=480:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[16:56:42]        + source: 720 * 480, crop (0/0/0/0): 720 * 480, scale: 640 * 480
[16:56:42]      + Grayscale ()
[16:56:42]    + Output geometry
[16:56:42]      + storage dimensions: 640 x 480
[16:56:42]      + pixel aspect ratio: 1 : 1
[16:56:42]      + display dimensions: 640 x 480
[16:56:42]    + encoder: H.265 (libx265)
[16:56:42]      + preset:  medium
[16:56:42]      + profile: auto
[16:56:42]      + quality: 21.00 (RF)
[16:56:42]      + color profile: 6-1-6
[16:56:42]  * audio track 1
[16:56:42]    + decoder: English (AC3) (2.0 ch) (track 1, id 0x80bd)
[16:56:42]      + bitrate: 192 kbps, samplerate: 48000 Hz
[16:56:42]    + mixdown: Stereo
[16:56:42]    + dither: triangular
[16:56:42]    + encoder: AAC (Apple AudioToolbox)
[16:56:42]      + bitrate: 128 kbps, samplerate: 48000 Hz
libdvdnav: Using dvdnav version 6.0.0
libdvdread: Encrypted DVD support unavailable.
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 0x00fe0000. Regions: 1
libdvdread: Encrypted DVD support unavailable.
libdvdread: Couldn't find device name.
libdvdnav: DVD disk reports itself with Region mask 0x00fe0000. Regions: 1
[16:56:42] sync: expecting 45888 video frames
x265 [info]: HEVC encoder version 2.9
x265 [info]: build info [Mac OS X][clang 10.0.0][64 bit] 8bit+10bit+12bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x265 [info]: Main profile, Level-3 (Main tier)
x265 [info]: Thread pool created using 8 threads
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 3 / wpp(8 rows)
x265 [warning]: Source height < 720p; disabling lookahead-slices
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 2
x265 [info]: Keyframe min / max / scenecut / bias: 30 / 300 / 40 / 5.00
x265 [info]: Lookahead / bframes / badapt        : 20 / 4 / 2
x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
x265 [info]: References / ref-limit  cu / depth  : 3 / on / on
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 1 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-21.0 / 0.60
x265 [info]: tools: rd=3 psy-rd=2.00 rskip signhide tmvp strong-intra-smoothing
x265 [info]: tools: deblock sao
[16:56:42] sync: first pts video is 0
[16:56:42] sync: "Chapter 1" (1) at frame 1 time 0
[16:56:42] sync: first pts audio 0x80bd is 0
[16:58:06] sync: "Chapter 2" (2) at frame 3947 time 11849838
[17:07:01] sync: "Chapter 3" (3) at frame 26213 time 78714636
[17:14:49] sync: "Chapter 4" (4) at frame 44459 time 133507374
[17:15:23] reader: done. 1 scr changes
[17:15:26] work: average encoding speed for job is 40.885502 fps
[17:15:26] vfr: lost time: 0 (0 frames)
[17:15:26] vfr: gained time: 0 (0 frames) (0 not accounted for)
[17:15:26] ac3-decoder done: 47880 frames, 0 decoder errors
[17:15:26] mpeg2video-decoder done: 45934 frames, 0 decoder errors
[17:15:26] sync: got 45934 frames, 45888 expected
[17:15:26] sync: framerate min 29.970 fps, max 29.970 fps, avg 29.970 fps
x265 [info]: frame I:    390, Avg QP:21.53  kb/s: 6493.03 
x265 [info]: frame P:   9906, Avg QP:23.22  kb/s: 2533.77 
x265 [info]: frame B:  35638, Avg QP:28.73  kb/s: 344.95  
x265 [info]: Weighted P-Frames: Y:33.5% UV:0.0%
x265 [info]: consecutive B-frames: 5.7% 1.8% 6.1% 13.3% 73.1% 

encoded 45934 frames in 1124.03s (40.87 fps), 869.19 kb/s, Avg QP:27.48
[17:15:26] mux: track 0, 45934 frames, 166704860 bytes, 870.13 kbps, fifo 4096
[17:15:26] mux: track 1, 71823 frames, 19984586 bytes, 104.31 kbps, fifo 8192
[17:15:26] libhb: work result = 0
thePoet
Posts: 8
Joined: Mon Mar 07, 2011 4:10 am

Re: iTunes Black Screen

Post by thePoet »

Would additional logging help? If it helps, here is an ffprobe of the file. I stripped out some stunned metadata to sanitize it a bit.

Code: Select all

ffprobe version 4.0.2 Copyright (c) 2007-2018 the FFmpeg developers
  built with Apple LLVM version 9.1.0 (clang-902.0.39.2)
  configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-avresample --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-librsvg --enable-libtheora --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libsoxr --enable-libspeex --enable-libass --enable-libbluray --enable-lzma --enable-gnutls --enable-fontconfig --enable-libfreetype --enable-libfribidi --disable-libjack --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libxcb --disable-libxcb-shm --disable-libxcb-xfixes --disable-indev=jack --enable-opencl --disable-outdev=xv --enable-audiotoolbox --enable-videotoolbox --enable-sdl2 --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-x86asm --enable-libx265 --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid
  libavutil      56. 14.100 / 56. 14.100
  libavcodec     58. 18.100 / 58. 18.100
  libavformat    58. 12.100 / 58. 12.100
  libavdevice    58.  3.100 / 58.  3.100
  libavfilter     7. 16.100 /  7. 16.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  1.100 /  5.  1.100
  libswresample   3.  1.100 /  3.  1.100
  libpostproc    55.  1.100 / 55.  1.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f87ef000000] stream 0, timescale not set
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Test.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 512
    compatible_brands: isomiso2mp41
    creation_time   : 2018-12-27T19:55:44.000000Z
    encoder         : HandBrake 1.2.0 2018122200
    title           : Test
  Duration: 00:25:40.12, start: 0.000000, bitrate: 1100 kb/s
    Chapter #0:0: start 0.000000, end 184.384000
    Metadata:
      title           : Chapter 1
    Chapter #0:1: start 184.384000, end 833.066000
    Metadata:
      title           : Chapter 2
    Chapter #0:2: start 833.066000, end 1539.605000
    Metadata:
      title           : Chapter 3
    Stream #0:0(und): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, smpte170m/smpte170m/bt709), 640x480 [SAR 1:1 DAR 4:3], 988 kb/s, 24.29 fps, 29.97 tbr, 90k tbn, 29.97 tbc (default)
    Metadata:
      creation_time   : 2018-12-27T19:55:44.000000Z
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 102 kb/s (default)
    Metadata:
      creation_time   : 2018-12-27T19:55:44.000000Z
      handler_name    : SoundHandler
    Stream #0:2(eng): Data: bin_data (text / 0x74786574)
    Metadata:
      creation_time   : 2018-12-27T19:55:44.000000Z
      handler_name    : SubtitleHandler
    Stream #0:3: Video: png, rgb24(pc), 600x600, 90k tbr, 90k tbn, 90k tbc
Unsupported codec with id 100359 for input stream 2
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: iTunes Black Screen

Post by BradleyS »

Does switching the video encoder from x265 8-bit to x265 10-bit solve the issue?
thePoet
Posts: 8
Joined: Mon Mar 07, 2011 4:10 am

Re: iTunes Black Screen

Post by thePoet »

Same situation. Black screen on iTunes, fine in QuickTime and Quicklook. Didn’t test iOS with this file.
Post Reply