Доброго всем времени суток. Пытаюсь запустить IPTV с Linux сервера на машины клиентов. Для решения сей задачи выбрал UdpXY.
Скачал, установил запустил:
udpxy -p 4022 -m eth1 -l /var/log/udpxy.logНа сервер 2 сетевые карты. Одна смотрит в локалку eth0 192.168.10.1 Вторая eth1 в итернет (Впн подключение)
Переписал файл с каналами:
#EXTM3U
#EXTINF:-1,2x2
http://192.168.10.1:4022/udp/239.172.20.6:1234Пытаюсь смотреть, ничего не кажет. Плеер (IPTV player), при нажатии кнопки плэй, выдает пустой экран, а спустя 3-4 секунды сам останавливает воспроизведение. В логах вот что:
2012-04-29 10:30:50.384672 MSK c(27681) Relaying traffic from socket[2] to socket[6], buffer size=[2048], Rmsgs=[1], pauses=[0]
2012-04-29 10:30:55.384741 MSK c(27681) read_buf: read: Resource temporarily unavailable
2012-04-29 10:30:55.384798 MSK c(27681) read_data - EOF
2012-04-29 10:30:55.384819 MSK c(27681) Exited relay loop: received=[-1], sent=[0], quit=[0]
2012-04-29 10:30:55.385274 MSK c(27681) multicast-group [DROP]
2012-04-29 10:30:55.385497 MSK c(27681) Mcast listener socket=[2] closed
2012-04-29 10:30:55.385571 MSK c(27681) Child process=[27681] exits with rc=[0]
2012-04-29 10:30:55.385792 MSK S(27104) *** Caught SIGCHLD (17) ***
2012-04-29 10:30:55.385832 MSK S(27104) Waiting on exited children
2012-04-29 10:30:55.385865 MSK S(27104) Client [27681] has exited.
2012-04-29 10:30:55.385904 MSK S(27104) Deleted client: pid=[27681]
2012-04-29 10:30:55.385926 MSK S(27104) Cleaned up 1 children, 0 still running
2012-04-29 10:30:55.385946 MSK S(27104) INTERRUPTED, yet will continue.
2012-04-29 10:30:55.385965 MSK S(27104) Waiting for input from [2] fd's, NO timeout
2012-04-29 10:30:55.387990 MSK S(27104) No children exited since last check
2012-04-29 10:30:55.388018 MSK S(27104) Got 1 requests
2012-04-29 10:30:55.388038 MSK S(27104) Accepting new connection
2012-04-29 10:30:55.388079 MSK S(27104) Accepted socket=[6] from 192.168.10.3:61929 n=1/nmax=16
2012-04-29 10:30:55.388101 MSK S(27104) Accepting new connection
2012-04-29 10:30:55.388130 MSK S(27104) Nothing more to accept
2012-04-29 10:30:55.388151 MSK S(27104) accept_requests: Sockets accepted: [1]
2012-04-29 10:30:55.388171 MSK S(27104) Waiting for input from [3] fd's, with timeout
2012-04-29 10:30:55.398312 MSK S(27104) No children exited since last check
2012-04-29 10:30:55.398341 MSK S(27104) Got 1 requests
pre-process sockets [1]: 6
2012-04-29 10:30:55.398357 MSK S(27104) acting on accepted socket [6] (1/1)
2012-04-29 10:30:55.398367 MSK S(27104) Reading command from socket [6]
2012-04-29 10:30:55.398380 MSK S(27104) HTTP buffer [62 bytes] received
GET /udp/239.172.20.6:1234 HTTP/1.1
Host: 192.168.10.1:4022
2012-04-29 10:30:55.398394 MSK S(27104) Request=[udp/239.172.20.6:1234], length=[21]
2012-04-29 10:30:55.398403 MSK S(27104) Command [udp] with params [239.172.20.6:1234] read from socket=[6]
2012-04-29 10:30:55.398414 MSK S(27104) udp_relay : new_socket=[6] param=[239.172.20.6:1234]
2012-04-29 10:30:55.398524 MSK S(27104) Added client: pid=[27682], maddr=[239.172.20.6], mport=[1234], saddr=[192.168.10.3], sport=[61929]
2012-04-29 10:30:55.398540 MSK S(27104) process_requests: closing accepted socket [6]
2012-04-29 10:30:55.398555 MSK S(27104) Processed [1/1] accepted sockets
newly-accepted sockets [1]: -1
2012-04-29 10:30:55.398570 MSK S(27104) All accepted sockets processed
2012-04-29 10:30:55.398579 MSK S(27104) Waiting for input from [2] fd's, NO timeout
2012-04-29 10:30:55.398532 MSK S(27104) Client process=[27682] started for socket=[6]
2012-04-29 10:30:55.398618 MSK c(27682) min socket buffer = [65536], max space to use = [1500], Rmsgs = [1]
2012-04-29 10:30:55.398632 MSK c(27682) Setting up multicast listener
2012-04-29 10:30:55.398681 MSK c(27682) current receive buffer size is [114688] bytes for socket [2]
2012-04-29 10:30:55.398889 MSK c(27682) multicast-group [ADD]
2012-04-29 10:30:55.398900 MSK c(27682) Mcast listener socket=[2] set up
2012-04-29 10:30:55.398915 MSK c(27682) min socket buffer = [65536], max space to use = [1500], Rmsgs = [1]
2012-04-29 10:30:55.398925 MSK c(27682) Data buffer will hold up to [1] messages
2012-04-29 10:30:55.398940 MSK c(27682) UDP stream, RTP check enabled
2012-04-29 10:30:55.398958 MSK c(27682) socket 2: RCV timeout set to 5 sec, 0 usec
2012-04-29 10:30:55.398969 MSK c(27682) socket 2: SEND timeout set to 5 sec, 0 usec
2012-04-29 10:30:55.398980 MSK c(27682) current send buffer size is [16384] bytes for socket [6]
2012-04-29 10:30:55.398991 MSK c(27682) current receive buffer size is [114688] bytes for socket [2]
2012-04-29 10:30:55.399002 MSK c(27682) send buffer size set to [114688] bytes for socket [6]
2012-04-29 10:30:55.399026 MSK c(27682) Sent HTTP response code=[200], reason=[OK] to socket=[6]
HTTP/1.1 200 OK
Content-Type:application/octet-stream
2012-04-29 10:30:55.399048 MSK c(27682) Relaying traffic from socket[2] to socket[6], buffer size=[2048], Rmsgs=[1], pauses=[0]Порт 4022 на IPTABLES открыт. Пробовал проиграть IPTV на самом сервере через VLC тотже эффект.
В файле сервера такие параметры:
#EXTM3U
#EXTINF:-1,2x2
http://127.0.0.1:4022/udp/239.172.20.6:12342012-04-29 10:30:55.399048 MSK c(27682) Relaying traffic from socket[2] to socket[6], buffer size=[2048], Rmsgs=[1], pauses=[0]
2012-04-29 10:31:00.398745 MSK c(27682) read_buf: read: Resource temporarily unavailable
2012-04-29 10:31:00.398797 MSK c(27682) read_data - EOF
2012-04-29 10:31:00.398818 MSK c(27682) Exited relay loop: received=[-1], sent=[0], quit=[0]
2012-04-29 10:31:00.399270 MSK c(27682) multicast-group [DROP]
2012-04-29 10:31:00.399308 MSK c(27682) Mcast listener socket=[2] closed
2012-04-29 10:31:00.399385 MSK c(27682) Child process=[27682] exits with rc=[0]
2012-04-29 10:31:00.399588 MSK S(27104) *** Caught SIGCHLD (17) ***
2012-04-29 10:31:00.399646 MSK S(27104) Waiting on exited children
2012-04-29 10:31:00.399680 MSK S(27104) Client [27682] has exited.
2012-04-29 10:31:00.399702 MSK S(27104) Deleted client: pid=[27682]
2012-04-29 10:31:00.399739 MSK S(27104) Cleaned up 1 children, 0 still running
2012-04-29 10:31:00.399760 MSK S(27104) INTERRUPTED, yet will continue.
2012-04-29 10:31:00.399780 MSK S(27104) Waiting for input from [2] fd's, NO timeout
2012-04-29 10:34:54.718177 MSK S(27104) No children exited since last check
2012-04-29 10:34:54.718232 MSK S(27104) Got 1 requests
2012-04-29 10:34:54.718245 MSK S(27104) Accepting new connection
2012-04-29 10:34:54.718265 MSK S(27104) Accepted socket=[6] from 127.0.0.1:49059 n=1/nmax=16
2012-04-29 10:34:54.718277 MSK S(27104) Accepting new connection
2012-04-29 10:34:54.718292 MSK S(27104) Nothing more to accept
2012-04-29 10:34:54.718302 MSK S(27104) accept_requests: Sockets accepted: [1]
2012-04-29 10:34:54.718312 MSK S(27104) Waiting for input from [3] fd's, with timeout
2012-04-29 10:34:54.718390 MSK S(27104) No children exited since last check
2012-04-29 10:34:54.718403 MSK S(27104) Got 1 requests
pre-process sockets [1]: 6
2012-04-29 10:34:54.718420 MSK S(27104) acting on accepted socket [6] (1/1)
2012-04-29 10:34:54.718431 MSK S(27104) Reading command from socket [6]
2012-04-29 10:34:54.718445 MSK S(27104) HTTP buffer [59 bytes] received
GET /udp/239.172.20.6:1234 HTTP/1.1
Host: 127.0.0.1:4022
2012-04-29 10:34:54.718461 MSK S(27104) Request=[udp/239.172.20.6:1234], length=[21]
2012-04-29 10:34:54.718471 MSK S(27104) Command [udp] with params [239.172.20.6:1234] read from socket=[6]
2012-04-29 10:34:54.718483 MSK S(27104) udp_relay : new_socket=[6] param=[239.172.20.6:1234]
2012-04-29 10:34:54.718619 MSK S(27104) Added client: pid=[27713], maddr=[239.172.20.6], mport=[1234], saddr=[127.0.0.1], sport=[49059]
2012-04-29 10:34:54.718638 MSK S(27104) process_requests: closing accepted socket [6]
2012-04-29 10:34:54.718654 MSK S(27104) Processed [1/1] accepted sockets
newly-accepted sockets [1]: -1
2012-04-29 10:34:54.718671 MSK S(27104) All accepted sockets processed
2012-04-29 10:34:54.718681 MSK S(27104) Waiting for input from [2] fd's, NO timeout
2012-04-29 10:34:54.718821 MSK S(27104) Client process=[27713] started for socket=[6]
2012-04-29 10:34:54.718904 MSK c(27713) min socket buffer = [65536], max space to use = [1500], Rmsgs = [1]
2012-04-29 10:34:54.718918 MSK c(27713) Setting up multicast listener
2012-04-29 10:34:54.718970 MSK c(27713) current receive buffer size is [114688] bytes for socket [2]
2012-04-29 10:34:54.719901 MSK c(27713) multicast-group [ADD]
2012-04-29 10:34:54.719950 MSK c(27713) Mcast listener socket=[2] set up
2012-04-29 10:34:54.719970 MSK c(27713) min socket buffer = [65536], max space to use = [1500], Rmsgs = [1]
2012-04-29 10:34:54.719981 MSK c(27713) Data buffer will hold up to [1] messages
2012-04-29 10:34:54.720000 MSK c(27713) UDP stream, RTP check enabled
2012-04-29 10:34:54.720024 MSK c(27713) socket 2: RCV timeout set to 5 sec, 0 usec
2012-04-29 10:34:54.720037 MSK c(27713) socket 2: SEND timeout set to 5 sec, 0 usec
2012-04-29 10:34:54.720049 MSK c(27713) current send buffer size is [50724] bytes for socket [6]
2012-04-29 10:34:54.720061 MSK c(27713) current receive buffer size is [114688] bytes for socket [2]
2012-04-29 10:34:54.720073 MSK c(27713) send buffer size set to [114688] bytes for socket [6]
2012-04-29 10:34:54.720396 MSK c(27713) Sent HTTP response code=[200], reason=[OK] to socket=[6]
HTTP/1.1 200 OK
Content-Type:application/octet-stream
2012-04-29 10:34:54.720430 MSK c(27713) Relaying traffic from socket[2] to socket[6], buffer size=[2048], Rmsgs=[1], pauses=[0]Подскажите, где я ошибся???
#yum install LIVE
