philippe44 / AirConnect

Use AirPlay to stream to UPnP/Sonos & Chromecast devices
Other
3.43k stars 216 forks source link

aircast-linux-x86-static Buffer overrun 1025 #499

Closed muchkanensys closed 8 months ago

muchkanensys commented 8 months ago

my iphone can connect to a speaker and can chnage volume,but can not play.

user@linux:/var/lib/airconnect$ /var/lib/airconnect/aircast-linux-x86-static [17:07:23.867] main:932 Starting aircast version: v1.3.0 (Oct 14 2023 @ 00:21:11) [17:07:23.867] main:939 no config file, using defaults [17:07:23.867] Start:693 Binding to 192.168.0.6 [enp2s0] with mask 0xffffff00 [17:07:23.868] Start:719 Starting pico HTTP server on port 43109 [17:08:03.082] AddCastDevice:643 [0x8a07ab8]: creating MAC [17:08:03.082] AddCastDevice:657 [0x8a07ab8]: adding renderer (Speakers - 192.168.100.149:32120) with mac CCCC62CA9FB4 [17:08:23.984] rtsp_thread:338 got RTSP connection 17 [17:09:50.563] handle_rtsp:385 [0xf5c24a80]: challenge tuVbw0GV9Ry37FjFM98iZw== [17:09:50.596] handle_rtsp:379 [0xf5c24a80]: received ANNOUNCE

RTSP/1.0 200 OK Audio-Jack-Status: connected; type=analog CSeq: 4

[17:09:50.621] handle_rtsp:379 [0xf5c24a80]: received SETUP [17:09:50.622] raopst_init:378 [0xf5b040b0]: UDP port-0 55114 [17:09:50.622] raopst_init:378 [0xf5b040b0]: UDP port-1 52990 [17:09:50.622] raopst_init:378 [0xf5b040b0]: UDP port-2 44125 [17:09:50.622] raopst_init:396 [0xf5b040b0]: HTTP listening port 58489

RTSP/1.0 200 OK Transport: RTP/AVP/UDP;unicast;mode=record;control_port=52990;timing_port=44125;server_port=55114 Session: DEADBEEF Audio-Jack-Status: connected; type=analog CSeq: 5

[17:09:50.628] handle_rtsp:379 [0xf5c24a80]: received RECORD [17:09:50.628] raopst_record:502 [0xf5b040b0]: record 0 0

RTSP/1.0 200 OK Audio-Jack-Status: connected; type=analog CSeq: 6

[17:09:50.634] handle_rtsp:379 [0xf5c24a80]: received SET_PARAMETER [17:09:50.634] handle_rtsp:546 [0xf5c24a80]: SET PARAMETER volume -20.000000 [17:09:50.634] CastSetDeviceVolume:373 [0x8a07ab8]: Queuing SET_VOLUME [17:09:50.634] raop_cb:234 [0x8a07ab8]: Volume[0..1] 0.3333

RTSP/1.0 200 OK Audio-Jack-Status: connected; type=analog CSeq: 7

[17:09:50.643] rtp_thread_func:738 [0xf5b040b0]: 1st sync packet received [17:09:50.674] flac_init:195 [0xf5b040b0]: Using FLAC-0 (0xe9800488) [17:09:50.674] buffer_put_packet:620 [0xf5b040b0]: fill [level:1] [W:25018 R:25018] [17:09:50.680] handle_rtsp:379 [0xf5c24a80]: received FLUSH [17:09:50.680] raopst_flush:470 [0xf5b040b0]: FLUSH ignored as same as RECORD (25018 - 2462686503) [17:09:50.680] raopst_flush:486 [0xf5b040b0]: flush 25018 2462686503

RTSP/1.0 200 OK Audio-Jack-Status: connected; type=analog CSeq: 8

[17:09:50.824] CastConnect:239 [0x8a07ab8]: SSL connection opened [0xf5c234c8] [17:09:50.824] CastLoad:177 [0x8a07ab8]: Queuing LOAD [17:09:50.824] CastPlay:262 [0x8a07ab8]: Queuing PLAY [17:09:50.824] CastSetDeviceVolume:373 [0x8a07ab8]: Queuing SET_VOLUME [17:09:50.873] CastSocketThread:628 [0x8a07ab8]: Launching receiver 1 [17:09:52.766] handle_rtsp:379 [0xf5c24a80]: received SET_PARAMETER [17:09:52.766] handle_rtsp:573 [0xf5c24a80]: received JPEG image of 55509 bytes [17:09:52.766] CastPlay:262 [0x8a07ab8]: Queuing PLAY

RTSP/1.0 200 OK Audio-Jack-Status: connected; type=analog CSeq: 10

[17:09:52.773] handle_rtsp:379 [0xf5c24a80]: received SET_PARAMETER

RTSP/1.0 200 OK Audio-Jack-Status: connected; type=analog CSeq: 11

[17:09:52.779] handle_rtsp:379 [0xf5c24a80]: received SET_PARAMETER [17:09:52.780] CastPlay:262 [0x8a07ab8]: Queuing PLAY [17:09:52.780] handle_rtsp:564 [0xf5c24a80]: received metadata artist: aaaaa album: aaaaa title: aaaaa

RTSP/1.0 200 OK Audio-Jack-Status: connected; type=analog CSeq: 12

[17:09:52.944] CastSocketThread:656 [0x8a07ab8]: Receiver launched [17:09:52.945] ProcessQueue:448 [0x8a07ab8]: Processing VOLUME (id:3) [17:09:52.961] ProcessQueue:483 [0x8a07ab8]: Processing LOAD (id:4) [17:09:53.144] http_thread_func:1060 [0xf5b040b0]: got HTTP connection 24 (silent frames 0) [17:09:53.147] handle_http:1237 [0xf5b040b0]: received GET HTTP/1.1 Host: 192.168.0.6:58489 Connection: keep-alive User-Agent: Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.225 Safari/537.36 CrKey/1.56.500000 Range: bytes=0- Accept-Encoding: identity;q=1, ;q=0 Accept: /* CAST-DEVICE-CAPABILITIES: {"bluetooth_supported":true,"display_supported":false,"hi_res_audio_supported":true,"remote_control_input_supported":false,"touch_input_supported":false} Accept-Language: en-US,en;q=0.9

[17:09:53.147] handle_http:1293 [0xf5b040b0]: responding: HTTP/1.0 200 OK Server: HairTunes Content-Type: audio/flac Connection: close

[17:09:54.757] buffer_put_packet:620 [0xf5b040b0]: fill [level:513] [W:25530 R:25018] [17:09:58.829] _buffer_get_frame:919 [0xf5b040b0]: Buffer overrun 1024 [17:09:58.844] buffer_put_packet:620 [0xf5b040b0]: fill [level:962] [W:26042 R:25081] [17:09:59.345] _buffer_get_frame:919 [0xf5b040b0]: Buffer overrun 1025 [17:09:59.846] _buffer_get_frame:919 [0xf5b040b0]: Buffer overrun 1025 [17:10:00.362] _buffer_get_frame:919 [0xf5b040b0]: Buffer overrun 1025 [17:10:00.880] _buffer_get_frame:919 [0xf5b040b0]: Buffer overrun 1025 [17:10:01.381] _buffer_get_frame:919 [0xf5b040b0]: Buffer overrun 1025 [17:10:01.897] _buffer_get_frame:919 [0xf5b040b0]: Buffer overrun 1025 [17:10:02.414] _buffer_get_frame:919 [0xf5b040b0]: Buffer overrun 1025 [17:10:02.914] _buffer_get_frame:919 [0xf5b040b0]: Buffer overrun 1025 [17:10:02.930] buffer_put_packet:620 [0xf5b040b0]: fill [level:962] [W:26554 R:25593] [17:10:03.431] _buffer_get_frame:919 [0xf5b040b0]: Buffer overrun 1025 [17:10:03.932] _buffer_get_frame:919 [0xf5b040b0]: Buffer overrun 1025 [17:10:04.449] _buffer_get_frame:919 [0xf5b040b0]: Buffer overrun 1025 [17:10:04.966] _buffer_get_frame:919 [0xf5b040b0]: Buffer overrun 1025 [17:10:05.467] _buffer_get_frame:919 [0xf5b040b0]: Buffer overrun 1025 [17:10:05.983] _buffer_get_frame:919 [0xf5b040b0]: Buffer overrun 1025 [17:10:06.146] handle_rtsp:379 [0xf5c24a80]: received SET_PARAMETER [17:10:06.146] handle_rtsp:546 [0xf5c24a80]: SET PARAMETER volume -18.125000 [17:10:06.147] raop_cb:234 [0x8a07ab8]: Volume[0..1] 0.3958

RTSP/1.0 200 OK Audio-Jack-Status: connected; type=analog CSeq: 19

[17:10:06.500] _buffer_get_frame:919 [0xf5b040b0]: Buffer overrun 1025 [17:10:06.608] handle_rtsp:379 [0xf5c24a80]: received SET_PARAMETER [17:10:06.608] handle_rtsp:546 [0xf5c24a80]: SET PARAMETER volume -16.250000 [17:10:06.609] raop_cb:234 [0x8a07ab8]: Volume[0..1] 0.4583

RTSP/1.0 200 OK Audio-Jack-Status: connected; type=analog CSeq: 20

philippe44 commented 8 months ago

Per README, you firewall is likely blocking the HTTP request from the player - OR- you are using docker with NAT, per README again

muchkanensys commented 8 months ago

Thank you, I can hear the sound! I'm not using docker. [12:30:53.957] handle_rtsp:379 [0xf5b1ef00]: received SETUP [12:30:53.958] raopst_init:378 [0xf5c040b0]: UDP port-0 34444 [12:30:53.958] raopst_init:378 [0xf5c040b0]: UDP port-1 38317 [12:30:53.958] raopst_init:378 [0xf5c040b0]: UDP port-2 56909 [12:30:53.958] raopst_init:396 [0xf5c040b0]: HTTP listening port 47455

RTSP/1.0 200 OK Transport: RTP/AVP/UDP;unicast;mode=record;control_port=38317;timing_port=56909;server_port=34444 Session: DEADBEEF Audio-Jack-Status: connected; type=analog CSeq: 5

[12:30:53.970] handle_rtsp:379 [0xf5b1ef00]: received RECORD [12:30:53.970] raopst_record:502 [0xf5c040b0]: record 0 0

RTSP/1.0 200 OK Audio-Latency: 44100 Audio-Jack-Status: connected; type=analog CSeq: 6

[12:30:53.979] handle_rtsp:379 [0xf5b1ef00]: received SET_PARAMETER [12:30:53.979] handle_rtsp:546 [0xf5b1ef00]: SET PARAMETER volume -20.000000 [12:30:53.979] CastSetDeviceVolume:373 [0x9187e74]: Queuing SET_VOLUME [12:30:53.979] raop_cb:234 [0x9187e74]: Volume[0..1] 0.3333

RTSP/1.0 200 OK Audio-Jack-Status: connected; type=analog CSeq: 7

[12:30:53.988] rtp_thread_func:738 [0xf5c040b0]: 1st sync packet received [12:30:54.016] flac_init:195 [0xf5c040b0]: Using FLAC-0 (0xe9900488) [12:30:54.016] buffer_put_packet:620 [0xf5c040b0]: fill [level:1] [W:3027 R:3027] [12:30:54.017] handle_rtsp:379 [0xf5b1ef00]: received FLUSH [12:30:54.017] raopst_flush:470 [0xf5c040b0]: FLUSH ignored as same as RECORD (3027 - 2548509828) [12:30:54.017] raopst_flush:486 [0xf5c040b0]: flush 3027 2548509828

RTSP/1.0 200 OK Audio-Jack-Status: connected; type=analog CSeq: 8

[12:30:54.077] search_remote_cb:636 [0xf5b1ef00]: found ActiveRemote for 7BF89CCD21652A05 at 192.168.100.122:64371

[12:30:54.114] CastConnect:239 [0x9187e74]: SSL connection opened [0xf5b1d948] [12:30:54.114] CastLoad:177 [0x9187e74]: Queuing LOAD [12:30:54.114] CastPlay:262 [0x9187e74]: Queuing PLAY [12:30:54.114] CastSetDeviceVolume:373 [0x9187e74]: Queuing SET_VOLUME [12:30:54.149] CastSocketThread:628 [0x9187e74]: Launching receiver 1 [12:30:54.190] CastSocketThread:656 [0x9187e74]: Receiver launched [12:30:54.190] ProcessQueue:448 [0x9187e74]: Processing VOLUME (id:3) [12:30:55.247] ProcessQueue:483 [0x9187e74]: Processing LOAD (id:4) [12:30:55.345] http_thread_func:1060 [0xf5c040b0]: got HTTP connection 24 (silent frames 82) [12:30:55.347] handle_http:1237 [0xf5c040b0]: received GET HTTP/1.1 Host: 192.168.100.177:47455 Connection: keep-alive User-Agent: Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.225 Safari/537.36 CrKey/1.56.500000 Range: bytes=0- Accept-Encoding: identity;q=1, ;q=0 Accept: /* CAST-DEVICE-CAPABILITIES: {"bluetooth_supported":true,"display_supported":false,"hi_res_audio_supported":true,"remote_control_input_supported":false,"touch_input_supported":false} Accept-Language: en-US,en;q=0.9

[12:30:55.347] handle_http:1293 [0xf5c040b0]: responding: HTTP/1.0 200 OK Server: HairTunes Content-Type: audio/flac Connection: close

[12:30:55.348] _buffer_get_frame:959 [0xf5c040b0]: drain [level:167 gap:-318] [W:3194 R:3027] [R:0 S:0 F:0] [12:30:55.520] CastSocketThread:670 [0x9187e74]: Media session id 2 [12:30:55.587] ProcessQueue:455 [0x9187e74]: Processing PLAY (id:6) [12:30:55.657] ProcessQueue:448 [0x9187e74]: Processing VOLUME (id:8) [12:30:55.657] MRThread:294 [0x9187e74]: Cast playing [12:30:55.958] handle_rtsp:379 [0xf5b1ef00]: received SET_PARAMETER [12:30:55.958] handle_rtsp:573 [0xf5b1ef00]: received JPEG image of 54259 bytes [12:30:55.958] CastPlay:262 [0x9187e74]: Queuing PLAY

RTSP/1.0 200 OK Audio-Jack-Status: connected; type=analog CSeq: 9

[12:30:55.970] handle_rtsp:379 [0xf5b1ef00]: received SET_PARAMETER [12:30:55.970] CastPlay:262 [0x9187e74]: Queuing PLAY [12:30:55.970] handle_rtsp:564 [0xf5b1ef00]: received metadata artist: T.I. album: Paper Trail (Deluxe Version) title: Live Your Life (feat. Rihanna)

RTSP/1.0 200 OK Audio-Jack-Status: connected; type=analog CSeq: 10

[12:30:56.708] ProcessQueue:455 [0x9187e74]: Processing PLAY (id:10) [12:30:56.757] ProcessQueue:455 [0x9187e74]: Processing PLAY (id:11) [12:30:58.101] buffer_put_packet:620 [0xf5c040b0]: fill [level:4] [W:3539 R:3536] [12:30:58.106] _buffer_get_frame:959 [0xf5c040b0]: drain [level:1 gap:1012] [W:3540 R:3539] [R:0 S:0 F:0] [12:31:02.189] buffer_put_packet:620 [0xf5c040b0]: fill [level:1] [W:4051 R:4051] [12:31:02.200] _buffer_get_frame:959 [0xf5c040b0]: drain [level:1 gap:1004] [W:4052 R:4051] [R:0 S:0 F:0] [12:31:06.300] buffer_put_packet:620 [0xf5c040b0]: fill [level:7] [W:4563 R:4557] [12:31:06.305] _buffer_get_frame:959 [0xf5c040b0]: drain [level:4 gap:985] [W:4567 R:4563] [R:0 S:0 F:0] [12:31:10.374] buffer_put_packet:620 [0xf5c040b0]: fill [level:1] [W:5075 R:5075] [12:31:10.380] _buffer_get_frame:959 [0xf5c040b0]: drain [level:1 gap:997] [W:5076 R:5075] [R:0 S:0 F:0] [12:31:14.488] buffer_put_packet:620 [0xf5c040b0]: fill [level:1] [W:5587 R:5587] [12:31:14.488] _buffer_get_frame:959 [0xf5c040b0]: drain [level:1 gap:975] [W:5588 R:5587] [R:0 S:0 F:0] [12:31:18.534] buffer_put_packet:620 [0xf5c040b0]: fill [level:1] [W:6099 R:6099] [12:31:18.547] _buffer_get_frame:959 [0xf5c040b0]: drain [level:1 gap:1003] [W:6100 R:6099] [R:0 S:0 F:0] [12:31:22.620] buffer_put_packet:620 [0xf5c040b0]: fill [level:1] [W:6611 R:6611] [12:31:22.621] _buffer_get_frame:959 [0xf5c040b0]: drain [level:1 gap:1016] [W:6612 R:6611] [R:0 S:0 F:0] [12:31:26.707] buffer_put_packet:620 [0xf5c040b0]: fill [level:1] [W:7123 R:7123]