[Libav-user] Convert a dvr security camera rtsp stream for using with video html5 tag

Guillaume libav at shadowprojects.org
Tue Mar 28 11:29:04 EEST 2017


Hello,

I have a dvr with security camera and one of them is displayed (through 
a rspi 2) on a web page (rtsp stream) with vlc plugin to show who is at 
the door and open it remotely.
Problem is, firefox 52 disabled npapi plugins (flash player excepted) so 
it doesn't work anymore.

I am trying to convert the stream in real time to one compatible with 
html5 video tag, but at best, i have a 8 seconds delays. And it keeps 
filling the drive with streaming files.
But i don't see any bottleneck on the rspi, cpu, ram and io seems fine.

Here's the rtsp stream informations  : Video: h264 (High), yuv420p, 
352x288, 1k tbr, 90k tbn

I am running this command : avconv -v info -i 
"rtsp://login@192.168.3.90:554/user=login&password=password&channel=1&stream=1.sdp" 
-c:v copy -bufsize 10240k -pix_fmt yuv420p /var/www/portier.m3u8

I can ran the conversion on a lxc container (with Ubuntu 16.04) which is 
more powerfull than a rspi 2, but even there, i have a 4s delay (and 
still a growing number of temporary files which fill the drive).

Is there a way to do a better job and tell avconv to remove its old files ?

Thanks,

-- 
Guillaume



More information about the Libav-user mailing list