[FFmpeg-user] ffmpeg for transcoding/stream into web pag

R C cjvijf at gmail.com
Mon May 13 05:09:25 EEST 2019


Hello all,

I am a rookie at using ffmpeg (also trying gstreamer) to stream an IP 
camera feed into a web page.


as suggested; I am trying to use this ffmpeg command:

ffmpeg -i 
"rtsp://192.168.x.y:554/user=admin_password=XXXXXXXX_channel=1_stream=0.sdp?real_stream" 
-f hls -hls_playlist_type event -hls_segment_type mpegts 
-hls_segment_filename segment-%d.ts index.m3u8

which creates files like:

-rw-rw-r--   1 rocr rocr         276 May 12 19:56 index.m3u8
-rw-rw-r--   1 rocr rocr 1831120 May 12 19:53 segment-0.ts
-rw-rw-r--   1 rocr rocr 2272544 May 12 19:54 segment-1.ts
-rw-rw-r--   1 rocr rocr 1457752 May 12 19:55 segment-2.ts
-rw-rw-r--   1 rocr rocr 1456436 May 12 19:55 segment-3.ts
-rw-rw-r--   1 rocr rocr 1294380 May 12 19:56 segment-4.ts


the segment files are "MPEG-2 transport stream (video/mp2t)". Firefox 
(60.6.1esr 64-bi) doesn't really want to play them. VLC does,  and I can 
see there is actually video and audio in those files.


when I do this on a linux workstation, it works, as far as creating 
these segments goes. I have the impression that ffmpeg keeps creating 
new for as long as that comman runs? (that could become a problem),  
and  when i run this on a server,  the browser doesn't even find the 
files (and probably can't play them anyway).


any suggestions?


thanks,


Ron



More information about the ffmpeg-user mailing list