|
26 | 26 |
|
27 | 27 | # see https://gist.github.com/Brainiarc7/4636a162ef7dc2e8c9c4c1d4ae887c0e
|
28 | 28 |
|
29 |
| -ffmpeg -hide_banner \ |
30 |
| - -threads 1 -filter_threads 1 \ |
31 |
| - -f lavfi \ |
32 |
| - -i "testsrc=size=hd1080:rate=60,drawtext=text='%{localtime\:%S-%6N}':fontsize=144:box=1:boxcolor=black:fontcolor=yellow:y=(main_h/2)-text_h,format=pix_fmts=yuv420p" \ |
33 |
| - -threads 0 -frame_drop_threshold -1 -g 1 \ |
34 |
| - -vaapi_device /dev/dri/renderD128 -vf 'hwmap=derive_device=vaapi,scale_vaapi=w=1920:h=1080:format=nv12' \ |
35 |
| - -c:v h264_vaapi -qp:v 19 -bf 4 -threads 4 -aspect 16:9 \ |
36 |
| - -loglevel debug \ |
37 |
| - -f nut "pipe:1" #| \ |
| 29 | +#ffmpeg -hide_banner \ |
| 30 | +# -threads 1 -filter_threads 1 \ |
| 31 | +# -f lavfi \ |
| 32 | +# -i "testsrc=size=hd1080:rate=60,drawtext=text='%{localtime\:%S-%6N}':fontsize=144:box=1:boxcolor=black:fontcolor=yellow:y=(main_h/2)-text_h,format=pix_fmts=yuv420p" \ |
| 33 | +# -threads 0 -frame_drop_threshold -1 -g 1 \ |
| 34 | +# -vaapi_device /dev/dri/renderD128 -vf 'hwmap=derive_device=vaapi,scale_vaapi=w=1920:h=1080:format=nv12' \ |
| 35 | +# -c:v h264_vaapi -qp:v 19 -bf 4 -threads 4 -aspect 16:9 \ |
| 36 | +# -loglevel debug \ |
| 37 | +# -f nut "pipe:1" | \ |
38 | 38 | #ffplay -hide_banner \
|
39 | 39 | # -threads 1 -filter_threads 1 \
|
40 | 40 | # -probesize 32 -sync ext \
|
41 | 41 | # -fpsprobesize 0 -framedrop -fast -infbuf -f nut -fflags '+nobuffer' -flags2 '+fast' -i "pipe:0" -vf "drawtext=text='%{localtime\:%S-%6N}':fontsize=144:box=1:boxcolor=black:fontcolor=red:y=(main_h/2)+text_h"
|
| 42 | + #-c:v h264_vaapi -qp:v 19 -bf 4 -threads 4 -aspect 16:9 \ |
| 43 | + #-vf "format=nv12,hwupload,scale_vaapi=w=1920:h=1080" \ |
| 44 | + #-vf 'hwmap=derive_device=vaapi,scale_vaapi=w=1920:h=1080:format=nv12' \ |
| 45 | + #-c:v h264_vaapi -qp:v 26 -bf 0 \ |
| 46 | +ffmpeg -hide_banner \ |
| 47 | + -threads 1 -filter_threads 1 \ |
| 48 | + -f lavfi \ |
| 49 | + -i "testsrc=size=hd1080:rate=60,drawtext=text='%{localtime\:%S-%6N}':fontsize=144:box=1:boxcolor=black:fontcolor=yellow:y=(main_h/2)-text_h,format=pix_fmts=yuv420p" \ |
| 50 | + -threads 0 -frame_drop_threshold -1 -g 1 \ |
| 51 | + -vaapi_device /dev/dri/renderD128 \ |
| 52 | + -c:v h264_vaapi -qp:v 26 -bf 0 \ |
| 53 | + -async_depth 4 \ |
| 54 | + -vf "format=nv12,hwupload,scale_vaapi=w=1920:h=1080" \ |
| 55 | + -f nut "pipe:1" | \ |
| 56 | +ffplay -hide_banner \ |
| 57 | + -threads 1 -filter_threads 1 \ |
| 58 | + -probesize 32 -sync ext \ |
| 59 | + -fpsprobesize 0 -framedrop -fast -infbuf \ |
| 60 | + -f nut -fflags '+nobuffer' -flags2 '+fast' -i "pipe:0" \ |
| 61 | + -vf "drawtext=text='%{localtime\:%S-%6N}':fontsize=144:box=1:boxcolor=black:fontcolor=red:y=(main_h/2)+text_h" |
0 commit comments