nrkno/sofie-casparcg-server

cinf return wrong data of duration of video

Closed 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.

https://github.com/CasparCG/help/wiki/AMCP-Protocol#cinf

Hi @Julusian ,

i would that amcp return total frames and duration in seconds.
/cinf/
{
...
seconds: '10.72'
}