The encoding might be slow with the second command. Combining that with this answer, which explains how to extract the cover art of an MP3 file, you could do the following: ffmpeg -i filename.mp3 -an -c:v copy cover.jpegįfmpeg -loop 1 -i cover.jpeg -i filename.mp3 -c:v libvpx-vp9 -c:a libopus -b:a 64k -shortest filename.webmĦ4k is the bitrate that you show in the output of ffprobe. The FFmpeg wiki covers that topic in the Slideshow page. If you still want to use WebM, an alternative would be to create a video stream with a still image along with an audio stream. Opus was originally specified for encapsulation in Ogg containers Opus audio streams, like the ones in a WebM container, are supported by other containers: Maybe you can consider using a different container. Unique ID representing the file, as random as possible.Ī binary value that a track/codec can refer to when the attachment is needed. If I tried to use -vcodec copy option, then I get this error: Only VP8 or VP9 or AV1 video and Vorbis or Opus audio and WebVTT subtitles are supported for WebM.Ĭould not write header for output file #0 (incorrect codec parameters ?): Invalid argumentĭoes WebM support cover art? If so, how do I transfer the MP3 cover art over using ffmpeg (or other tool)?Ī human-friendly name for the attached file. Input #0, matroska,webm, from 'webm_bad/B01_01_Matthew_ENGWEBN2DA.webm': Android Media Player doesn't show image for the cover art of the track.VLC Player doesn't show the duration and the progress scrubber doesn't move when playing.Using ffmpeg with libopus codec to convert the file causes a VP9 video stream that doesn't work well. Stream #0:1: Video: mjpeg (Baseline), yuvj444p(pc, bt470bg/unknown/unknown), 300x300, 90k tbr, 90k tbn, 90k tbc (attached pic) I am converting MP3 to Webm and the MP3 file includes a video stream for the cover art.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |