你好,我試圖編碼視頻使用C ffmpeg庫。出於某種原因,當我試圖創建一個格式方面,我得到一個錯誤: [NULL @ 0x7ff574006600] Requested output format 'mp4' is not a suitable output format 我知道我的ffmpeg的編譯與X264的標誌,作爲一個簡單的 ffmpeg -i test.mov test.mp4 工作正常
我已經使用JNA實現了一個hello world libavcodec來生成一個包含純440Hz正弦波的wav文件。但是當我實際運行程序the wav file contains annoying clicks and blips(與pure sin wav created from the C program比較)。我怎麼叫avcodec_encode_audio2錯? 這是我的Java代碼。