Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit db36bab

Browse filesBrowse files
fix: user hls time and vlc player issue
1 parent 9b2d780 commit db36bab
Copy full SHA for db36bab

File tree

1 file changed

+13
-6
lines changed
Filter options

1 file changed

+13
-6
lines changed

‎gpff.bash

Copy file name to clipboardExpand all lines: gpff.bash
+13-6Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -628,9 +628,11 @@ function segments_cleanup() {
628628
echo -e "${cyanbg}segments_cleanup: $?${clear}"
629629
}
630630

631-
# just a test function for now to see how much time it takes to do all splitting in HLS mode
632-
# for all video and audio files. the master playlist is useless if you want to use it in VLC
633-
# it seems that this is exactly what we need?
631+
# This is a test function to measure the time taken for splitting in HLS mode for all video
632+
# and audio files. The master playlist is not useful if you want to use it in VLC.
633+
# Therefore, I removed the last part of the master playlist to fix it.
634+
# I haven't added language and correct naming for them yet, as it requires extensive testing
635+
# with various files, which I haven't had time for.
634636
function make_hls() {
635637
echo -e "${cyanbg}make_hls${clear}"
636638
local counter=0
@@ -668,9 +670,14 @@ function make_hls() {
668670
$lambda_video_copy \
669671
$lambda_audio_copy \
670672
-var_stream_map "$var_stream_map" \
671-
-f hls -hls_time 10 -hls_flags independent_segments \
672-
-hls_playlist 1 -hls_playlist_type vod -master_pl_name playlist.m3u8 \
673-
-hls_segment_filename "$input_filename/hls/%v/file_%04d.ts" "$input_filename/hls/%v/index.m3u8"
673+
-force_key_frames "expr:gte(t,n_forced*$hls_duration)" \
674+
-f hls -hls_time $hls_duration -hls_flags independent_segments \
675+
-hls_segment_type mpegts \
676+
-hls_playlist true -hls_playlist_type vod -master_pl_name playlist.m3u8 \
677+
-hls_segment_filename "$input_filename/hls/%v/file_%04d.ts" \
678+
"$input_filename/hls/%v/index.m3u8"
679+
# removing audio stream part in the master playlist
680+
sed -i '/CODECS="mp4a.40.2"/,+1d' "$input_filename/hls/playlist.m3u8"
674681
echo -e "${cyanbg}make_hls: $?${clear}"
675682
}
676683

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.