Ticket #1384 (closed defect: fixed)
FFPlay NoAudio Playback for Transport Stream File with AC3 Audio
| Reported by: | jlsantiago0 | Owned by: | cus |
|---|---|---|---|
| Priority: | normal | Component: | FFplay |
| Version: | git-master | Keywords: | ts ac3 |
| Cc: | cus@… | Blocked By: | |
| Blocking: | Reproduced by developer: | yes | |
| Analyzed by developer: | yes |
Description
File is located at:
wget http://208.51.85.91/ffplay-noaudio-003-ac3-full.ts
wget http://208.51.85.91/ffplay-noaudio-003-ac3-10mb.ts
The full version is about 450MB.
Plays fine with VLC v1.1.11 and MPlayer.
Change History
comment:2 Changed 13 months ago by cus
This is a 5 channel file which will be downmixed by ffplay to 4 channels, since SDL only supports 4 or 6 channels.
Can you try the following two commands?
SDL_AUDIO_CHANNELS=2 ffplay ~/download/ffplay-noaudio-003-ac3-full.ts
SDL_AUDIO_CHANNELS=6 ffplay ~/download/ffplay-noaudio-003-ac3-full.ts
Is mplayer or VLC capable of using 4 channels or 6 channels for playing the file?
comment:3 Changed 13 months ago by jlsantiago0
SDL_AUDIO_CHANNELS=2 ffplay ~/download/ffplay-noaudio-003-ac3-full.ts works
SDL_AUDIO_CHANNELS=6 ffplay ~/download/ffplay-noaudio-003-ac3-full.ts
gives an error SDL_OpenAudio: Couldn't get hardware config: Invalid argument
So it looks like the issue is SDL?
comment:4 Changed 13 months ago by cus
- Analyzed by developer set
- Cc cus@… added
- Status changed from new to open
- Reproduced by developer set
- Owner set to cus
SDL should return with the number of supported channels, if 2 then 2, so yes.
Probably I will create a patch, a workaround, which will retry audio open with less channels if the 6 channel or 4 channel mode fails.
comment:6 follow-up: ↓ 7 Changed 13 months ago by cus
Can you try with the patch series I sent to ffmpeg-devel?
comment:7 in reply to: ↑ 6 ; follow-up: ↓ 8 Changed 13 months ago by jlsantiago0
Replying to cus:
Can you try with the patch series I sent to ffmpeg-devel?
Works great for me. Thanks for fixing this.
comment:8 in reply to: ↑ 7 Changed 13 months ago by jlsantiago0
Replying to jlsantiago0:
Replying to cus:
Can you try with the patch series I sent to ffmpeg-devel?
The patches work great for me. Thanks for fixing this.



jsantiago@testpc:~$ /mnt/centshare/ffmpeg/klvdev/build/build-linux/stage/bin/ffplay ~/download/ffplay-noaudio-003-ac3-full.ts
ffplay version 0.10.2.git-VF Copyright (c) 2003-2012 the FFmpeg developers
[mpegts @ 0x80b04c0] Adjusting PTS forward
[mpegts @ 0x80b04c0] Stream #3: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x80b04c0] Could not find codec parameters (Unknown: none ([11][0][0][0] / 0x000B))
[NULL @ 0x80b5500] start time is not set in estimate_timings_from_pts
[mpegts @ 0x80b04c0] PES packet size mismatch
Input #0, mpegts, from '/home/jsantiago/download/ffplay-noaudio-003-ac3-full.ts':
SDL_OpenAudio: Couldn't open audio device: Device or resource busy
13916.29 A-V: 0.000 fd= 0 aq= 0KB vq= 288KB sq= 0B f=0/0 /0