您的位置:首页 > 科技 > 能源 > ui设计培训班学费大概多少_2345影视大全是免费追剧吗_2024年3月新冠肺炎_西安seo主管

ui设计培训班学费大概多少_2345影视大全是免费追剧吗_2024年3月新冠肺炎_西安seo主管

2024/12/26 11:45:19 来源:https://blog.csdn.net/weixin_44444492/article/details/143572398  浏览:    关键词:ui设计培训班学费大概多少_2345影视大全是免费追剧吗_2024年3月新冠肺炎_西安seo主管
ui设计培训班学费大概多少_2345影视大全是免费追剧吗_2024年3月新冠肺炎_西安seo主管

The .mp4 container format doesn’t support the VP8 codec, which is commonly used in .webm files. MP4 containers typically use the H.264 codec for video and AAC for audio.

You’ll need to re-encode the video using the H.264 codec and re-encode the audio using AAC (or another supported audio codec) for proper conversion. Here’s the updated command:

Correct Command

ffmpeg -ss 00:00:20 -i input.webm -c:v libx264 -c:a aac -strict experimental output.mp4

Explanation:

  • -c:v libx264: Re-encodes the video using the H.264 codec (which is compatible with .mp4).
  • -c:a aac: Re-encodes the audio using the AAC codec (which is supported by .mp4).
  • -strict experimental: This flag allows the use of experimental features, which may be necessary for AAC encoding in some versions of FFmpeg.

Optional: Adjust Quality and Bitrate

You can also control the quality of the output video by adding the -crf option for video quality and the -b:a option for audio bitrate:

  • -crf 23: Controls the quality of the video (lower values give better quality but larger file sizes, with 23 being a reasonable default).
  • -b:a 128k: Sets the audio bitrate to 128 kbps, which is typically good for most purposes.

For example:

ffmpeg -ss 00:00:20 -i input.webm -c:v libx264 -crf 23 -c:a aac -b:a 128k -strict experimental output.mp4

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com