-
Notifications
You must be signed in to change notification settings - Fork 8
/
ffmpeg_old.json
57 lines (53 loc) · 2.5 KB
/
ffmpeg_old.json
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"scr": [
"-loglevel", "error",
"-re",
"-f", "avfoundation", "-capture_cursor", "1", "-framerate", "24", "-i", "1", //mac avfoundation ffmpeg capturer
// "-f", "qtkit", "-i", "0", //mac avfoundation ffmpeg capturer
// "-f", "dshow", "-i", "video=screen-capture-recorder", //windows dshow creen-capture-recorder
// "-f", "gdigrab", "-i", "desktop", //windows native capturer
"-pix_fmt", "yuv420p",
"-r", "24",
"-vcodec", "libx264",
"-pass", "1",
"-coder", "0",
"-bf", "0",
"-wpredp", "0",
"-b:v", "512K",
"-crf", "27",
// "-s", "1366x768",
// "-s", "1024x768",
// "-s", "1152x720",
// "-s", "960x540",
// "-s", "768x480",
// "-s", "640x400",
"-x264opts", "sync-lookahead=0:rc-lookahead=0:sliced-threads:no-mbtree:no-cabac:no-8x8dct:trellis=0:no-deblock:no-scenecut:no-mixed-refs:scenecut=0",
// trellis=0:no-cabac:force-cfr:no-mixed-refs:no-8x8dct:scenecut=0:no-deblock",
"-partitions", "none",
"-threads", "4",
"-flags", "-global_header", "-map", "0",
"-flags", "-loop",
"-thread_type", "frame",
"-vbsf", "h264_mp4toannexb",
"-movflags", "+faststart",
"-an",
"-f", "h264",
"pipe:1"
],
"aud": [
"-loglevel", "error",
"-re",
// "-f", "dshow", "-i", "audio=virtual-audio-capturer", // windows dshow virtual-audio-capturer
"-f", "avfoundation", "-i", "none:0", // mac soundflower audio capturer
"-f", "mp3", // mp3 stream
"-b:a", "128k",
"-id3v2_version", "0",
"-flush_packets", "1", "-fflags", "+nobuffer", "-async", "0",
"-ac","2",
"pipe:1"
]
}
// ffmpeg -re -f avfoundation -i "none:0" -acodec libmp3lame -map 0:a:0 -b:a 128k -f mp3 -id3v2_version 0 -ac 1 - | node stdinstreamer.js -port 9696 -type mp3 -burstsize 0
// ffmpeg -f avfoundation -audio_device_index 0 -i 1 -sample_rate 44100 -ac 2 -f mp3 -y out.mp3
// ffmpeg -f avfoundation -i 1 -r 30 -vcodec h264 -pass 1 -coder 0 -bf 0 -wpredp 0 -pix_fmt yuv420p -b:v 2m -crf 27 -x264opts sync-lookahead=0:rc-lookahead=0:sliced-threads:no-mbtree:no-cabac:no-8x8dct:trellis=0:no-deblock -partitions none -f h264 udp://127.0.0.1:1234
// ./build/Release/scap | ffmpeg -loglevel quiet -pix_fmt bgr0 -f rawvideo -s 1440x900 -i pipe:0 -crf 27 -vcodec h264 -pass 1 -coder 0 -bf 0 -wpredp 0 -pix_fmt yuv420p -x264opts sync-lookahead=0:rc-lookahead=0:sliced-threads:no-mbtree:no-cabac:no-8x8dct:trellis=0:no-deblock:no-scenecut:no-mixed-refs -partitions none -threads 4 -flags -loop -thread_type frame -f h264 -y out.h264