format timecode in hh:mm:ss[:;]ff
Closed this issue · 1 comments
dericed commented
Currently the timecode outputs is like:
$ sony9pin 8 2
Info: open device cu.usbserial-AB0L8UIT.
Info: open device OK.
Info: timer1.
Info: timer1 issue.
<Nak Response>
TimeCode: 0 : 0 : 0 ; 0 , CF: 0 DF: 1
$ sony9pin 8 p
Info: open device cu.usbserial-AB0L8UIT.
Info: open device OK.
Info: play.
$ sony9pin 8 1+2+3
Info: open device cu.usbserial-AB0L8UIT.
Info: open device OK.
Info: get device type.
Info: device type is 0xa098.
$ sony9pin 8 1
Info: open device cu.usbserial-AB0L8UIT.
Info: open device OK.
Info: get device type.
Info: device type is 0xa098.
$ sony9pin 8 2
Info: open device cu.usbserial-AB0L8UIT.
Info: open device OK.
Info: timer1.
Info: timer1 issue.
<Nak Response>
TimeCode: 0 : 0 : 0 ; 0 , CF: 0 DF: 1
$ sony9pin 8 3
Info: open device cu.usbserial-AB0L8UIT.
Info: open device OK.
Info: timer2.
Info: timer2 issue.
<Nak Response>
TimeCode: 0 : 2 : 44 ; 28 , CF: 0 DF: 1
$ sony9pin 8 4
Info: open device cu.usbserial-AB0L8UIT.
Info: open device OK.
Info: ltc_tc_ub.
Info: ltc_tc_ub issue.
<Nak Response>
TimeCode: 0 : 2 : 44 ; 28 , CF: 0 DF: 1
UserBits: h D
$ sony9pin 8 5
Info: open device cu.usbserial-AB0L8UIT.
Info: open device OK.
Info: vitc_tc_ub.
Info: vitc_tc_ub issue.
<Nak Response>
TimeCode: 0 : 2 : 44 ; 28 , CF: 0 DF: 1
UserBits: h D
I suggest to move these style outputs to a verbose mode.
Info: open device cu.usbserial-AB0L8UIT.
Info: open device OK.
Info: vitc_tc_ub.
Info: vitc_tc_ub issue.
<Nak Response>
and to format the timecode to traditional expressions.
TimeCode: 0 : 2 : 44 ; 28 , CF: 0 DF: 1
as
tc=00:02:44;28 cf=0
JeromeMartinez commented
for keeping coherency between lines and not losing info e.g. DF, I plan to implement:
TimeCode: 00:02:44;28 CF: 0 DF: 1