axiomatic-systems / Bento4

Full-featured MP4 format, MPEG DASH, HLS, CMAF SDK and tools
http://www.bento4.com
2k stars 482 forks source link

Mp4HLS Options #106

Open parmarsanjay opened 7 years ago

parmarsanjay commented 7 years ago

I am trying to use this tool. I see that documentation mentions that all of the options of MP42HLS are also available in Mp4HLS.

=== https://www.bento4.com/documentation/mp4hls/

This tool uses the mp42hls low level tool internally, so all the options supported by that low level tool are also available.

When Run the command it give me error.

$ ./mp4hls --force --master-playlist-name=testinghls.m3u8 --segment-duration 2 test-1.mp4 test-2.mp4 Usage: mp4-hls.py [options] [ ...]

mp4-hls.py: error: no such option: --segment-duration

Am I missing something?

bcasinclair commented 7 years ago

Are you using the latest version? Those params work for me with mp4-hls.py. Not sure what your mp4hls binary or command as the bento ones a mp4-hls.py and mp42hls

parmarsanjay commented 7 years ago

I got the mac binaries from bento4 site. This is the URL I used from downloads section.

http://zebulon.bok.net/Bento4/binaries/Bento4-SDK-1-5-0-613.universal-apple-macosx.zip

codercurtis commented 6 years ago

I'm also getting this. this command: mp4hls --index-filename="test" "bunny.mp4"

returns:

mp4-hls.py: error: no such option: --index-filename

I'm on Windows 10, with 1.5.1-621, downloaded from here: https://www.bento4.com/downloads/ mp4hls version 1.1.0 r621

mp42hls
MP4 To HLS File Converter - Version 1.1
(Bento4 Version 1.5.1.0)

Should mp42hls be reporting that version? Could that be the issue?

I also don't see the "--index-filename" command here: https://github.com/axiomatic-systems/Bento4/blob/master/Source/Python/utils/mp4-hls.py#L503

barbibulle commented 6 years ago

Thanks for pointing this out. The next release will add the options '--media-playlist-name' and 'iframe-playlist-name' to mp4hls (in addition to the existing '--master-playlist-name' option)