frame_size (1536) was not respected for a non-last frame

用ffmpeg自带的ac3编码,执行编码函数时报错入如下:

[ac3 @ 0x7fed7800f200] frame_size (1536) was not respected for a
non-last frame (avcodec_encode_audio2)

用ac3编码时每次送入编码器的音频采样数应该是1536个采样,不然就会报上述错误。这个数字并非刻意固定,而是跟ac3内部的编码算法原理相关。
关于ac3/aac更多的固定参数配置,可参考之前的博客。
全网找不到,国内音视频之路还有很长的路,音视频人一起加油吧~

ffmpeg是音视频必备,但即使从业数年,它似乎依然有无穷的秘密,感兴趣添加笔者微信:YQW1163720468,加入ffmpeg微信群讨论。但记得备注:ffmpeg爱好者

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
很抱歉,您要求的内容需要用英文进行回答。 以下是一篇生物传记散文,长度约为200-300字: Born in a small town in the countryside, Jane Doe grew up surrounded by nature and animals. She developed a love for the outdoors and a deep appreciation for the natural world at a young age. Her parents, both teachers, encouraged her interests and provided her with the resources she needed to pursue her passions. As Jane grew older, her love for the environment only grew stronger. She studied environmental science in college and went on to earn a master's degree in ecology. Throughout her academic career, Jane worked tirelessly to learn as much as she could about the world around her and to find ways to protect it. After graduation, Jane took a job with a local non-profit organization that focused on preserving wildlife habitats. She spent years working on the ground, conducting research, and advocating for the protection of endangered species. Her work took her all over the world, from the rainforests of South America to the savannas of Africa. Despite the challenges she faced, Jane never lost sight of her goals. Her tireless efforts and unwavering dedication to the cause earned her recognition and respect within the environmental community. She became a respected voice on environmental issues and an inspiring leader for those who shared her passion for preserving the natural world. Today, Jane continues to work tirelessly to protect the environment and raise awareness about the importance of conservation. Her life's work serves as a testament to the power of one person to make a difference and her legacy will live on for generations to come.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

、、、、南山小雨、、、、

分享对你有帮助,打赏一下吧!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值