rfanru
@rfanru
СПБ, РУ, 183см, 93кг, 22см

Не могу заставить транслировать поток с камеры?

Настройки в nginx.conf

rtmp {
access_log /var/log/nginx/rtmp_access.log;
server {
listen 1935;
ping 30s;
notify_method get;
application ii {
live on;
exec_pull ffmpeg -i rtsp://192.168.111.120:554/Streaming/Channels/1 -threads 2 -f flv -r 25 -s 1920x1080 -an rtmp://localhost:1935/ii/stream;
}
}
}

в чем может быть проблема, запускаю в терминале:

root@delsol-VPCSB3V9R:/etc/nginx# ffmpeg -i rtsp://192.168.111.120:554/Streaming/Channels/2 -c copy -f flv rtmp://localhost:1935/ii/stream
ffmpeg version 2.4.3-1ubuntu1~trusty6 Copyright (c) 2000-2014 the FFmpeg developers
built on Nov 22 2014 17:07:19 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
configuration: --prefix=/usr --extra-version='1ubuntu1~trusty6' --build-suffix=-ffmpeg --toolchain=hardened --extra-cflags= --extra-cxxflags= --libdir=/usr/lib/x86_64-linux-gnu --shlibdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --enable-shared --disable-stripping --enable-avresample --enable-avisynth --enable-fontconfig --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-opengl --enable-x11grab --enable-libxvid --enable-libx265 --enable-libdc1394 --enable-libiec61883 --enable-libzvbi --enable-libzmq --enable-frei0r --enable-libx264 --enable-libsoxr --enable-openal --enable-libopencv
libavutil 54. 7.100 / 54. 7.100
libavcodec 56. 1.100 / 56. 1.100
libavformat 56. 4.101 / 56. 4.101
libavdevice 56. 0.100 / 56. 0.100
libavfilter 5. 1.100 / 5. 1.100
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 0.100 / 3. 0.100
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 0.100 / 53. 0.100
Input #0, rtsp, from 'rtsp://192.168.111.120:554/Streaming/Channels/2':
Metadata:
title : Media Presentation
Duration: N/A, start: 0.436533, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuv420p(tv, bt470bg), 704x576, 20 fps, 50.17 tbr, 90k tbn, 40 tbc
RTMP_ReadPacket, failed to read RTMP packet header
rtmp://localhost:1935/ii/stream: Unknown error occurred
  • Вопрос задан
  • 775 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы