Re: HLS Stream
Posted: Fri Feb 03, 2017 10:11 am
Hi Steinar,
I checked same in FFAStarns it's working fine, but need to properly configure.
I am using below three commands in FFAStarns for HLS.
1Mbps
-c:v libx264 -s 1280x720 -aspect 16:9 -b:v 1000k -maxrate 1000k -bufsize 1000k -pix_fmt yuv420p -refs 1 -profile:v baseline -level 3 -g 150 -sc_threshold 0 -flags -global_header -movflags +faststart -c:a aac -strict experimental -ar 48000 -b:a 64000 -ac 2 -hls_time 10 -hls_key_info_file D:\FFAStrans0.7.7_Win32\Media\enc.keyinfo "D:\FFAStrans0.7.7_Win32\Media\Outbox\%s_original_name%\1000\%s_original_name%_1000.m3u8"
400Kbps
-c:v libx264 -s 640x360 -aspect 16:9 -b:v 400k -maxrate 400k -bufsize 400k -pix_fmt yuv420p -refs 1 -profile:v baseline -level 3 -g 150 -sc_threshold 0 -flags -global_header -movflags +faststart -c:a aac -strict experimental -ar 48000 -b:a 64000 -ac 2 -hls_time 10 -hls_key_info_file D:\FFAStrans0.7.7_Win32\Media\enc.keyinfo "D:\FFAStrans0.7.7_Win32\Media\Outbox\%s_original_name%\400\%s_original_name%_400.m3u8"
100Kbps
-c:v libx264 -s 320x240 -aspect 16:9 -b:v 100k -maxrate 100k -bufsize 100k -pix_fmt yuv420p -refs 1 -profile:v baseline -level 3 -g 150 -sc_threshold 0 -flags -global_header -movflags +faststart -c:a aac -strict experimental -ar 48000 -b:a 64000 -ac 2 -hls_time 10 -hls_key_info_file D:\FFAStrans0.7.7_Win32\Media\enc.keyinfo "D:\FFAStrans0.7.7_Win32\Media\Outbox\%s_original_name%\100\%s_original_name%_100.m3u8"
My workflow is WF base workflow and I am getting three HLS outputs. Using above commands I am adding encryption. For each source files I have separate keyinfo and key file. Keyinfo file I am using in command. At the same time I wanted to move key file to output location and rename it as per the source name and bitrate. Please find below example of output file structure for your reference.
Test_HD_52.m3u8
Test_HD_52_1000.m3u8
Test_HD_52_1000.key
Test_HD_52_10000.ts
Test_HD_52_400.m3u8
Test_HD_52_400.key
Test_HD_52_4000.ts
Test_HD_52_100.m3u8
Test_HD_52_100.key
Test_HD_52_1000.ts
Please suggest if this can be done?
Thanks,
Vijay
I checked same in FFAStarns it's working fine, but need to properly configure.
I am using below three commands in FFAStarns for HLS.
1Mbps
-c:v libx264 -s 1280x720 -aspect 16:9 -b:v 1000k -maxrate 1000k -bufsize 1000k -pix_fmt yuv420p -refs 1 -profile:v baseline -level 3 -g 150 -sc_threshold 0 -flags -global_header -movflags +faststart -c:a aac -strict experimental -ar 48000 -b:a 64000 -ac 2 -hls_time 10 -hls_key_info_file D:\FFAStrans0.7.7_Win32\Media\enc.keyinfo "D:\FFAStrans0.7.7_Win32\Media\Outbox\%s_original_name%\1000\%s_original_name%_1000.m3u8"
400Kbps
-c:v libx264 -s 640x360 -aspect 16:9 -b:v 400k -maxrate 400k -bufsize 400k -pix_fmt yuv420p -refs 1 -profile:v baseline -level 3 -g 150 -sc_threshold 0 -flags -global_header -movflags +faststart -c:a aac -strict experimental -ar 48000 -b:a 64000 -ac 2 -hls_time 10 -hls_key_info_file D:\FFAStrans0.7.7_Win32\Media\enc.keyinfo "D:\FFAStrans0.7.7_Win32\Media\Outbox\%s_original_name%\400\%s_original_name%_400.m3u8"
100Kbps
-c:v libx264 -s 320x240 -aspect 16:9 -b:v 100k -maxrate 100k -bufsize 100k -pix_fmt yuv420p -refs 1 -profile:v baseline -level 3 -g 150 -sc_threshold 0 -flags -global_header -movflags +faststart -c:a aac -strict experimental -ar 48000 -b:a 64000 -ac 2 -hls_time 10 -hls_key_info_file D:\FFAStrans0.7.7_Win32\Media\enc.keyinfo "D:\FFAStrans0.7.7_Win32\Media\Outbox\%s_original_name%\100\%s_original_name%_100.m3u8"
My workflow is WF base workflow and I am getting three HLS outputs. Using above commands I am adding encryption. For each source files I have separate keyinfo and key file. Keyinfo file I am using in command. At the same time I wanted to move key file to output location and rename it as per the source name and bitrate. Please find below example of output file structure for your reference.
Test_HD_52.m3u8
Test_HD_52_1000.m3u8
Test_HD_52_1000.key
Test_HD_52_10000.ts
Test_HD_52_400.m3u8
Test_HD_52_400.key
Test_HD_52_4000.ts
Test_HD_52_100.m3u8
Test_HD_52_100.key
Test_HD_52_1000.ts
Please suggest if this can be done?
Thanks,
Vijay