#24 TCP: fifo buffer full

v 1.1.x
open
nobody
None
5
2014-08-06
2009-09-20
Adis Salcin
No

Hi,
I am using .asoundrc to play PCM over HDMI(Directly on LCDTV) OR on amplifier, and DD sound over amplifier only (see attachment). Switching from PCM to DD is working fine, but switching back from DD to PCM make buffer full see rest in log:

Sep 20 22:35:17 ION vdr-sxfe[3756]: [3775] [demux_vdr] audio stream changed: 00000000 -> 03010000
Sep 20 22:35:18 ION vdr: [3345] OSD size changed to 1920x1080 @ 1
Sep 20 22:36:42 ION vdr-sxfe[3756]: [3776] [lirc] LIRC: 00000014f11c0000 00 chsearch Medion_X10
Sep 20 22:36:42 ION vdr-sxfe[3756]: [3776] [vdr-fe] Keypress: LIRC chsearch
Sep 20 22:36:43 ION vdr-sxfe[3756]: [3776] [lirc] LIRC: 0000001408330000 00 green Medion_X10 10
Sep 20 22:36:43 ION vdr-sxfe[3756]: [3776] [vdr-fe] Keypress: LIRC green
Sep 20 22:36:44 ION vdr-sxfe[3756]: [3776] [lirc] LIRC: 00000014f7220000 00 down Medion_X10 10
Sep 20 22:36:44 ION vdr-sxfe[3756]: [3776] [vdr-fe] Keypress: LIRC down
Sep 20 22:36:45 ION vdr-sxfe[3756]: [3775] [demux_vdr] audio stream changed: 03010000 -> 03010001
Sep 20 22:36:58 ION vdr-sxfe[3756]: [3776] [lirc] LIRC: 00000014f11c0000 00 chsearch Medion_X10
Sep 20 22:36:58 ION vdr-sxfe[3756]: [3776] [vdr-fe] Keypress: LIRC chsearch
Sep 20 22:36:59 ION vdr-sxfe[3756]: [3776] [lirc] LIRC: 0000001408330000 00 green Medion_X10 10
Sep 20 22:36:59 ION vdr-sxfe[3756]: [3776] [vdr-fe] Keypress: LIRC green
Sep 20 22:37:00 ION vdr-sxfe[3756]: [3776] [lirc] LIRC: 00000014f7220000 00 down Medion_X10 10
Sep 20 22:37:00 ION vdr-sxfe[3756]: [3776] [vdr-fe] Keypress: LIRC down
Sep 20 22:37:00 ION vdr-sxfe[3756]: [3775] [demux_vdr] audio stream changed: 03010001 -> 03000002
Sep 20 22:37:01 ION vdr-sxfe[3756]: [3776] [lirc] LIRC: 00000014f31e0000 00 ok Medion_X10 0 10
Sep 20 22:37:01 ION vdr-sxfe[3756]: [3776] [vdr-fe] Keypress: LIRC ok
Sep 20 22:37:27 ION vdr-sxfe[3756]: [3776] [lirc] LIRC: 00000014f11c0000 00 chsearch Medion_X10
Sep 20 22:37:27 ION vdr-sxfe[3756]: [3776] [vdr-fe] Keypress: LIRC chsearch
Sep 20 22:37:28 ION vdr-sxfe[3756]: [3776] [lirc] LIRC: 0000001408330000 00 green Medion_X10 10
Sep 20 22:37:28 ION vdr-sxfe[3756]: [3776] [vdr-fe] Keypress: LIRC green
Sep 20 22:37:29 ION vdr-sxfe[3756]: [3776] [lirc] LIRC: 00000014ef1a0000 00 up Medion_X10 10 10
Sep 20 22:37:29 ION vdr-sxfe[3756]: [3776] [vdr-fe] Keypress: LIRC up
Sep 20 22:37:29 ION vdr-sxfe[3756]: [3775] [demux_vdr] audio stream changed: 03000002 -> 03010001
Sep 20 22:37:29 ION vdr-sxfe[3756]: [3776] [lirc] LIRC: 00000014ef1a0000 01 up Medion_X10 10 10
Sep 20 22:37:30 ION vdr-sxfe[3756]: [3776] [lirc] LIRC: 00000014ef1a0000 00 up Medion_X10 10 10
Sep 20 22:37:30 ION vdr-sxfe[3756]: [3776] [vdr-fe] Keypress: LIRC up
Sep 20 22:37:31 ION vdr-sxfe[3756]: [3775] [demux_vdr] audio stream changed: 03010001 -> 03010000
Sep 20 22:37:31 ION vdr-sxfe[3756]: [3776] [lirc] LIRC: 00000014f31e0000 00 ok Medion_X10 10 10
Sep 20 22:37:31 ION vdr-sxfe[3756]: [3776] [vdr-fe] Keypress: LIRC ok
Sep 20 22:37:33 ION vdr-sxfe[3756]: [3775] [input_vdr] TCP: fifo buffer full
Sep 20 22:37:34 ION vdr: [3691] [xine..put] cXinelibServer::Play_PES Buffer overflow (TCP/PIPE)
Sep 20 22:37:37 ION last message repeated 1000 times
Sep 20 22:37:37 ION vdr: [3691] [xine..put] cXinelibServer: Too many TCP buffer overflows, dropping client
Sep 20 22:37:37 ION vdr: [3691] [xine..put] cXinelibServer::Play_PES Write/Queue error (TCP/PIPE)
Sep 20 22:37:37 ION vdr: [3691] [xine..put] Closing connection 0
Sep 20 22:37:38 ION vdr-sxfe[3756]: [3774] [input_vdr] Control stream disconnected
Sep 20 22:37:38 ION vdr-sxfe[3756]: [3774] [input_vdr] Control thread terminated
Sep 20 22:37:38 ION vdr-sxfe[3756]: [3775] [input_vdr] read_block: no data source, returning NULL
Sep 20 22:37:38 ION vdr-sxfe[3756]: [3775] [input_vdr] flush_all_fifos()
Sep 20 22:37:38 ION vdr-sxfe[3756]: [3775] [demux_vdr] DEMUX_FINISHED (input returns NULL with error)
Sep 20 22:38:52 ION vdr-sxfe[3756]: [3771] [vdr-fe] XINE_EVENT_UI_PLAYBACK_FINISHED
Sep 20 22:38:52 ION vdr-sxfe[3756]: [3772] [input_vdr] XINE_EVENT_UI_PLAYBACK_FINISHED

After restarting xineliboutput audio/video is working again fine:

Sep 20 22:43:33 ION vdr-sxfe[3756]: [3776] [lirc] LIRC: 00000014012c0000 00 tv Medion_X10 10 10
Sep 20 22:43:33 ION vdr-sxfe[3756]: [3776] [vdr-fe] Keypress: LIRC tv
Sep 20 22:43:33 ION vdr-sxfe[3756]: [3776] [input_vdr] write_control aborted
Sep 20 22:43:33 ION vdr-sxfe[3756]: [3776] [input_vdr] (ERROR (xine_input_vdr.c,858): Numerical result out of range)
Sep 20 22:43:33 ION vdr-sxfe[3756]: [3776] [vdr-fe] fe_send_input_event: message KEY tv lost
Sep 20 22:43:34 ION vdr-sxfe[4353]: [4353] [vdr-sxfe] sxfe_display_open(width=720, height=576, fullscreen=1, display=(null))
Sep 20 22:43:34 ION vdr-sxfe[4353]: [4353] [vdr-sxfe] Display size : 160 x 90 mm
Sep 20 22:43:34 ION vdr-sxfe[4353]: [4353] [vdr-sxfe] 1920 x 1080 pixels
Sep 20 22:43:34 ION vdr-sxfe[4353]: [4353] [vdr-sxfe] 304dpi / 304dpi
Sep 20 22:43:34 ION vdr-sxfe[4353]: [4353] [vdr-sxfe] Display ratio: 12000.000000/12000.000000 = 1.000000
Sep 20 22:43:34 ION vdr-sxfe[4353]: [4353] [vdr-fe] Detected 4 CPUs
Sep 20 22:43:34 ION vdr-sxfe[4353]: [4353] [vdr-fe] Enabling FFmpeg multithreaded video decoding
Sep 20 22:43:34 ION vdr-sxfe[4353]: [4353] [vdr-fe] static post plugins (from command line): tvtime:method=use_vo_driver
Sep 20 22:43:34 ION vdr-sxfe[4353]: [4353] [xine-post] loaded plugins (type 1.0): tvtime
Sep 20 22:43:34 ION vdr-sxfe[4353]: [4353] [input_vdr] Symbol SysLogLevel found : value 3
Sep 20 22:43:34 ION vdr-sxfe[4353]: [4353] [input_vdr] Symbol LogToSysLog found : value yes
Sep 20 22:43:34 ION vdr-sxfe[4353]: [4353] [input_vdr] init class succeeded
Sep 20 22:43:34 ION vdr-sxfe[4353]: [4353] [input_vdr] vdr_class_get_instance
Sep 20 22:43:34 ION vdr-sxfe[4353]: [4353] [input_vdr] vdr_class_get_instance done.
Sep 20 22:43:34 ION vdr-sxfe[4353]: [4353] [input_vdr] vdr_plugin_open_net xvdr+tcp://127.0.0.1
Sep 20 22:43:34 ION vdr-sxfe[4353]: [4353] [input_vdr] Connecting (control) to tcp://127.0.0.1:37890 ...
Sep 20 22:43:34 ION vdr-sxfe[4353]: [4353] [input_vdr] setsockopt(SO_RCVBUF): got 262142 bytes
Sep 20 22:43:34 ION vdr: [3553] [xine..put] Client 0 connected: 127.0.0.1:48313
Sep 20 22:43:34 ION vdr: [3553] [xine..put] cxSocket: setsockopt(SO_SNDBUF): got 262142 bytes
Sep 20 22:43:34 ION vdr-sxfe[4353]: [4353] [input_vdr] Server greeting: VDR-1.7.9 xineliboutput-1.0.90-cvs READY
Sep 20 22:43:34 ION vdr-sxfe[4353]: [4353] [input_vdr] Got Client-ID: 0
Sep 20 22:43:34 ION vdr-sxfe[4353]: [4353] [input_vdr] Connected (control) to tcp://127.0.0.1:37890
Sep 20 22:43:34 ION vdr-sxfe[4353]: [4353] [input_vdr] Connecting (data) to tcp://127.0.0.1:37890 ...
Sep 20 22:43:34 ION vdr-sxfe[4353]: [4353] [input_vdr] setsockopt(SO_RCVBUF): got 262142 bytes
Sep 20 22:43:34 ION vdr: [3553] [xine..put] Client 1 connected: 127.0.0.1:48314
Sep 20 22:43:34 ION vdr: [3553] [xine..put] cxSocket: setsockopt(SO_SNDBUF): got 262142 bytes
Sep 20 22:43:34 ION vdr: [3553] [xine..put] Data connection (TCP) requested
Sep 20 22:43:34 ION vdr-sxfe[4353]: [4353] [input_vdr] Data stream connected (TCP)
Sep 20 22:43:34 ION vdr: [3553] [xine..put] cBackgroundWriterI initialized (buffer 512 kb)
Sep 20 22:43:34 ION vdr: [3553] [xine..put] cTcpWriter initialized (buffer 512 kb)
Sep 20 22:43:34 ION vdr-sxfe[4353]: [4353] [input_vdr] xine_input_xvdr: revision $Id: xine_input_vdr.c,v 1.284 2009/08/25 09:47:18 phintuka Exp $
Sep 20 22:43:34 ION vdr-sxfe[4353]: [4353] [input_vdr] Using non-default "media.xvdr.num_buffers_hd:4000"
Sep 20 22:43:34 ION vdr-sxfe[4353]: [4370] [input_vdr] Control thread started
Sep 20 22:43:35 ION vdr-sxfe[4353]: [4353] [demux_vdr] Using decoder "libmpeg2" for mpeg2 video
Sep 20 22:43:35 ION vdr-sxfe[4353]: [4353] [demux_vdr] Using decoder "FFmpeg" for H.264 video
Sep 20 22:43:35 ION vdr-sxfe[4353]: [4353] [vdr-fe] re-wiring post plugins
Sep 20 22:43:35 ION vdr-sxfe[4353]: [4353] [xine-post] wiring tvtime[out] -> [in]video_out
Sep 20 22:43:35 ION vdr-sxfe[4353]: [4353] [xine-post] wiring stream[out] -> [in]tvtime
Sep 20 22:43:35 ION vdr-sxfe[4353]: [4353] [vdr-fe] Event: INFO WINDOW 1920x1080
Sep 20 22:43:35 ION vdr-sxfe[4353]: [4371] [demux_vdr] PMT changed
Sep 20 22:43:35 ION vdr-sxfe[4353]: [4372] [lirc] lirc forwarding started
Sep 20 22:43:35 ION vdr-sxfe[4353]: [4372] [lirc] LIRC: Can't nice to value: -1
Sep 20 22:43:35 ION vdr-sxfe[4353]: [4370] [vdr-fe] opening post plugin: tvtime:method=use_vo_driver,cheap_mode=1,pulldown=none,framerate_mode=full,judder_correction=1,use_progressive_frame_flag=1,chroma_filter=0,enabled=1
Sep 20 22:43:35 ION vdr-sxfe[4353]: [4370] [xine-post] * enable post tvtime, parameters fixed in command line.
Sep 20 22:43:35 ION vdr-sxfe[4353]: [4370] [xine-post] requested: method=use_vo_driver,cheap_mode=1,pulldown=none,framerate_mode=full,judder_correction=1,use_progressive_frame_flag=1,chroma_filter=0,enabled=1
Sep 20 22:43:35 ION vdr-sxfe[4353]: [4370] [xine-post] using : method=use_vo_driver
Sep 20 22:43:35 ION vdr-sxfe[4353]: [4370] [xine-post] * enable post tvtime --> found, no action
Sep 20 22:43:35 ION vdr-sxfe[4353]: [4370] [vdr-fe] Post plugin tvtime loaded and wired
Sep 20 22:43:35 ION vdr-sxfe[4353]: [4373] [vdr-fe] read_key: read(stdin) failed: no stdin
Sep 20 22:43:35 ION vdr-sxfe[4353]: [4373] [vdr-fe] Keyboard thread terminating
Sep 20 22:43:35 ION vdr-sxfe[4353]: [4373] [vdr-fe] Keyboard thread terminated
Sep 20 22:43:35 ION vdr-sxfe[4353]: [4370] [vdr-fe] closing post plugin: upmix
Sep 20 22:43:35 ION vdr-sxfe[4353]: [4370] [vdr-fe] closing post plugin: autocrop
Sep 20 22:43:35 ION vdr-sxfe[4353]: [4370] [vdr-fe] closing post plugin: swscale
Sep 20 22:43:35 ION vdr-sxfe[4353]: [4370] [vdr-fe] closing post plugin: pp
Sep 20 22:43:35 ION vdr-sxfe[4353]: [4370] [vdr-fe] closing post plugin: unsharp
Sep 20 22:43:35 ION vdr-sxfe[4353]: [4370] [vdr-fe] closing post plugin: denoise3d
Sep 20 22:43:35 ION vdr-sxfe[4353]: [4371] [demux_vdr] audio stream changed: 00000000 -> 03010000

Starting sxfe with this:
"vdr-sxfe --syslog --verbose --buffers=1000 --fullscreen --audio=alsa:VDR --video=vdpau --post tvtime:method=use_vo_driver --reconnect --lirc xvdr+tcp://$IP &"

Discussion

  • Adis Salcin
    Adis Salcin
    2009-09-20

     
    Attachments