1

What are the WebM (VP9+opus) encoding settings compatible for YouTube import for a video with a still image ?

I tried PAL and NTSC framerates with 48kHz stereo and and image size of 640x360 and kept every other parameters' defaults :

$ ffmpeg -i myOriginialPureAudioFile-CUT.opus -i myAudioFile.png -ac 2 -s 640x360 -strict strict -r pal myAudioFile.webm

But YouTube says :

The video has failed to process. Please make sure you are uploading a supported file type.

1 Answer 1

2

Rather than framerate, the issue is there's only one frame. You'll have to loop the image.

ffmpeg -i Audio.opus -loop 1 -i image.png -pix_fmt yuv420p -ac 2 -s 640x360 -strict strict -r pal -shortest myAudioFile.webm
  • -loop 1 : infinitely loops over the same image
  • -shortest : stops encoding when the shortest input stream has entirely been encoded
10
  • It took 73 min to encode with a 6 min audio source file, are the video frames encoded in differential ? I wonder, since the resulting file is bigger than I expected
    – SebMa
    Commented Nov 20, 2018 at 22:00
  • 1
    are the video frames encoded in differential ? --> yes, they are. The VPx encoders are much slower than the MPEG encoders (x264..). You can add -speed 8 to get a ~2x boost. Although your system appears to be slow, since I get 1x speed (without -speed) for a 640x360@25fps encode.
    – Gyan
    Commented Nov 21, 2018 at 5:27
  • I have an A4-6210 with 8GB of RAM which I bought in the end of 2014. How old is your hardware ? How often must one renew his hardware ?
    – SebMa
    Commented Nov 21, 2018 at 7:13
  • I tested on a 2013 Ivy i5 with 16GB. Passmark shows your CPU to be 1/3rd speed.
    – Gyan
    Commented Nov 21, 2018 at 7:42
  • 1
    Is'nt the motion detection faster when there is no motion in the input ?
    – SebMa
    Commented Nov 22, 2018 at 15:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.