[FFmpeg-trac] #1401(FFplay:new): ffplay: Muted when going to foreign tty but continues playing when coming back.
FFmpeg
trac at avcodec.org
Sun Jun 3 15:59:45 CEST 2012
#1401: ffplay: Muted when going to foreign tty but continues playing when coming
back.
-------------------------------------+-------------------------------------
Reporter: u ltd. | Type: defect
Status: new | Priority: minor
Component: FFplay | Version: 0.11
Keywords: | Blocked By:
mute,tty,display | Reproduced by developer: 0
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
'''How to reproduce'''
Invoke ffplay from somewhere (console with exported DISPLAY=:0 or from
KDE4)
{{{
% ffplay file.mp3
% ffplay http://url.com/file.mp3
% ffplay -nodisp file.mp3
% ffplay -nodisp http://url.com/file.mp3
}}}
Then switch to another tty via Ctrl-Alt-F1 / Ctrl-Alt-F7 / Ctrl-Alt-F10
etc.
Whenever I go to a tty with me logged in, the play continues. Going to
ttys with nobody logged in or another user (root) the sound stops and, if
invoked with window, it looks as if one little phrase would be repeated
many times.
In the 1st image you see: normal operation
In the 2nd image you see:
1. Start of ffplay on tty7, hearing sound
2. Going to a tty which wasn't logged in and hearing nothing
3. going back to tty7 and hearing sound again and then taking a screen
shot.
(The window decoration looks normal on my screen, but the 'import' command
seems to mangle the ffplay window decoration.)
'''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
}}}
''' Another related error (reproducible) '''
When I made the screen shot, I had another ffplay running on tty2 on a
http mp3 stream. after quitting the windowed ffplay and waiting some time
and then randomly switching between "mute" ttys and "playing" ttys and
going back to tty7 (window manager), I had about 2 seconds of sound an
then the tty2 ffplay was mute too (but still counted seconds!)
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1401>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list