I am trying to find out why the result of using scale2ref with overlay complex filters is returning audio-only mp4 output.
ffmpeg -i input.mp4 -i watermark.png -filter_complex "[1][0]scale2ref=w=oh*mdar:h=ih*0.1[logo][video];[video][logo]overlay=5:H-h-5" -c:a copy output.mp4
If I remove the scale2ref filter, then the output is a mp4 video.
ffmpeg -i input.mp4 -i watermark.png -filter_complex "overlay=5:H-h-5" -c:a copy output.mp4
One of the differences between the two is this line in the output:
[vost#0:0/libx264 @ 0x10f605de0] No filtered frames for output stream, trying to initialize anyway.
I am new to ffmpeg, any help will be appreciated.
-loop 1
→ffmpeg -i "input.mp4" -loop 1 -i watermark.png -lavfi " [1][0]scale2ref=w=oh*mdar/sar:h=ih/10[l][v]; [v][l]overlay=5:H-h-5:shortest=1" output.mp4
frame=942170 fps=2243 q=-1.0 Lsize= 180036KiB time=00:07:56.91 bitrate=3092.5kbits/s dup=154642 drop=0 speed=1.14x
Could this be due to the-loop 1
option?...:shortest=1