ffmpeg:Codec for stream 0 does not use global headers but container format requires global headers
生活随笔
收集整理的這篇文章主要介紹了
ffmpeg:Codec for stream 0 does not use global headers but container format requires global headers
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
ubuntu下,我用.h264轉(zhuǎn)換.mp4格式提示一下信息:
ffmpeg -i 1e1fee9790f26fa3_202214225310.h264 -vcodec copy -f mp4 test.mp4
這個也不算個錯誤,就是個警告,如果想消除可以這樣
ffmpeg -i 1e1fee9790f26fa3_202214225310.h264 -vcodec copy -flags +global_header -f mp4 test.mp4
加上-flags +global_header,就不會報提示了
參考文章1:加密的m3u8、ts文件合并
參考文章2:ffmpeg 處理輸入 h264 到 h265 時發(fā)現(xiàn)無效數(shù)據(jù)
總結(jié)
以上是生活随笔為你收集整理的ffmpeg:Codec for stream 0 does not use global headers but container format requires global headers的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 阻塞、非阻塞、超时(同步与异步)
- 下一篇: muxer、demuxer muxer是