HandBrake / HandBrake

HandBrake's main development repository
https://handbrake.fr
Other
17.66k stars 1.34k forks source link

PlayStation 5 gameplay (.webm) Converted to .mp4 Has Flashing/Strobing Artifacts #3247

Closed edepot closed 3 years ago

edepot commented 3 years ago

Problem description:

PlayStation 5 has feature where it will capture gameplay if you press a button. The captured gameplay video is in .WEBM format. Converting the .webm video to default .mp4 using Handbrake shows flashing strobing artifacts in the converted video: https://youtu.be/kfla2im3Smo

HandBrake version (e.g., 1.3.0):

1.3.3

Operating system and version (e.g., Ubuntu 19.10, macOS 10.15 Catalina, Windows 10 1909):

macOS Big Sur (11.0.1) Intel CPU

Error message text and/or screenshot:

Converted handbrake video showing strobing, flashing problem uploaded to YouTube: https://youtu.be/kfla2im3Smo

HandBrake Activity Log:

It affects ALL PS5 .webm captured gameplay videos converted to .mp4 (using default settings).

sr55 commented 3 years ago

We'd need a sample file from source to look into it and a full activity log.

None of us have PS5 so we have no way to replicate this.

edepot commented 3 years ago

Here is the activity log. The file converted is called ASTRO's PLAYROOM_20201124200740.webm That .webm files is huge, multi Gigabytes. Are you sure you want me to upload it?

[00:14:33] macgui: Handbrake Version: 1.3.3 (2020061300) [00:14:33] hb_init: starting libhb thread [00:14:33] Compile-time hardening features are enabled [00:14:34] hb_init: starting libhb thread [00:14:39] macgui: ScanCore scanning titles with a duration of 10 seconds or more [00:14:39] CPU: Intel(R) Core(TM) i5-4690 CPU @ 3.50GHz [00:14:39] - Intel microarchitecture Haswell [00:14:39] - logical processor count: 4 [00:14:39] hb_scan: path=/Users/edepot/Desktop/ASTRO's PLAYROOM_20201124200740.webm, title_index=0 udfread ERROR: ECMA 167 Volume Recognition failed disc.c:323: failed opening UDF image /Users/edepot/Desktop/ASTRO's PLAYROOM_20201124200740.webm 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(/Users/edepot/Desktop/ASTRO's PLAYROOM_20201124200740.webm/) failed [00:14:39] 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 [00:14:39] dvd: not a dvd - trying as a stream/file instead Input #0, matroska,webm, from '/Users/edepot/Desktop/ASTRO's PLAYROOM_20201124200740.webm': Metadata: encoder : mkvmux-1.0.0 Duration: 00:59:57.99, start: -0.003000, bitrate: 18367 kb/s Stream #0:0: Video: vp9 (Profile 0), yuv420p(pc, bt709), 1920x1088, SAR 136:135 DAR 16:9, 59.94 fps, 59.94 tbr, 1k tbn, 1k tbc (default) Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp (default) [00:14:39] scan: decoding previews for title 1 [00:14:39] scan: audio 0x1: opus, rate=48000Hz, bitrate=1 Unknown (Opus) (2.0 ch) [00:14:39] scan: 10 previews, 1920x1088, 59.940 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 136:135 [00:14:39] libhb: scan thread found 1 valid title(s) [00:14:40] macgui: ScanCore scan done [00:16:33] macgui: QueueCore scanning specifically for title: 1 [00:16:33] CPU: Intel(R) Core(TM) i5-4690 CPU @ 3.50GHz [00:16:33] - Intel microarchitecture Haswell [00:16:33] - logical processor count: 4 [00:16:33] hb_scan: path=/Users/edepot/Desktop/ASTRO's PLAYROOM_20201124200740.webm, title_index=1 udfread ERROR: ECMA 167 Volume Recognition failed disc.c:323: failed opening UDF image /Users/edepot/Desktop/ASTRO's PLAYROOM_20201124200740.webm 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(/Users/edepot/Desktop/ASTRO's PLAYROOM_20201124200740.webm/) failed [00:16: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 [00:16:33] dvd: not a dvd - trying as a stream/file instead Input #0, matroska,webm, from '/Users/edepot/Desktop/ASTRO's PLAYROOM_20201124200740.webm': Metadata: encoder : mkvmux-1.0.0 Duration: 00:59:57.99, start: -0.003000, bitrate: 18367 kb/s Stream #0:0: Video: vp9 (Profile 0), yuv420p(pc, bt709), 1920x1088, SAR 136:135 DAR 16:9, 59.94 fps, 59.94 tbr, 1k tbn, 1k tbc (default) Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp (default) [00:16:33] scan: decoding previews for title 1 [00:16:33] scan: audio 0x1: opus, rate=48000Hz, bitrate=1 Unknown (Opus) (2.0 ch) [00:16:34] scan: 10 previews, 1920x1088, 59.940 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 136:135 [00:16:34] libhb: scan thread found 1 valid title(s) [00:16:34] macgui: QueueCore scan done [00:16:34] macgui: QueueCore started encoding ASTRO's PLAYROOM_20201124200740.mp4 [00:16:34] macgui: QueueCore with preset Fast 1080p30 [00:16:34] Starting work at: Sun Nov 29 00:16:34 2020

[00:16:34] 1 job(s) to process [00:16:34] Starting Task: Encoding Pass [00:16:34] work: only 1 chapter, disabling chapter markers [00:16:34] job configuration: [00:16:34] source [00:16:34] + /Users/edepot/Desktop/ASTRO's PLAYROOM_20201124200740.webm [00:16:34] + title 1, chapter(s) 1 to 1 [00:16:34] + container: matroska,webm [00:16:34] + data rate: 18367 kbps [00:16:34] destination [00:16:34] + /Users/edepot/Documents/ASTRO's PLAYROOM_20201124200740.mp4 [00:16:34] + container: MPEG-4 (libavformat) [00:16:34] + align initial A/V stream timestamps [00:16:34] video track [00:16:34] + decoder: vp9 [00:16:34] + filters [00:16:34] + 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) [00:16:34] + Decomb (mode=39) [00:16:34] + Framerate Shaper (mode=2:rate=27000000/900000) [00:16:34] + frame rate: 59.940 fps -> peak rate limited to 30.000 fps [00:16:34] + Crop and Scale (width=1920:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0) [00:16:34] + source: 1920 1088, crop (0/0/0/0): 1920 1088, scale: 1920 1080 [00:16:34] + Output geometry [00:16:34] + storage dimensions: 1920 x 1080 [00:16:34] + pixel aspect ratio: 1 : 1 [00:16:34] + display dimensions: 1920 x 1080 [00:16:34] + encoder: H.264 (libx264) [00:16:34] + preset: fast [00:16:34] + profile: main [00:16:34] + level: 4.0 [00:16:34] + quality: 22.00 (RF) [00:16:34] + color profile: 1-1-1 [00:16:34] * audio track 1 [00:16:34] + decoder: Unknown (Opus) (2.0 ch) (track 1, id 0x1) [00:16:34] + samplerate: 48000 Hz [00:16:34] + mixdown: Stereo [00:16:34] + dither: triangular [00:16:34] + encoder: AAC (Apple AudioToolbox) [00:16:34] + bitrate: 160 kbps, samplerate: 48000 Hz [00:16:34] sync: expecting 215664 video frames [00:16:34] encx264: min-keyint: 30, keyint: 300 [00:16:34] encx264: encoding at constant RF 22.000000 [00:16:34] 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 x264 [info]: profile Main, level 4.0, 4:2:0, 8-bit [00:16:34] sync: first pts video is 0 [00:16:34] sync: "Chapter 1" (1) at frame 1 time 0 [00:16:34] sync: first pts audio 0x1 is 0 [01:36:17] reader: done. 1 scr changes [01:36:19] work: average encoding speed for job is 45.075836 fps [01:36:19] comb detect: heavy 18488 | light 25826 | uncombed 171350 | total 215664 [01:36:19] decomb: deinterlaced 18488 | blended 25826 | unfiltered 171350 | total 215664 [01:36:19] vfr: 107833 frames output, 107831 dropped and 0 duped for CFR/PFR [01:36:19] vfr: lost time: 0 (0 frames) [01:36:19] vfr: gained time: 0 (0 frames) (0 not accounted for) [01:36:19] opus-decoder done: 179900 frames, 0 decoder errors [01:36:19] vp9-decoder done: 215664 frames, 0 decoder errors [01:36:19] sync: got 215664 frames, 215664 expected [01:36:19] sync: framerate min 43.478 fps, max 59.940 fps, avg 59.940 fps x264 [info]: frame I:469 Avg QP:18.55 size:166689 x264 [info]: frame P:35481 Avg QP:21.72 size: 46022 x264 [info]: frame B:71883 Avg QP:23.45 size: 13363 x264 [info]: consecutive B-frames: 7.7% 7.6% 8.4% 76.4% x264 [info]: mb I I16..4: 33.8% 0.0% 66.2% x264 [info]: mb P I16..4: 8.7% 0.0% 5.0% P16..4: 37.2% 14.6% 8.7% 0.0% 0.0% skip:25.8% x264 [info]: mb B I16..4: 5.3% 0.0% 1.2% B16..8: 25.4% 6.1% 0.4% direct: 7.6% skip:54.0% L0:42.2% L1:48.5% BI: 9.2% x264 [info]: coded y,uvDC,uvAC intra: 29.1% 47.9% 20.1% inter: 10.7% 20.2% 2.6% x264 [info]: i16 v,h,dc,p: 40% 34% 15% 12% x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 19% 22% 6% 7% 6% 7% 5% 5% x264 [info]: i8c dc,h,v,p: 55% 24% 17% 4% x264 [info]: Weighted P-Frames: Y:17.1% UV:16.5% x264 [info]: ref P L0: 79.0% 21.0% x264 [info]: ref B L0: 81.8% 18.2% x264 [info]: ref B L1: 92.5% 7.5% x264 [info]: kb/s:5940.30 [01:36:19] mux: track 0, 107833 frames, 2671639078 bytes, 5940.22 kbps, fifo 2048 [01:36:19] mux: track 1, 168659 frames, 73966456 bytes, 164.46 kbps, fifo 2048 [01:36:19] Finished work at: Sun Nov 29 01:36:19 2020

[01:36:19] libhb: work result = 0 [01:36:19] macgui: Queue Done, there are no more pending encodes [01:36:19] macgui: QueueCore work done

Shakil-Shahadat commented 3 years ago

You can make a small recording and then upload it.

edepot commented 3 years ago

Is there an option in Handbrake to just convert a few seconds of the video? If yes, how do I do it?

sr55 commented 3 years ago

It's a sample of the input file we need to reproduce this. Not an encoded sample.

If you could record a few seconds of random gameplay that reproduces it, that would be ideal

Shakil-Shahadat commented 3 years ago

Devs need a sample of the input, apart from that, you can convert a few seconds of the video by selecting range to seconds.

sr55 commented 3 years ago

We've not heard back in a while so we are closing this issue out. If you or anyone else can provide an input file (i.e. a short clip of what PS5 exports), we can look into it further.

Thanks

edepot commented 3 years ago

Why was this closed? Please at least allow time for people to respond. I figured out the problem that was causing the flashing... It was the default deinterlace filter being on. I turned it off and it no longer flashed in the final conversion. Please let the developers know that there is a problem with the deinterlace filter (the default settings when you run the program). The solution (and bug fix) is to turn it off for now until they get to the bottom of why it has a problem with PS5's default gameplay save format.

bradleysepos commented 3 years ago

It's no problem to reopen. Thanks for the feedback. It would really help if you could provide a very short sample so we can reproduce the issue here. Thanks again.

sr55 commented 3 years ago

@edepot - Several weeks passed without a response and since we have no sample file and no evidence of any problem in HandBrake that we can track down the only thing we can do is close. As I stated above, "If you or anyone else can provide an input file (i.e. a short clip of what PS5 exports), we can look into it further." which we can do if a file is provided.

Either way, we still need a sample webm file from the PS5 otherwise there is nothing for us to look into. It could well be the PS5 is producing a non-complaint or broken file in some way but we can't know this without looking at it.

sr55 commented 3 years ago

One final call for a sample file. If we don't have a recorded sample from the PS5 to check out, there is nothing more we can do here and I'll close this out again until such time a sample appears.

ChadMaverick commented 3 years ago

Hi, I have a raw .webm file that starts flickering when I convert it into mp4 with Handbrake, whats the prefered way of uploading the file to you?

[Edit] added it to easyupload.io https://easyupload.io/iezsly

Example of converted mp4 video https://easyupload.io/pi5a9z

Do tell if it should be uploaded somewhere else

galad87 commented 3 years ago

Can you try a nightly build? https://handbrake.fr/nightly.php I can't reproduce it in the latest one.

ChadMaverick commented 3 years ago

Hi @galad87 there is no issue when I use the latest nightly build. used this one and the output looks fine

HandBrake-20210704-1b7c4ba58_x86_64-Win_GUI