[FFmpeg-trac] #1401(FFplay:new): ffplay: Muted when going to foreign tty but continues playing when coming back.
FFmpeg
trac at avcodec.org
Sat Jun 9 11:09:36 CEST 2012
#1401: ffplay: Muted when going to foreign tty but continues playing when coming
back.
--------------------------------+----------------------------------
Reporter: u ltd. | Owner:
Type: defect | Status: new
Priority: minor | Component: FFplay
Version: 0.11 | Resolution:
Keywords: tty | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
--------------------------------+----------------------------------
Comment (by u ltd.):
I made some testing, here are the results:
'''Chosing SDL driver'''
* SDL_AUDIODRIVER ist defaulted to "pulse"; foreign ttys don't work
* With SDL_AUDIODRIVER="alsa" foreign work either because the default alsa
device is the pulseaudio server
* dsp, dma don't give me any sound
(See attached log file which was taken without .asoundrc)
'''Other players'''
* vlc had the same problem, but I was able to chose my hardware directly
in vlc settings. Then it worked on all consoles.
'''Disabling pulseaudio'''
* With an own .asoundrc redirecting the sound to the hardware directly all
works fine
'''About this ticket'''
Does that mean that this isn't a bug of ffmpeg? Shall I submit a
pulseaudio bug?
Or is this a feature of pulseaudio?
''' Log file '''
{{{
me at machine:~/Dokumente> ffplay -nodisp http://url.com/stream.mp3
ffplay version 0.11 Copyright (c) 2003-2012 the FFmpeg developers
...
[mp3 @ 0x7f0764000de0] Header missing
Last message repeated 1 times
[mp3 @ 0x7f07640008c0] max_analyze_duration 5000000 reached at 5015510
[mp3 @ 0x7f07640008c0] Estimating duration from bitrate, this may be
inaccurate
Input #0, mp3, from 'http://url.com/stream.mp3':
Duration: N/A, start: 0.000000, bitrate: 128 kb/s
Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16, 128 kb/s
[mp3 @ 0x7f0764000de0] Header missing
^C 123 (ffplay -nodisp http://url.com/stream.mp3)
me at machine:~/Dokumente> echo $SDL_AUDIODRIVER
pulse
0 (echo $SDL_AUDIODRIVER)
me at machine:~/Dokumente> export SDL_AUDIODRIVER=alsa
0 (export SDL_AUDIODRIVER=alsa)
me at machine:~/Dokumente> ffplay -nodisp http://url.com/stream.mp3
ffplay version 0.11 Copyright (c) 2003-2012 the FFmpeg developers
...
[mp3 @ 0x7f7788003740] Header missing
[mp3 @ 0x7f7788003020] max_analyze_duration 5000000 reached at 5015510
[mp3 @ 0x7f7788003020] Estimating duration from bitrate, this may be
inaccurate
Input #0, mp3, from 'http://url.com/stream.mp3':
Duration: N/A, start: 0.000000, bitrate: 128 kb/s
Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16, 128 kb/s
[mp3 @ 0x7f7788003740] Header missing
^C 123 (ffplay -nodisp http://url.com/stream.mp3)
me at machine:~/Dokumente> export SDL_AUDIODRIVER=dsp
0 (export SDL_AUDIODRIVER=dsp)
me at machine:~/Dokumente> ffplay -nodisp http://url.com/stream.mp3
ffplay version 0.11 Copyright (c) 2003-2012 the FFmpeg developers
...
[mp3 @ 0x7f7f380088a0] Header missing
[mp3 @ 0x7f7f380008c0] max_analyze_duration 5000000 reached at 5015510
[mp3 @ 0x7f7f380008c0] Estimating duration from bitrate, this may be
inaccurate
Input #0, mp3, from 'http://url.com/stream.mp3':
Duration: N/A, start: 0.000000, bitrate: 128 kb/s
Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16, 128 kb/s
SDL_OpenAudio:
http://url.com/stream.mp3: could not open codecs
^C 123 (ffplay -nodisp http://url.com/stream.mp3)
me at machine:~/Dokumente> export SDL_AUDIODRIVER=dma
0 (export SDL_AUDIODRIVER=dma)
me at machine:~/Dokumente> ffplay -nodisp http://url.com/stream.mp3
ffplay version 0.11 Copyright (c) 2003-2012 the FFmpeg developers
...
[mp3 @ 0x7f7d880088a0] Header missing
[mp3 @ 0x7f7d880008c0] max_analyze_duration 5000000 reached at 5015510
[mp3 @ 0x7f7d880008c0] Estimating duration from bitrate, this may be
inaccurate
Input #0, mp3, from 'http://url.com/stream.mp3':
Duration: N/A, start: 0.000000, bitrate: 128 kb/s
Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16, 128 kb/s
SDL_OpenAudio:
http://url.com/stream.mp3: could not open codecs
^C 123 (ffplay -nodisp http://url.com/stream.mp3)
me at machine:~/Dokumente>
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1401#comment:4>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list