The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
qq1340691923

如何用 golang 检测音频文件损坏,求思路

  •  
  •   qq1340691923 · Nov 4, 2019 · 3799 views
    This topic created in 2407 days ago, the information mentioned may be changed or developed.

    正给我朋友做一个帮他检测音频文件有无损坏的工具

    4 replies    2019-11-04 11:28:40 +08:00
    thomaspaine
        1
    thomaspaine  
       Nov 4, 2019
    检测机制和语言无关吧,语言只不过是实现机制的工具
    qq1340691923
        2
    qq1340691923  
    OP
       Nov 4, 2019
    @thomaspaine 求思路,检测头文件可以吗
    keepeye
        3
    keepeye  
       Nov 4, 2019
    调 ffmpeg 检测吧,go 的话想获取视频长度都麻烦
    delectate
        4
    delectate  
       Nov 4, 2019   ❤️ 1
    简单来说,是不要重造轮子,用 go 去调用 ffmpeg,方法:
    ffmpeg -v error -i file.avi -f null - 2>error.log

    How can I check the integrity of a video file (avi, mpeg, mp4…)?
    https://superuser.com/questions/100288/how-can-i-check-the-integrity-of-a-video-file-avi-mpeg-mp4
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2919 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 12:23 · PVG 20:23 · LAX 05:23 · JFK 08:23
    ♥ Do have faith in what you're doing.