blackhole failed ffprobe parsing
parent
d3f057de61
commit
12f070d237
|
@ -46,6 +46,7 @@ module.exports = (s,config,lang) => {
|
|||
}
|
||||
const streams = probeResult.streams || []
|
||||
streams.forEach((stream) => {
|
||||
try{
|
||||
const codecType = stream.codec_type || 'video'
|
||||
const simpleInfo = {
|
||||
fps: eval(stream.r_frame_rate) || '',
|
||||
|
@ -56,6 +57,9 @@ module.exports = (s,config,lang) => {
|
|||
}
|
||||
streamIndex.all.push(simpleInfo)
|
||||
streamIndex[codecType].push(simpleInfo)
|
||||
}catch(err){
|
||||
console.log(err)
|
||||
}
|
||||
})
|
||||
if(streamIndex.video.length === 0){
|
||||
streamIndex.video.push({
|
||||
|
|
Loading…
Reference in New Issue