OpenVisualCloud / Dockerfiles

Optimized media, analytics and graphics software stack images. Use the dockerfile(s) in your project or as a recipe book for bare metal installation.
BSD 3-Clause "New" or "Revised" License
125 stars 77 forks source link

FFmpeg throws error when transcoding from H.264 (in mp4) to AV1 webm #144

Closed jhou5 closed 5 years ago

jhou5 commented 5 years ago

Steps to produce

  1. Run command ‘ffmpeg -i input.mp4 -c:v libsvt_av1 -c:a copy output-av1.webm’ to transcode H.264 video file input.mp4 to AV1 content, output-av1.webm
  2. Observation: ffmpeg throws errors: [webm @ 0xddf580] Only VP8 or VP9 or AV1 video and Vorbis or Opus audio and WebVTT subtitles are supported for WebM. Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument Error initializing output stream 0:0 -- Conversion failed!
jhou5 commented 5 years ago

https://github.com/OpenVisualCloud/SVT-AV1/pull/286 is working for this issue, tried ffmpeg -i input.mp4 -c:v libsvt_av1 -c:a libvorbis output-av1.webm works, but "ffmpeg -i input.mp4 -c:v libsvt_av1 -c:a copy output-av1.webm’" still doesn't work. @ttao1 , pls. see if it meet your requirement.

jhou5 commented 5 years ago

The issue is fixed with PR #168, with limitaton Vorbis or Opus audio supported