ernm.blogg.se

Laravel ffmpeg
Laravel ffmpeg










You can play HLS in flash via JW player 6, (or write your own HLS to FLV in AS3 like I did) My personal favorite is to encode HLS, then use flash to play HLS for everyone else. The closest thing to an LCD is using HLS to get your iOS users, and flash for everyone else.

  • Firefox does not support h.264 at all, unless you use flash.
  • You will see there is no LCD here without resorting to flash

    laravel ffmpeg

    So if you want to deliver everywhere, we need to find the least common denominator. It may be possible to construct an moov that 'fibs' the frame sizes, but is is very wasteful bandwidth wise. But due to its format, it can not be 'flattened' until the timestamps and size of EVERY frame is known. The moov contains an index of all data in the mdat. But it is not indexed, so without the moov, it is useless.

    laravel ffmpeg

    MP4 is broken into two pieces: moov and mdat.

    laravel ffmpeg

    MP4 cannot be used for live video (NOTE: DASH is a superset of MP4, so don't get confused with that). Lets look at which browsers support what formats

  • I'm not going to talk about MKV and OOG because I do not know them very well.
  • With VOD, you can read the beginning of the file them seek to whatever point you wish.Ĭommon Delivery methods for live video in browsers:Ĭommon Delivery methods for VOD in browsers: If you want to join a a live video stream in progress, you need the data necessary to initialize the decoder, so it must be repeated in the stream, or sent out of band. With live video, you will be trying to play video before it happens. For example, if the clock in your computer runs 1% faster than it should, you will not notice on a VOD. Yes, they are both video, but the problems are different, hence the formats are different. Next, you need to understand that Video on demand (VOD) and live video are very different. There are hacks, but your mileage may vary.ĮDIT: since I wrote this answer Media Source Extensions have matured,Īnd are now very close to becoming a viable option. So immediately, this question is misleading)įirst I will restate: THERE IS NO OFFICIAL SUPPORT FOR LIVE STREAMING OVER HTML5. (Please note that the original question specified that HTML5 video is a requirement, but the asker stated Flash is possible in the comments.

    laravel ffmpeg

    There are many reasons why video and, specifically, live video is very difficult. The new answer is HLS+hls.js if you need iOS. But via adaptors like hls.js you can play Keeping it here for posterity.ĮDIT 2: As people in the comments are pointing out, things change.Īlmost all browsers will support AVC/AAC codecs. Everything below this line is out of date. > Pretend flash, iOS9 and below and IE 10 and below don't exist. Now, is to create fragmented mp4 assets, with a DASH and HLS manifest. EDIT 3: As of IOS 10, HLS will support fragmented mp4 files.












    Laravel ffmpeg