Only one .ts file is generating while encoding mp3 file to m3u8 using ffmpeg -


i not able play m3u8 link specific files.

details follows:

ffmpeg -i low_30.mp3 -codec:v libx264 -b:v 64k -maxrate 64k -bufsize 64k -vf scale=-2:480 -threads 0 -vsync 2 -pix_fmt yuv420p -codec:a aac -b:a 64k -hls_list_size 0 abc.m3u8

error: [libx264 @ 0x7fc83280ba00] mb rate (81000000) > level limit (2073600) [libx264 @ 0x7fc83280ba00] using cpu capabilities: mmx2 sse2fast ssse3 sse4.2 avx fma3 avx2 lzcnt bmi2 [libx264 @ 0x7fc83280ba00] profile high 4:4:4 predictive, level 5.2, 4:4:4 8-bit [hls @ 0x7fc832809e00] using avstream.codec pass codec parameters muxers deprecated, use avstream.codecpar instead.

sample file url: https://s3-ap-southeast-1.amazonaws.com/hog-original/low_30.mp3

only 1 ts file generating in case , not able play m3u8 link.

use

ffmpeg -i low_30.mp3 -c:a aac -b:a 64k -vn -hls_list_size 0 abc.m3u8 

default segment duration 2 seconds. add -segment_time n create segments of n seconds.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -