0

我正在尝试将 h265 视频从 ffmpeg 流式传输到 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 --

这里有什么问题?

4

1 回答 1

1

What’s wrong is that mp4 does not support non seekable output. Just like the error reads. Use a format that doesn’t not requires seeking, like mkv. If you require mp4, then you must make a local copy first.

于 2020-06-22T16:39:32.967 回答