Closed
Description
When slicing the pure audio stream with srs_2.0 into HLS, if the configuration option hls_vcodec vn; hls_acodec aac; is selected, there will be no video information in the PMT of ts. However, when playing the audio using Apple iOS system, there will be stuttering and noise, while it plays normally on Android system.
hls.conf configuration file:
listen 1935;
max_connections 1000;
vhost __defaultVhost__ {
hls {
enabled on;
hls_fragment 5;
hls_td_ratio 1.5;
hls_aof_ratio 1.0;
hls_on_error ignore;
hls_storage disk;
# hls_ts_floor off;
hls_acodec aac;
hls_vcodec vn;
# hls_cleanup on;
# hls_nb_notify 64;
# hls_wait_keyframe off;
hls_window 60;
hls_path ./objs/nginx/html;
hls_m3u8_file [app]/[stream].m3u8;
hls_ts_file [app]/[stream]-[seq].ts;
}
TRANS_BY_GPT3