Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Colors are brighter when using H.264 (AMD VCE) compared to H.264 (x264) or original #2946

Closed
warappa opened this issue Jun 19, 2020 · 9 comments

Comments

@warappa
Copy link

warappa commented Jun 19, 2020

Problem description:

If I encode a video with H.264 (x264) the output is the same color as the original DVD (opened from folder, not disk).
If I encode a video with H.264 (AMD VCE), the output is noticeably brighter.

Maybe related/similar to #493, #2788 or #2859?

I would prefer to use AMD VCE because it is multiple times faster than pure CPU encoding, but messing up colors is a bummer.
(To be fair: the AMD VCE shows more details in dark scences, so maybe AMD VCE's assumtion is actually more original than the other...)

Note:

No filters enabled (so not really #2859).
Also repoduceable on HandBrake-20200616-cbce13ddf_x86_64-Win_GUI

HandBrake version:

1.3.3

Operating system and version:

Windows 10 2004 (Build 19041.329)

Error message text and/or screenshot:

image

HandBrake Activity Log:

H.264 (x264) - GOOD:

HandBrake 1.3.3 (2020061300)
OS: Microsoft Windows NT 10.0.19041.0
CPU: AMD FX(tm)-8150 Eight-Core Processor           
Ram: 16330 MB, 
GPU Information:
  AMD Radeon R9 200 Series - 26.20.15029.27016
Screen: 3840x2160
Temp Dir: C:\Users\user\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\user\AppData\Roaming\HandBrake

-------------------------------------------


# Starting Encode ...

[01:18:14] hb_init: starting libhb thread
[01:18:14] Starting work at: Fri Jun 19 01:18:14 2020
[01:18:14] 1 job(s) to process
[01:18:14] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0.0,
        "Encoder": "av_aac",
        "Gain": 0.0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 1,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:mp3"
    ],
    "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"
      },
      {
        "Name": "Chapter 8"
      },
      {
        "Name": "Chapter 9"
      },
      {
        "Name": "Chapter 10"
      },
      {
        "Name": "Chapter 11"
      },
      {
        "Name": "Chapter 12"
      },
      {
        "Name": "Chapter 13"
      },
      {
        "Name": "Chapter 14"
      },
      {
        "Name": "Chapter 15"
      },
      {
        "Name": "Chapter 16"
      },
      {
        "Name": "Chapter 17"
      },
      {
        "Name": "Chapter 18"
      },
      {
        "Name": "Chapter 19"
      },
      {
        "Name": "Chapter 20"
      },
      {
        "Name": "Chapter 21"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": true,
    "File": "C:\\Users\\user\\Videos\\A-MOVIE-3_preview.m4v",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "av_mp4"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 12,
        "Settings": {
          "crop-bottom": "4",
          "crop-left": "0",
          "crop-right": "2",
          "crop-top": "0",
          "height": "572",
          "width": "718"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "0"
        }
      }
    ]
  },
  "PAR": {
    "Num": 64,
    "Den": 45
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "preview",
      "Start": 5,
      "End": 2700000,
      "SeekPoints": 10
    },
    "Title": 1,
    "Path": "E:\\# Filme\\# DVD\\A-MOVIE"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "x264",
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "fast",
    "Profile": "auto",
    "Quality": 0.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[01:18:14] CPU:
[01:18:14]  - logical processor count: 8
[01:18:14] Intel Quick Sync Video support: no
[01:18:14] hb_scan: path=E:\Videos\A-MOVIE, title_index=1
src/libbluray/disc/disc.c:424: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:424: error opening file BDMV\BACKUP\index.bdmv
src/libbluray/bluray.c:2585: nav_get_title_list(E:\Videos\A-MOVIE\) failed
[01:18:14] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Could not open E:\Videos\A-MOVIE with libdvdcss.
libdvdread: Can't open E:\Videos\A-MOVIE for reading
libdvdread: Device E:\Videos\A-MOVIE inaccessible, CSS authentication not available.
libdvdnav: Unable to open device file E:\Videos\A-MOVIE.
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: Could not open E:\Videos\A-MOVIE with libdvdcss.
libdvdread: Can't open E:\Videos\A-MOVIE for reading
libdvdread: Device E:\Videos\A-MOVIE inaccessible, CSS authentication not available.
[01:18:14] scan: DVD has 9 title(s)
[01:18:14] scan: scanning title 1
[01:18:14] scan: duration is 01:58:42 (7122880 ms)
[01:18:14] pgc_id: 1, pgn: 1: pgc: 000001FDF3205B30
[01:18:14] scan: checking audio 1
[01:18:14] scan: id=0x80bd, lang=English (AC3), 3cc=eng ext=1
[01:18:14] scan: checking audio 2
[01:18:14] scan: id=0x81bd, lang=Deutsch (AC3), 3cc=deu ext=1
[01:18:14] scan: checking audio 3
[01:18:14] scan: id=0x82bd, lang=Türkçe (AC3), 3cc=tur ext=1
[01:18:14] scan: checking subtitle 1
[01:18:14] scan: id=0x20bd, lang=Deutsch (Wide Screen) [VOBSUB], 3cc=deu ext=1
[01:18:14] scan: id=0x21bd, lang=Deutsch (Letterbox) [VOBSUB], 3cc=deu ext=1
[01:18:14] scan: checking subtitle 2
[01:18:14] scan: id=0x22bd, lang=English (Wide Screen) [VOBSUB], 3cc=eng ext=1
[01:18:14] scan: id=0x23bd, lang=English (Letterbox) [VOBSUB], 3cc=eng ext=1
[01:18:14] scan: checking subtitle 3
[01:18:14] scan: id=0x24bd, lang=Türkçe (Wide Screen) [VOBSUB], 3cc=tur ext=1
[01:18:14] scan: id=0x25bd, lang=Türkçe (Letterbox) [VOBSUB], 3cc=tur ext=1
[01:18:14] scan: title 1 has 21 chapters
[01:18:14] scan: chap 1, 267360 ms
[01:18:14] scan: chap 2, 283280 ms
[01:18:14] scan: chap 3, 246440 ms
[01:18:14] scan: chap 4, 440400 ms
[01:18:14] scan: chap 5, 319920 ms
[01:18:14] scan: chap 6, 422040 ms
[01:18:14] scan: chap 7, 381840 ms
[01:18:14] scan: chap 8, 366080 ms
[01:18:14] scan: chap 9, 336080 ms
[01:18:14] scan: chap 10, 429040 ms
[01:18:14] scan: chap 11, 268200 ms
[01:18:14] scan: chap 12, 314280 ms
[01:18:14] scan: chap 13, 182120 ms
[01:18:14] scan: chap 14, 350600 ms
[01:18:14] scan: chap 15, 356360 ms
[01:18:14] scan: chap 16, 168120 ms
[01:18:14] scan: chap 17, 434440 ms
[01:18:14] scan: chap 18, 295720 ms
[01:18:14] scan: chap 19, 524280 ms
[01:18:14] scan: chap 20, 372960 ms
[01:18:14] scan: chap 21, 363320 ms
[01:18:14] scan: aspect = 16:9
[01:18:14] scan: decoding previews for title 1
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
[01:18:14] scan: title angle(s) 1
[01:18:14] scan: audio 0x80bd: ac3, rate=48000Hz, bitrate=448000 English (AC3) (5.1 ch) (448 kbps)
[01:18:14] scan: audio 0x81bd: ac3, rate=48000Hz, bitrate=448000 Deutsch (AC3) (5.1 ch) (448 kbps)
[01:18:14] scan: audio 0x82bd: ac3, rate=48000Hz, bitrate=448000 Türkçe (AC3) (5.1 ch) (448 kbps)
[01:18:14] scan: 10 previews, 720x576, 25.000 fps, autocrop = 0/4/0/2, aspect 16:9, PAR 64:45
[01:18:14] libhb: scan thread found 1 valid title(s)
[01:18:14] Starting Task: Encoding Pass
[01:18:14] Skipping vfr filter
[01:18:14] job configuration:
[01:18:14]  * source
[01:18:14]    + E:\Videos\A-MOVIE
[01:18:14]    + title 1, start 00:00:0.00 stop 00:00:30.00
[01:18:14]  * destination
[01:18:14]    + C:\Users\user\Videos\A-MOVIE-3_preview.m4v
[01:18:14]    + container: MPEG-4 (libavformat)
[01:18:14]      + align initial A/V stream timestamps
[01:18:14]      + chapter markers
[01:18:14]  * video track
[01:18:14]    + decoder: mpeg2video
[01:18:14]      + bitrate 200 kbps
[01:18:14]    + filters
[01:18:14]      + Crop and Scale (width=718:height=572:crop-top=0:crop-bottom=4:crop-left=0:crop-right=2)
[01:18:14]        + source: 720 * 576, crop (0/4/0/2): 718 * 572, scale: 718 * 572
[01:18:14]    + Output geometry
[01:18:14]      + storage dimensions: 718 x 572
[01:18:14]      + pixel aspect ratio: 64 : 45
[01:18:14]      + display dimensions: 1021 x 572
[01:18:14]    + encoder: H.264 (libx264)
[01:18:14]      + preset:  fast
[01:18:14]      + profile: auto
[01:18:14]      + level:   auto
[01:18:14]      + quality: 0.00 (RF)
[01:18:14]      + color profile: 5-5-5
[01:18:14]  * audio track 1
[01:18:14]    + decoder: Deutsch (AC3) (5.1 ch) (448 kbps) (track 2, id 0x81bd)
[01:18:14]      + bitrate: 448 kbps, samplerate: 48000 Hz
[01:18:14]    + mixdown: Stereo
[01:18:14]    + dither: none
[01:18:14]    + encoder: AAC (libavcodec)
[01:18:14]      + bitrate: 160 kbps, samplerate: 48000 Hz
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Could not open E:\Videos\A-MOVIE with libdvdcss.
libdvdread: Can't open E:\Videos\A-MOVIE for reading
libdvdread: Device E:\Videos\A-MOVIE inaccessible, CSS authentication not available.
libdvdnav: Unable to open device file E:\Videos\A-MOVIE.
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: Could not open E:\Videos\A-MOVIE with libdvdcss.
libdvdread: Can't open E:\Videos\A-MOVIE for reading
libdvdread: Device E:\Videos\A-MOVIE inaccessible, CSS authentication not available.
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
[01:18:14] sync: expecting 775 video frames
										  
[01:18:14] encx264: encoding at constant RF 0.000000
[01:18:14] encx264: unparsed options: ref=2:weightp=1:subme=6:rc-lookahead=30
x264 [info]: using SAR=64/45
x264 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX XOP FMA4
x264 [info]: profile High 4:4:4 Predictive, level 3.0, 4:2:0, 8-bit
[01:18:14] sync: first pts video is 0
[01:18:14] sync: first pts audio 0x81bd is 0
[01:18:14] sync: "Chapter 10" (10) at frame 7 time 23040
[01:18:22] sync: reached video pts 2701440, exiting early
[01:18:22] sync: reached audio 0x81bd pts 2701440, exiting early
[01:18:22] work: average encoding speed for job is 98.485863 fps
[01:18:23] ac3-decoder done: 1335 frames, 0 decoder errors
[01:18:23] mpeg2video-decoder done: 1066 frames, 0 decoder errors
[01:18:23] sync: got 750 frames, 775 expected
[01:18:23] sync: framerate min 17.857 fps, max 25.000 fps, avg 24.987 fps
x264 [info]: frame I:11    Avg QP: 0.00  size:174729
x264 [info]: frame P:739   Avg QP: 0.00  size:113405
x264 [info]: mb I  I16..4: 47.1%  0.0% 52.9%
x264 [info]: mb P  I16..4: 15.4%  0.0%  9.1%  P16..4: 54.0%  9.6%  6.6%  0.0%  0.0%    skip: 5.3%
x264 [info]: 8x8 transform intra:0.0% inter:75.5%
x264 [info]: coded y,uvDC,uvAC intra: 99.4% 99.4% 99.4% inter: 69.7% 77.1% 77.1%
x264 [info]: i16 v,h,dc,p: 36% 20% 41%  3%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 24% 25%  3%  3%  3%  3%  2%  3%
x264 [info]: i8c dc,h,v,p: 28% 27% 42%  3%
x264 [info]: Weighted P-Frames: Y:2.0% UV:0.0%
x264 [info]: ref P L0: 61.7% 38.3%
x264 [info]: kb/s:22848.69
[01:18:23] mux: track 0, 750 frames, 85727834 bytes, 22830.32 kbps, fifo 128
[01:18:23] mux: track 1, 1408 frames, 604364 bytes, 160.95 kbps, fifo 512
[01:18:23] Finished work at: Fri Jun 19 01:18:23 2020
[01:18:23] libhb: work result = 0

# Encode Completed ...

H.264 (AMD x264) - BAD:

HandBrake 1.3.3 (2020061300)
OS: Microsoft Windows NT 10.0.19041.0
CPU: AMD FX(tm)-8150 Eight-Core Processor           
Ram: 16330 MB, 
GPU Information:
  AMD Radeon R9 200 Series - 26.20.15029.27016
Screen: 3840x2160
Temp Dir: C:\Users\user\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\user\AppData\Roaming\HandBrake

-------------------------------------------


# Starting Encode ...

[01:33:47] hb_init: starting libhb thread
[01:33:47] Starting work at: Fri Jun 19 01:33:47 2020
[01:33:47] 1 job(s) to process
[01:33:47] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0.0,
        "Encoder": "av_aac",
        "Gain": 0.0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 1,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:mp3"
    ],
    "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"
      },
      {
        "Name": "Chapter 8"
      },
      {
        "Name": "Chapter 9"
      },
      {
        "Name": "Chapter 10"
      },
      {
        "Name": "Chapter 11"
      },
      {
        "Name": "Chapter 12"
      },
      {
        "Name": "Chapter 13"
      },
      {
        "Name": "Chapter 14"
      },
      {
        "Name": "Chapter 15"
      },
      {
        "Name": "Chapter 16"
      },
      {
        "Name": "Chapter 17"
      },
      {
        "Name": "Chapter 18"
      },
      {
        "Name": "Chapter 19"
      },
      {
        "Name": "Chapter 20"
      },
      {
        "Name": "Chapter 21"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": true,
    "File": "C:\\Users\\user\\Videos\\A-MOVIE-3_preview.m4v",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "av_mp4"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 12,
        "Settings": {
          "crop-bottom": "4",
          "crop-left": "0",
          "crop-right": "2",
          "crop-top": "0",
          "height": "572",
          "width": "718"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "0"
        }
      }
    ]
  },
  "PAR": {
    "Num": 64,
    "Den": 45
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "preview",
      "Start": 5,
      "End": 2700000,
      "SeekPoints": 10
    },
    "Title": 1,
    "Path": "E:\\# Filme\\# DVD\\A-MOVIE"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "vce_h264",
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "balanced",
    "Profile": "baseline",
    "Quality": 0.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[01:33:47] CPU:
[01:33:47]  - logical processor count: 8
[01:33:47] Intel Quick Sync Video support: no
[01:33:47] hb_scan: path=E:\Videos\A-MOVIE, title_index=1
src/libbluray/disc/disc.c:424: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:424: error opening file BDMV\BACKUP\index.bdmv
src/libbluray/bluray.c:2585: nav_get_title_list(E:\Videos\A-MOVIE\) failed
[01:33:47] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Could not open E:\Videos\A-MOVIE with libdvdcss.
libdvdread: Can't open E:\Videos\A-MOVIE for reading
libdvdread: Device E:\Videos\A-MOVIE inaccessible, CSS authentication not available.
libdvdnav: Unable to open device file E:\Videos\A-MOVIE.
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: Could not open E:\Videos\A-MOVIE with libdvdcss.
libdvdread: Can't open E:\Videos\A-MOVIE for reading
libdvdread: Device E:\Videos\A-MOVIE inaccessible, CSS authentication not available.
[01:33:47] scan: DVD has 9 title(s)
[01:33:47] scan: scanning title 1
[01:33:47] scan: duration is 01:58:42 (7122880 ms)
[01:33:47] pgc_id: 1, pgn: 1: pgc: 000001FDF5E714F0
[01:33:47] scan: checking audio 1
[01:33:47] scan: id=0x80bd, lang=English (AC3), 3cc=eng ext=1
[01:33:47] scan: checking audio 2
[01:33:47] scan: id=0x81bd, lang=Deutsch (AC3), 3cc=deu ext=1
[01:33:47] scan: checking audio 3
[01:33:47] scan: id=0x82bd, lang=Türkçe (AC3), 3cc=tur ext=1
[01:33:47] scan: checking subtitle 1
[01:33:47] scan: id=0x20bd, lang=Deutsch (Wide Screen) [VOBSUB], 3cc=deu ext=1
[01:33:47] scan: id=0x21bd, lang=Deutsch (Letterbox) [VOBSUB], 3cc=deu ext=1
[01:33:47] scan: checking subtitle 2
[01:33:47] scan: id=0x22bd, lang=English (Wide Screen) [VOBSUB], 3cc=eng ext=1
[01:33:47] scan: id=0x23bd, lang=English (Letterbox) [VOBSUB], 3cc=eng ext=1
[01:33:47] scan: checking subtitle 3
[01:33:47] scan: id=0x24bd, lang=Türkçe (Wide Screen) [VOBSUB], 3cc=tur ext=1
[01:33:47] scan: id=0x25bd, lang=Türkçe (Letterbox) [VOBSUB], 3cc=tur ext=1
[01:33:47] scan: title 1 has 21 chapters
[01:33:47] scan: chap 1, 267360 ms
[01:33:47] scan: chap 2, 283280 ms
[01:33:47] scan: chap 3, 246440 ms
[01:33:47] scan: chap 4, 440400 ms
[01:33:47] scan: chap 5, 319920 ms
[01:33:47] scan: chap 6, 422040 ms
[01:33:47] scan: chap 7, 381840 ms
[01:33:47] scan: chap 8, 366080 ms
[01:33:47] scan: chap 9, 336080 ms
[01:33:47] scan: chap 10, 429040 ms
[01:33:47] scan: chap 11, 268200 ms
[01:33:47] scan: chap 12, 314280 ms
[01:33:47] scan: chap 13, 182120 ms
[01:33:47] scan: chap 14, 350600 ms
[01:33:47] scan: chap 15, 356360 ms
[01:33:47] scan: chap 16, 168120 ms
[01:33:47] scan: chap 17, 434440 ms
[01:33:47] scan: chap 18, 295720 ms
[01:33:47] scan: chap 19, 524280 ms
[01:33:47] scan: chap 20, 372960 ms
[01:33:47] scan: chap 21, 363320 ms
[01:33:47] scan: aspect = 16:9
[01:33:47] scan: decoding previews for title 1
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
[01:33:47] scan: title angle(s) 1
[01:33:47] scan: audio 0x80bd: ac3, rate=48000Hz, bitrate=448000 English (AC3) (5.1 ch) (448 kbps)
[01:33:47] scan: audio 0x81bd: ac3, rate=48000Hz, bitrate=448000 Deutsch (AC3) (5.1 ch) (448 kbps)
[01:33:47] scan: audio 0x82bd: ac3, rate=48000Hz, bitrate=448000 Türkçe (AC3) (5.1 ch) (448 kbps)
[01:33:47] scan: 10 previews, 720x576, 25.000 fps, autocrop = 0/4/0/2, aspect 16:9, PAR 64:45
[01:33:47] libhb: scan thread found 1 valid title(s)
[01:33:47] Starting Task: Encoding Pass
[01:33:47] Skipping vfr filter
[01:33:47] job configuration:
[01:33:47]  * source
[01:33:47]    + E:\Videos\A-MOVIE
[01:33:47]    + title 1, start 00:00:0.00 stop 00:00:30.00
[01:33:47]  * destination
[01:33:47]    + C:\Users\user\Videos\A-MOVIE-3_preview.m4v
[01:33:47]    + container: MPEG-4 (libavformat)
[01:33:47]      + align initial A/V stream timestamps
[01:33:47]      + chapter markers
[01:33:47]  * video track
[01:33:47]    + decoder: mpeg2video
[01:33:47]      + bitrate 200 kbps
[01:33:47]    + filters
[01:33:47]      + Crop and Scale (width=718:height=572:crop-top=0:crop-bottom=4:crop-left=0:crop-right=2)
[01:33:47]        + source: 720 * 576, crop (0/4/0/2): 718 * 572, scale: 718 * 572
[01:33:47]    + Output geometry
[01:33:47]      + storage dimensions: 718 x 572
[01:33:47]      + pixel aspect ratio: 64 : 45
[01:33:47]      + display dimensions: 1021 x 572
[01:33:47]    + encoder: H.264 (AMD VCE)
[01:33:47]      + preset:  balanced
[01:33:47]      + profile: baseline
[01:33:47]      + level:   auto
[01:33:47]      + quality: 0.00 (QP)
[01:33:47]      + color profile: 5-5-5
[01:33:47]  * audio track 1
[01:33:47]    + decoder: Deutsch (AC3) (5.1 ch) (448 kbps) (track 2, id 0x81bd)
[01:33:47]      + bitrate: 448 kbps, samplerate: 48000 Hz
[01:33:47]    + mixdown: Stereo
[01:33:47]    + dither: none
[01:33:47]    + encoder: AAC (libavcodec)
[01:33:47]      + bitrate: 160 kbps, samplerate: 48000 Hz
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Could not open E:\Videos\A-MOVIE with libdvdcss.
libdvdread: Can't open E:\Videos\A-MOVIE for reading
libdvdread: Device E:\Videos\A-MOVIE inaccessible, CSS authentication not available.
libdvdnav: Unable to open device file E:\Videos\A-MOVIE.
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: Could not open E:\Videos\A-MOVIE with libdvdcss.
libdvdread: Can't open E:\Videos\A-MOVIE for reading
libdvdread: Device E:\Videos\A-MOVIE inaccessible, CSS authentication not available.
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
[01:33:47] sync: expecting 775 video frames
[01:33:47] encavcodecInit: H.264 (AMD VCE)
[01:33:47] encavcodec: encoding at QP 0.00
[01:33:47] encavcodec: encoding with stored aspect 64/45			   
[01:33:47] sync: first pts video is 0
[01:33:47] sync: first pts audio 0x81bd is 0
[01:33:47] sync: "Chapter 10" (10) at frame 7 time 23040
[01:33:50] sync: reached video pts 2701440, exiting early
[01:33:50] sync: reached audio 0x81bd pts 2701440, exiting early
[01:33:50] work: average encoding speed for job is 0.000000 fps
[01:33:50] ac3-decoder done: 1175 frames, 0 decoder errors
[01:33:50] mpeg2video-decoder done: 936 frames, 0 decoder errors
[01:33:50] sync: got 750 frames, 775 expected
[01:33:50] sync: framerate min 17.857 fps, max 25.000 fps, avg 24.987 fps
[01:33:50] mux: track 0, 750 frames, 105740726 bytes, 28159.98 kbps, fifo 128
[01:33:50] mux: track 1, 1408 frames, 604364 bytes, 160.95 kbps, fifo 256
[01:33:50] Finished work at: Fri Jun 19 01:33:50 2020
[01:33:50] libhb: work result = 0

# Encode Completed ...
@bradleysepos
Copy link
Contributor

Indeed, that looks brighter.

The cropping filter is active. You can try manually setting the cropping to 0 (zero) on all sides to help rule out the previous issues. Thanks.

@bradleysepos
Copy link
Contributor

Also an interesting line from the x264 encode:

x264 [info]: profile High 4:4:4 Predictive, level 3.0, 4:2:0, 8-bit

High 4:4:4 Pred 4:2:0... right.

@warappa
Copy link
Author

warappa commented Jun 19, 2020

Hi @bradleysepos,
thanks for the quick response!

Unfortunately, setting cropping to 0 (all) didn't change a thing.

@galad87
Copy link
Contributor

galad87 commented Jun 19, 2020

What a weird color profile: 5-5-5 . Maybe VCE rejects it and writes something else. Check the color profile of the resulting file in mediainfo.

@jstebbins
Copy link
Contributor

5-5-5 is PRI_BT470BG, TRC_GAMMA28, SPC_BT470BG
Looks correct for PAL DVD

Color space
*   color primaries and transfer characteristics
    NTSC - 4 (ITU-R BT.470 M) or 6 (SMPTE 170 M)
    PAL - 5 (ITU-R BT.470 B or G)
*   matrix coefficients (RGB to YCbCr)
    5 (ITU-R BT.470 B or G) or 6 (SMPTE 170 M) 

But still possible that AMF has a problem with certain color spaces.

@jstebbins
Copy link
Contributor

Also an interesting line from the x264 encode:

x264 [info]: profile High 4:4:4 Predictive, level 3.0, 4:2:0, 8-bit

High 4:4:4 Pred 4:2:0... right.

[01:18:14]      + quality: 0.00 (RF)

@galad87
Copy link
Contributor

galad87 commented Jun 19, 2020

Yup, before 3712b29 we used to support less color values, and HB_TRA_GAMMA28 was sanitised and replaced by HB_COLR_TRA_BT709 probably.

I know VideoToolbox will fail with some color profile combination, and maybe some players will too. I'll do some testing next week.

@galad87
Copy link
Contributor

galad87 commented Jun 6, 2021

FFmpeg AMD VCE encoder does not write the color tag into the H.264 VUI, so the player will have to guess (and probably guess it wrong).

HandBrake 1.4 will write the color tag at the container level too, so it should fix this issue at least for those players that reads the container color values.

@galad87
Copy link
Contributor

galad87 commented Jun 6, 2021

AMF doesn't support setting the the color info in the VUI yet.

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

No branches or pull requests

5 participants