pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

  • <tfoot id='kREmF'></tfoot>
      <bdo id='kREmF'></bdo><ul id='kREmF'></ul>
    <legend id='kREmF'><style id='kREmF'><dir id='kREmF'><q id='kREmF'></q></dir></style></legend>

      <i id='kREmF'><tr id='kREmF'><dt id='kREmF'><q id='kREmF'><span id='kREmF'><b id='kREmF'><form id='kREmF'><ins id='kREmF'></ins><ul id='kREmF'></ul><sub id='kREmF'></sub></form><legend id='kREmF'></legend><bdo id='kREmF'><pre id='kREmF'><center id='kREmF'></center></pre></bdo></b><th id='kREmF'></th></span></q></dt></tr></i><div class="trhrn7z" id='kREmF'><tfoot id='kREmF'></tfoot><dl id='kREmF'><fieldset id='kREmF'></fieldset></dl></div>

      <small id='kREmF'></small><noframes id='kREmF'>

      1. FFmpeg 可以連接來自不同域的文件嗎?

        Can FFmpeg concatenate files from a different domain?(FFmpeg 可以連接來自不同域的文件嗎?)
        <i id='kabQE'><tr id='kabQE'><dt id='kabQE'><q id='kabQE'><span id='kabQE'><b id='kabQE'><form id='kabQE'><ins id='kabQE'></ins><ul id='kabQE'></ul><sub id='kabQE'></sub></form><legend id='kabQE'></legend><bdo id='kabQE'><pre id='kabQE'><center id='kabQE'></center></pre></bdo></b><th id='kabQE'></th></span></q></dt></tr></i><div class="xxvdzhz" id='kabQE'><tfoot id='kabQE'></tfoot><dl id='kabQE'><fieldset id='kabQE'></fieldset></dl></div>

          <small id='kabQE'></small><noframes id='kabQE'>

            <tbody id='kabQE'></tbody>

              <bdo id='kabQE'></bdo><ul id='kabQE'></ul>

              • <tfoot id='kabQE'></tfoot>
                <legend id='kabQE'><style id='kabQE'><dir id='kabQE'><q id='kabQE'></q></dir></style></legend>

                1. 本文介紹了FFmpeg 可以連接來自不同域的文件嗎?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在嘗試將各種 .ts 視頻剪輯連接成一個視頻,然后將視頻轉換為 .mp4 文件.我知道我可以制作一個格式如下的 .txt 文件:

                  I'm attempting to concatenate various .ts video clips into one video and then convert the video into an .mp4 file. I know I can make a .txt file formatted like so:

                  file '/path/to/file1'
                  file '/path/to/file2'
                  file '/path/to/file3'
                  

                  然后像這樣連接它們:

                  ffmpeg -f concat -i mylist.txt -c copy all.ts
                  

                  然后像這樣轉換文件:

                  ffmpeg -i all.ts -acodec copy -vcodec copy all.mp4
                  

                  我的問題是,我的 .txt 文件可以是來自另一個域的網址嗎?例如:

                  My question is, can my .txt file be urls from another domain? e.g.:

                  http://somewebsite.com/files/videoclip1.ts
                  http://somewebsite.com/files/videoclip2.ts
                  http://somewebsite.com/files/videoclip3.ts
                  

                  或者,我是否必須先下載所有這些剪輯,將它們本地存儲在我的域中,然后制作一個指向它們的 .txt 文件?我正在使用 PHP.謝謝.

                  Or, do I first have to download all these clips, store them locally on my domain, then make a .txt file pointing to them? I'm using PHP. Thanks.

                  推薦答案

                  是的,這是可能的.請注意,在以下示例中,我使用了您問題中的 url 和文件名,測試時我在自己的網絡服務器上使用了一些測試文件.

                  Yes, this is possible. Note that in the following examples I use the urls and filenames from your question, when testing I used some test files on my own web server.

                  使用您提供的示例文本文件嘗試此操作將給出非常明確的錯誤消息:

                  Trying this with the example text file you provided will give a pretty clear error message:

                  [concat @ 0x7f892f800000] 第 1 行:未知關鍵字 'http://somewebsite.com/files/videoclip1.ts

                  [concat @ 0x7f892f800000] Line 1: unknown keyword 'http://somewebsite.com/files/videoclip1.ts

                  mylist.txt:處理輸入時發現無效數據

                  mylist.txt: Invalid data found when processing input

                  通過在 mylist.txt 中重新引入 'file' 關鍵字很容易解決這個問題:

                  This is easily fixed by re-introducing the 'file' keyword in mylist.txt:

                  file 'http://somewebsite.com/files/videoclip1.ts'
                  file 'http://somewebsite.com/files/videoclip2.ts'
                  file 'http://somewebsite.com/files/videoclip3.ts'
                  

                  更新后的文件會給出不同的錯誤信息:

                  That updated file will give a different error message:

                  [concat @ 0x7fa467800000] 不安全的文件名 'http://somewebsite.com/files/videoclip1.ts'

                  [concat @ 0x7fa467800000] Unsafe file name 'http://somewebsite.com/files/videoclip1.ts'

                  mylist.txt:不允許操作

                  mylist.txt: Operation not permitted

                  這樣做的原因是ffmpeg默認不允許http-urls.這可以通過在 ffmpeg 調用中包含 -safe 0 參數before -i 參數來繞過:

                  The reason for this is that ffmpeg will not allow http-urls by default. This can be bypassed by including the -safe 0 argument in your ffmpeg call before the -i argument:

                  ffmpeg -f concat -safe 0 -i mylist.txt -c copy all.ts
                  

                  這可能在您的安裝中開箱即用,在我的安裝中,這給出了另一條錯誤消息:

                  This might work out of the box on your installation, on mine this gave another error message:

                  [http @ 0x7faa68507940] 協議 'http' 不在白名單 'file,crypto' 中!

                  [http @ 0x7faa68507940] Protocol 'http' not on whitelist 'file,crypto'!

                  [concat @ 0x7faa69001200] 無法打開 'http://somewebsite.com/files/videoclip1.ts'

                  [concat @ 0x7faa69001200] Impossible to open 'http://somewebsite.com/files/videoclip1.ts'

                  mylist.txt:無效參數

                  mylist.txt: Invalid argument

                  這是因為,在我的安裝中,ffmpeg 的默認協議白名單僅包括 filecrypto.為了也允許 http 協議,我們需要在命令中明確提供允許的協議白名單.事實證明,tcp 也是必需的:

                  This is because, on my installation, ffmpeg's default protocol whitelist only includes file and crypto. To allow the http protocol as well, we need to explicitly provide the allowed protocols whitelist in the command. As it turns out, tcp is also required:

                  ffmpeg -f concat -safe 0 -protocol_whitelist file,http,tcp -i mylist.txt -c copy all.ts
                  

                  這允許我的安裝下載和連接視頻文件.

                  This allowed my installation to download and concatenate the video files.

                  這篇關于FFmpeg 可以連接來自不同域的文件嗎?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  MySQLi prepared statement amp; foreach loop(MySQLi準備好的語句amp;foreach 循環)
                  Is mysqli_insert_id() gets record from whole server or from same user?(mysqli_insert_id() 是從整個服務器還是從同一用戶獲取記錄?)
                  PHP MySQLi doesn#39;t recognize login info(PHP MySQLi 無法識別登錄信息)
                  mysqli_select_db() expects exactly 2 parameters(mysqli_select_db() 需要 2 個參數)
                  Php mysql pdo query: fill up variable with query result(Php mysql pdo 查詢:用查詢結果填充變量)
                  MySQLI 28000/1045 Access denied for user #39;root#39;@#39;localhost#39;(MySQLI 28000/1045 用戶“root@“localhost的訪問被拒絕)
                2. <legend id='Ls5o6'><style id='Ls5o6'><dir id='Ls5o6'><q id='Ls5o6'></q></dir></style></legend>
                        <bdo id='Ls5o6'></bdo><ul id='Ls5o6'></ul>
                        <i id='Ls5o6'><tr id='Ls5o6'><dt id='Ls5o6'><q id='Ls5o6'><span id='Ls5o6'><b id='Ls5o6'><form id='Ls5o6'><ins id='Ls5o6'></ins><ul id='Ls5o6'></ul><sub id='Ls5o6'></sub></form><legend id='Ls5o6'></legend><bdo id='Ls5o6'><pre id='Ls5o6'><center id='Ls5o6'></center></pre></bdo></b><th id='Ls5o6'></th></span></q></dt></tr></i><div class="ff7blrz" id='Ls5o6'><tfoot id='Ls5o6'></tfoot><dl id='Ls5o6'><fieldset id='Ls5o6'></fieldset></dl></div>

                          <small id='Ls5o6'></small><noframes id='Ls5o6'>

                              <tbody id='Ls5o6'></tbody>
                            <tfoot id='Ls5o6'></tfoot>
                            主站蜘蛛池模板: 不锈钢法兰-碳钢法兰-法兰盘生产加工厂家-[鼎捷峰]-不锈钢法兰-碳钢法兰-法兰盘生产加工厂家-[鼎捷峰] | 破碎机锤头_耐磨锤头_合金锤头-鼎成机械一站式耐磨铸件定制服务 微型驱动系统解决方案-深圳市兆威机电股份有限公司 | 耐酸碱泵-自吸耐酸碱泵型号「品牌厂家」立式耐酸碱泵价格-昆山国宝过滤机有限公司首页 | 注塑_注塑加工_注塑模具_塑胶模具_注塑加工厂家_深圳环科 | 磁力抛光机_磁力研磨机_磁力去毛刺机-冠古设备厂家|维修|租赁【官网】 | 选矿设备-新型重选设备-金属矿尾矿重选-青州冠诚重工机械有限公司 | IP检测-检测您的IP质量| 河北码上网络科技|邯郸小程序开发|邯郸微信开发|邯郸网站建设 | 超声波焊接机_超音波熔接机_超声波塑焊机十大品牌_塑料超声波焊接设备厂家 | 飞歌臭氧发生器厂家_水处理臭氧发生器_十大臭氧消毒机品牌 | 龙门加工中心-数控龙门加工中心厂家价格-山东海特数控机床有限公司_龙门加工中心-数控龙门加工中心厂家价格-山东海特数控机床有限公司 | 中医中药治疗血小板减少-石家庄血液病肿瘤门诊部 | 淄博不锈钢,淄博不锈钢管,淄博不锈钢板-山东振远合金科技有限公司 | 郑州大巴车出租|中巴车租赁|旅游大巴租车|包车|郑州旅游大巴车租赁有限公司 | 苏州柯瑞德货架-仓库自动化改造解决方案 | 东莞市超赞电子科技有限公司 全系列直插/贴片铝电解电容,电解电容,电容器 | 筛分机|振动筛分机|气流筛分机|筛分机厂家-新乡市大汉振动机械有限公司 | 带式压滤机_污泥压滤机_污泥脱水机_带式过滤机_带式压滤机厂家-河南恒磊环保设备有限公司 | 99文库_实习生实用的范文资料文库站 | Trimos测长机_测高仪_TESA_mahr,WYLER水平仪,PWB对刀仪-德瑞华测量技术(苏州)有限公司 | LNG鹤管_内浮盘价格,上装鹤管,装车撬厂家-连云港赛威特机械 | wika威卡压力表-wika压力变送器-德国wika代理-威卡总代-北京博朗宁科技 | 牛奶检测仪-乳成分分析仪-北京海谊 | 电动手术床,医用护理床,led手术无影灯-曲阜明辉医疗设备有限公司 | 生产自动包装秤_颗粒包装秤_肥料包装秤等包装机械-郑州鑫晟重工科技有限公司 | 南汇8424西瓜_南汇玉菇甜瓜-南汇水蜜桃价格 | wika威卡压力表-wika压力变送器-德国wika代理-威卡总代-北京博朗宁科技 | 北京发电车出租-发电机租赁公司-柴油发电机厂家 - 北京明旺盛安机电设备有限公司 | 臭氧灭菌箱-油桶加热箱-原料桶加热融化烘箱-南京腾阳干燥设备厂 臭氧发生器_臭氧消毒机 - 【同林品牌 实力厂家】 | 钢衬玻璃厂家,钢衬玻璃管道 -山东东兴扬防腐设备有限公司 | 浙江工业冷却塔-菱电冷却塔厂家 - 浙江菱电冷却设备有限公司 | 郑州墨香品牌设计公司|品牌全案VI设计公司 | 校车_校车价格_19座幼儿园校车_幼儿园校车_大鼻子校车 | 威廉希尔WilliamHill·足球(中国)体育官方网站 | 振动筛-交叉筛-螺旋筛-滚轴筛-正弦筛-方形摇摆筛「新乡振动筛厂家」 | 传动滚筒_厂家-淄博海恒机械制造厂 | 小型数控车床-数控车床厂家-双头数控车床 | ALC墙板_ALC轻质隔墙板_隔音防火墙板_轻质隔墙材料-湖北博悦佳 | 压砖机_电动螺旋压力机_粉末成型压力机_郑州华隆机械tel_0371-60121717 | 自动焊锡机_点胶机_螺丝机-锐驰机器人 | 大巴租车平台承接包车,通勤班车,巴士租赁业务 - 鸿鸣巴士 |