ossrs / srs

SRS is a simple, high-efficiency, real-time media server supporting RTMP, WebRTC, HLS, HTTP-FLV, HTTP-TS, SRT, MPEG-DASH, and GB28181.
https://ossrs.io
MIT License
25.7k stars 5.38k forks source link

HLS: SRS2 processes audio-only streams into HLS format, experiencing lag and static noise issues on Apple systems. #512

Closed lewang321 closed 7 years ago

lewang321 commented 9 years ago

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