Skip to content

a (fedora-based) container for ffmpeg, that can be used to do screen capture.

Notifications You must be signed in to change notification settings

mhuin/ffmpeg-x11grab-container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

ffmpeg-x11grab-container

A fedora-based container for ffmpeg, that can be used to do screen capture. Compiled with h264 support only; no sound capture.

Example use

podman run --privileged --net host -v /tmp/.X11-unix:/tmp/.X11-unix -v $PWD:$HOME -e HOME=$HOME -e DISPLAY=$DISPLAY --rm -it mhuin/ffmpeg-x11grab -f x11grab -video_size 1280x720 -i ${DISPLAY} -vcodec h264 -framerate 25 $HOME/screencast.mp4

Then press q to finish the encoding.

Non interactive process with tmux

tmux new-session -d -s RecordThis 'podman run --privileged --net host -v /tmp/.X11-unix:/tmp/.X11-unix -v $PWD:$HOME -e HOME=$HOME -e DISPLAY=$DISPLAY --rm -it mhuin/ffmpeg-x11grab -f x11grab -video_size 1280x720 -i ${DISPLAY} -vcodec h264 -framerate 25 $HOME/screencast.mp4'

[...]

tmux send-keys -t RecordThis q

About

a (fedora-based) container for ffmpeg, that can be used to do screen capture.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published