#1384 closed defect (fixed)
FFPlay NoAudio Playback for Transport Stream File with AC3 Audio
Reported by: | Jose Santiago | Owned by: | Marton Balint |
---|---|---|---|
Priority: | normal | Component: | ffplay |
Version: | git-master | Keywords: | mpegts ac3 |
Cc: | cus@passwd.hu | 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 (10)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
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 by , 13 years ago
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 by , 13 years ago
Analyzed by developer: | set |
---|---|
Cc: | added |
Owner: | set to |
Reproduced by developer: | set |
Status: | new → open |
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.
follow-up: 8 comment:7 by , 13 years ago
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 by , 13 years ago
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.
comment:9 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | open → closed |
Fix is in the latest git master.
comment:10 by , 10 years ago
Keywords: | mpegts added; ts removed |
---|
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