Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
317 views
in Technique[技术] by (71.8m points)

rust - How do I use an ffmpeg device to record the screen?

I'm trying to record the screen using the ffmpeg-next wrapper and save the result to a mkv file. There's an example in the crate's github for remuxing and from what I've read from ffmpeg's documentation, replacing the input context demuxer with a device that captures the screen would do the trick.

The input context is declared like this:

let mut ictx = format::input(&input_file).unwrap();

Can I change this input context to a device that captures the screen?

question from:https://stackoverflow.com/questions/65889211/how-do-i-use-an-ffmpeg-device-to-record-the-screen

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...