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

R C cjvijf at gmail.com
Sat May 4 05:42:11 EEST 2019


uhm...   no...


basically, I just want "some way"  to pull a stream from a camera, and 
display it in a web page,  basically rstsp over http...   I don't really 
want to try anything commercial.  It shouldn't be too difficult, accept, 
since a bit, streaming with players is disabled in most browsers.


Ron



On 5/3/19 5:19 PM, Michael Shaffer wrote:
> Have you experimented with Unreal Live Server?
>
> http://www.umediaserver.net/umediaserver/download.html
>
> On Fri, May 3, 2019 at 6:58 PM R C <cjvijf at gmail.com> wrote:
>
>> Hello Ted,
>>
>>
>> that seems to work!  thank you!!  That ffmpeg command is indeed making a
>> movie from that stream into a file, tried watching it, VLC does give me
>> trouble, but it shows it as a movie.
>>
>> Would be cool if I could have the output as a stream, that I can embed.
>>
>> I am new to ffmpeg and gstreamer things.. and the command options don't
>> seem to be too obvious to me
>>
>>
>> thanks,
>>
>>
>> Ron
>>
>>
>>
>> On 5/3/19 2:17 AM, Ted Park wrote:
>>>> So my idea was tho use ffmpeg or gstreamer to  embed it in html, with
>> some
>>>> sort of player.
>>> Html you’re gonna need to write yourself, but you can use the rtsp
>> stream as an input and output HLS to embed in your html, I think this will
>> get you what you want.
>>> Something like
>>>
>>> ffmpeg -i rtsp://192.0.2.123/stream.sdp -f hls -hls_playlist_type event
>> -hls_segment_type mpegts -hls_segment_filename segment-%d.ts index.m3u8
>>> Will produce a playlist file pointing to little segments of ts files
>> that you can host with any http server. It should work,  (you might need to
>> transcode to h264 if it’s not) A html5 video element with the playlist file
>> as the source should play in most browsers nowadays.
>>> <video autoplay controls src=“url/to/index.m3u8”>This text displays if
>> the video element isn’t supported.</video>
>>> _______________________________________________
>>> ffmpeg-user mailing list
>>> ffmpeg-user at ffmpeg.org
>>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>>
>>> To unsubscribe, visit link above, or email
>>> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>> _______________________________________________
>> ffmpeg-user mailing list
>> ffmpeg-user at ffmpeg.org
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list