I am trying stream a static image on the network. Everything I have tried yet so far has failed:
Examples:
ffmpeg -y -stream_loop -1 -r 1 -i text2.png -vcodec libx264 -crf 17 -pix_fmt yuv420p -f mpegts udp://239.1.250.12:1234
File is generated but unplayable by VLC or any other TS capable device. ffplay complains about input frame errors but still produces a picture after a few seconds.
Tried this for youtube solution as well to a local file.
ffmpeg -f image2 -loop 1 -i text1.jpg -re -f lavfi -i anullsrc -vf format=yuv420p -c:v libx264 -b:v 2000k -maxrate 2000k -bufsize 4000k -g 50 -c:a aac test_flt.mkv
Warning, codec option b not been used for any stream: looks like their is no stream from the image2 demuxer.
Questions:
Has anyone successfully managed to achieve this?
If so is there any specific requirements for the input image?
deonst is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.