1

I have a problem on my rpi 3 b+, when i record the screen using this

ffmpeg -f x11grab -r 30 -s cif -i :0.0 /tmp/out.mpg 

it was able to record it properly but when omxplayer plays RTSP. it doesn't record what omxplayer showing but only the desktop.

rpi config

  • 256mb vid
  • no gl (omxplayer wont play if full / fake gl)
  • rtsp cam
2
  • Hello and welcome -- Did you fire that command with root user?
    – M. Rostami
    Jan 30, 2020 at 6:38
  • thanks, and yes i did sudo / root and the output still the same, ffmpeg record only desktop ignoring omxplayer rtsp display / feed. ps. i use hdmi as my primary display
    – user114131
    Jan 30, 2020 at 8:48

1 Answer 1

1

ffmpeg x11grab will only record what's being put on the screen by X11. omxplayer is configured to use OMX hardware acceleration interface (hence the name), which will not be recorded.

You can record a playback from a video player supporting the X11 video output (e.g. vlc video.avi -V x11), but bear in mind that the X11 playback will be much slower than hardware decoding.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.