cinf return wrong data of duration of video
Jgaleas7 opened this issue · 4 comments
when I try this /cinf/ return wrong duration data.
Tested with 2.1.3_NRK server
Tested with media scanner v1.1.2-nrkno
Do you mean the CINF
AMCP command is returning the wrong value, or the /cinf
http endpoint from the scanner? This version of caspar does not use the scanner for clip info.
Both, the CINF AMCP command is returning the wrong value in duration. when I use
const getVideo=await connectionCg.cinf('AMB') return 268 of duration. but the video duration is 10 seconds.
TESTED with promise and Async/await.
Idont know how to resolve this. HELP
The duration from cinf is reported in frames. As AMB is 25fps, that gives 10.72s duration, which is what you are expecting to see.
The last field is the frame duration, so you can use that and the frame count to calculate the duration in seconds for any clip.