如何从ffmpeg将h265视频流传输到亚马逊s3?

时间:2020-06-22 05:32:43

标签: amazon-s3 ffmpeg video-streaming streaming libx265

我正在尝试从ffmpeg将h265视频流传输到aws s3,这是我使用的命令:

ffmpeg -f gdigrab -i desktop -r 1 -vframes 5 -c:v libx265 -crf 40 -f mp4 pipe:1 | aws s3 cp -  s3://videosbuket-009212/d5.mp4

和错误信息:

[mp4 @ 000001c49541bb40] muxer does not support non seekable output
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Error initializing output stream 0:0 --

这是怎么了?

1 个答案:

答案 0 :(得分:1)

问题是mp4不支持无法搜索的输出。就像错误读取一样。使用不需要搜索的格式,例如mkv。如果需要mp4,则必须先制作本地副本。