[FFmpeg-user] Ubuntu 16.04 ffplay - display variable not set

Emer Mcgloughlin emermcgloughlin at gmail.com
Wed Jul 5 23:41:08 EEST 2017


hi,

I have two laptops that use Ubuntu 16.04. I can't use ffplay due to an
SDL/$DISPLAY variable error. I never had an issue with Ubuntu 14.
When I type echo $DISPLAY I just get
:0

Can anyone help? I don't have the issue with the version that comes from
apt-get. Clearly i am making some silly mistake here.

i installed ffmpeg with linuxbrew. I also tried to install HEAD but got the
same error.  I've looked at various threads online that suggest entering
things like:
export DISPLAY=:0.0

but I just get the same error.

ffplay -
ffplay version 3.3.1 Copyright (c) 2003-2017 the FFmpeg developers
  built with gcc 5.3.0 (Homebrew gcc 5.3.0)
  configuration: --prefix=/home/io8x/.linuxbrew/Cellar/ffmpeg/3.3.1
--enable-shared --enable-pthreads --enable-gpl --enable-version3
--enable-hardcoded-tables --enable-avresample --cc=gcc-5 --host-cflags=
--host-ldflags= --enable-ffplay --enable-libass --enable-libfreetype
--enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libxvid
--disable-lzma --enable-libopenjpeg --disable-decoder=jpeg2000
--extra-cflags=-I/home/io8x/.linuxbrew/Cellar/openjpeg/2.1.2_1/include/openjpeg-2.1
--disable-vda
  libavutil      55. 58.100 / 55. 58.100
  libavcodec     57. 89.100 / 57. 89.100
  libavformat    57. 71.100 / 57. 71.100
  libavdevice    57.  6.100 / 57.  6.100
  libavfilter     6. 82.100 /  6. 82.100
  libavresample   3.  5.  0 /  3.  5.  0
  libswscale      4.  6.100 /  4.  6.100
  libswresample   2.  7.100 /  2.  7.100
  libpostproc    54.  5.100 / 54.  5.100
Could not initialize SDL - No available video device
(Did you set the DISPLAY variable?)

$ echo $DISPLAY
:0


More information about the ffmpeg-user mailing list