是否可以从命令行运行ffmpeg,它将'moov atom'元数据放在MP4文件的开头或运行qt-faststart作为ffmpeg中的后处理操作,这样生成的文件就可以通过互联网?
我当然可以将它作为一个单独的命令运行,但更喜欢它是某种东西
编辑1
http://ffmpeg.org/ffmpeg.html#mov
MOV/MP4复用器
多路复用器选项包括:
'-moov_size字节'
Run Code Online (Sandbox Code Playgroud)Reserves space for the moov atom at the beginning of the file instead of placing the moov atom at the end. If the space reserved is insufficient, muxing will fail.
mp4 ffmpeg video-processing video-streaming video-conversion
好吧,我正在使用这个项目来创建一个 Telegram bot,它接收 mp4 文件的 URL,将它们下载到服务器上并将它们上传到 Telegram。
到目前为止一切正常,除了转换某些 .mp4 文件。
例如,如果我使用来自https://sample-videos.com/的示例 mp4 视频,它可以正常工作并成功转换,但如果我使用,例如某个随机网站的视频,它也是简单的 .mp4 文件,它不起作用并引发此错误:
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1932420] 格式 mov,mp4,m4a,3gp,3g2,mj2 仅检测到低分 1,可能误检测![mov,mp4,m4a,3gp,3g2,mj2 @ 0x1932420] moov atom not found data/720P_1500K_210306701.mp4:处理输入时发现无效数据