Closed Botspot closed 3 months ago
Not sure if this helps but, this will pipe the raw video data to stdout: wf-recorder -o DP-3 -m rawvideo -f /dev/stdout 2>/dev/null <<< 'Y' | $process
It seems wf-recorder
will always output some lines to stdout before the video output starts:
wf-recorder -o DP-3 -m rawvideo -f /dev/stdout <<< 'Y' 2>/dev/null | head -6
Output file "/dev/stdout" exists. Overwrite? Y/n: selected region 0,0 0x0
Setting codec option: crf=20
Setting codec option: preset=ultrafast
Setting codec option: tune=zerolatency
Using video filter: null
g>x@!Ph\,x264 - core 164 r3108 31e19f9 - H.264/MPEG-4 AVC codec - Copyleft 2003-2023 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=6 threads=16 lookahead_threads=16 sliced_threads=1 slices=16 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=20.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0e@; _89o@4MAS_ ;3c3.ԟMYfq` +pY
Of course one can skip them with tail -n +6
but I wasn't able to pipe this into ffmpeg either way.
I think it might be because you reversed the order of <<< 'Y'
and 2>/dev/null
.
No, this does not matter.
This is not a direct need in my case, but it would be worth knowing about if there is a way. This fails.
This is because wf-recorder seems to need a file-extension, and it actually removes the pipe file first and replaces it with a normal file which takes up space on disk.
I also tried:
In addition to silly things like setting
/dev/stdout
and-
as the output file which also did not work.