Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run ffplay as a window-less process?

Tags:

ffmpeg

sdl

I am running ffplay as a background process which supplies image data to my main UI process. I have set "SDL_VIDEODRIVER = dummy" to suppress the ffplay video being shown in a SDL window.

The issue is that the ffplay process still appears as an application window (dock, CMD+TAB entries etc.) even if the video output window is not displayed. How can I avoid that?

like image 732
S B Avatar asked Aug 06 '12 15:08

S B


1 Answers

The option -nodisp worked fine for me (together with -autoexit).

Tested in a Ubuntu 18.04, ffmpeg 3.4.6:

ffplay -f lavfi -i "sine=frequency=1000:duration=5" -autoexit -nodisp

Source: [FFmpeg-user] ffplay for audio only

like image 68
Enrique S. Filiage Avatar answered Oct 07 '22 03:10

Enrique S. Filiage