Difference between revisions of "How to stream h264 with ffmpeg from an Axis P3343"

From ZoneMinder Wiki
Jump to navigationJump to search
 
Line 1: Line 1:
=Reference=
=Reference=


[http://rob.opendot.cl/index.php/useful-stuff/ffmpeg-x264-encoding-guide/ link title]
[http://rob.opendot.cl/index.php/useful-stuff/ffmpeg-x264-encoding-guide/ FFmpeg x264 encoding guide]


=x264 Preset Files=
=x264 Preset Files=

Revision as of 07:34, 19 October 2010

Reference

FFmpeg x264 encoding guide

x264 Preset Files

If you build ffmpeg from scratch, then the preset files are by default located in /usr/local/share/ffmpeg


Variable Bit Rate

Camera Settings:

ffmpeg command: two-pass vbr: ffmpeg -t 00:00:30 -f rtsp -i rtsp://172.16.2.100:554/axis-media/media.amp -an -pass 1 -vcodec libx264 -vpre slow_firstpass -b 180000 -bt 180000 -threads 0 -y outfile.mp4


Constant Bit Rate

Camera Settings:

ffmpeg command: ffmpeg -t 00:00:30 -f rtsp -i rtsp://172.16.2.100:554/axis-media/media.amp -vcodec libx264 -vpre medium -crf 20.0 -b 180000 -threads 0 -y outfile.mp4