So the parts I wanted to ask about were parts 2. From the documentation "-f" is fmt force format into an hls codec file named index.m3u8. From documentation the "hls_list_size" is the maximum number of playlist entries if it's 0 there is no limit on playlist entries.ħ. Actually this option doesn't seem to work, I think it has something to do with hls_list_size being 0 but it does so at 8 second segments unfortunately.Ħ. From the documentation "hls_time" is the time in seconds for each segment in the playlist, although it will be cut on the next frame. So I've seen from the documentation "start_number" is the starting playlist start number, so the first segment it starts on.ĥ. As for "-s 640 x 360" this is the size and sets frame size so I'm guessing resolution? I'm not sure if I need this if I don't want to change this resolution would that be correct?Ĥ. However, I don't understand what "-profile:v baseline - level 3.0" means and I can't find reference to this in the ffmpeg documentation and I'm not sure if it's necessary. So it's a file which is a cut into a lot of parts which are part of a collective playlist.Īs a sidenote I want to keep the bitrate of the files as high as possible in the conversion.įfmpeg -i input.mp4 -profile:v baseline -level 3.0 -s 640x360 -start_number 0 -hls_time 3 -hls_list_size 0 -f hls index.m3u8ġ.So I understand the first bit "-i input.mp4" takes an input mp4 video called "input.mp4".Ģ. So I just wanted to understand this ffmpeg command I saw from Stack Overflow to convert an mp4 file to an hls format to make sure I'm not carrying any unnecessary bits of the command.Īs a preface, hls is pretty much a fragmented mp4 file, used for streaming video.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |