Opened 3 years ago

Last modified 3 years ago

#13008 new Bug Report - General

AFD: Unknown decoding error

Reported by: ksalmela@… Owned by:
Priority: minor Milestone: unknown
Component: MythTV - DVB Version: Unspecified
Severity: medium Keywords: audio afd 0 channels
Cc: Ticket locked: no

Description

Hello,

for since about 2-3 months ago I have been experiencing problems with Mythtv recordings from one particular source (YLE Finland), don't know if this is a more common issue. It seems AFD fails to find correct audio format or audio channels altogether which results in no audio at all. The audio is fine if I play the same recording with ffplay.

Sometimes audio is recognized as MP3 (while it is MPEG2). If I fast-forward couple of minutes, set a bookmark, and start play again, audio tracks are occasionally recognized correctly.

I can submit a .ts sample if needed.

When it's working its like this in log:

2017-03-06 19:25:17.844709 I  AFD: codec MP2 has 2 channels
2017-03-06 19:25:17.844809 I  AFD: Opened codec 0x5390420, id(MP2) type(Audio)
2017-03-06 19:25:17.844880 I  AFD: Opened codec 0x5156c80, id(DVB_SUBTITLE) type(Subtitle)
2017-03-06 19:25:17.844905 I  AFD: Opened codec 0x7685120, id(DVB_SUBTITLE) type(Subtitle)
2017-03-06 19:25:17.846609 I  AFD: Opened codec 0x7677ec0, id(MPEG2VIDEO) type(Video)
2017-03-06 19:25:17.846652 I  AOBase: Opening audio device 'pulse' ch 2(2) sr 48000 sf signed 16 bit reenc 0

When its not, its like this:

2017-03-06 19:26:40.752511 I  TV::StartPlayer(): Created player.
2017-03-06 19:26:40.752558 I  TV::HandleStateChange(): Changing from None to WatchingPreRecorded
2017-03-06 19:26:40.753357 I  TV::HandleStateChange(): Main UI disabled.
2017-03-06 19:26:40.753429 I  TV::StartTV(): Entering main playback loop.
2017-03-06 19:26:40.754377 E  AFD: Unknown video codec - defaulting to MPEG2
2017-03-06 19:26:40.758903 N  VidOutGL: Deferring creation of OpenGL resources
2017-03-06 19:26:40.759534 I  AFD: Opened codec 0x7f0f90005fc0, id(MPEG2VIDEO) type(Video)
2017-03-06 19:26:40.759550 N  AudioPlayer: Enabling Audio
2017-03-06 19:26:40.808931 N  VidOutGL: Deferring creation of OpenGL resources
2017-03-06 19:26:40.841603 I  GLVid: Using custom UYVY input textures.
2017-03-06 19:26:43.820909 E  AFD: Unknown video codec - defaulting to MPEG2
2017-03-06 19:26:43.824808 N  VidOutGL: Deferring creation of OpenGL resources
2017-03-06 19:26:43.825732 I  AFD: Opened codec 0x7f0f900184c0, id(MPEG2VIDEO) type(Video)
2017-03-06 19:26:43.869561 E  AFD: Unknown decoding error
2017-03-06 19:26:43.869600 E  AFD: Unknown decoding error
2017-03-06 19:26:43.869690 E  AFD: Unknown decoding error
2017-03-06 19:26:43.869756 E  AFD: Unknown decoding error
2017-03-06 19:26:43.869815 E  AFD: Unknown decoding error
2017-03-06 19:26:43.869870 E  AFD: Unknown decoding error
2017-03-06 19:26:43.869935 E  AFD: Unknown decoding error
2017-03-06 19:26:43.870047 E  AFD: Unknown decoding error
2017-03-06 19:26:43.894591 N  VidOutGL: Deferring creation of OpenGL resources
2017-03-06 19:26:43.927323 I  GLVid: Using custom UYVY input textures.

(those are from same recording, first sample playback started 5 minutes from start)

All the other channels play the audio just fine. Version:

Please attach all output as a file in bug reports.
MythTV Version : v29-pre-349-gd8e5e0f
MythTV Branch : master
Network Protocol : 91
Library API : 29.20170212-1
QT Version : 5.5.1
Options compiled in:
 linux profile use_hidesyms using_alsa using_oss using_pulse using_pulseoutput using_backend using_bindings_perl using_bindings_python using_bindings_php using_dvb using_frontend using_hdhomerun using_vbox using_ceton using_hdpvr using_ivtv using_joystick_menu using_libcec using_libdns_sd using_lirc using_mheg using_opengl using_opengl_video using_opengl_themepainter using_qtwebkit using_qtscript using_qtdbus using_taglib using_v4l2 using_x11 using_xrandr using_xv using_profiletype using_systemd_notify using_systemd_journal using_bindings_perl using_bindings_python using_bindings_php using_freetype2 using_mythtranscode using_opengl using_vaapi using_vdpau using_ffmpeg_threads using_mheg using_libmp3lame

Attachments (1)

debuglog.txt (93.6 KB) - added by ksalmela@… 3 years ago.
playback debug mode

Download all attachments as: .zip

Change History (4)

comment:1 Changed 3 years ago by ksalmela@…

This is what ffplay finds on that .ts:

Input #0, mpegts, from '8002_20170306130000.ts':
  Duration: 00:34:48.43, start: 81836.798367, bitrate: 3435 kb/s
  Program 1 
    Stream #0:0[0x201]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 15000 kb/s, 25 fps, 25 tbr, 90k 
tbn, 50 tbc
    Stream #0:1[0x294](fin): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 224 kb/s
    Stream #0:2[0x298](dut): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 160 kb/s (visual impaired)
    Stream #0:3[0x7eb](fin): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
    Stream #0:4[0x7ec](swe): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
    Stream #0:5[0x803](dut): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
    Stream #0:6[0x1388](fin): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006), 492x250
    Stream #0:7[0x1772]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:8[0x802](dut): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)

Changed 3 years ago by ksalmela@…

Attachment: debuglog.txt added

playback debug mode

comment:2 Changed 3 years ago by J.Pilk@…

It appears that playback is OK if you start a few minutes in. Is this a part-time channel, with the recording overlapping the start or end of the service?

comment:3 Changed 3 years ago by ksalmela@…

I believe number of audio tracks and their types change at the beginning of programming (suppose new program starts 30 seconds late, then first 30 seconds (ad or program title running) may have different set of audio tracks and subtitles from following recording. For example ads are usually missing descriptive audio track (for visually impaired) which is noted as dutch language audio track in Finnish broadcasts.

Maybe jumping to a running program enables it to find correct information in a more accurate manner.

Note: See TracTickets for help on using tickets.