forked from MariamSaab/info_command
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ffmpeg_info.sh
33 lines (24 loc) · 1.62 KB
/
ffmpeg_info.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
ffmpeg -y -f alsa -i default -f v4l2 -i /dev/video0 -acodec aac -strict -2 -ac 1 -b:a 64k -vcodec libx264 -b:v 300k -r 30 -g 30 prueba1.mp4
ffmpeg -y -f alsa -i default -f v4l2 -i /dev/video0 -acodec aac -strict -2 -ac 1 -b:a 64k -vcodec libx264 prueba2.mp4
ffplay -f v4l2 -i /dev/video10
#ffplay -f v4l2 -framerate 30 -video_size 1280x720 -input_format mjpeg -i /dev/video10
#ffplay -f v4l2 -framerate 30 -video_size 1280x720 -input_format mjpeg -i /dev/video10
ffplay -f v4l2 -framerate 30 -video_size 1920x1080 -input_format mjpeg -i /dev/video2
ffplay -f v4l2 -framerate 30 -video_size 1920x1080 -i /dev/video2
ffplay -f v4l2 -framerate 10 -video_size 1280x720 -i /dev/video2
ffplay -f v4l2 -framerate 10 -video_size 1280x720 -input_format mjpeg -i /dev/video2
ffplay -f v4l2 -framerate 20 -video_size 960x540 -i /dev/video2
ffplay -f v4l2 -framerate 20 -video_size 800x600 -i /dev/video2
ffplay -f v4l2 -framerate 30 -video_size 1920x1080 -fflags nobuffer -input_format mjpeg -i /dev/video2
ffplay -f v4l2 -framerate 30 -video_size 1920x1080 -input_format mjpeg -i /dev/video2
ffplay -f v4l2 -framerate 25 -video_size 1280x720 -input_format mjpeg -i /dev/video2
ffmpeg -i simplescreenrecorder-2021-07-20_17.44.24.mp4 -f mov output_file.mov
v4l2-ctl -d /dev/video2 --all
v4l2-ctl --list-formats
v4l2-ctl -L
v4l2-ctl -d /dev/video2 --list-formats-ext
ffmpeg -i *.gif -vsync 0 temp%d.png
#low cpu usage
https://www.youtube.com/watch?v=7EwTMQ3nyNY
### mp4 -> gif
ffmpeg -i simplescreenrecorder-2021-09-03_12.10.56.mp4 -vf "fps=10,scale=320:-1:flags=lanczos" -c:v pam -f image2pipe - | convert -delay 10 - -loop 0 -layers optimize output.gif