Jump to content
Калькуляторы

Вещание камеры на сайте h.264 rtsp

Подскажите, где я ошибся при организации трансляции камеры на web-сайт.

Камера отдает поток h264 по протоколу rtsp. Забираю поток vlc, меняю контейнер и отдаю в FlowPlayer так:

cvlc -d -R rtsp://$IP_RIV:$PORT_CAM/ --http-caching=1000 --no-sout-audio --sout='#std{access=http{mime=video/x-flv},dst=$IP_SERV:8080/v.flv,mux=ffmpeg{mux=flv}}'

 

 

На сайте:

<script type="text/javascript" src="/js/flowplayer-3.2.11.min.js"></script>

 

<a href="http://IP_SERVER:8080/v.flv" style="display:block;width:520px;height:390px;margin:10px auto;" id="player1"></a>

 

<script>

flowplayer("player1", "/flow/flowplayer-3.2.12.swf", {

 

plugins: {

controls: {

url: '/flow/flowplayer.controls-3.2.12.swf',

 

right: 7,

bottom: 7,

opacity: 0.95,

width: 190,

 

timeColor: '#44BBEE',

all: false,

play: true,

time: true,

fullscreen: true,

 

tooltips: {

buttons: true,

play: 'Воспроизвести',

pause: 'Пауза',

fullscreen: 'Полноэкранный режим',

fullscreenExit: 'Оконный режим'

},

autoHide: {

hideStyle: 'move',

fullscreenOnly: false

}

}

}

}

);

 

 

Данный код работает на старых версиях flash, но после обновления flash показывает стоп-кадр (иногда после задержки, начинает вещать нормально). С чем это может быть связано и как правильно организовать вещание h264 камер. Желательно без перекодирования или с перекодированием с минимальными потерями качества.

Планирую перейти на erlyvideo, если не получится победить vlc.

Заранее спасибо.

Share this post


Link to post
Share on other sites

Бесплатный сервис http://webcamworld.pro

Отправляете запрос с адресом потока, например rtsp://camera_ip/live/ch00_0 и в ответ получаете имя камеры и затем код, чтобы вставить на сайт.

Примеры:

http://webcamworld.pro/share1.php?s=140812095135

http://webcamworld.pro/share1.php?s=140812095222

http://webcamworld.pro/share1.php?s=140812095247

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.