Opened 13 years ago

Closed 13 years ago

Last modified 10 years ago

#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 Jose Santiago, 13 years ago

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

built on May 21 2012 17:02:44 with gcc 4.5.2
configuration: --extra-version=VF --prefix=/mnt/centshare/ffmpeg/klvdev/build/build-linux/stage --extra-cflags='-I/mnt/centshare/ffmpeg/klvdev/build/../src/libavformat -I/mnt/centshare/ffmpeg/klvdev/build/../src/libavcodec ' --extra-ldflags='-L/mnt/centshare/ffmpeg/klvdev/build/build-linux/stage/lib -Wl,-rpath -Wl,/mnt/centshare/ffmpeg/klvdev/build/build-linux/stage/lib' --enable-static --enable-shared --enable-avfilter --enable-pthreads --enable-zlib --enable-bzlib --enable-runtime-cpudetect --enable-hardcoded-tables
libavutil 51. 53.100 / 51. 53.100
libavcodec 54. 21.101 / 54. 21.101
libavformat 54. 5.101 / 54. 5.101
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 75.100 / 2. 75.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100

[mpegts @ 0x80b04c0] Adjusting PTS forward

Last message repeated 32 times

[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':

Duration: 00:04:18.82, start: 13911.507056, bitrate: 13903 kb/s
Program 1585

Stream #0:0[0x202]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p, 1440x1080 [SAR 4:3 DAR 16:9], 90000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x2a0](eng): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, 5.0(side), s16, 448 kb/s (clean effects)
Stream #0:2[0x241](eng): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
Stream #0:3[0x1fd3]: Unknown: none ([11][0][0][0] / 0x000B)

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

comment:2 by Marton Balint, 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?

Last edited 13 years ago by Marton Balint (previous) (diff)

comment:3 by Jose Santiago, 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?

Last edited 13 years ago by Jose Santiago (previous) (diff)

comment:4 by Marton Balint, 13 years ago

Analyzed by developer: set
Cc: cus@passwd.hu added
Owner: set to Marton Balint
Reproduced by developer: set
Status: newopen

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:5 by Jose Santiago, 13 years ago

Awesome. Thank You.

comment:6 by Marton Balint, 13 years ago

Can you try with the patch series I sent to ffmpeg-devel?

in reply to:  6 ; comment:7 by Jose Santiago, 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.

in reply to:  7 comment:8 by Jose Santiago, 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.

Last edited 13 years ago by Jose Santiago (previous) (diff)

comment:9 by Marton Balint, 13 years ago

Resolution: fixed
Status: openclosed

Fix is in the latest git master.

comment:10 by Carl Eugen Hoyos, 10 years ago

Keywords: mpegts added; ts removed
Note: See TracTickets for help on using tickets.