如何添加 FFMPEG GPU 徽标
我只是做不到。过滤器的问题吗?
这是我要运行的命令:
ffmpeg -hwaccel_device 1 -hwaccel cuda -hwaccel cuda -hwaccel_output_output_format cuda -f concat -safe -safe 0 -Stream_loop -1 -I /Media /Media /mmedia/mylist.txt -i /llogo.txt -i /llogo.png -filter_png-filter_complex'覆盖= x = main_w*0.01:y = main_h -overlay_h-(main_h*0.01)“ -c:aac -c:a aac -c:v h264_nvenc -pix_fmt yuv420p -preset fast -tune -tune -tune hq -r 25 -b:v 3m -f flv flv flv flv flv flv flv flv flv flv flv flv flv flv flv flv flv flv flv flv flv flv flv rtmp://127.0.0.1:1935/live/mystream
这是我得到的输出:
Input #1, png_pipe, from '/logo.png':
Duration: N/A, bitrate: N/A
Stream #1:0: Video: png, rgba(pc), 130x66 [SAR 2834:2834 DAR 65:33], 25 fps, 25 tbr, 25 tbn
Codec AVOption tune (The metric that the encoder tunes for. Automatically chosen by the encoder by default) specified for output
file #0 (rtmp://127.0.0.1:25462/live/mystream) has not been used for
any stream. The most likely reason is either wrong type (e.g. a video
option with no video streams) or that it is a private option of some
encoder which was not actually used for any stream.
Stream mapping:
Stream #0:0 (h264) -> overlay (graph 0)
Stream #1:0 (png) -> overlay (graph 0)
overlay:default (graph 0) -> Stream #0:0 (h264_nvenc)
Stream #0:1 -> #0:1 (ac3 (native) -> aac (native))
Press [q] to stop, [?] for help
Impossible to convert between the formats supported by the filter 'graph 0 input from stream 0:0' and the filter 'auto_scale_0'
Error reinitializing filters!
Failed to inject frame into filter network: Function not implemented
Error while processing the decoded data for stream #1:0
[aac @ 0x562ac3287f80] Qavg: 481.281
[aac @ 0x562ac3287f80] 2 frames left in the queue on closing
Conversion failed!
I just couldn't do it. Is the problem with the Filter?
This is the command I am trying to run:
ffmpeg -hwaccel_device 1 -hwaccel cuda -hwaccel_output_format cuda -f concat -safe 0 -stream_loop -1 -i /media/mylist.txt -i /logo.png -filter_complex "overlay=x=main_w*0.01:y=main_h-overlay_h-(main_h*0.01)" -c:a aac -c:v h264_nvenc -pix_fmt yuv420p -preset fast -tune hq -r 25 -b:v 3M -f flv rtmp://127.0.0.1:1935/live/mystream
This is the output I am getting:
Input #1, png_pipe, from '/logo.png':
Duration: N/A, bitrate: N/A
Stream #1:0: Video: png, rgba(pc), 130x66 [SAR 2834:2834 DAR 65:33], 25 fps, 25 tbr, 25 tbn
Codec AVOption tune (The metric that the encoder tunes for. Automatically chosen by the encoder by default) specified for output
file #0 (rtmp://127.0.0.1:25462/live/mystream) has not been used for
any stream. The most likely reason is either wrong type (e.g. a video
option with no video streams) or that it is a private option of some
encoder which was not actually used for any stream.
Stream mapping:
Stream #0:0 (h264) -> overlay (graph 0)
Stream #1:0 (png) -> overlay (graph 0)
overlay:default (graph 0) -> Stream #0:0 (h264_nvenc)
Stream #0:1 -> #0:1 (ac3 (native) -> aac (native))
Press [q] to stop, [?] for help
Impossible to convert between the formats supported by the filter 'graph 0 input from stream 0:0' and the filter 'auto_scale_0'
Error reinitializing filters!
Failed to inject frame into filter network: Function not implemented
Error while processing the decoded data for stream #1:0
[aac @ 0x562ac3287f80] Qavg: 481.281
[aac @ 0x562ac3287f80] 2 frames left in the queue on closing
Conversion failed!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论