我正在将Jmeter 5.3与流式插件(HLS插件3.0.2)一起使用。 MPEG-DASH一切正常,但是使用HLS时,出现以下错误:
2020-05-26 12:14:45,341 INFO o.a.j.t.ThreadGroup: Starting thread group... number=1 threads=5 ramp-up=2 delayedStart=false
2020-05-26 12:14:45,342 INFO o.a.j.t.JMeterThread: Thread started: Thread Group 1-1
2020-05-26 12:14:45,343 INFO o.a.j.t.ThreadGroup: Started thread group number 1
2020-05-26 12:14:45,343 INFO o.a.j.e.StandardJMeterEngine: All thread groups have been started
2020-05-26 12:14:45,371 ERROR o.a.j.t.JMeterThread: Error while processing sampler: 'bzm_Streaming_Sampler'.
java.lang.NullPointerException: null
at com.blazemeter.jmeter.videostreaming.hls.Playlist.getRenditionUri(Playlist.java:103) ~[jmeter-bzm-hls-3.0.2.jar:?]
at com.blazemeter.jmeter.videostreaming.hls.Playlist.solveMediaStream(Playlist.java:72) ~[jmeter-bzm-hls-3.0.2.jar:?]
at com.blazemeter.jmeter.videostreaming.hls.HlsSampler.sample(HlsSampler.java:43) ~[jmeter-bzm-hls-3.0.2.jar:?]
at com.blazemeter.jmeter.videostreaming.core.VideoStreamingSampler.sample(VideoStreamingSampler.java:79) ~[jmeter-bzm-hls-3.0.2.jar:?]
at com.blazemeter.jmeter.hls.logic.HlsSampler.sample(HlsSampler.java:184) ~[jmeter-bzm-hls-3.0.2.jar:?]
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1270) ~[ApacheJMeter_http.jar:5.3]
at org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:630) ~[ApacheJMeter_core.jar:5.3]
at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:558) ~[ApacheJMeter_core.jar:5.3]
at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:489) [ApacheJMeter_core.jar:5.3]
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:256) [ApacheJMeter_core.jar:5.3]
at java.lang.Thread.run(Thread.java:832) [?:?]
主播放列表如下:
#EXTM3U
## Generated with https://github.com/google/shaka-packager version v2.3.0-atx-0.3-6642829-release
#EXT-X-MEDIA:TYPE=AUDIO,URI="0/audio-hls.m3u8",GROUP-ID="audio",NAME="English",AUTOSELECT=YES,CHANNELS="2"
#EXT-X-MEDIA:TYPE=CLOSED-CAPTIONS,GROUP-ID="cc",NAME="English",LANGUAGE="en",DEFAULT=YES,AUTOSELECT=YES,INSTREAM-ID="CC1"
#EXT-X-STREAM-INF:BANDWIDTH=3202127,AVERAGE-BANDWIDTH=2008141,CODECS="avc1.4d0029,mp4a.40.2",RESOLUTION=1280x720,FRAME-RATE=29.970,AUDIO="audio",CLOSED-CAPTIONS="cc"
0/video-hls.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=1668708,AVERAGE-BANDWIDTH=1108892,CODECS="avc1.4d0029,mp4a.40.2",RESOLUTION=853x480,FRAME-RATE=29.970,AUDIO="audio",CLOSED-CAPTIONS="cc"
1/video-hls.m3u8
任何想法可能是什么问题?或如何进一步解决此问题?
与我有同样的问题。我认为HLS和Jmeter兼容性问题。