Error “Transparency encoding with auto_alt_ref does not work” when converting a .mov with Alpha to .webm with alpha with ffmpeg

流过昼夜 提交于 2019-12-21 07:24:43

问题


I am trying to convert a .mov file with alpha transparency into a .webm file and have been following this thread for help: Convert mov with Alpha to VP9 Webm with Alpha Using ffmpeg

The command line I have been using is

ffmpeg -r 24/1 -i Desktop/Skel_Walk_1.mov -c:v libvpx -pix_fmt yuva420p Desktop/Skel_Walk_1.webm

However when I go to run the command it comes up with 2 errors

Transparency encoding with auto_alt_ref does not work

and

Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 
- maybe incorrect parameters such as bit_rate, rate, width or height

I am not too sure what the problem is here, any suggestions, I am very confused!


回答1:


I think I may have solved this, adding -auto-alt-ref 0 before the output fixed this issue!!

Working Command

ffmpeg -i Desktop/Skel_Walk_1.mov -c:v libvpx -pix_fmt yuva420p -auto-alt-ref 0 Desktop/Skel_Walk_1.webm


来源:https://stackoverflow.com/questions/45588064/error-transparency-encoding-with-auto-alt-ref-does-not-work-when-converting-a

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!