id,summary,reporter,owner,description,type,status,priority,component,version,resolution,keywords,cc,blockedby,blocking,reproduced,analyzed
1402,ffplay: doesn't work on a tty console,u ltd.,cus,"
'''How to reproduce'''

Invoke ffplay from non-graphical console (e.g., tty3 with empty DISPLAY environment variable)

{{{
% ffplay file.mp3
% ffplay http://url.com/file.mp3
% ffplay -nodisp file.mp3
% ffplay -nodisp http://url.com/file.mp3
}}}

What happens:
{{{
ffplay version N-40844-g0e82d31 Copyright (c) 2003-2012 the FFmpeg developers
  built on Jun  3 2012 13:43:28 with gcc 4.6.2
  configuration: --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib64 --shlibdir=/usr/lib64 --disable-stripping --enable-pthreads --disable-shared --enable-avfilter --enable-static --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-libx264 --enable-nonfree --enable-postproc --enable-shared --enable-libdc1394 --enable-libtheora --enable-libschroedinger --enable-libvpx --enable-gpl --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-x11grab --enable-ffplay --disable-outdev=sdl
  libavutil      51. 53.100 / 51. 53.100
  libavcodec     54. 21.101 / 54. 21.101
  libavformat    54.  5.100 / 54.  5.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 74.102 /  2. 74.102
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 12.100 /  0. 12.100
  libpostproc    52.  0.100 / 52.  0.100
Could not initialize SDL - Unable to open mouse
(Did you set the DISPLAY variable?)
}}}

What I would have expected of ffplay:
Playing file.mp3.

 

'''Additional information'''

{{{
% ffplay -version
ffplay version N-40844-g0e82d31
built on May 19 2012 15:26:37 with gcc 4.6.2
configuration: --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib64 --shlibdir=/usr/lib64 --disable-stripping --enable-pthreads --disable-shared --enable-avfilter --enable-static --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-libx264 --enable-nonfree --enable-postproc --enable-shared --enable-libdc1394 --enable-libtheora --enable-libschroedinger --enable-libvpx --enable-gpl --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-x11grab --enable-ffplay
libavutil      51. 53.100 / 51. 53.100
libavcodec     54. 21.101 / 54. 21.101
libavformat    54.  5.100 / 54.  5.100
libavdevice    53.  4.100 / 53.  4.100
libavfilter     2. 74.102 /  2. 74.102
libswscale      2.  1.100 /  2.  1.100
libswresample   0. 12.100 /  0. 12.100
libpostproc    52.  0.100 / 52.  0.100
}}}



Another version (same bug):
{{{
% ffplay -version
ffplay version 0.11
built on Jun  3 2012 15:12:12 with gcc 4.6.2
configuration: --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib64 --shlibdir=/usr/lib64 --disable-stripping --enable-pthreads --disable-shared --enable-avfilter --enable-static --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-libx264 --enable-nonfree --enable-postproc --enable-shared --enable-libdc1394 --enable-libtheora --enable-libschroedinger --enable-libvpx --enable-gpl --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-x11grab --enable-ffplay --disable-outdev=sdl
libavutil      51. 54.100 / 51. 53.100
libavcodec     54. 23.100 / 54. 21.101
libavformat    54.  6.100 / 54.  5.100
libavdevice    54.  0.100 / 53.  4.100
libavfilter     2. 77.100 /  2. 74.102
libswscale      2.  1.100 /  2.  1.100
libswresample   0. 15.100 /  0. 12.100
libpostproc    52.  0.100 / 52.  0.100
}}}


",defect,closed,normal,FFplay,git-master,fixed,tty,cus@…,,,1,0
