Opened 4 years ago

Closed 4 years ago

Last modified 2 years ago

#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: 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 Changed 4 years ago by jlsantiago0

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 Changed 4 years 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?

Last edited 4 years ago by cus (previous) (diff)

comment:3 Changed 4 years 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?

Last edited 4 years ago by jlsantiago0 (previous) (diff)

comment:4 Changed 4 years ago by cus

  • Analyzed by developer set
  • Cc cus@passwd.hu added
  • Owner set to cus
  • Reproduced by developer set
  • Status changed from new to 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.

comment:5 Changed 4 years ago by jlsantiago0

Awesome. Thank You.

comment:6 follow-up: Changed 4 years ago by cus

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

comment:7 in reply to: ↑ 6 ; follow-up: Changed 4 years 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 4 years ago by jlsantiago0

Replying to jlsantiago0:

Replying to cus:

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

The patches great for me. Thanks for fixing this.

Version 0, edited 4 years ago by jlsantiago0 (next)

comment:9 Changed 4 years ago by cus

  • Resolution set to fixed
  • Status changed from open to closed

Fix is in the latest git master.

comment:10 Changed 2 years ago by cehoyos

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