arut / nginx-rtmp-module

NGINX-based Media Streaming Server
http://nginx-rtmp.blogspot.com
BSD 2-Clause "Simplified" License
13.21k stars 3.49k forks source link

hls convert error for audio #425

Open kongjian opened 10 years ago

kongjian commented 10 years ago

if i want to convert rtmp to hls,now i have such audio: Stream #0:0: Video: h264 (Main), yuv420p(tv, bt470bg), 704x576, 10 fps, 10 tbr, 1k tbn, 20 tbc Stream #0:1: Audio: aac, 16000 Hz, mono, fltp i found hls convert error,can anybody tell me what's the right audio format for hls?

debug log is:

2014/06/25 15:03:43 [debug] 18668#0: 738 recv: fd:12 4114 of 4114 2014/06/25 15:03:43 [debug] 18668#0: 738 RTMP bheader fmt=1 csid=6 2014/06/25 15:03:43 [debug] 18668#0: 738 RTMP mheader fmt=1 video (9) time=127223+114 mlen=1755 len=0 msid=1 2014/06/25 15:03:43 [debug] 18668#0: 738 RTMP recv video (9) csid=6 timestamp=127337 mlen=1755 msid=1 nbufs=1 2014/06/25 15:03:43 [debug] 18668#0: 738 nhandlers: 5 2014/06/25 15:03:43 [debug] 18668#0: 738 calling handler 0 2014/06/25 15:03:43 [debug] 18668#0: 738 calling handler 1 2014/06/25 15:03:43 [debug] 18668#0: 738 calling handler 2 2014/06/25 15:03:43 [debug] 18668#0: 738 live: video packet timestamp=127337 2014/06/25 15:03:43 [debug] 18668#0: 738 RTMP prep video (9) fmt=1 csid=7 timestamp=114 mlen=1755 msid=1 nbufs=1 2014/06/25 15:03:43 [debug] 18668#0: 738 calling handler 3 2014/06/25 15:03:43 [debug] 18668#0: 738 hls: h264 NAL type=1, len=1746 2014/06/25 15:03:43 [error] 18668#0: 738 hls: force fragment split: -59.271 sec, client: 127.0.0.1, server: 0.0.0.0:1935 2014/06/25 15:03:43 [debug] 18668#0: 738 hls: close fragment n=1059 2014/06/25 15:03:43 [debug] 18668#0: 738 hls: fragment frag=1060, n=1/12, duration=0.000, discont=1400159338497 2014/06/25 15:03:43 [debug] 18668#0: 738 hls: fragment frag=1060, n=2/12, duration=0.193, discont=1400159338497 2014/06/25 15:03:43 [debug] 18668#0: *738 hls: fragment frag=1060, n=3/12, duration=0.000, discont=1400159338497

arut commented 10 years ago

I don't see any error, your format is ok.

kongjian commented 10 years ago

thanks for your reply. but it allways comes up such error: "hls: force fragment split: -59.271 sec" what will result in this. is it video and audio not synchronous?