Untitled

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

ffmpeg -i "rtsp://[camera-ip-address]/[camera-URI-syntax]" -pix_fmt yuv420p -

deinterlace -vf "scale=640:360" -vsync 1 -threads 0 -vcodec libx264 -r 29.970 -g 60


-sc_threshold 0 -b:v 1024k -bufsize 1216k -maxrate 1280k -preset medium -profile: v
main -tune film -acodec aac -b:a 128k -ac 2 -ar 48000 -af
"aresample=async=1:min_hard_comp=0.100000:first_pts=0" -vbsf h264_mp4toannexb -f
mpegts udp://127.0.0.1:10000

avcapture://0x8020000005ac8514

RTSP - input to the WowZA stremaing engine.


ffmpeg -i "rtsp://[camera-ip-address]/[camera-URI-syntax]" -pix_fmt yuv420p -
deinterlace -vf "scale=640:360" -vsync 1 -threads 0 -vcodec libx264 -r 29.970 -g 60
-sc_threshold 0 -b:v 1024k -bufsize 1216k -maxrate 1280k -preset medium -profile: v
main -tune film -acodec aac -b:a 128k -ac 2 -ar 48000 -af
"aresample=async=1:min_hard_comp=0.100000:first_pts=0" -vbsf h264_mp4toannexb -f
mpegts udp://127.0.0.1:10000

ffmpeg -f avfoundation -framerate 30 -video_size 640x480 -i "rtsp://0:none" -


pix_fmt yuv420p -deinterlace -vf "scale=640:360" -vsync 1 -threads 0 -vcodec
libx264 -r 29.970 -g 60 -sc_threshold 0 -b:v 1024k -bufsize 1216k -maxrate 1280k -
preset medium -profile: v main -tune film -acodec aac -b:a 128k -ac 2 -ar 48000 -af
"aresample=async=1:min_hard_comp=0.100000:first_pts=0" -vbsf h264_mp4toannexb -f
mpegts udp://127.0.0.1:10000

ffmpeg -f avfoundation -framerate 30 -video_size 640x480 -i "0:none" -vcodec


libx264 -pix_fmt nv12 -tune zerolatency -vsync 1 -threads 0 -vcodec libx264 -r
29.970 -g 60 -sc_threshold 0 -b:v 1024k -bufsize 1216k -maxrate 1280k -preset
medium -f mpegts udp://localhost:12345

https://gist.github.com/docPhil99/d8667de1e8c5e96e2203f2bc0f28f89d

RTP

ffmpeg \
-f avfoundation \
-pix_fmt yuyv422 \
-video_size 640x480 \
-framerate 15 \
-i "0:0" -ac 2 \
-vf format=yuyv422 \
-vcodec libx264 -maxrate 2000k \
-bufsize 2000k -acodec aac -ar 44100 -b:a 128k \
-f rtp_mpegts udp://127.0.0.1:9988

Working URL

ffmpeg -f avfoundation -pix_fmt yuyv422 -video_size 640x480 -framerate 15


-i "0:0" -ac 2 -vf format=yuyv422 -vcodec libx264 -maxrate 2000k -bufsize
2000k -acodec aac -ar 44100 -b:a 128k -f rtp_mpegts udp://127.0.0.1:9988

RTSP (working) Output of FFMPEG is routed to the Wowza streaming server


(rtsp://127.0.0.1:1935/live/myStream)

ffmpeg \
-f avfoundation \
-pix_fmt yuyv422 \
-video_size 640x480 \
-framerate 15 \
-i "0:0" -ac 2 \
-vf format=yuyv422 \
-vcodec libx264 -maxrate 2000k \
-bufsize 2000k -acodec aac -ar 44100 -b:a 128k \
-f rtsp rtsp://127.0.0.1:1935/live/myStream

You might also like