Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Stream did not start with ADTS header. #344

Open
blitheinsz opened this issue Jul 27, 2015 · 5 comments
Open

Error: Stream did not start with ADTS header. #344

blitheinsz opened this issue Jul 27, 2015 · 5 comments

Comments

@blitheinsz
Copy link

at org.mangui.hls.demux::AACDemuxer$/getADIF()[D:\Users\sewise\Adobe Flash Builder 4.7\HLSVideoTest\src\org\mangui\hls\demux\AACDemuxer.as:146]
at org.mangui.hls.demux::TSDemuxer/_parseADTSPES()[D:\Users\sewise\Adobe Flash Builder 4.7\HLSVideoTest\src\org\mangui\hls\demux\TSDemuxer.as:348]
at org.mangui.hls.demux::TSDemuxer/_parseTSPacket()[D:\Users\sewise\Adobe Flash Builder 4.7\HLSVideoTest\src\org\mangui\hls\demux\TSDemuxer.as:685]
at org.mangui.hls.demux::TSDemuxer/_parseTimer()[D:\Users\sewise\Adobe Flash Builder 4.7\HLSVideoTest\src\org\mangui\hls\demux\TSDemuxer.as:213]
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()

hello,Why does this error occur?

@mangui
Copy link
Owner

mangui commented Jul 27, 2015

@blitheinsz flashls is complaining about AAC audio not being formatted properly. could you share debug logs ?

@blitheinsz
Copy link
Author

thanks,this is my debug logs:

INFO:HLSNetStream:close
INFO:HLSNetStream:play(-1)
INFO:HLSNetStream:seek(-1)
[SWF] D:\Users\sewise\Adobe Flash Builder 4.7\HLSVideoTest\bin-debug\HLSVideoTest.swf - 解压缩后为 160,372 个字节
INFO:Setting audio track to 0
WARN:TS: Discarding audio packet with id 34
WARN:TS: Discarding audio packet with id 34
WARN:TS: Discarding audio packet with id 34
WARN:TS: Discarding audio packet with id 34
WARN:TS: Discarding audio packet with id 34
WARN:TS: Discarding audio packet with id 34
Error: Stream did not start with ADTS header.
at org.mangui.hls.demux::AACDemuxer$/getADIF()[D:\Users\sewise\Adobe Flash Builder 4.7\HLSVideoTest\src\org\mangui\hls\demux\AACDemuxer.as:146]
at org.mangui.hls.demux::TSDemuxer/_parseADTSPES()[D:\Users\sewise\Adobe Flash Builder 4.7\HLSVideoTest\src\org\mangui\hls\demux\TSDemuxer.as:348]
at org.mangui.hls.demux::TSDemuxer/_parseTSPacket()[D:\Users\sewise\Adobe Flash Builder 4.7\HLSVideoTest\src\org\mangui\hls\demux\TSDemuxer.as:685]
at org.mangui.hls.demux::TSDemuxer/_parseTimer()[D:\Users\sewise\Adobe Flash Builder 4.7\HLSVideoTest\src\org\mangui\hls\demux\TSDemuxer.as:213]
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()

@mangui
Copy link
Owner

mangui commented Jul 27, 2015

plz enable debug/debug2 logs as well
thanks

@ghost
Copy link

ghost commented Aug 13, 2015

Not sure if this helps, but I've been getting this error as well. These are my debugs:

DEBUG:Loaded position/duration/sliding/discontinuity:14.23/0.14/0.02/false StrobeMediaPlayback.html
DEBUG:AutoBufferManager:minBufferLength:22.953513513513514 StrobeMediaPlayback.html
DEBUG:AVC: AUD, SEI, NDR slices StrobeMediaPlayback.html
DEBUG:4 tags extracted StrobeMediaPlayback.html
DEBUG:Loaded position/duration/sliding/discontinuity:14.37/0.07/0.02/false StrobeMediaPlayback.html
DEBUG:AutoBufferManager:minBufferLength:22.616666666666667 StrobeMediaPlayback.html
DEBUG:AVC: AUD, SEI, NDR slices StrobeMediaPlayback.html
DEBUG:4 tags extracted StrobeMediaPlayback.html
DEBUG:Loaded position/duration/sliding/discontinuity:14.44/0.08/0.02/false StrobeMediaPlayback.html
DEBUG:AutoBufferManager:minBufferLength:22.174174174174173 StrobeMediaPlayback.html
DEBUG:AVC: AUD, SEI, NDR slices StrobeMediaPlayback.html
DEBUG:10 tags extracted StrobeMediaPlayback.html
DEBUG:Loaded position/duration/sliding/discontinuity:14.52/0.21/0.02/false StrobeMediaPlayback.html
DEBUG:AutoBufferManager:minBufferLength:20.4766651563208 StrobeMediaPlayback.html
DEBUG:AVC: AUD, SEI, NDR slices StrobeMediaPlayback.html
DEBUG:7 tags extracted StrobeMediaPlayback.html
DEBUG:Loaded position/duration/sliding/discontinuity:14.73/0.14/0.02/false StrobeMediaPlayback.html
DEBUG:AutoBufferManager:minBufferLength:19.59079283887468 StrobeMediaPlayback.html
DEBUG:AVC: AUD, SEI, NDR slices StrobeMediaPlayback.html
DEBUG:4 tags extracted StrobeMediaPlayback.html
DEBUG:Loaded position/duration/sliding/discontinuity:14.87/0.07/0.02/false StrobeMediaPlayback.html
DEBUG:AutoBufferManager:minBufferLength:19.39544513457557 StrobeMediaPlayback.html
DEBUG:AVC: AUD, SEI, NDR slices StrobeMediaPlayback.html
DEBUG:4 tags extracted StrobeMediaPlayback.html
DEBUG:Loaded position/duration/sliding/discontinuity:14.94/0.07/0.02/false StrobeMediaPlayback.html
DEBUG:AutoBufferManager:minBufferLength:19.20321931589537 StrobeMediaPlayback.html
DEBUG:AVC: AUD, SEI, NDR slices StrobeMediaPlayback.html
DEBUG:1 tags extracted StrobeMediaPlayback.html
DEBUG:Loaded position/duration/sliding/discontinuity:14.90/0.00/0.13/false StrobeMediaPlayback.html
DEBUG:AutoBufferManager:minBufferLength:20.033030553261767 StrobeMediaPlayback.html
DEBUG:AVC: AUD, SEI, NDR slices StrobeMediaPlayback.html
DEBUG:TS: complete ID3 PES found, parse it StrobeMediaPlayback.html
DEBUG:2 tags extracted StrobeMediaPlayback.html
DEBUG:Loaded position/duration/sliding/discontinuity:14.94/0.00/0.09/false StrobeMediaPlayback.html
DEBUG:AutoBufferManager:minBufferLength:20.059413890004016 StrobeMediaPlayback.html
DEBUG:AVC: AUD, SEI, NDR slices StrobeMediaPlayback.html
DEBUG:7 tags extracted StrobeMediaPlayback.html
DEBUG:Loaded position/duration/sliding/discontinuity:15.01/0.14/0.02/false StrobeMediaPlayback.html
DEBUG:AutoBufferManager:minBufferLength:19.378048780487806 StrobeMediaPlayback.html
DEBUG:AVC: AUD, SEI, NDR slices StrobeMediaPlayback.html
DEBUG:4 tags extracted StrobeMediaPlayback.html
DEBUG:Loaded position/duration/sliding/discontinuity:15.15/0.07/0.02/false StrobeMediaPlayback.html
DEBUG:AutoBufferManager:minBufferLength:19.171492204899778 StrobeMediaPlayback.html
DEBUG:AVC: AUD, SEI, NDR slices StrobeMediaPlayback.html
DEBUG:4 tags extracted StrobeMediaPlayback.html
DEBUG:Loaded position/duration/sliding/discontinuity:15.21/0.07/0.02/false StrobeMediaPlayback.html
DEBUG:AutoBufferManager:minBufferLength:18.975397973950795 StrobeMediaPlayback.html
DEBUG:AVC: AUD, SEI, NDR slices StrobeMediaPlayback.html
DEBUG:1 tags extracted StrobeMediaPlayback.html
DEBUG:Loaded position/duration/sliding/discontinuity:15.19/0.00/0.12/false StrobeMediaPlayback.html
DEBUG:AutoBufferManager:minBufferLength:19.513335769090244 StrobeMediaPlayback.html
DEBUG:6 tags extracted StrobeMediaPlayback.html
DEBUG:Loaded position/duration/sliding/discontinuity:15.29/0.14/0.02/false StrobeMediaPlayback.html
DEBUG:AutoBufferManager:minBufferLength:18.6730967964175 StrobeMediaPlayback.html
DEBUG:AVC: AUD, SEI, NDR slices StrobeMediaPlayback.html
DEBUG:8 tags extracted StrobeMediaPlayback.html
DEBUG:Loaded position/duration/sliding/discontinuity:15.42/0.14/0.02/false StrobeMediaPlayback.html
DEBUG:AutoBufferManager:minBufferLength:18.36998025016458 StrobeMediaPlayback.html
DEBUG:AVC: AUD, SEI, NDR slices StrobeMediaPlayback.html
DEBUG:7 tags extracted StrobeMediaPlayback.html
DEBUG:Loaded position/duration/sliding/discontinuity:15.56/0.14/0.02/false StrobeMediaPlayback.html
DEBUG:AutoBufferManager:minBufferLength:17.818067359143846 StrobeMediaPlayback.html
DEBUG:HLSAlternativeAudioTrait:numAlternativeAudioStreams:0 StrobeMediaPlayback.html
DEBUG:6 tags extracted StrobeMediaPlayback.html
DEBUG:Loaded position/duration/sliding/discontinuity:15.70/0.14/0.02/false StrobeMediaPlayback.html
DEBUG:AutoBufferManager:minBufferLength:17.62074163400663 StrobeMediaPlayback.html
DEBUG:AVC: AUD, SEI, NDR slices StrobeMediaPlayback.html
DEBUG:2 tags extracted StrobeMediaPlayback.html
DEBUG:Loaded position/duration/sliding/discontinuity:15.52/0.00/0.35/false StrobeMediaPlayback.html
DEBUG:AutoBufferManager:minBufferLength:18.46498599439776 StrobeMediaPlayback.html
DEBUG:AVC: AUD, SEI, NDR slices StrobeMediaPlayback.html
DEBUG:4 tags extracted StrobeMediaPlayback.html
DEBUG:Loaded position/duration/sliding/discontinuity:15.84/0.07/0.02/false StrobeMediaPlayback.html
DEBUG:AutoBufferManager:minBufferLength:17.78145304193739 StrobeMediaPlayback.html
DEBUG:AVC: AUD, SEI, NDR slices StrobeMediaPlayback.html
DEBUG:7 tags extracted StrobeMediaPlayback.html
DEBUG:Loaded position/duration/sliding/discontinuity:15.91/0.14/0.02/false StrobeMediaPlayback.html
DEBUG:AutoBufferManager:minBufferLength:17.312145289443812 StrobeMediaPlayback.html
DEBUG:TS: complete ID3 PES found, parse it StrobeMediaPlayback.html
DEBUG:1 tags extracted StrobeMediaPlayback.html
DEBUG:Loaded position/duration/sliding/discontinuity:15.86/0.00/0.21/false StrobeMediaPlayback.html
DEBUG:AutoBufferManager:minBufferLength:18.540443379269025 StrobeMediaPlayback.html
DEBUG:AVC: AUD, SEI, NDR slices StrobeMediaPlayback.html
DEBUG:7 tags extracted StrobeMediaPlayback.html
DEBUG:Loaded position/duration/sliding/discontinuity:16.05/0.14/0.02/false StrobeMediaPlayback.html
DEBUG:AutoBufferManager:minBufferLength:17.113841113841115 StrobeMediaPlayback.html
DEBUG:AVC: AUD, SEI, NDR slices StrobeMediaPlayback.html
DEBUG:1 tags extracted StrobeMediaPlayback.html
DEBUG:Loaded position/duration/sliding/discontinuity:15.93/0.00/0.28/false StrobeMediaPlayback.html
DEBUG:AutoBufferManager:minBufferLength:17.997175939000282 StrobeMediaPlayback.html
DEBUG:AVC: AUD, SEI, NDR slices StrobeMediaPlayback.html
DEBUG:4 tags extracted StrobeMediaPlayback.html
DEBUG:Loaded position/duration/sliding/discontinuity:16.18/0.07/0.02/false StrobeMediaPlayback.html
DEBUG:AutoBufferManager:minBufferLength:17.585855879989285 StrobeMediaPlayback.html
DEBUG:AVC: AUD, SEI, NDR slices StrobeMediaPlayback.html
DEBUG:4 tags extracted StrobeMediaPlayback.html
DEBUG:Loaded position/duration/sliding/discontinuity:16.25/0.07/0.02/false StrobeMediaPlayback.html
DEBUG:AutoBufferManager:minBufferLength:19.05523408732246 StrobeMediaPlayback.html
DEBUG:HLSAlternativeAudioTrait:numAlternativeAudioStreams:0 StrobeMediaPlayback.html
DEBUG:AVC: AUD, SEI, NDR slices StrobeMediaPlayback.html
DEBUG:4 tags extracted StrobeMediaPlayback.html
DEBUG:Loaded position/duration/sliding/discontinuity:16.32/0.07/0.02/false StrobeMediaPlayback.html
DEBUG:AutoBufferManager:minBufferLength:21.799586776859506 StrobeMediaPlayback.html
DEBUG:AVC: AUD, SEI, NDR slices StrobeMediaPlayback.html
DEBUG:1 tags extracted StrobeMediaPlayback.html
DEBUG:Loaded position/duration/sliding/discontinuity:16.30/0.00/0.11/false StrobeMediaPlayback.html
DEBUG:AutoBufferManager:minBufferLength:23.673212882953653 StrobeMediaPlayback.html
DEBUG:AVC: AUD, SEI, NDR slices StrobeMediaPlayback.html
DEBUG:8 tags extracted StrobeMediaPlayback.html
DEBUG:Loaded position/duration/sliding/discontinuity:16.39/0.14/0.02/false StrobeMediaPlayback.html
DEBUG:AutoBufferManager:minBufferLength:24.07584830339321 StrobeMediaPlayback.html
DEBUG:HLSAlternativeAudioTrait:numAlternativeAudioStreams:0 StrobeMediaPlayback.html
DEBUG:AVC: AUD, SEI, NDR slices StrobeMediaPlayback.html
DEBUG:4 tags extracted StrobeMediaPlayback.html
DEBUG:Loaded position/duration/sliding/discontinuity:16.53/0.07/0.02/false StrobeMediaPlayback.html
DEBUG:AutoBufferManager:minBufferLength:25.13416727986264 StrobeMediaPlayback.html
DEBUG:AVC: AUD, SEI, NDR slices StrobeMediaPlayback.html
DEBUG:4 tags extracted StrobeMediaPlayback.html
DEBUG:Loaded position/duration/sliding/discontinuity:16.60/0.07/0.02/false StrobeMediaPlayback.html
DEBUG:AutoBufferManager:minBufferLength:26.143236074270558 StrobeMediaPlayback.html
DEBUG:AVC: AUD, SEI, NDR slices StrobeMediaPlayback.html
DEBUG:4 tags extracted StrobeMediaPlayback.html
DEBUG:Loaded position/duration/sliding/discontinuity:16.67/0.07/0.02/false StrobeMediaPlayback.html
DEBUG:AutoBufferManager:minBufferLength:27.13587858667299 StrobeMediaPlayback.html
DEBUG:HLSAlternativeAudioTrait:numAlternativeAudioStreams:0 StrobeMediaPlayback.html
DEBUG:AVC: AUD, SEI, NDR slices StrobeMediaPlayback.html
DEBUG:4 tags extracted StrobeMediaPlayback.html
DEBUG:Loaded position/duration/sliding/discontinuity:16.74/0.07/0.02/false StrobeMediaPlayback.html
DEBUG:AutoBufferManager:minBufferLength:28.10265982267849 StrobeMediaPlayback.html
DEBUG:AVC: AUD, SEI, NDR slices StrobeMediaPlayback.html
DEBUG:4 tags extracted StrobeMediaPlayback.html
DEBUG:Loaded position/duration/sliding/discontinuity:16.81/0.07/0.02/false StrobeMediaPlayback.html
DEBUG:AutoBufferManager:minBufferLength:29.493112947658403 StrobeMediaPlayback.html
DEBUG:AVC: AUD, SEI, NDR slices StrobeMediaPlayback.html
DEBUG:4 tags extracted StrobeMediaPlayback.html
DEBUG:Loaded position/duration/sliding/discontinuity:16.88/0.07/0.02/false StrobeMediaPlayback.html
DEBUG:AutoBufferManager:minBufferLength:30 StrobeMediaPlayback.html
DEBUG:HLSAlternativeAudioTrait:numAlternativeAudioStreams:0 StrobeMediaPlayback.html
DEBUG:TS: complete ID3 PES found, parse it StrobeMediaPlayback.html
DEBUG:10 tags extracted StrobeMediaPlayback.html
DEBUG:Loaded position/duration/sliding/discontinuity:16.95/0.22/0.02/false StrobeMediaPlayback.html
DEBUG:AutoBufferManager:minBufferLength:30 StrobeMediaPlayback.html
DEBUG:18 tags extracted StrobeMediaPlayback.html
DEBUG:Loaded position/duration/sliding/discontinuity:17.16/0.41/0.02/false StrobeMediaPlayback.html
DEBUG:AutoBufferManager:minBufferLength:29.329116426171183 StrobeMediaPlayback.html
DEBUG:TS: flushing demux StrobeMediaPlayback.html
DEBUG:TS: complete Audio PES found at end of segment, parse it StrobeMediaPlayback.html
DEBUG:TS: complete AVC PES found at end of segment, parse it StrobeMediaPlayback.html
DEBUG:AVC: AUD, SEI, NDR slices StrobeMediaPlayback.html
DEBUG:TS: flush 5 tags StrobeMediaPlayback.html
DEBUG:5 tags extracted StrobeMediaPlayback.html
DEBUG:Loaded position/duration/sliding/discontinuity:17.58/0.07/0.02/false StrobeMediaPlayback.html
DEBUG:AutoBufferManager:minBufferLength:29.084811854162602 StrobeMediaPlayback.html
DEBUG:TS: parsing complete StrobeMediaPlayback.html
DEBUG:m/M audio PTS:-39557462/-39552333 StrobeMediaPlayback.html
DEBUG:m/M video PTS:-39557441/-39552989 StrobeMediaPlayback.html
DEBUG:Delta audio/video m/M PTS:21/-656 StrobeMediaPlayback.html
DEBUG:Total Process duration/length/bw:18657/786968/330 kb/s StrobeMediaPlayback.html
DEBUG:Loaded 3 of [0,4],level 0 m/M PTS:-39557462/-39552333 StrobeMediaPlayback.html
DEBUG:AutoBufferManager:minBufferLength:29.100409436537333 StrobeMediaPlayback.html
DEBUG:loadnextfragment() StrobeMediaPlayback.html
DEBUG:Loading 4 of [0,4],level 0 StrobeMediaPlayback.html
DEBUG:loading fragment:http://livetools.ramp.com/FileResource/HLSMulticastChecker/adtsbug/http-3a-2f-2f192.168.21.50-3a1935-2flive-2flive-2fmedia-2dugo7pf9xo_55771.ts
StrobeMediaPlayback.html
durationchange Object { duration: 18.682 } StrobeMediaPlayback.html:61:15
DEBUG:probe fragment type StrobeMediaPlayback.html
DEBUG:MPEG2-TS found StrobeMediaPlayback.html
DEBUG:loading completed StrobeMediaPlayback.html
DEBUG:Loading duration/RTT/length/speed:300/190/58656/1528 kb/s StrobeMediaPlayback.html
DEBUG:TS: PAT found.PMT PID:4095 StrobeMediaPlayback.html
DEBUG:TS: PMT found StrobeMediaPlayback.html
DEBUG:TS: Selected ID3 PID: 258 StrobeMediaPlayback.html
DEBUG:TS: Selected video PID: 256 StrobeMediaPlayback.html
DEBUG:TS: Found 1 audio tracks StrobeMediaPlayback.html
DEBUG:TS: selected AAC PID: 257 StrobeMediaPlayback.html
DEBUG:HLSAlternativeAudioTrait:numAlternativeAudioStreams:0 StrobeMediaPlayback.html
DEBUG:AVC: AUD, SPS, PPS, IDR slices StrobeMediaPlayback.html
DEBUG:AVC: width/height:320/178 StrobeMediaPlayback.html
DEBUG:AVC: H264 Baseline level 12 StrobeMediaPlayback.html
DEBUG:1 tags extracted StrobeMediaPlayback.html
DEBUG:AVC: AUD, NDR slices StrobeMediaPlayback.html
DEBUG:HLSAlternativeAudioTrait:numAlternativeAudioStreams:0 StrobeMediaPlayback.html
INFO:HLSPlayTrait:playStateChangeStart:stopped StrobeMediaPlayback.html
INFO:HLSNetStream:close StrobeMediaPlayback.html
DEBUG:TS: cancel demux StrobeMediaPlayback.html
DEBUG:[PLAYBACK_STATE] from PLAYING_BUFFERING to IDLE StrobeMediaPlayback.html
DEBUG:cancel any manifest load in progress StrobeMediaPlayback.html
DEBUG:HLSBufferTrait:_stateChangedHandler:setBuffering(false) StrobeMediaPlayback.html
DEBUG:[SEEK_STATE] from SEEKED to IDLE StrobeMediaPlayback.html
DEBUG:HLSMediaElement:processUnloadingState StrobeMediaPlayback.html
DEBUG:HLSBufferTrait:dispose StrobeMediaPlayback.html
DEBUG:HLSTimeTrait:dispose StrobeMediaPlayback.html
DEBUG:HLSAlternativeAudioTrait:numAlternativeAudioStreams:0 StrobeMediaPlayback.html
DEBUG:HLSDisplayObjectTrait:dispose StrobeMediaPlayback.html
DEBUG:HLSAlternativeAudioTrait:numAlternativeAudioStreams:0 StrobeMediaPlayback.html
DEBUG:HLSPlayTrait:dispose StrobeMediaPlayback.html
DEBUG:HLSSeekTrait:dispose StrobeMediaPlayback.html
DEBUG:HLSAlternativeAudioTrait:dispose StrobeMediaPlayback.html
INFO:HLSNetStream:close StrobeMediaPlayback.html
durationchange Object { duration: 0 } StrobeMediaPlayback.html:61:15
loadedmetadata Object { readyState: 1, videoWidth: NaN, videoHeight: NaN } StrobeMediaPlayback.html:61:15

@mangui
Copy link
Owner

mangui commented Aug 17, 2015

these are truncated debug logs, i can't help with that.
you need to either provide an access to your playlist OR complete debug logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants