please i need help with my code

For the developers that use FFmpeg in their software.
Post Reply
alaaahmedy
Posts: 2
Joined: Wed Jun 06, 2018 8:13 pm

please i need help with my code

Post by alaaahmedy » Wed Jun 06, 2018 8:17 pm

ffmpeg -re -i 1.mp4 -codec copy -f flv rtmp://a.rtmp.youtube.com/live2/userid

this code work very good to stream to youtube

1.mp4= my video

now i have iptv server and all url end with .ts

and i want to replace 1.mp4 with url.ts

what should i do?

alaaahmedy
Posts: 2
Joined: Wed Jun 06, 2018 8:13 pm

Re: please i need help with my code

Post by alaaahmedy » Thu Jun 07, 2018 12:41 pm

i found that code but the stream shut after 1 hour

ffmpeg -re -i http://XXXXX3880.ts -i logo.png -filter_complex overlay=5:5 -f flv rtmp://a.rtmp.youtube.com/live2/XXXXXXXX


Is there any way to make the stream reconnect automatically if it shut down??

Post Reply
'