国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

JavaCV error AAC with no global headers is currently not supported

這篇具有很好參考價值的文章主要介紹了JavaCV error AAC with no global headers is currently not supported。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

當我使用JavaCV庫(FFmpegFrameGrabber + FFmpegFrameRecorde)嘗試將dhav碼流轉為rtsp的時候,出現(xiàn)了以下報錯:

Error: [rtsp @ 0000002318df7c30] AAC with no global headers is currently not supported.

Exception in thread "pool-1-thread-2" java.lang.RuntimeException: org.bytedeco.javacv.FFmpegFrameRecorder$Exception: avformat_write_header error() error -1094995529: Could not write header to 'rtsp://127.0.0.1:8554/myapp/orange2' (For more details, make sure FFmpegLogCallback.set() has been called.)
    at org.jfjy.jvc.GetBytes2PipedStreamAndPushRTMP$2.run(GetBytes2PipedStreamAndPushRTMP.java:116)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: org.bytedeco.javacv.FFmpegFrameRecorder$Exception: avformat_write_header error() error -1094995529: Could not write header to 'rtsp://127.0.0.1:8554/myapp/orange2' (For more details, make sure FFmpegLogCallback.set() has been called.)
    at org.bytedeco.javacv.FFmpegFrameRecorder.startUnsafe(FFmpegFrameRecorder.java:969)
    at org.bytedeco.javacv.FFmpegFrameRecorder.start(FFmpegFrameRecorder.java:437)
    at org.bytedeco.javacv.FFmpegFrameRecorder.start(FFmpegFrameRecorder.java:432)
    at org.jfjy.jvc.GetBytes2PipedStreamAndPushRTMP.grabAndPush(GetBytes2PipedStreamAndPushRTMP.java:215)
    at org.jfjy.jvc.GetBytes2PipedStreamAndPushRTMP$2.run(GetBytes2PipedStreamAndPushRTMP.java:100)
    ... 3 more

意思就是缺少全局頭部信息的AAC編碼器不被支持,那么給它添加一些配置信息即可。文章來源地址http://www.zghlxwxcb.cn/news/detail-602726.html

//我在這個的基礎上
       recorder.setAudioCodec(AV_CODEC_ID_AAC);
//添加了這行配置就好了
 recorder.setAudioBitrate(grabber.getAudioBitrate());

到了這里,關于JavaCV error AAC with no global headers is currently not supported的文章就介紹完了。如果您還想了解更多內容,請在右上角搜索TOY模板網以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網!

本文來自互聯(lián)網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。如若轉載,請注明出處: 如若內容造成侵權/違法違規(guī)/事實不符,請點擊違法舉報進行投訴反饋,一經查實,立即刪除!

領支付寶紅包贊助服務器費用

相關文章

  • 【一步搞定】uniapp運行微信小程序時報錯routeDone with a webviewId ** that is not the current page

    【一步搞定】uniapp運行微信小程序時報錯routeDone with a webviewId ** that is not the current page

    每次刷新還不同webviewId??! 每次刷新還不同webviewId??! 已試過其他帖子,設置pages.json的配置仍舊無效的,可以繼續(xù)往下。 小程序基礎庫支持的問題。 基礎庫版本 版本 實測效果 3.0 無效 2.33.0 無效 2.32.3 無效 2.32.1 無效 2.30.4 無效 2.29.2 無效 2.28.1 無效 2.27.3 無效 2.26.2 有效 點

    2024年04月09日
    瀏覽(80)
  • uni-app運行微信小程序時報錯routeDone with a webviewId 2 that is not the current page

    uni-app運行微信小程序時報錯routeDone with a webviewId 2 that is not the current page

    ?在開發(fā)微信小程序時使用HBuilderX uni-app開發(fā)運行項目的時候新手可能會出現(xiàn) routeDone with a webviewId 1 that is not the current page 這個報錯,有時是因為調試基礎庫處于灰度中所以會出現(xiàn)這個報錯信息,想解決這個報錯我們可以嘗試降一下微信開發(fā)者工具的調試基礎庫,總共分為三步

    2024年02月11日
    瀏覽(91)
  • React refers to UMD global, but the current file is a module vite初始化react項目

    React refers to UMD global, but the current file is a module vite初始化react項目

    初始化項目 在執(zhí)行完上面的命令后,npm 首先會自動下載create-vite這個第三方包,然后執(zhí)行這個包中的項目初始化邏輯。輸入項目名稱之后按下回車,此時需要選擇構建的前端框架: 選中react后們還有個選項,我們選擇typescript 切換到項目按照依賴后跑起來 ? React refers to UMD

    2024年02月09日
    瀏覽(25)
  • 已解決note: This error originates from a subprocess,and is likely not a problem with pip.

    已解決note: This error originates from a subprocess,and is likely not a problem with pip.

    已解決(pip安裝第三方模塊lxml模塊報錯)Building wheels for collected packages: lxml Building wheel for lxml (setup.py) … error error: subprocess-exited-with-error python setup.py bdist_wheel did not run successfully. note: This error originates from a subprocess,and is likely not a problem with pip. ERROR: Failed building wheel for lxml n

    2024年01月18日
    瀏覽(23)
  • pip安裝庫時報錯:This error originates from a subprocess, and is likely not a problem with pip.

    pip安裝庫時報錯:This error originates from a subprocess, and is likely not a problem with pip.

    前言 一 二、使用步驟 1.引入庫 2.讀入數(shù)據(jù) 總結 ? 安裝庫時出現(xiàn)以下報錯 查看要安裝的庫的版本: 我的python版本3.10所以安了mayavi的最高的版本 ?successful

    2024年02月11日
    瀏覽(20)
  • Spring Cloud LoadBalancer is currently working with the default cache.

    springcloud eureka server啟動時警告信息: iguration$LoadBalancerCaffeineWarnLogger :? Spring Cloud LoadBalancer is currently working with the default cache.? While this cache implementation is useful for development and tests, ?it\\\'s recommended to use Caffeine cache in production.You can switch to using Caffeine cache,? ?by adding it and org.spr

    2024年02月12日
    瀏覽(17)
  • postman錯誤提示“Current request is not a multipart request”

    postman錯誤提示“Current request is not a multipart request”

    今天在寫業(yè)務進行批量上傳文件時,用postman測試發(fā)現(xiàn)報500錯誤----Current request is not a multipart request,翻譯了一下大概意思是 當前請求不是多部分請求 ,所以就很納悶。今天特意記錄一下 首先我們上傳文件時,在postman里面選擇Body---form-data,如下圖所示 ?從錯誤提示看,報錯的

    2024年02月11日
    瀏覽(29)
  • linux 切換用戶報錯:This account is currently not available

    在用su命令切換用戶的時候,報錯This account is currently not available。這是因為用戶的shell禁止登陸了。 有兩種方式可以解決: 方式一:修改/etc/passwd 方式二:使用命令修改

    2024年02月09日
    瀏覽(24)
  • Git 分支跟蹤There is no tracking information for the current branch.

    當你執(zhí)行在develop分支上 git pull 返回提示: 解決辦法,即按照提示: 查看本地分支的遠端跟蹤分支 要查看本地分支跟蹤的遠端分支,可以使用 git branch 命令搭配不同的選項。以下是一些常用的命令及其說明: 查看所有本地分支及對應的遠端跟蹤分支: 使用 -vv 選項可以顯示

    2024年02月21日
    瀏覽(22)
  • 多種方法解決There is no tracking information for the current branch的錯誤

    多種方法解決There is no tracking information for the current branch的錯誤

    今天發(fā)布某版本的項目,準備創(chuàng)建個 v0point1 分支,后期如果修改該版本,直接在該分支上修改即可。 首先,使用 git branch v0point1 命令,創(chuàng)建本地分支 v0point1 ,如下圖所示: 其次,使用 git checkout v0point1 命令,切換到 v0point1 分支,如下圖所示: 當然,我們也可以使用 git ch

    2024年02月09日
    瀏覽(36)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領取紅包,優(yōu)惠每天領

二維碼1

領取紅包

二維碼2

領紅包