I am generating short videos from screenshots (e.g. 900 screenshots for a 30 seconds clip) with ffmpeg.
It works great and I can play the videos in different video players on Windows without a problem. When I upload the video to my YouTube channel it still works fine in the small preview under studio.youtube.com. But as soon as I preview the video on YouTube the whole video is "scrambled" (see attached image).
Other YouTube videos uploaded by other users play fine in my Chrome.
I am using Chrome and if I deactivate Hardware Acceleration in Chrome settings the video plays fine on YouTube. But that obviously is not a viable solution. Users should be able to watch the videos on YouTube without changing settings.
The video also plays fine in the Android YouTube app and in Firefox on Windows.
I have tried a lot of settings for ffmpeg - no success.
This is one of the commands I have tried. The parameters are supposed to be according to YouTube's best practice requirements:
Code:ffmpeg -r 30 -s 1080x1920 -i storage/screenshot-%03d.jpg -pix_fmt yuv420p -c:v libx264 -profile:v high -preset slow -crf 18 -g 30 -bf 2 storage/testvideo.mp4
Has anybody experienced this problem with ffmpeg generated YouTube videos on Chrome and solved the problem? Any idea appreciated.
[Attachment 71205 - Click to enlarge]
Support our site by donate $5 directly to us Thanks!!!
Try StreamFab Downloader and download streaming video from Netflix, Amazon!
Try StreamFab Downloader and download streaming video from Netflix, Amazon!
+ Reply to Thread
Results 1 to 3 of 3
-
-
see here - https://trac.ffmpeg.org/wiki/Encode/YouTube
-
Thank you.
I have studied this website already and as you see had already implemented their recommendation (-pix_fmt yuv420p) into my original command.
When I play YouTube shorts in Chrome and open "Stats for Nerds" by right clicking on the video I can see that the following codecs are used in my video:
vp09.00.51.08.01.01.01.01.00 (244) / opus (250)
Videos from other users that are working in Chrome use the following codecs though:
av01.0.04M.08 (397) / opus (251)
So if I could use av01.0.04M.08 (397) with ffmpeg then the videos might play without problem?
Any ideas?Last edited by tombkk; 24th May 2023 at 00:30.
Similar Threads
-
Add an auto- generated subtitle to a private Youtube video
By loninappleton in forum SubtitleReplies: 4Last Post: 12th Jan 2022, 01:17 -
HD YouTube video: Safari allows 1080p, Chrome maxes out at 480p. Why?
By black_tooth in forum Video Streaming DownloadingReplies: 14Last Post: 9th Oct 2021, 09:38 -
Upload 3 files to YouTube as a single video
By Knocks in forum EditingReplies: 8Last Post: 4th Jan 2021, 13:40 -
Video changes colour after i upload to YouTube
By Master Tape in forum Video Streaming DownloadingReplies: 5Last Post: 5th Nov 2020, 17:26 -
Upload an unlisted video on youtube
By linhnv231 in forum Newbie / General discussionsReplies: 4Last Post: 22nd Sep 2018, 00:40