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

AMD VCE encoders add green/black bars and/or work with wrong aspect ratio #5952

Open
Acrivec opened this issue Apr 13, 2024 · 8 comments
Open

Comments

@Acrivec
Copy link

Acrivec commented Apr 13, 2024

Problem Description

I've spent past 2 hours trying to simply convert old .wmv files to av1, and always ended up having a green bar on the right side of video. Sometimes it was black, depending on Dimensions tab.
I've noticed that no matter the settings, the bar was there, and video is squished to the left.
It happened on amd x264, amd x265 and amd AV1.
However, simply switching to non-AMD version of a codec - simply x264, x265 or AV1 SVT - problem is gone. Video transcodes with identical size as the input, with no extra bars created anywhere.
Settings are not changed anywhere except for the codec. Here are those anyway:
image
No matter how set up. Automatic, none, disabled, custom...

image
Video preview without anything (Yes, it's blurred, for SFW reasons).
image
Preview with AMD AV1 ecoding. Same result with AMD x264 and AMD HEVC. Notice green bar on right. Video itself is squished to the left, and also notice bars on top and bottom - those seem to be from the 'original' preview - like video has been cropped/squished vertically also. Possibly auto-crop, but nonetheless it does not happen in non-AMD encoder.
image

Preview with non-AMD encoder - AV1 SVT. It will also be like this (proper, without bars and resizes) with x264 and hevc.

Also please note that I've noticed this happening months ago as well, but thought it's caused by Topaz Video AI, because it was happening on other videos as well.

Activity Log, Crash Log or any other details

AMD AV1 activity log
Code block collapsed, click to show
HandBrake 1.7.3 (2024021000)
OS: Microsoft Windows NT 10.0.22631.0
CPU: AMD Ryzen 9 7900 12-Core Processor             
Ram: 64631 MB, 
GPU Information:
  AMD Radeon(TM) Graphics - 31.0.24027.1012
  AMD Radeon RX 7900 XTX - 31.0.24027.1012
Screen: 2194.285714285714x1234.2857142857142
Temp Dir: C:\Users\Acrivec\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake\
Data Dir: C:\Users\Acrivec\AppData\Roaming\HandBrake

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

 # Starting Encode ...

[05:00:24] Remote Process started with Process ID: 87304 using port: 8038. Max Allowed Instances: 1
[05:00:24] Worker: Starting HandBrake Engine ...
[05:00:24] Worker: Parent Process Id 116856
[05:00:24] Worker: Starting Web Server on port 8038 ...
[05:00:24] Worker: Starting Listener: 1
[05:00:24] Worker: Server Started
[05:00:24] Worker: Disconnected worker monitoring enabled!
[05:00:24] Compile-time hardening features are enabled
Cannot load nvEncodeAPI64.dll
[05:00:25] vcn: is available
[05:00:25] qsv: not available on this system
[05:00:25] hb_init: starting libhb thread
[05:00:25] Starting work at: Sat Apr 13 05:00:25 2024
[05:00:25] 1 job(s) to process
[05:00:25] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0,
        "Encoder": "av_aac",
        "Gain": 0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      },
      {
        "Bitrate": 640,
        "DRC": 0,
        "Encoder": "ac3",
        "Gain": 0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac",
      "copy:ac3"
    ],
    "FallbackEncoder": "av_aac"
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": true,
    "File": "D:\\Wszystko\\Pierdo\u0142y\\Torrent\\Sean Cody 1-1000\\Input_preview.mp4",
    "Options": {
      "IpodAtom": false,
      "Optimize": false
    },
    "Mux": "av_mp4"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 5,
        "Settings": {
          "mode": "7"
        }
      },
      {
        "ID": 4,
        "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": 19,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "8",
          "crop-right": "6",
          "crop-top": "0",
          "height": "480",
          "width": "706"
        }
      },
      {
        "ID": 10,
        "Settings": {
          "mode": "0"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "preview",
      "Start": 1,
      "End": 450000,
      "SeekPoints": 10
    },
    "Title": 1,
    "Path": "D:\\Wszystko\\Pierdo\u0142y\\Torrent\\Sean Cody 1-1000\\input.wmv",
    "HWDecode": 4
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "vce_av1",
    "Level": "auto",
    "Bitrate": 1000,
    "MultiPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "balanced",
    "Profile": "main",
    "QSV": {
      "Decode": false
    },
    "HardwareDecode": 0
  }
}
[05:00:25] CPU: Unknown
[05:00:25]  - logical processor count: 24
[05:00:25] Intel Quick Sync Video support: no
[05:00:25] hb_scan: path=D:\Wszystko\Pierdoly\Torrent\Sean Cody 1-1000\input.wmv, title_index=1
Input #0, asf, from 'D:\Wszystko\Pierdo�'y\Torrent\Sean Cody 1-1000\input.wmv':
  Metadata:
    SfOriginalFPS   : 300000
    WMFSDKVersion   : 9.00.00.2980
    WMFSDKNeeded    : 0.0.0.0000
    IsVBR           : 0
    DeviceConformanceTemplate: MP@ML
    WM/WMADRCPeakReference: 32680
    WM/WMADRCAverageReference: 1236
  Duration: 00:16:24.50, start: 0.000000, bitrate: 1054 kb/s
  Stream #0:0(eng): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, 2 channels, fltp, 48 kb/s
  Stream #0:1(eng): Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 720x480, 1000 kb/s, 30 fps, 30 tbr, 1k tbn
[05:00:25] scan: decoding previews for title 1
[AVHWDeviceContext @ 00000277aa8c7740] Cannot load nvcuda.dll
[AVHWDeviceContext @ 00000277aa8c7740] Could not dynamically load CUDA
hwaccel: failed to create hwdevice
[05:00:25] scan: audio 0x0: wmav2, rate=44100Hz, bitrate=48024 English (wmav2, 2.0 ch, 48 kbps)
[05:00:25] scan: 10 previews, 720x480, 30.000 fps, autocrop = 0/0/8/6, aspect 1.50:1, PAR 1:1, color profile: 6-1-6, chroma location: left
[05:00:25] libhb: scan thread found 1 valid title(s)
[05:00:25] Starting Task: Encoding Pass
[05:00:25] work: track 1, dithering not supported by codec
[05:00:25] work: track 2, dithering not supported by codec
[05:00:25] work: only 1 chapter, disabling chapter markers
[05:00:25] job configuration:
[05:00:25]  * source
[05:00:25]    + D:\Wszystko\Pierdoly\Torrent\Sean Cody 1-1000\input.wmv
[05:00:25]    + title 1, start 00:00:00.00 stop 00:00:05.00
[05:00:25]    + container: asf
[05:00:25]    + data rate: 1054 kbps
[05:00:25]  * destination
[05:00:25]    + D:\Wszystko\Pierdoly\Torrent\Sean Cody 1-1000\Input_preview.mp4
[05:00:25]    + container: MPEG-4 (libavformat)
[05:00:25]      + align initial A/V stream timestamps
[05:00:25]  * video track
[05:00:25]    + decoder: wmv3 8-bit (yuv420p)
[05:00:25]      + bitrate 1000 kbps
[05:00:25]    + filters
[05:00:25]      + 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)
[05:00:25]      + Decomb (mode=39)
[05:00:25]      + Framerate Shaper (mode=0)
[05:00:25]        + frame rate: same as source (around 30.000 fps)
[05:00:25]      + Crop and Scale (width=706:height=480:crop-top=0:crop-bottom=0:crop-left=8:crop-right=6)
[05:00:25]        + source: 720 * 480, crop (0/0/8/6): 706 * 480, scale: 706 * 480
[05:00:25]    + Output geometry
[05:00:25]      + storage dimensions: 706 x 480
[05:00:25]      + pixel aspect ratio: 1 : 1
[05:00:25]      + display dimensions: 706 x 480
[05:00:25]    + encoder: AV1 (AMD VCE)
[05:00:25]      + preset:  balanced
[05:00:25]      + profile: main
[05:00:25]      + level:   auto
[05:00:25]      + bitrate: 1000 kbps, pass: 0
[05:00:25]      + color profile: 6-1-6
[05:00:25]      + chroma location: left
[05:00:25]  * audio track 1
[05:00:25]    + decoder: English (wmav2, 2.0 ch, 48 kbps) (track 1, id 0x0)
[05:00:25]      + bitrate: 48 kbps, samplerate: 44100 Hz
[05:00:25]    + mixdown: Stereo
[05:00:25]    + encoder: AAC (libavcodec)
[05:00:25]      + bitrate: 160 kbps, samplerate: 44100 Hz
[05:00:25]  * audio track 2
[05:00:25]    + decoder: English (wmav2, 2.0 ch, 48 kbps) (track 1, id 0x0)
[05:00:25]      + bitrate: 48 kbps, samplerate: 44100 Hz
[05:00:25]    + mixdown: Stereo
[05:00:25]    + encoder: AC3 (libavcodec)
[05:00:25]      + bitrate: 640 kbps, samplerate: 44100 Hz
[05:00:25] sync: expecting 180 video frames
[05:00:25] encavcodecInit: AV1 (AMD VCE)
[05:00:25] encavcodec: encoding at rc=vbr_peak Bitrate 1000
[05:00:25] encavcodec: encoding with stored aspect 1/1
[05:00:25] sync: first pts video is 0
[05:00:25] sync: "Chapter 1" (1) at frame 1 time 0
[05:00:25] sync: first pts audio 0x0 is 0
[05:00:25] sync: first pts audio 0x0 is 0
[05:00:25] sync: reached video pts 450000, exiting early
[05:00:25] sync: reached audio 0x0 pts 459697, exiting early
[05:00:25] sync: reached audio 0x0 pts 459697, exiting early
[05:00:25] work: average encoding speed for job is 0.000000 fps
[05:00:25] comb detect: heavy 0 | light 0 | uncombed 150 | total 150
[05:00:25] decomb: deinterlaced 0 | blended 0 | unfiltered 150 | total 150
[05:00:25] vfr: 150 frames output, 0 dropped
[05:00:25] vfr: lost time: 0 (0 frames)
[05:00:25] vfr: gained time: 0 (0 frames) (0 not accounted for)
[05:00:25] wmav2-decoder done: 76 frames, 0 decoder errors
[05:00:25] wmav2-decoder done: 76 frames, 0 decoder errors
[05:00:25] wmv3-decoder done: 407 frames, 0 decoder errors
[05:00:25] sync: got 150 frames, 180 expected
[05:00:25] sync: framerate min 30.000 fps, max 30.000 fps, avg 30.000 fps
[05:00:25] mux: track 0, 150 frames, 657312 bytes, 1031.08 kbps, fifo 256
[05:00:25] mux: track 1, 220 frames, 99439 bytes, 155.98 kbps, fifo 256
[05:00:25] mux: track 2, 146 frames, 406814 bytes, 638.14 kbps, fifo 256
[05:00:25] Finished work at: Sat Apr 13 05:00:25 2024
[05:00:25] libhb: work result = 0

 # Job Completed!

# VideoPreview: Using built-in system media player. ("D:\Wszystko\Pierdoły\Torrent\Sean Cody 1-1000\Input_preview.mp4")



AV1 SVT activity log
Code block collapsed, click to show
HandBrake 1.7.3 (2024021000)
OS: Microsoft Windows NT 10.0.22631.0
CPU: AMD Ryzen 9 7900 12-Core Processor             
Ram: 64631 MB, 
GPU Information:
  AMD Radeon(TM) Graphics - 31.0.24027.1012
  AMD Radeon RX 7900 XTX - 31.0.24027.1012
Screen: 2194.285714285714x1234.2857142857142
Temp Dir: C:\Users\Acrivec\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake\
Data Dir: C:\Users\Acrivec\AppData\Roaming\HandBrake

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

 # Starting Encode ...

[05:02:39] Remote Process started with Process ID: 117380 using port: 8038. Max Allowed Instances: 1
[05:02:39] Worker: Starting HandBrake Engine ...
[05:02:39] Worker: Parent Process Id 116856
[05:02:39] Worker: Starting Web Server on port 8038 ...
[05:02:39] Worker: Starting Listener: 1
[05:02:39] Worker: Server Started
[05:02:40] Worker: Disconnected worker monitoring enabled!
[05:02:40] Compile-time hardening features are enabled
Cannot load nvEncodeAPI64.dll
[05:02:40] vcn: is available
[05:02:40] qsv: not available on this system
[05:02:40] hb_init: starting libhb thread
[05:02:40] Starting work at: Sat Apr 13 05:02:40 2024
[05:02:40] 1 job(s) to process
[05:02:40] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0,
        "Encoder": "av_aac",
        "Gain": 0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      },
      {
        "Bitrate": 640,
        "DRC": 0,
        "Encoder": "ac3",
        "Gain": 0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac",
      "copy:ac3"
    ],
    "FallbackEncoder": "av_aac"
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": true,
    "File": "D:\\Wszystko\\Pierdo\u0142y\\Torrent\\Sean Cody 1-1000\\Input_preview.mp4",
    "Options": {
      "IpodAtom": false,
      "Optimize": false
    },
    "Mux": "av_mp4"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 5,
        "Settings": {
          "mode": "7"
        }
      },
      {
        "ID": 4,
        "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": 19,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "8",
          "crop-right": "6",
          "crop-top": "0",
          "height": "480",
          "width": "706"
        }
      },
      {
        "ID": 10,
        "Settings": {
          "mode": "0"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "preview",
      "Start": 1,
      "End": 450000,
      "SeekPoints": 10
    },
    "Title": 1,
    "Path": "D:\\Wszystko\\Pierdo\u0142y\\Torrent\\Sean Cody 1-1000\\input.wmv",
    "HWDecode": 4
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "svt_av1",
    "Level": "auto",
    "Bitrate": 1000,
    "MultiPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "6",
    "Profile": "auto",
    "QSV": {
      "Decode": false
    },
    "HardwareDecode": 0
  }
}
[05:02:40] CPU: Unknown
[05:02:40]  - logical processor count: 24
[05:02:40] Intel Quick Sync Video support: no
[05:02:40] hb_scan: path=D:\Wszystko\Pierdoly\Torrent\Sean Cody 1-1000\input.wmv, title_index=1
Input #0, asf, from 'D:\Wszystko\Pierdo�'y\Torrent\Sean Cody 1-1000\input.wmv':
  Metadata:
    SfOriginalFPS   : 300000
    WMFSDKVersion   : 9.00.00.2980
    WMFSDKNeeded    : 0.0.0.0000
    IsVBR           : 0
    DeviceConformanceTemplate: MP@ML
    WM/WMADRCPeakReference: 32680
    WM/WMADRCAverageReference: 1236
  Duration: 00:16:24.50, start: 0.000000, bitrate: 1054 kb/s
  Stream #0:0(eng): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, 2 channels, fltp, 48 kb/s
  Stream #0:1(eng): Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 720x480, 1000 kb/s, 30 fps, 30 tbr, 1k tbn
[05:02:40] scan: decoding previews for title 1
[AVHWDeviceContext @ 000001dbee667340] Cannot load nvcuda.dll
[AVHWDeviceContext @ 000001dbee667340] Could not dynamically load CUDA
hwaccel: failed to create hwdevice
[05:02:40] scan: audio 0x0: wmav2, rate=44100Hz, bitrate=48024 English (wmav2, 2.0 ch, 48 kbps)
[05:02:40] scan: 10 previews, 720x480, 30.000 fps, autocrop = 0/0/8/6, aspect 1.50:1, PAR 1:1, color profile: 6-1-6, chroma location: left
[05:02:40] libhb: scan thread found 1 valid title(s)
[05:02:40] Starting Task: Encoding Pass
[05:02:40] work: track 1, dithering not supported by codec
[05:02:40] work: track 2, dithering not supported by codec
[05:02:40] work: only 1 chapter, disabling chapter markers
[05:02:40] job configuration:
[05:02:40]  * source
[05:02:40]    + D:\Wszystko\Pierdoly\Torrent\Sean Cody 1-1000\input.wmv
[05:02:40]    + title 1, start 00:00:00.00 stop 00:00:05.00
[05:02:40]    + container: asf
[05:02:40]    + data rate: 1054 kbps
[05:02:40]  * destination
[05:02:40]    + D:\Wszystko\Pierdoly\Torrent\Sean Cody 1-1000\Input_preview.mp4
[05:02:40]    + container: MPEG-4 (libavformat)
[05:02:40]      + align initial A/V stream timestamps
[05:02:40]  * video track
[05:02:40]    + decoder: wmv3 8-bit (yuv420p)
[05:02:40]      + bitrate 1000 kbps
[05:02:40]    + filters
[05:02:40]      + 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)
[05:02:40]      + Decomb (mode=39)
[05:02:40]      + Framerate Shaper (mode=0)
[05:02:40]        + frame rate: same as source (around 30.000 fps)
[05:02:40]      + Crop and Scale (width=706:height=480:crop-top=0:crop-bottom=0:crop-left=8:crop-right=6)
[05:02:40]        + source: 720 * 480, crop (0/0/8/6): 706 * 480, scale: 706 * 480
[05:02:40]    + Output geometry
[05:02:40]      + storage dimensions: 706 x 480
[05:02:40]      + pixel aspect ratio: 1 : 1
[05:02:40]      + display dimensions: 706 x 480
[05:02:40]    + encoder: AV1 (SVT)
[05:02:40]      + preset:  6
[05:02:40]      + profile: auto
[05:02:40]      + level:   auto
[05:02:40]      + bitrate: 1000 kbps, pass: 0
[05:02:40]      + color profile: 6-1-6
[05:02:40]      + chroma location: left
[05:02:40]  * audio track 1
[05:02:40]    + decoder: English (wmav2, 2.0 ch, 48 kbps) (track 1, id 0x0)
[05:02:40]      + bitrate: 48 kbps, samplerate: 44100 Hz
[05:02:40]    + mixdown: Stereo
[05:02:40]    + encoder: AAC (libavcodec)
[05:02:40]      + bitrate: 160 kbps, samplerate: 44100 Hz
[05:02:40]  * audio track 2
[05:02:40]    + decoder: English (wmav2, 2.0 ch, 48 kbps) (track 1, id 0x0)
[05:02:40]      + bitrate: 48 kbps, samplerate: 44100 Hz
[05:02:40]    + mixdown: Stereo
[05:02:40]    + encoder: AC3 (libavcodec)
[05:02:40]      + bitrate: 640 kbps, samplerate: 44100 Hz
[05:02:40] sync: expecting 180 video frames
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v1.7.0
Svt[info]: SVT [build]  :	GCC 13.2.0	 64 bit
Svt[info]: -------------------------------------------
Svt[info]: Number of logical cores available: 24
Svt[info]: Number of PPCS 110
Svt[info]: [asm level on system : up to avx512]
Svt[info]: [asm level selected : up to avx2]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 712 / 480 / 30 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 6 / VQ / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 306 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / target bitrate (kbps)				: VBR / 1000
Svt[info]: -------------------------------------------
[05:02:40] sync: first pts video is 0
[05:02:40] sync: "Chapter 1" (1) at frame 1 time 0
[05:02:41] sync: first pts audio 0x0 is 0
[05:02:41] sync: first pts audio 0x0 is 0
[05:02:41] sync: reached video pts 450000, exiting early
[05:02:41] sync: reached audio 0x0 pts 459697, exiting early
[05:02:41] sync: reached audio 0x0 pts 459697, exiting early
[05:02:44] work: average encoding speed for job is 0.000000 fps
[05:02:44] comb detect: heavy 0 | light 0 | uncombed 150 | total 150
[05:02:44] decomb: deinterlaced 0 | blended 0 | unfiltered 150 | total 150
[05:02:44] vfr: 150 frames output, 0 dropped
[05:02:44] vfr: lost time: 0 (0 frames)
[05:02:44] vfr: gained time: 0 (0 frames) (0 not accounted for)
[05:02:44] wmav2-decoder done: 1310 frames, 0 decoder errors
[05:02:44] wmav2-decoder done: 1310 frames, 0 decoder errors
[05:02:44] wmv3-decoder done: 7282 frames, 0 decoder errors
[05:02:44] sync: got 150 frames, 180 expected
[05:02:44] sync: framerate min 30.000 fps, max 30.000 fps, avg 30.000 fps
[05:02:45] mux: track 0, 150 frames, 679960 bytes, 1066.60 kbps, fifo 256
[05:02:45] mux: track 1, 220 frames, 99439 bytes, 155.98 kbps, fifo 256
[05:02:45] mux: track 2, 146 frames, 406814 bytes, 638.14 kbps, fifo 256
[05:02:45] Finished work at: Sat Apr 13 05:02:45 2024
[05:02:45] libhb: work result = 0

 # Job Completed!

# VideoPreview: Using built-in system media player. ("D:\Wszystko\Pierdoły\Torrent\Sean Cody 1-1000\Input_preview.mp4")


# VideoPreview: Using built-in system media player. ("D:\Wszystko\Pierdoły\Torrent\Sean Cody 1-1000\Input_preview.mp4")

What Operating System are you running?

Windows 11 23H2 22631.3296 (was also like this on W10)

What version of HandBrake are you running?

1.7.3 (2024021000)

Where did you download HandBrake from?

winget, github

@galad87
Copy link
Contributor

galad87 commented Apr 13, 2024

AMD AV1 encoder has a severe limitation, it can only works with widths and heights divisible by 64 (or 32?) if I remember correctly.
That's an hardware issue, and there is no way to fix it. A workaround would be to set the correct crop in the container, but then most players ignore container crop values.

However it should happen with AMD H.264 or AMD H.265.

@Acrivec
Copy link
Author

Acrivec commented Apr 13, 2024

AMD AV1 encoder has a severe limitation, it can only works with widths and heights divisible by 64 (or 32?) if I remember correctly. That's an hardware issue, and there is no way to fix it. A workaround would be to set the correct crop in the container, but then most players ignore container crop values.

However it should happen with AMD H.264 or AMD H.265.

Interesting, but then I'd expect to see those bars when using amd codec acceleration in other apps, such as screen recording through ShareX (with random region size every time!), or adrenalin screen recording?
I remember that I've been also converting av1 to h264 or hevc with those random sizes and didn't get those green bars, though I've been using ffmpeg in command line to do that.

@sr55
Copy link
Contributor

sr55 commented Apr 13, 2024

It affects all apps being a hardware limitation.

Most screen resolutions won't be affected as they are usually divisible by 64 so not that surprising.

Looking at your encode, you might want to drop the cropping down to 0. I do wonder if that's a false positive crop detection. That would bring the resolution up.

@Acrivec
Copy link
Author

Acrivec commented Apr 13, 2024

It affects all apps being a hardware limitation.

Most screen resolutions won't be affected as they are usually divisible by 64 so not that surprising.

Looking at your encode, you might want to drop the cropping down to 0. I do wonder if that's a false positive crop detection. That would bring the resolution up.

As I said, settings do not matter.

Also, I did say that recordings were with random region sizes, so the chances to hit n*64/32 every time is zero.

@sr55
Copy link
Contributor

sr55 commented Apr 13, 2024

Also, I did say that recordings were with random region sizes, so the chances to hit n*64/32 every time is zero.

If this is the issue your seeing, then your sod outa luck. AMD confirmed it was a problem on their end so in all likelihood we'll see it sorted with RNDA 5

However, are you able to share with us a sample file, I can run it here just in-case there is something more going on

@galad87
Copy link
Contributor

galad87 commented Apr 28, 2024

The live preview inside HandBrake doesn't seem to align the video properly sometimes, but I can't reproduce the issue when playing the encoded file in a separate app. I can't test AV1.

@sr55
Copy link
Contributor

sr55 commented Apr 28, 2024

on Windows? That's just an instance of the Windows media player. (Not entirely sure if it's using the legacy or modern API for it but it should then be reproducible in the native app)

The Media Player app, or WMP can be tried separately to confirm

There is an option to use external media player for when compatibility issues occur as I can't do anything about it if they misbehave since it's just an overlay control they provide us.

@sr55
Copy link
Contributor

sr55 commented May 28, 2024

Just checking in if there is a sample you can share.

if not, I don't think there is any further action we can take here.

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

No branches or pull requests

3 participants