[FFmpeg-user] ffmpeg for transcoding a stream into web pag
cjvijf at gmail.com
Fri May 10 20:26:24 EEST 2019
I might have made a few mistakes, :), when I threw hat together real
quick. For some quick tests I did the document type didn't really matter.
(I used the html more as an "entry point"
I'll clean it up this weekend and give it a shot. I did notice that the
ffmpeg command keeps "adding" new files, and the old ones don't really go
awa (deleted) if not needed anymore.. so I would probably have to look
I haven't done much (I mean pretty much nothing) with streaming video,
understanding what options do in ffmpeg (or gstreamer) would help (looking
for a guide with examples that are useful)
On Fri, May 10, 2019 at 10:58 AM Ted Park <kumowoon1025 at gmail.com> wrote:
> > <video width="320" height="240" controls>
> > <source src="IP-Cameras/stream/index.m3u8" type="video/mp4">
> > Your browser does not support the video tag.
> > </video>
> The type for the “extended” m3u8 files for hls is registered as
> Usually whatever handles mime types on your http server handles that for
> personally I don’t mark mime types except maybe to make a link download
> instead of playing in browser.
> You would put video/mp4 if it was an ISO format being embedded as a
> prerecorded file, but the m3u8 is just a text listing of where to find all
> the fragments.
> Oh, and I forgot to mention, but the example I gave you was like the
> simplest thing that usually works on the major browsers. It doesn’t even
> meet the minimum specs for HLS, you might want to look into implementing
> more features (especially the ones notated “MUST”)
> Sort of off topic, but maybe try using an HTML authoring tool out, or at
> least a decent text editor that checks syntax… I don’t know if any of these
> other things are contributing, probably not, but still:
> > <html>
> > <header>
> > </header>
> > <body>
> You need to declare a document type, not sure if it got left out when you
> copy and pasted. i.e. <!DOCTYPE html>
> You probably also meant to put <head>, not <header>, those are headers
> like you might see on the top of a page.
> And If you actually don’t have anything in the html header, you don’t need
> to have them at all, just go from html to body.
> > Would be cool if I could have the output as a stream, that I can embed.
> Were you referring to the same problem when you said this? Or some other
> difference from real streaming protocols?
> Have a look at some options available with the muxer to see if any look
> like they might be helpful
> # ffmpeg -h muxer=hls | more
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
More information about the ffmpeg-user