mardi 24 juin 2014

Streaming images with ffmpeg gives shorter video


Vote count:

0




I am streaming a video form my camera by passing to ffmpeg images from that camera. I am using command:



ffmpeg -r 26 -re -f image2pipe -vcodec mjpeg -i - -c:v libx264 -f flv -preset ultrafast -s hd720 -maxrate 2000k -bufsize 150k http://rtmpsomeaddress:port


My problem is that, when light is weak and/or computer is slow my fps number is getting lower, even so i set it to -r 26. Low fps causing that video playad on web side is sometimes in fast motion and file i save to disk is shorter than it should. My opereting system is OS X. How can i do it so the video i s in proper speed.



asked 2 mins ago






Aucun commentaire:

Enregistrer un commentaire