i have a folder with lot of mp4 videos and i want to stream those to my rtmp server.
i use this command
for i in /var/www/html/VIDEO/*.mp4; do ffmpeg -re -i $i -vcodec h264 -crf 25 -preset veryfast -maxrate 650k -bufsize 650k -aspect '640:360' -s '640:360' -acodec libfdk_aac -f flv rtmp://[login to view URL]; done
but it have problem after ffmpeg stream next file coz there is problem when i want to play it
PTS 4294794919, next:104020298 invalid dropping st:0
DTS 4294794943, next:104041631 st:0 invalid dropping
PTS 4294794943, next:104041631 invalid dropping st:0
so can u make a ffmpeg command which can stream multiple mp4 files to rtmp
-also i have some other projects with ffmpeg
That's not the right way to do this. There will be allways stream interruption between files which will confuse player. I've made application that uses ffmpeg and does what you need, but it cost a lot more than your budget. For this budget I can give you few advices or simple bash script.
im admin server, i have experience with ffmpeg, if you want i can help you only i need that you say me with server do you need stream and where is the vod library