![bento 4 key bento 4 key](https://assets.epicurious.com/photos/58dd783103394604d81d5903/4:6/w_657,h_986,c_limit/Sunday-Stash-Mini-Beef-and-Mushroom-Patties-Bento-Box-hero-30032017.jpg)
If you look in the directory where you ran the command, you’ll see a number of segments ( segment-0.ts, segment-1.ts and so on) and the playlist ( stream.m3u8). To segment a video and create a playlist for it, open up a terminal and run the following command: $ mp42hls sample-1080p.mp4 If you only want to create a playlist for a single video, use mp42hls instead.įor the examples, I’m going to assume there are 3 videos available: sample-1080p.mp4, sample-720p.mp4 and sample-360p.mp4. Or put another way, if you want to create a master playlist for more than one video, use mp4hls.
![bento 4 key bento 4 key](https://imagesvc.meredithcorp.io/v3/mm/image?url=https%3A%2F%2Fstatic.onecms.io%2Fwp-content%2Fuploads%2Fsites%2F34%2F2018%2F09%2F19035229%2F30-days-bento-boxes-03-pretzels-salami-bento-0718.jpg)
If you are familiar with Apple’s HLS tools, mp4hls and mp42hls can be used as a replacement for variantplaylistcreator and mediafilesegmenter respectively. Once you’ve downloaded it, make sure the bin directory is on your PATH. I used version 1.5.1.0 in the examples. You can download the latest version from the website. For example, you may want to support both DASH and HLS from the same encodings.īento4 also has support for MPEG DASH and many other formats, but in this post I’ll focus specifically on using the command line tools mp4hls and mp42hls to create HLS playlists. However, sometimes it’s better to separate the encoding from the packaging. In previous posts I’ve used ffmpeg to encode the videos and generate the playlist.
#Bento 4 key how to#
In this post we’re going to look at how to use Bento4 to generate HLS playlists from MP4 files.