Skip to content

Issue: No Sound on some channels #37

Open
slothdnk opened this Issue Jan 11, 2012 · 20 comments

2 participants

@slothdnk

Hi

After my provider updated the channel list I am missing the sound on some of the channels. in the log i get:
Jan 11 22:02:21 vdr vdr: [1255] XVDR: NEW AUDIO INFORMATION:
Jan 11 22:02:21 vdr vdr: [1255] XVDR: Channels: 2
Jan 11 22:02:21 vdr vdr: [1255] XVDR: Samplerate: 44100 Hz
Jan 11 22:02:21 vdr vdr: [1255] XVDR: Bitrate: 256000 bps
Jan 11 22:02:21 vdr vdr: [1255] XVDR: --------------------------------------
Jan 11 22:02:21 vdr vdr: [1255] XVDR: --------------------------------------
Jan 11 22:02:21 vdr vdr: [1255] XVDR: NEW AUDIO INFORMATION:
Jan 11 22:02:21 vdr vdr: [1255] XVDR: Channels: 2
Jan 11 22:02:21 vdr vdr: [1255] XVDR: Samplerate: 16000 Hz
Jan 11 22:02:21 vdr vdr: [1255] XVDR: Bitrate: 48000 bps
Jan 11 22:02:21 vdr vdr: [1255] XVDR: --------------------------------------
Jan 11 22:02:22 vdr vdr: [1255] XVDR: --------------------------------------
Jan 11 22:02:22 vdr vdr: [1255] XVDR: NEW AUDIO INFORMATION:
Jan 11 22:02:22 vdr vdr: [1255] XVDR: Channels: 2
Jan 11 22:02:22 vdr vdr: [1255] XVDR: Samplerate: 48000 Hz
Jan 11 22:02:22 vdr vdr: [1255] XVDR: Bitrate: 256000 bps
Jan 11 22:02:22 vdr vdr: [1255] XVDR: --------------------------------------
Jan 11 22:02:22 vdr vdr: [1255] XVDR: --------------------------------------
Jan 11 22:02:22 vdr vdr: [1255] XVDR: NEW AUDIO INFORMATION:
Jan 11 22:02:22 vdr vdr: [1255] XVDR: Channels: 2
Jan 11 22:02:22 vdr vdr: [1255] XVDR: Samplerate: 44100 Hz
Jan 11 22:02:22 vdr vdr: [1255] XVDR: Bitrate: 128000 bps
Jan 11 22:02:22 vdr vdr: [1255] XVDR: --------------------------------------
Jan 11 22:02:22 vdr vdr: [1255] XVDR: --------------------------------------
Jan 11 22:02:22 vdr vdr: [1255] XVDR: NEW AUDIO INFORMATION:
Jan 11 22:02:22 vdr vdr: [1255] XVDR: Channels: 2
Jan 11 22:02:22 vdr vdr: [1255] XVDR: Samplerate: 11025 Hz
Jan 11 22:02:22 vdr vdr: [1255] XVDR: Bitrate: 8000 bps
Jan 11 22:02:22 vdr vdr: [1255] XVDR: --------------------------------------
Jan 11 22:02:22 vdr vdr: [1255] XVDR: --------------------------------------
Jan 11 22:02:22 vdr vdr: [1255] XVDR: NEW AUDIO INFORMATION:
Jan 11 22:02:22 vdr vdr: [1255] XVDR: Channels: 2
Jan 11 22:02:22 vdr vdr: [1255] XVDR: Samplerate: 44100 Hz
Jan 11 22:02:22 vdr vdr: [1255] XVDR: Bitrate: 32000 bps
Jan 11 22:02:22 vdr vdr: [1255] XVDR: --------------------------------------
So it come as no suprise that it does not work

The stream information from vlc (using the streamdev plugin) is:
AAC (mp4a)
stereo
48000 hz
AAC Extension sbr

@slothdnk

An observation: The stream is buffered for 10 sec. and then uses 10 sec to catch up.

@pipelka
Owner
pipelka commented Jan 12, 2012

Please compile the plugin with:

# make clean
# make DEBUG=1

and provide a full log beginning with the channel switch.

@pipelka
Owner
pipelka commented Jan 12, 2012

Please, also add the corresponding xbmc.log

@slothdnk

Jan 12 16:48:34 vdr vdr: [3011] loading /video/plugins/xvdr/allowed_hosts.conf
Jan 12 16:48:34 vdr vdr: [3011] XVDR: Client with ID 1 connected: 192.168.1.178:52152
Jan 12 16:48:34 vdr vdr: [3017] XVDR: Received chan=1, ser=11609, op=1, edl=28
Jan 12 16:48:34 vdr vdr: [3017] XVDR: Welcome client 'XBMC Media Center' with protocol version '3'
Jan 12 16:48:34 vdr vdr: [3017] XVDR: Preferred language: eng,dos / type: 0
Jan 12 16:48:34 vdr vdr: [3017] XVDR: Received chan=1, ser=11610, op=20, edl=4
Jan 12 16:48:34 vdr vdr: [3017] ERROR (thread.c,226): Permission denied
Jan 12 16:48:34 vdr vdr: [3017] XVDR: --------------------------------------
Jan 12 16:48:34 vdr vdr: [3017] XVDR: Channel streaming request: 1 - DR1
Jan 12 16:48:34 vdr vdr: [3017] XVDR: Found available device 1
Jan 12 16:48:34 vdr vdr: [3017] XVDR: Creating new live Receiver
Jan 12 16:48:34 vdr vdr: [3017] XVDR: Starting live receiver
Jan 12 16:48:34 vdr vdr: [3017] XVDR: cStreamdevPatFilter("DR1")
Jan 12 16:48:34 vdr vdr: [3017] XVDR: VDR active, sending stream start message
Jan 12 16:48:34 vdr vdr: [3017] XVDR: Successfully switched to channel 1 - DR1
Jan 12 16:48:34 vdr vdr: [3017] XVDR: Started streaming of channel DR1 (timeout 3 seconds, priority 50)
Jan 12 16:48:34 vdr vdr: [3019] cLiveStreamer stream processor thread started (pid=3004, tid=3019)
Jan 12 16:48:34 vdr vdr: [3018] XVDR: LiveQueue started
Jan 12 16:48:34 vdr vdr: [3019] XVDR: --------------------------------------
Jan 12 16:48:34 vdr vdr: [3019] XVDR: NEW AUDIO INFORMATION:
Jan 12 16:48:34 vdr vdr: [3019] XVDR: Channels: 2
Jan 12 16:48:34 vdr vdr: [3019] XVDR: Samplerate: 44100 Hz
Jan 12 16:48:34 vdr vdr: [3019] XVDR: Bitrate: 32000 bps
Jan 12 16:48:34 vdr vdr: [3019] XVDR: --------------------------------------
Jan 12 16:48:34 vdr vdr: [3019] XVDR: --------------------------------------
Jan 12 16:48:34 vdr vdr: [3019] XVDR: NEW AUDIO INFORMATION:
Jan 12 16:48:34 vdr vdr: [3019] XVDR: Channels: 2
Jan 12 16:48:34 vdr vdr: [3019] XVDR: Samplerate: 22050 Hz
Jan 12 16:48:34 vdr vdr: [3019] XVDR: Bitrate: 144000 bps
Jan 12 16:48:34 vdr vdr: [3019] XVDR: --------------------------------------
Jan 12 16:48:34 vdr vdr: [3019] XVDR: --------------------------------------
Jan 12 16:48:34 vdr vdr: [3019] XVDR: NEW AUDIO INFORMATION:
Jan 12 16:48:34 vdr vdr: [3019] XVDR: Channels: 2
Jan 12 16:48:34 vdr vdr: [3019] XVDR: Samplerate: 44100 Hz
Jan 12 16:48:34 vdr vdr: [3019] XVDR: Bitrate: 32000 bps
Jan 12 16:48:34 vdr vdr: [3019] XVDR: --------------------------------------
Jan 12 16:48:34 vdr vdr: [3009] XVDR: cStreamdevPatFilter PMT scanner adding PID 111 (ISO/IEC 14496-10 Video (MPEG-4 part 10/AVC, aka H.264))
Jan 12 16:48:34 vdr vdr: [3009] XVDR: cStreamdevPatFilter PMT scanner: adding PID 121 (ISO/IEC 14496-3 Audio with LATM transport syntax) AAC (dan)
Jan 12 16:48:34 vdr vdr: [3009] XVDR: cStreamdevPatFilter PMT scanner: NOT adding PID 135 (ISO/IEC 13818-1 Private PES data) UNKNOWN (82)
Jan 12 16:48:34 vdr vdr: [3009] XVDR: cStreamdevPatFilter PMT scanner: adding PID 135 (ISO/IEC 13818-1 Private PES data) DVBSUB
Jan 12 16:48:34 vdr vdr: [3009] XVDR: cStreamdevPatFilter PMT scanner: NOT adding PID 136 (ISO/IEC 13818-1 Private PES data) UNKNOWN (82)
Jan 12 16:48:34 vdr vdr: [3009] XVDR: cStreamdevPatFilter PMT scanner: adding PID 136 (ISO/IEC 13818-1 Private PES data) DVBSUB
Jan 12 16:48:34 vdr vdr: [3009] XVDR: cStreamdevPatFilter PMT scanner: adding PID 231 Teletext
Jan 12 16:48:34 vdr vdr: [3009] XVDR: Detaching Live Receiver
Jan 12 16:48:34 vdr vdr: [3009] XVDR: VDR inactive, sending stream end message
Jan 12 16:48:34 vdr vdr: [3019] cLiveStreamer stream processor thread ended (pid=3004, tid=3019)
Jan 12 16:48:34 vdr vdr: [3009] XVDR: Killing live receiver
Jan 12 16:48:34 vdr vdr: [3009] XVDR: Starting live receiver
Jan 12 16:48:34 vdr vdr: [3009] XVDR: VDR active, sending stream start message
Jan 12 16:48:34 vdr vdr: [3009] XVDR: Currently unknown new streams found, requesting stream change
Jan 12 16:48:34 vdr vdr: [3020] cLiveStreamer stream processor thread started (pid=3004, tid=3020)
Jan 12 16:48:34 vdr vdr: [3020] XVDR: H.264 SPS: PAR 1 / 1
Jan 12 16:48:34 vdr vdr: [3020] XVDR: H.264 SPS: -> video size 1280x720, aspect 1:1
Jan 12 16:48:34 vdr vdr: [3020] XVDR: --------------------------------------
Jan 12 16:48:34 vdr vdr: [3020] XVDR: NEW PICTURE INFORMATION:
Jan 12 16:48:34 vdr vdr: [3020] XVDR: Picture Width: 1280
Jan 12 16:48:34 vdr vdr: [3020] XVDR: Picture Height: 720
Jan 12 16:48:34 vdr vdr: [3020] XVDR: Display Aspect Ratio: 1.78
Jan 12 16:48:34 vdr vdr: [3020] XVDR: --------------------------------------
Jan 12 16:48:34 vdr vdr: [3020] XVDR: streaming of channel started
Jan 12 16:48:34 vdr vdr: [3020] XVDR: sendStreamChange
Jan 12 16:48:34 vdr vdr: [3020] XVDR: Stream 0: Type 3 / dan Weight: 501
Jan 12 16:48:34 vdr vdr: [3020] XVDR: Stream 1: Type 11 / Weight: 1000
Jan 12 16:48:34 vdr vdr: [3020] XVDR: Stream 2: Type 20 / dan Weight: 1002
Jan 12 16:48:34 vdr vdr: [3020] XVDR: Stream 3: Type 20 / dan Weight: 1003
Jan 12 16:48:34 vdr vdr: [3020] XVDR: Stream 4: Type 22 / Weight: 1004
Jan 12 16:48:34 vdr vdr: [3020] XVDR: AAC: 121 (index: 0)
Jan 12 16:48:34 vdr vdr: [3020] XVDR: H264: 111 (index: 1)
Jan 12 16:48:34 vdr vdr: [3020] XVDR: DVBSUB: 135 (index: 2)
Jan 12 16:48:34 vdr vdr: [3020] XVDR: DVBSUB: 136 (index: 3)
Jan 12 16:48:34 vdr vdr: [3020] XVDR: TELETEXT: 231 (index: 4)
Jan 12 16:48:34 vdr vdr: [3020] XVDR: Stream 0: Type 3 / dan Weight: 500
Jan 12 16:48:34 vdr vdr: [3020] XVDR: Stream 1: Type 11 / Weight: 1001
Jan 12 16:48:34 vdr vdr: [3020] XVDR: Stream 2: Type 20 / dan Weight: 1002
Jan 12 16:48:34 vdr vdr: [3020] XVDR: Stream 3: Type 20 / dan Weight: 1003
Jan 12 16:48:34 vdr vdr: [3020] XVDR: Stream 4: Type 22 / Weight: 1004
Jan 12 16:48:34 vdr vdr: [3020] XVDR: sendStreamInfo
Jan 12 16:48:34 vdr vdr: [3018] XVDR: cxSocket::write: blocked, retrying
Jan 12 16:48:34 vdr last message repeated 4 times
Jan 12 16:48:35 vdr vdr: [3013] XVDR: Received chan=1, ser=11611, op=7, edl=0
Jan 12 16:48:35 vdr vdr: [3020] XVDR: H.264 SPS: PAR 1 / 1
Jan 12 16:48:35 vdr vdr: [3020] XVDR: H.264 SPS: -> video size 1280x720, aspect 1:1
Jan 12 16:48:35 vdr vdr: [3018] XVDR: cxSocket::write: blocked, retrying
Jan 12 16:48:37 vdr last message repeated 119 times
Jan 12 16:48:37 vdr vdr: [3020] XVDR: H.264 SPS: PAR 1 / 1
Jan 12 16:48:37 vdr vdr: [3020] XVDR: H.264 SPS: -> video size 1280x720, aspect 1:1
Jan 12 16:48:37 vdr vdr: [3018] XVDR: cxSocket::write: blocked, retrying
Jan 12 16:48:37 vdr last message repeated 4 times
Jan 12 16:48:38 vdr vdr: [3020] XVDR: H.264 SPS: PAR 1 / 1
Jan 12 16:48:38 vdr vdr: [3020] XVDR: H.264 SPS: -> video size 1280x720, aspect 1:1
Jan 12 16:48:39 vdr vdr: [3018] XVDR: cxSocket::write: blocked, retrying
Jan 12 16:48:39 vdr last message repeated 31 times
Jan 12 16:48:39 vdr vdr: [3020] XVDR: H.264 SPS: PAR 1 / 1
Jan 12 16:48:39 vdr vdr: [3020] XVDR: H.264 SPS: -> video size 1280x720, aspect 1:1
Jan 12 16:48:40 vdr vdr: [3014] ERROR: no OSD provider available - using dummy OSD!
Jan 12 16:48:41 vdr vdr: [3020] XVDR: H.264 SPS: PAR 1 / 1
Jan 12 16:48:41 vdr vdr: [3020] XVDR: H.264 SPS: -> video size 1280x720, aspect 1:1
Jan 12 16:48:41 vdr vdr: [3013] XVDR: Received chan=1, ser=11612, op=7, edl=0
Jan 12 16:48:42 vdr vdr: [3020] XVDR: H.264 SPS: PAR 1 / 1
Jan 12 16:48:42 vdr vdr: [3020] XVDR: H.264 SPS: -> video size 1280x720, aspect 1:1
Jan 12 16:48:43 vdr vdr: [3014] ERROR: no OSD provider available - using dummy OSD!
Jan 12 16:48:44 vdr vdr: [3020] XVDR: H.264 SPS: PAR 1 / 1
Jan 12 16:48:44 vdr vdr: [3020] XVDR: H.264 SPS: -> video size 1280x720, aspect 1:1
Jan 12 16:48:44 vdr vdr: [3020] XVDR: Stream 0: Type 3 / dan Weight: 500
Jan 12 16:48:44 vdr vdr: [3020] XVDR: Stream 1: Type 11 / Weight: 1001
Jan 12 16:48:44 vdr vdr: [3020] XVDR: Stream 2: Type 20 / dan Weight: 1002
Jan 12 16:48:44 vdr vdr: [3020] XVDR: Stream 3: Type 20 / dan Weight: 1003
Jan 12 16:48:44 vdr vdr: [3020] XVDR: Stream 4: Type 22 / Weight: 1004
Jan 12 16:48:44 vdr vdr: [3020] XVDR: sendStreamInfo
Jan 12 16:48:44 vdr vdr: [3020] XVDR: sendSignalInfo
Jan 12 16:48:45 vdr vdr: [3020] XVDR: H.264 SPS: PAR 1 / 1
Jan 12 16:48:45 vdr vdr: [3020] XVDR: H.264 SPS: -> video size 1280x720, aspect 1:1
Jan 12 16:48:46 vdr vdr: [3020] XVDR: H.264 SPS: PAR 1 / 1
Jan 12 16:48:46 vdr vdr: [3020] XVDR: H.264 SPS: -> video size 1280x720, aspect 1:1
Jan 12 16:48:47 vdr vdr: [3020] XVDR: H.264 SPS: PAR 1 / 1
Jan 12 16:48:47 vdr vdr: [3020] XVDR: H.264 SPS: -> video size 1280x720, aspect 1:1
Jan 12 16:48:47 vdr vdr: [3013] XVDR: Received chan=1, ser=11613, op=7, edl=0
Jan 12 16:48:48 vdr vdr: [3020] XVDR: H.264 SPS: PAR 1 / 1
Jan 12 16:48:48 vdr vdr: [3020] XVDR: H.264 SPS: -> video size 1280x720, aspect 1:1
Jan 12 16:48:50 vdr vdr: [3020] XVDR: H.264 SPS: PAR 1 / 1
Jan 12 16:48:50 vdr vdr: [3020] XVDR: H.264 SPS: -> video size 1280x720, aspect 1:1
Jan 12 16:48:51 vdr vdr: [3020] XVDR: H.264 SPS: PAR 1 / 1
Jan 12 16:48:51 vdr vdr: [3020] XVDR: H.264 SPS: -> video size 1280x720, aspect 1:1
Jan 12 16:48:52 vdr vdr: [3020] XVDR: H.264 SPS: PAR 1 / 1
Jan 12 16:48:52 vdr vdr: [3020] XVDR: H.264 SPS: -> video size 1280x720, aspect 1:1
Jan 12 16:48:53 vdr vdr: [3013] XVDR: Received chan=1, ser=11614, op=7, edl=0
Jan 12 16:48:53 vdr vdr: [3020] XVDR: H.264 SPS: PAR 1 / 1
Jan 12 16:48:53 vdr vdr: [3020] XVDR: H.264 SPS: -> video size 1280x720, aspect 1:1
Jan 12 16:48:54 vdr vdr: [3020] XVDR: H.264 SPS: PAR 1 / 1
Jan 12 16:48:54 vdr vdr: [3020] XVDR: H.264 SPS: -> video size 1280x720, aspect 1:1
Jan 12 16:48:54 vdr vdr: [3020] XVDR: Stream 0: Type 3 / dan Weight: 500
Jan 12 16:48:54 vdr vdr: [3020] XVDR: Stream 1: Type 11 / Weight: 1001
Jan 12 16:48:54 vdr vdr: [3020] XVDR: Stream 2: Type 20 / dan Weight: 1002
Jan 12 16:48:54 vdr vdr: [3020] XVDR: Stream 3: Type 20 / dan Weight: 1003
Jan 12 16:48:54 vdr vdr: [3020] XVDR: Stream 4: Type 22 / Weight: 1004
Jan 12 16:48:54 vdr vdr: [3020] XVDR: sendStreamInfo
Jan 12 16:48:54 vdr vdr: [3020] XVDR: sendSignalInfo
Jan 12 16:48:55 vdr vdr: [3020] XVDR: H.264 SPS: PAR 1 / 1
Jan 12 16:48:55 vdr vdr: [3020] XVDR: H.264 SPS: -> video size 1280x720, aspect 1:1
Jan 12 16:48:56 vdr vdr: [3020] XVDR: H.264 SPS: PAR 1 / 1
Jan 12 16:48:56 vdr vdr: [3020] XVDR: H.264 SPS: -> video size 1280x720, aspect 1:1
Jan 12 16:48:57 vdr vdr: [3020] XVDR: H.264 SPS: PAR 1 / 1
Jan 12 16:48:57 vdr vdr: [3020] XVDR: H.264 SPS: -> video size 1280x720, aspect 1:1
Jan 12 16:48:58 vdr vdr: [3017] XVDR-Error: cxSocket::read: read() error at 0/4
Jan 12 16:48:58 vdr vdr: [3017] XVDR: Started to delete live streamer
Jan 12 16:48:58 vdr vdr: [3017] XVDR: Detaching Live Receiver
Jan 12 16:48:58 vdr vdr: [3017] XVDR: VDR inactive, sending stream end message
Jan 12 16:48:58 vdr vdr: [3011] loading /video/plugins/xvdr/allowed_hosts.conf
Jan 12 16:48:58 vdr vdr: [3011] XVDR: Client with ID 2 connected: 192.168.1.178:52153
Jan 12 16:48:58 vdr vdr: [3021] XVDR: Received chan=1, ser=11615, op=1, edl=28
Jan 12 16:48:58 vdr vdr: [3021] XVDR: Welcome client 'XBMC Media Center' with protocol version '3'
Jan 12 16:48:58 vdr vdr: [3021] XVDR: Preferred language: eng,dos / type: 0
Jan 12 16:48:58 vdr vdr: [3021] XVDR: Received chan=1, ser=11616, op=20, edl=4
Jan 12 16:48:58 vdr vdr: [3021] ERROR (thread.c,226): Permission denied
Jan 12 16:48:58 vdr vdr: [3020] cLiveStreamer stream processor thread ended (pid=3004, tid=3020)
Jan 12 16:48:58 vdr vdr: [3017] XVDR: Detaching Live Filter
Jan 12 16:48:58 vdr vdr: [3017] XVDR: Deleting stream demuxer for pid=121 and type=3
Jan 12 16:48:58 vdr vdr: [3017] XVDR: Deleting stream demuxer for pid=111 and type=11
Jan 12 16:48:58 vdr vdr: [3017] XVDR: Deleting stream demuxer for pid=135 and type=20
Jan 12 16:48:58 vdr vdr: [3017] XVDR: Deleting stream demuxer for pid=136 and type=20
Jan 12 16:48:58 vdr vdr: [3017] XVDR: Deleting stream demuxer for pid=231 and type=22
Jan 12 16:48:58 vdr vdr: [3017] XVDR: Deleting Live Receiver
Jan 12 16:48:58 vdr vdr: [3017] XVDR: Killing live receiver
Jan 12 16:48:58 vdr vdr: [3017] XVDR: Deleting Live Filter
Jan 12 16:48:58 vdr vdr: [3017] XVDR: Deleting LiveQueue
Jan 12 16:48:58 vdr vdr: [3018] XVDR: LiveQueue stopped
Jan 12 16:48:58 vdr vdr: [3017] XVDR: Finished to delete live streamer (took 71 ms)

@slothdnk

18:58:39 T:3017697008 DEBUG: CGUIMediaWindow::GetDirectory (pvr://channels/tv/All TV channels/)
18:58:39 T:3017697008 DEBUG: ParentPath = []
18:58:39 T:3017697008 DEBUG: CPVRDirectory::GetDirectory(pvr://channels/tv/All TV channels)
18:58:39 T:3017697008 DEBUG: CGUIWindowPVRCommon - OnMessageFocus - focus set to window 'tv'
18:58:39 T:3017697008 DEBUG: CGUIWindowPVRChannels - UpdateData - update window 'tv'. set view to 11
18:58:39 T:3017697008 DEBUG: CGUIMediaWindow::GetDirectory (pvr://channels/tv/All TV channels/)
18:58:39 T:3017697008 DEBUG: ParentPath = []
18:58:39 T:2864163696 DEBUG: CPVRDirectory::GetDirectory(pvr://channels/tv/All TV channels)
18:58:40 T:3017697008 NOTICE: CDVDPlayer::CloseFile()
18:58:40 T:3017697008 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
18:58:40 T:3017697008 NOTICE: DVDPlayer: waiting for threads to exit
18:58:40 T:3017697008 NOTICE: DVDPlayer: finished waiting
18:58:40 T:3017697008 DEBUG: LinuxRendererGL: Cleaning up GL resources
18:58:43 T:2988440432 DEBUG: AddOnLog: VDR XVDR Client: SendPing
18:58:53 T:3017697008 DEBUG: Previous line repeats 1 times.
18:58:53 T:3017697008 DEBUG: SECTION:UnloadDelayed(SECTION: LCODE)
18:58:55 T:2988440432 DEBUG: AddOnLog: VDR XVDR Client: SendPing

@slothdnk

This bug might be due to aac being transmitted in mp4a container format
TvHeadend fixed it in this changelog.
andoma/tvheadend@fdf89b2

Hope it helps

@pipelka
Owner
pipelka commented Jan 18, 2012

Ah. Ok. Thanks for the info.
I already implemented a parser for ADTS streams but I'm unable to test this because i do not have access to this kind of streams.
Would it be possible for you to provide a ~30 seconds recording of this channel ?
I would also need the configuration line of that channel from "channels.conf".

Thats the fastest way to fix this.

Regards,
Alex

@slothdnk

Hi
I got sound on the recordings, just not on the live stream.
Is there a way to dump a raw stream to disk?

from channels.conf;
DR1;DR:538000:I999B8C23D23M64T8G4Y0:T:27500:111:121=dan:231:0:101:8400:0:0

@slothdnk slothdnk closed this Jan 19, 2012
@pipelka pipelka reopened this Jan 19, 2012
@pipelka
Owner
pipelka commented Jan 19, 2012

LiveTV and recordings are handled completely different.
It's good that there is sound on the recordings ;-)

BTW, the recording is the RAW TS stream. Just record a couple of seconds and take the resulting 0001.ts file.

@slothdnk

Or I can test the changes for you.

@pipelka
Owner
pipelka commented Jan 23, 2012

Thanks for your patience ;-)
I got it working but i need to clean up the code.
Give me a couple of days to push the changes.

Thanks for your help,
Alex

@slothdnk

Anything I can do to help, just let me know.

@pipelka pipelka closed this in 1889465 Jan 24, 2012
@slothdnk

After pulling this changeset i get no sound on any channels :-(
I added a log from one of the channels that i had sound on before.
They all use latm encoded he-aac.
My log is now:

Jan 25 21:20:39 vdr vdr: [9566] XVDR: --------------------------------------
Jan 25 21:20:39 vdr vdr: [9566] XVDR: Channel streaming request: 41 - DR K
Jan 25 21:20:39 vdr vdr: [9566] XVDR: Found available device 1
Jan 25 21:20:39 vdr vdr: [9566] XVDR: Creating new live Receiver
Jan 25 21:20:39 vdr vdr: [9566] XVDR: Starting live receiver
Jan 25 21:20:39 vdr vdr: [9566] XVDR: cStreamdevPatFilter("DR K")
Jan 25 21:20:39 vdr vdr: [9566] XVDR: VDR active, sending stream start message
Jan 25 21:20:39 vdr vdr: [9566] XVDR: Successfully switched to channel 41 - DR K
Jan 25 21:20:39 vdr vdr: [9566] XVDR: Started streaming of channel DR K (timeout 3 seconds, priority 50)
Jan 25 21:20:39 vdr vdr: [9569] receiver on device 1 thread started (pid=9548, tid=9569)
Jan 25 21:20:39 vdr vdr: [9568] cLiveStreamer stream processor thread started (pid=9548, tid=9568)
Jan 25 21:20:39 vdr vdr: [9567] XVDR: LiveQueue started
Jan 25 21:20:39 vdr vdr: [9570] TS buffer on device 1 thread started (pid=9548, tid=9570)
Jan 25 21:20:39 vdr vdr: [9568] XVDR: --------------------------------------
Jan 25 21:20:39 vdr vdr: [9568] XVDR: NEW AUDIO INFORMATION:
Jan 25 21:20:39 vdr vdr: [9568] XVDR: Channels: 2
Jan 25 21:20:39 vdr vdr: [9568] XVDR: Samplerate: 44100 Hz
Jan 25 21:20:39 vdr vdr: [9568] XVDR: Bitrate: 32000 bps
Jan 25 21:20:39 vdr vdr: [9568] XVDR: --------------------------------------
Jan 25 21:20:40 vdr vdr: [9568] XVDR: no payload, size 0
Jan 25 21:20:40 vdr last message repeated 3 times
Jan 25 21:20:40 vdr vdr: [9568] XVDR: --------------------------------------
Jan 25 21:20:40 vdr vdr: [9568] XVDR: NEW AUDIO INFORMATION:
Jan 25 21:20:40 vdr vdr: [9568] XVDR: Channels: 2
Jan 25 21:20:40 vdr vdr: [9568] XVDR: Samplerate: 44100 Hz
Jan 25 21:20:40 vdr vdr: [9568] XVDR: Bitrate: 160000 bps
Jan 25 21:20:40 vdr vdr: [9568] XVDR: --------------------------------------
Jan 25 21:20:40 vdr vdr: [9568] XVDR: no payload, size 0
Jan 25 21:20:40 vdr last message repeated 3 times
Jan 25 21:20:40 vdr vdr: [9568] XVDR: H.264 SPS: MBAFF
Jan 25 21:20:40 vdr vdr: [9568] XVDR: H.264 SPS: PAR 16 / 11
Jan 25 21:20:40 vdr vdr: [9568] XVDR: H.264 SPS: -> video size 704x576, aspect 16:11
Jan 25 21:20:40 vdr vdr: [9568] XVDR: --------------------------------------
Jan 25 21:20:40 vdr vdr: [9568] XVDR: NEW PICTURE INFORMATION:
Jan 25 21:20:40 vdr vdr: [9568] XVDR: Picture Width: 704
Jan 25 21:20:40 vdr vdr: [9568] XVDR: Picture Height: 576
Jan 25 21:20:40 vdr vdr: [9568] XVDR: Pixel Aspect: 16:11
Jan 25 21:20:40 vdr vdr: [9568] XVDR: Display Aspect Ratio: 1.78
Jan 25 21:20:40 vdr vdr: [9568] XVDR: --------------------------------------
Jan 25 21:20:40 vdr vdr: [9568] XVDR: no payload, size 0
Jan 25 21:20:40 vdr vdr: [9568] XVDR: streaming of channel started
Jan 25 21:20:40 vdr vdr: [9568] XVDR: sendStreamChange
Jan 25 21:20:40 vdr vdr: [9568] XVDR: Stream 0: Type 0 / dan Weight: 501
Jan 25 21:20:40 vdr vdr: [9568] XVDR: Stream 1: Type 11 / Weight: 1000
Jan 25 21:20:40 vdr vdr: [9568] XVDR: Stream 2: Type 20 / dan Weight: 1002
Jan 25 21:20:40 vdr vdr: [9568] XVDR: Stream 3: Type 20 / dan Weight: 1003
Jan 25 21:20:40 vdr vdr: [9568] XVDR: Stream 4: Type 22 / Weight: 1004
Jan 25 21:20:40 vdr vdr: [9568] XVDR: MPEG2AUDIO: 2121 (index: 0) (dan)
Jan 25 21:20:40 vdr vdr: [9568] XVDR: H264: 2111 (index: 1)
Jan 25 21:20:40 vdr vdr: [9568] XVDR: DVBSUB: 2135 (index: 2)
Jan 25 21:20:40 vdr vdr: [9568] XVDR: DVBSUB: 2136 (index: 3)
Jan 25 21:20:40 vdr vdr: [9568] XVDR: TELETEXT: 2031 (index: 4)
Jan 25 21:20:40 vdr vdr: [9568] XVDR: Stream 0: Type 0 / dan Weight: 500
Jan 25 21:20:40 vdr vdr: [9568] XVDR: Stream 1: Type 11 / Weight: 1001
Jan 25 21:20:40 vdr vdr: [9568] XVDR: Stream 2: Type 20 / dan Weight: 1002
Jan 25 21:20:40 vdr vdr: [9568] XVDR: Stream 3: Type 20 / dan Weight: 1003
Jan 25 21:20:40 vdr vdr: [9568] XVDR: Stream 4: Type 22 / Weight: 1004
Jan 25 21:20:40 vdr vdr: [9568] XVDR: sendStreamInfo
Jan 25 21:20:40 vdr vdr: [9567] XVDR: cxSocket::write: blocked, retrying
Jan 25 21:20:40 vdr last message repeated 7 times
Jan 25 21:20:40 vdr vdr: [9568] XVDR: --------------------------------------
Jan 25 21:20:40 vdr vdr: [9568] XVDR: NEW AUDIO INFORMATION:
Jan 25 21:20:40 vdr vdr: [9568] XVDR: Channels: 1
Jan 25 21:20:40 vdr vdr: [9568] XVDR: Samplerate: 11025 Hz
Jan 25 21:20:40 vdr vdr: [9568] XVDR: Bitrate: 160000 bps
Jan 25 21:20:40 vdr vdr: [9568] XVDR: --------------------------------------
Jan 25 21:20:40 vdr vdr: [9568] XVDR: no payload, size 0
Jan 25 21:20:40 vdr last message repeated 2 times
Jan 25 21:20:40 vdr vdr: [9568] XVDR: --------------------------------------
Jan 25 21:20:40 vdr vdr: [9568] XVDR: NEW AUDIO INFORMATION:
Jan 25 21:20:40 vdr vdr: [9568] XVDR: Channels: 1
Jan 25 21:20:40 vdr vdr: [9568] XVDR: Samplerate: 11025 Hz
Jan 25 21:20:40 vdr vdr: [9568] XVDR: Bitrate: 160000 bps
Jan 25 21:20:40 vdr vdr: [9568] XVDR: --------------------------------------
Jan 25 21:20:40 vdr vdr: [9568] XVDR: no payload, size 0
Jan 25 21:20:40 vdr last message repeated 2 times
Jan 25 21:20:40 vdr vdr: [9568] XVDR: --------------------------------------
Jan 25 21:20:40 vdr vdr: [9568] XVDR: NEW AUDIO INFORMATION:
Jan 25 21:20:40 vdr vdr: [9568] XVDR: Channels: 1
Jan 25 21:20:40 vdr vdr: [9568] XVDR: Samplerate: 12000 Hz
Jan 25 21:20:40 vdr vdr: [9568] XVDR: Bitrate: 64000 bps
Jan 25 21:20:40 vdr vdr: [9568] XVDR: --------------------------------------
Jan 25 21:20:41 vdr vdr: [9568] XVDR: no payload, size 0
Jan 25 21:20:41 vdr last message repeated 2 times
Jan 25 21:20:41 vdr vdr: [9568] XVDR: --------------------------------------
Jan 25 21:20:41 vdr vdr: [9568] XVDR: NEW AUDIO INFORMATION:
Jan 25 21:20:41 vdr vdr: [9568] XVDR: Channels: 2
Jan 25 21:20:41 vdr vdr: [9568] XVDR: Samplerate: 32000 Hz
Jan 25 21:20:41 vdr vdr: [9568] XVDR: Bitrate: 416000 bps
Jan 25 21:20:41 vdr vdr: [9568] XVDR: --------------------------------------
Jan 25 21:20:41 vdr vdr: [9568] XVDR: no payload, size 0
Jan 25 21:20:41 vdr vdr: [9568] XVDR: no payload, size 0
Jan 25 21:20:41 vdr vdr: [9568] XVDR: --------------------------------------
Jan 25 21:20:41 vdr vdr: [9568] XVDR: NEW AUDIO INFORMATION:
Jan 25 21:20:41 vdr vdr: [9568] XVDR: Channels: 2
Jan 25 21:20:41 vdr vdr: [9568] XVDR: Samplerate: 44100 Hz
Jan 25 21:20:41 vdr vdr: [9568] XVDR: Bitrate: 256000 bps
Jan 25 21:20:41 vdr vdr: [9568] XVDR: --------------------------------------
Jan 25 21:20:41 vdr vdr: [9568] XVDR: no payload, size 0
Jan 25 21:20:41 vdr last message repeated 2 times
Jan 25 21:20:41 vdr vdr: [9568] XVDR: --------------------------------------
Jan 25 21:20:41 vdr vdr: [9568] XVDR: NEW AUDIO INFORMATION:
Jan 25 21:20:41 vdr vdr: [9568] XVDR: Channels: 1
Jan 25 21:20:41 vdr vdr: [9568] XVDR: Samplerate: 44100 Hz
Jan 25 21:20:41 vdr vdr: [9568] XVDR: Bitrate: 192000 bps
Jan 25 21:20:41 vdr vdr: [9568] XVDR: --------------------------------------
Jan 25 21:20:41 vdr vdr: [9568] XVDR: no payload, size 0
Jan 25 21:20:41 vdr last message repeated 6 times
Jan 25 21:20:41 vdr vdr: [9568] XVDR: H.264 SPS: MBAFF
Jan 25 21:20:41 vdr vdr: [9568] XVDR: H.264 SPS: PAR 16 / 11
Jan 25 21:20:41 vdr vdr: [9568] XVDR: H.264 SPS: -> video size 704x576, aspect 16:11
Jan 25 21:20:41 vdr vdr: [9568] XVDR: --------------------------------------
Jan 25 21:20:41 vdr vdr: [9568] XVDR: NEW AUDIO INFORMATION:
Jan 25 21:20:41 vdr vdr: [9568] XVDR: Channels: 2
Jan 25 21:20:41 vdr vdr: [9568] XVDR: Samplerate: 11025 Hz
Jan 25 21:20:41 vdr vdr: [9568] XVDR: Bitrate: 80000 bps
Jan 25 21:20:41 vdr vdr: [9568] XVDR: --------------------------------------
an 25 21:20:41 vdr vdr: [9553] XVDR: cStreamdevPatFilter PMT scanner: NOT adding PID 90 (ISO/IEC 13818-1 Privete sections) UNKNOWN (111)
Jan 25 21:20:41 vdr vdr: [9553] XVDR: cStreamdevPatFilter PMT scanner: Not adding PID 91 (ISO/IEC 13818-6 DSM-CC U-N Messages) (skipped)
Jan 25 21:20:41 vdr vdr: [9553] XVDR: cStreamdevPatFilter PMT scanner: adding PID 2031 Teletext
Jan 25 21:20:41 vdr vdr: [9553] XVDR: cStreamdevPatFilter PMT scanner adding PID 2111 (ISO/IEC 14496-10 Video (MPEG-4 part 10/AVC, aka H.264))
Jan 25 21:20:41 vdr vdr: [9553] XVDR: cStreamdevPatFilter PMT scanner: adding PID 2121 (ISO/IEC 14496-3 Audio with LATM transport syntax) LATM (dan)
Jan 25 21:20:41 vdr vdr: [9553] XVDR: cStreamdevPatFilter PMT scanner: adding PID 2135 (ISO/IEC 13818-1 Private PES data) DVBSUB
Jan 25 21:20:41 vdr vdr: [9553] XVDR: cStreamdevPatFilter PMT scanner: adding PID 2136 (ISO/IEC 13818-1 Private PES data) DVBSUB
Jan 25 21:20:41 vdr vdr: [9553] XVDR: Detaching Live Receiver
Jan 25 21:20:41 vdr vdr: [9553] XVDR: VDR inactive, sending stream end message
Jan 25 21:20:41 vdr vdr: [9568] cLiveStreamer stream processor thread ended (pid=9548, tid=9568)
Jan 25 21:20:41 vdr vdr: [9553] XVDR: Killing live receiver

@pipelka
Owner
pipelka commented Jan 25, 2012

Sorry. I forgot.
You also have to update the XBMC addon.

@slothdnk

To get it working i had top add the following:
diff --git a/src/live/livepatfilter.c b/src/live/livepatfilter.c
index b35cc10..0bbcb4c 100644
--- a/src/live/livepatfilter.c
+++ b/src/live/livepatfilter.c
@@ -410,6 +410,14 @@ void cLivePatFilter::Process(u_short Pid, u_char Tid, const u_char *Data, int Le
m_Streamer->m_NumStreams++;
break;
}

  • case stLATM:
  • {
  • m_Streamer->m_Streams[m_Streamer->m_NumStreams] = new cTSDemuxer(m_Streamer, stLATM, pids[i]);
  • m_Streamer->m_Streams[m_Streamer->m_NumStreams]->SetLanguage(langs[i]);
  • m_Streamer->m_Pids[m_Streamer->m_NumStreams] = pids[i];
  • m_Streamer->m_NumStreams++;
  • break;
  • } case stAAC: { m_Streamer->m_Streams[m_Streamer->m_NumStreams] = new cTSDemuxer(m_Streamer, stAAC, pids[i]);

After this i get audio, but there is a lot of sync problems.

@slothdnk

16:15:34 T:2891762544 NOTICE: Thread Jobworker start, auto delete: true
16:15:34 T:2821716848 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
16:15:40 T:2821716848 WARNING: Previous line repeats 40 times.
16:15:40 T:2821716848 ERROR: CDVDPlayerAudio::DecodeFrame - Decode Error. Skipping audio packet
16:15:40 T:2821716848 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
16:15:46 T:2821716848 WARNING: Previous line repeats 50 times.
16:15:46 T:2821716848 ERROR: CDVDPlayerAudio::DecodeFrame - Decode Error. Skipping audio packet
16:15:46 T:2821716848 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
16:15:46 T:2821716848 WARNING: Previous line repeats 2 times.
16:15:46 T:2821716848 ERROR: CDVDPlayerAudio::DecodeFrame - Decode Error. Skipping audio packet
16:15:47 T:2821716848 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
16:15:48 T:2821716848 WARNING: Previous line repeats 4 times.
16:15:48 T:2821716848 ERROR: CDVDPlayerAudio::DecodeFrame - Decode Error. Skipping audio packet
16:15:49 T:2821716848 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
16:15:52 T:2821716848 WARNING: Previous line repeats 13 times.
16:15:52 T:2821716848 ERROR: CDVDPlayerAudio::DecodeFrame - Decode Error. Skipping audio packet
16:15:52 T:2821716848 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
16:15:55 T:2821716848 WARNING: Previous line repeats 14 times.
16:15:55 T:2821716848 ERROR: CDVDPlayerAudio::DecodeFrame - Decode Error. Skipping audio packet
16:15:56 T:2821716848 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
16:15:56 T:2821716848 WARNING: Previous line repeats 3 times.
16:15:56 T:2821716848 ERROR: CDVDPlayerAudio::DecodeFrame - Decode Error. Skipping audio packet
16:15:56 T:2821716848 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
16:15:57 T:2821716848 WARNING: Previous line repeats 3 times.
16:15:57 T:2821716848 ERROR: CDVDPlayerAudio::DecodeFrame - Decode Error. Skipping audio packet
16:15:57 T:2821716848 ERROR: GetDelay - snd_pcm_delay, alsa error: -32 - Broken pipe
16:15:57 T:2954881904 ERROR: Get - failed to get stream
16:15:59 T:2821716848 ERROR: CDVDPlayerAudio::DecodeFrame - Decode Error. Skipping audio packet

@slothdnk

Jan 28 16:17:10 vdr last message repeated 9 times
Jan 28 16:17:10 vdr vdr: [15698] XVDR: H.264 SPS: MBAFF
Jan 28 16:17:10 vdr vdr: [15698] XVDR: H.264 SPS: PAR 12 / 11
Jan 28 16:17:10 vdr vdr: [15698] XVDR: H.264 SPS: -> video size 704x576, aspect 12:11
Jan 28 16:17:10 vdr vdr: [15698] XVDR: no payload, size 0
Jan 28 16:17:10 vdr last message repeated 13 times
Jan 28 16:17:10 vdr vdr: [15698] XVDR: H.264 SPS: MBAFF
Jan 28 16:17:10 vdr vdr: [15698] XVDR: H.264 SPS: PAR 12 / 11
Jan 28 16:17:10 vdr vdr: [15698] XVDR: H.264 SPS: -> video size 704x576, aspect 12:11
Jan 28 16:17:11 vdr vdr: [15698] XVDR: no payload, size 0
Jan 28 16:17:11 vdr last message repeated 13 times
Jan 28 16:17:11 vdr vdr: [15698] XVDR: H.264 SPS: MBAFF
Jan 28 16:17:11 vdr vdr: [15698] XVDR: H.264 SPS: PAR 12 / 11
Jan 28 16:17:11 vdr vdr: [15698] XVDR: H.264 SPS: -> video size 704x576, aspect 12:11
Jan 28 16:17:11 vdr vdr: [15698] XVDR: no payload, size 0
Jan 28 16:17:11 vdr vdr: [15698] XVDR: no payload, size 0
Jan 28 16:17:11 vdr vdr: [15591] XVDR: Received chan=1, ser=437, op=7, edl=0
Jan 28 16:17:11 vdr vdr: [15698] XVDR: no payload, size 0
Jan 28 16:17:12 vdr last message repeated 12 times
Jan 28 16:17:12 vdr vdr: [15698] XVDR: H.264 SPS: MBAFF
Jan 28 16:17:12 vdr vdr: [15698] XVDR: H.264 SPS: PAR 12 / 11
Jan 28 16:17:12 vdr vdr: [15698] XVDR: H.264 SPS: -> video size 704x576, aspect 12:11
Jan 28 16:17:12 vdr vdr: [15698] XVDR: no payload, size 0
Jan 28 16:17:12 vdr last message repeated 12 times
Jan 28 16:17:12 vdr vdr: [15698] XVDR: H.264 SPS: MBAFF
Jan 28 16:17:12 vdr vdr: [15698] XVDR: H.264 SPS: PAR 12 / 11
Jan 28 16:17:12 vdr vdr: [15698] XVDR: H.264 SPS: -> video size 704x576, aspect 12:11
Jan 28 16:17:12 vdr vdr: [15698] XVDR: no payload, size 0
Jan 28 16:17:13 vdr last message repeated 12 times
Jan 28 16:17:13 vdr vdr: [15698] XVDR: H.264 SPS: MBAFF
Jan 28 16:17:13 vdr vdr: [15698] XVDR: H.264 SPS: PAR 12 / 11
Jan 28 16:17:13 vdr vdr: [15698] XVDR: H.264 SPS: -> video size 704x576, aspect 12:11
Jan 28 16:17:13 vdr vdr: [15698] XVDR: no payload, size 0

@pipelka pipelka reopened this Jan 31, 2012
@pipelka
Owner
pipelka commented Jan 31, 2012

Please pull the latest VDR plugin version and retry.

Please also check the following XVDR XBMC addon configuration settings:

  • Update Channels: set to 'PIDs only' or 'Names and PIDs'
  • Priority: set to anything but not -1

Please also report which kind of channels are working or not (after the update).
I tested with the sample stream of DR1.

Thanks.

@slothdnk
slothdnk commented Feb 1, 2012

The result is much better, but far from perfect. I will post some logs when i get home.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.