FFMPEG Code Snippets
Posted on Wed, Apr 15, 2020 at 2:32 PM With 65 Views

FFMPEG Render Video Stream from RTSP for 600 seconds

ffmpeg -i rtsp://admin:qwer1234@192.168.1.129/live -an -segment_time 600 -vcodec copy /home/admin/web/lyra.bl3.co/public_html/media/HDcamera/cam1.mp4

FFMPEG SAVE Snapshot

ffmpeg -y -i rtsp://admin:qwer1234@192.168.1.129/live -vframes 1 /home/admin/web/lyra.bl3.co/public_html/media/HDcamera/cam1.jpg

* FFMPEG ** Record 30 Second Video From RTSP

ffmpeg -i rtsp://admin:qwer1234@192.168.1.129/live -y -an -t 00:00:30 -vcodec copy /home/admin/web/lyra.bl3.co/public_html/media/HDcamera/cam1.mp4

Convert Video Format

ffmpeg -i video.mp4 video.avi