Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试将视频流和音频流混合到 mp4 文件中,而目标文件的 sar 不合适(与源文件不同)。
以下方法没有任何意义。1、使用avcodec_copy_context()。它不能将目标 sar 设置为源。
2、直接设置目标流的sar。目标sar不是我在writeHeader之前在视频流中设置的那个。
我使用的版本是 2.8.1。