История изменений
Исправление anonymous_incognito, (текущая версия) :
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-rtsp_transport' ... matched as AVOption 'rtsp_transport' with argument 'tcp'.
Reading option '-i' ... matched as input file with argument 'rtsp://127.0.0.1:12554/sn'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input file rtsp://127.0.0.1:12554/sn.
Successfully parsed a group of options.
Opening an input file: rtsp://127.0.0.1:12554/sn.
[rtsp @ 0x2171080] SDP:
v=0
o=- 15749236681022485123 15749236681022485123 IN IP4 mf
s=Unnamed
i=N/A
c=IN IP4 0.0.0.0
t=0 0
a=tool:vlc 2.2.1
a=recvonly
a=type:broadcast
a=charset:UTF-8
a=control:rtsp://127.0.0.1:12554/sn
m=audio 0 RTP/AVP 14
b=AS:128
b=RR:0
a=rtpmap:14 MPA/90000/2
a=control:rtsp://127.0.0.1:12554/sn/trackID=0
m=video 0 RTP/AVP 96
b=AS:800
b=RR:0
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=64001e;sprop-parameter-sets=Z2QAHqzZQLQSb/wAQAA8QAAAAwBAAAAMo8WLZYA=,aOvssiw=;
a=control:rtsp://127.0.0.1:12554/sn/trackID=1
[rtsp @ 0x2171080] audio codec set to: mp2
[rtsp @ 0x2171080] audio samplerate set to: 90000
[rtsp @ 0x2171080] audio channels set to: 2
[rtsp @ 0x2171080] video codec set to: h264
[rtsp @ 0x2171080] RTP Packetization Mode: 1
[rtsp @ 0x2171080] RTP Profile IDC: 64 Profile IOP: 0 Level: 1e
[rtsp @ 0x2171080] Extradata set to 0x2166320 (size: 42)
[rtsp @ 0x2171080] method SETUP failed: 461 Client error
[rtsp @ 0x2171080] Server: VLC/2.2.1
Date: Mon, 14 Mar 2016 00:41:53 GMT
Content-Length: 0
Cache-Control: no-cache
Cseq: 3
rtsp://127.0.0.1:12554/sn: Protocol not supported
Похоже, VLC шлёт RTP-поток мультикастом на нулевой порт (wtf?).
Почему, вернее что позволило заподозрить? У меня возникло немного другое подозрение, что несмотря на явное даже задание --ttl эта программа шлёт UDP пакеты с TTL=1 и естественно они дропаются по дороге. Почитал, что-то не понял как это проверить или отдельно задать правильную опцию.
Вообще, я особо не извращался с опциями, просто использовал те параметры, что сгенерировал GUI vlc, если выбрать сначала файл, потом протокол rtsp добавить и перекодировку в h264 (без перекодировки глюк: аудио есть, видео почему-то нет).
Исходная версия anonymous_incognito, :
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-rtsp_transport' ... matched as AVOption 'rtsp_transport' with argument 'tcp'.
Reading option '-i' ... matched as input file with argument 'rtsp://127.0.0.1:12554/sn'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input file rtsp://127.0.0.1:12554/sn.
Successfully parsed a group of options.
Opening an input file: rtsp://127.0.0.1:12554/sn.
[rtsp @ 0x2171080] SDP:
v=0
o=- 15749236681022485123 15749236681022485123 IN IP4 mf
s=Unnamed
i=N/A
c=IN IP4 0.0.0.0
t=0 0
a=tool:vlc 2.2.1
a=recvonly
a=type:broadcast
a=charset:UTF-8
a=control:rtsp://127.0.0.1:12554/sn
m=audio 0 RTP/AVP 14
b=AS:128
b=RR:0
a=rtpmap:14 MPA/90000/2
a=control:rtsp://127.0.0.1:12554/sn/trackID=0
m=video 0 RTP/AVP 96
b=AS:800
b=RR:0
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=64001e;sprop-parameter-sets=Z2QAHqzZQLQSb/wAQAA8QAAAAwBAAAAMo8WLZYA=,aOvssiw=;
a=control:rtsp://127.0.0.1:12554/sn/trackID=1
[rtsp @ 0x2171080] audio codec set to: mp2
[rtsp @ 0x2171080] audio samplerate set to: 90000
[rtsp @ 0x2171080] audio channels set to: 2
[rtsp @ 0x2171080] video codec set to: h264
[rtsp @ 0x2171080] RTP Packetization Mode: 1
[rtsp @ 0x2171080] RTP Profile IDC: 64 Profile IOP: 0 Level: 1e
[rtsp @ 0x2171080] Extradata set to 0x2166320 (size: 42)
[rtsp @ 0x2171080] method SETUP failed: 461 Client error
[rtsp @ 0x2171080] Server: VLC/2.2.1
Date: Mon, 14 Mar 2016 00:41:53 GMT
Content-Length: 0
Cache-Control: no-cache
Cseq: 3
rtsp://127.0.0.1:12554/sn: Protocol not supported
Похоже, VLC шлёт RTP-поток мультикастом на нулевой порт (wtf?).
Почему? У меня возникло немного другое подозрение, что несмотря на явное даже задание --ttl эта программа шлёт UDP пакеты с TTL=1 и естественно они дропаются по дороге. Почитал, что-то не понял как это проверить или отдельно задать правильную опцию.