Video encoding - miguelangelalba/PiVideo GitHub Wiki

Cliente Raspberry

At the moment the raspberry is using the integrated h264 encoder with a fr = 5 and a 1080p resolution.

Server

  • Joining multiple videos : It' s very important to note the -c Copy argument in this command. This parameter doesn't touch the original encoding, which improves the performance of joining the videos in a few seconds. This can be done in this way since the videos have been recorded with the same characteristics.

ffmpeg -f concat -safe 0 -i video.txt -c copy final.mp4

  • Timelapse:

S in this case it's a variable that indicates the speed at with we want to increase the video, example: x35 1/35 = 0.2857 S = 0.02857

ffmpeg -i final.mp4 -vf "setpts=S*PTS" timelapsefinal.mp4