frame_size (1536) was not respected for a non-last frame
for not size was Non Last Frame
2023-09-14 09:12:46 时间
用ffmpeg自带的ac3编码,执行编码函数时报错入如下:
[ac3 @ 0x7fed7800f200] frame_size (1536) was not respected for a
non-last frame (avcodec_encode_audio2)
用ac3编码时每次送入编码器的音频采样数应该是1536个采样,不然就会报上述错误。这个数字并非刻意固定,而是跟ac3内部的编码算法原理相关。
关于ac3/aac更多的固定参数配置,可参考之前的博客。
全网找不到,国内音视频之路还有很长的路,音视频人一起加油吧~
![](https://img-blog.csdnimg.cn/32ebb60e13f9449496052c247d2ccf65.png)
![](https://img-blog.csdnimg.cn/1b3e3fc19f5f4837a6514769eabf4e10.png)
![](https://img-blog.csdnimg.cn/32ebb60e13f9449496052c247d2ccf65.png)
相关文章
- Struts2.5以上版本There is no Action mapped for namespace [/] and action name [userAction_login] associated with context path []
- 【Maven错误】 Non-resolvable parent POM for ...... Return code is: 500 , ReasonPhrase:Internal Server Error. and 'parent.relativePath' points at no local POM @ line 14, column 11
- 【异常及源码分析】org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping
- JavaWeb 并发:FOR UPDATE 实战,监测并解决。
- [Bash] Create Aliases in .bash_profile for Common Bash Commands
- EasyNVR depends on ffmpeg,yasm/nasm not found or too old. Use --disable-yasm for a crippledbuild
- nfs 客户端启动报错rpc.mountd: svc_tli_create: could not open connection for tcp6
- [Typescript] Step1 & 2 for converting a js app to ts
- [Docker] Create a Docker configuration for a NestJS API
- [Node] Catch error for async await
- python卸载或者安装时提示There is a problem with this Windows Installer package.A program required for this install to complete could not be run. Contact your support personnel or package vendor
- The specified executable is not a validapplication for this OS platform.
- SAP UI5:如何处理resource not found for the segment XXXXX error message
- Mark task complete in checkbox S2 Resource not found for the segment Tasks
- 错误消息Form of address 0001 not designated for organization
- 如何处理object family XXX is not intended for installed base category issue
- 成功解决ValueError: DataFrame.dtypes for label must be int, float or bool
- DataGrip设置长sql语句自动换行 & Navicat工具 结构同步 & idea启动maven项目报:'@' that cannot start any token. (Do not use @ for indentation)
- for and range()
- EVO HTML to PDF Converter for .Net Crack
- 【MG Benchmarking 】Molecular Sets (MOSES): A Benchmarking Platform for Molecular Generation Models