LINUX.ORG.RU

История изменений

Исправление MaR, (текущая версия) :

nginx и ffmpeg

/usr/bin/ffmpeg -i rtsp://10.255.18.201/user=admin&password=*******&channel=12&stream=0.sdp -rtsp_transport tcp -vcodec copy -an -f flv rtmp://127.0.0.1:1935/hls/live;

вот вывод ffplay при воспроизведении потока, внешний адрес потока тоже есть и тоже воспроизводится плейрами

[hls,applehttp @ 0x7fc738000bc0] Opening 'http://192.168.200.102/hls/live-73547190.ts' for reading
[hls,applehttp @ 0x7fc738000bc0] Opening 'http://192.168.200.102/hls/live-75007980.ts' for reading
[http @ 0x7fc738025840] Opening 'http://192.168.200.102/hls/live-76448340.ts' for reading
[hls,applehttp @ 0x7fc738000bc0] Could not find codec parameters for stream 1 (Audio: aac ([15][0][0][0] / 0x000F), 0 channels, fltp): unspecified sample rate
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, hls,applehttp, from 'http://192.168.200.102/hls/live.m3u8':
Duration: N/A, start: 817.891000, bitrate: N/A
Program 0
Metadata:
variant_bitrate : 0
Stream #0:0: Video: h264 (Baseline) ([27][0][0][0] / 0x001B), yuv420p, 1280x720, 12.50 tbr, 90k tbn, 180k tbc
Metadata:
variant_bitrate : 0
Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 0 channels, fltp
Metadata:
variant_bitrate : 0
820.06 M-V: 0.091 fd= 0 aq= 0KB vq= 312KB sq= 0B f=10/10

Исходная версия MaR, :

nginx и ffmpeg

/usr/bin/ffmpeg -i rtsp://10.255.18.201/user=admin&password=*******&channel=12&stream=0.sdp -rtsp_transport tcp -vcodec copy -an -f flv rtmp://127.0.0.1:1935/hls/live;

вот вывод ffplay при воспроизведении потока, внешний адрес потока тоже есть и тоже воспроизводится плейрами

[hls,applehttp @ 0x7fc738000bc0] Opening 'http://miranet.ru:8080/hls/live-73547190.ts' for reading
[hls,applehttp @ 0x7fc738000bc0] Opening 'http://miranet.ru:8080/hls/live-75007980.ts' for reading
[http @ 0x7fc738025840] Opening 'http://192.168.200.102/hls/live-76448340.ts' for reading
[hls,applehttp @ 0x7fc738000bc0] Could not find codec parameters for stream 1 (Audio: aac ([15][0][0][0] / 0x000F), 0 channels, fltp): unspecified sample rate
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, hls,applehttp, from 'http://192.168.200.102/hls/live.m3u8':
Duration: N/A, start: 817.891000, bitrate: N/A
Program 0
Metadata:
variant_bitrate : 0
Stream #0:0: Video: h264 (Baseline) ([27][0][0][0] / 0x001B), yuv420p, 1280x720, 12.50 tbr, 90k tbn, 180k tbc
Metadata:
variant_bitrate : 0
Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 0 channels, fltp
Metadata:
variant_bitrate : 0
820.06 M-V: 0.091 fd= 0 aq= 0KB vq= 312KB sq= 0B f=10/10