”Could not find tag for codec none in stream #0, codec not currently supported in container”的解决方法
2016-12-21 16:44
169 查看
利用ffmpeg进行转码或是编码输出文件时,利用avformat_write_header写入头信息,有时会报出“Could not find tag for codec none in stream #0, codec not currently supported in container”的问题,错误信息的字面意思也很明白,不能在container(如MP4、TS等封装格式)的相应流中找到编码器信息,找不到的原因可能会有很多,主要有参数设置不对,音视频流的id错误或是ffmpeg库中不支持此编码方式等,这些原因在我的代码中均被排除,跟踪调试数据发现流中的编码器信息没有具体值,在avcodec_open2
成功之后,利用avcodec_parameters_from_context将编码器的参数赋值给AVStream中的codecpar字段,问题解决,运行成功!
成功之后,利用avcodec_parameters_from_context将编码器的参数赋值给AVStream中的codecpar字段,问题解决,运行成功!
相关文章推荐
- hibernate实体类报错:Could not find a setter for property * in class * 解决方法
- could not find a getter for in class方法解决
- could not find a getter for ... in class ... 异常的解决
- could not find a getter for ... in class ... 异常的解决
- ffmpeg打开视频解码器失败:Could not find codec parameters for stream 0 (Video: h264): unspecified size
- Could not find destination factory for transport解决方法
- 在JBoss中部署JSF应用时报错"Could not find backup for factory javax.faces.application.ApplicationFactory" 解决方法
- could not find a getter for ... in class ... 异常的解决
- Debug:SSH继承时 could not find a getter for ... in class ... 异常的解决
- Could not find destination factory for transport解决方法
- could not find a getter for ... in class ... 异常的解决
- Ant error: Could not find xml-commons-apis Java extension for this JVM解决方法
- 打不开Anaconda spyder:could not find or load the QT platform plugin "window in"简单解决方法
- Can not find the tag library descriptor for "http://www.springframework.org/tags/form" 解决方法
- 解决:ould not find a getter for porDate in class com.bc.bean.PortalSheet Caused by: org.hibernate.PropertyNotFoundException: Could
- 打不开Anaconda Navigator:could not find or load the QT platform plugin "window in"简单解决方法
- Can not find the tag library descriptor for “http://java.sun.com/jsp/jstl/core” 解决方法
- dependency.rb:247:in `to_specs': Could not find rake (>= 0) amongst 的解决方法
- Ant error: Could not find xml-commons-apis Java extension for this JVM解决方法
- 阿里云CentOS 6.5 Docker无法启动 Could not find a free IP address range for interface 'docker0' 最方便的解决方法