gpt4 book ai didi

ffmpeg 无法为输出文件 #0 写入 header

转载 作者:行者123 更新时间:2023-12-02 05:41:39 25 4
gpt4 key购买 nike

线路

ffmpeg -f h264 -i pipe111.fifo -c:v copy -f mp4 -

给出错误:

Input #0, h264, from 'pipe111.fifo':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: h264 (Constrained Baseline), yuv420p, 480x270, 6 fps, 6 tbr, 1200k tbn, 12 tbc
[mp4 @ 0x1562130] muxer does not support non seekable output
Output #0, mp4, to 'pipe:':
Metadata:
encoder : Lavf56.9.100
Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 480x270, q=2-31, 6 fps, 1200k tbn, 1200k tbc
Stream #0:0 -> #0:0 (copy)
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument

但是

ffmpeg -f h264 -i pipe111.fifo -c:v copy -f mp4 /some/file/in/fs.mp4

工作正常。为什么?没有错误。

最佳答案

由于这个问题仍然很受欢迎,我想从这里写一个快速答案 https://superuser.com/questions/760056/receiving-ffmpeg-error-22-when-piping-data-to-stdout

mp4 容器需要能够在文件中查找。管道就是一条溪流,不可能在里面寻找。尝试使用 ts 或 flv 等流媒体容器。

关于ffmpeg 无法为输出文件 #0 写入 header ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27924274/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com