VideoHelp Forum



Support our site by donate $5 directly to us Thanks!!!

Try StreamFab Downloader and download streaming video from Netflix, Amazon!



+ Reply to Thread
Results 1 to 3 of 3
  1. 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.

    Image
    [Attachment 71205 - Click to enlarge]
    Quote Quote  
  2. Member
    Join Date
    Feb 2006
    Location
    United States
    Search Comp PM
    Originally Posted by tombkk View Post
    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.

    Image
    [Attachment 71205 - Click to enlarge]
    see here - https://trac.ffmpeg.org/wiki/Encode/YouTube
    Quote Quote  
  3. 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.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!