ffmpeg實現實時錄音並推流的功能

基本方法就是在原有的推流代碼基礎上(好比rtmp推流的代碼),修改打開輸入設備的代碼改成以下相似的代碼,調整一下源文件的變量等設置,就能夠實現了:ide //輸入(Input) // if ((ret = avformat_open_input(&ifmt_ctx, in_filename, 0, 0)) < 0) { // printf( "Could not open input fil
相關文章
相關標籤/搜索