Screen Capture HX: no timecodes

roelvz

New member
Hello,

I adapted the NDIlib_Recv example application to print out the timecode and timestamp fields. When receiving a source from Screen Capture HX, only the timestamp is filled in. timecode is always 0. Here's some example logging:
Audio data received (1024 samples, timecode = 0, timestamp = 16202842691304035)
Audio data received (1024 samples, timecode = 0, timestamp = 16202842691517311)
Audio data received (1024 samples, timecode = 0, timestamp = 16202842691730488)
Video data received (1920x1080, timecode = 0, timestamp = 16202842691905979)
Audio data received (1024 samples, timecode = 0, timestamp = 16202842691943540)
Video data received (1920x1080, timecode = 0, timestamp = 16202842692303982)
Audio data received (1024 samples, timecode = 0, timestamp = 16202842692156504)
Audio data received (1024 samples, timecode = 0, timestamp = 16202842692370186)
Audio data received (1024 samples, timecode = 0, timestamp = 16202842692583729


We use this timecode in our receiving application for doing A/V sync. Is there a reason it is not filled in? Or is this a bug?
 
Last edited:

roelvz

New member
We have used the full NDI Screen Capture until now, where we preferred the timecode because it advances at a constant rate (in contrary to the timestamp):
Audio data received (1920 samples, timecode = 16200538958556250, timestamp = 16200538957515448)
Audio data received (3840 samples, timecode = 16200538959356250, timestamp = 16200538958265125)
Audio data received (1920 samples, timecode = 16200538959756250, timestamp = 16200538958715670)
Audio data received (3840 samples, timecode = 16200538960556250, timestamp = 16200538959459681)
Audio data received (1920 samples, timecode = 16200538960956250, timestamp = 16200538959917369)
Audio data received (3840 samples, timecode = 16200538961756250, timestamp = 16200538960665605)
Audio data received (1920 samples, timecode = 16200538962156250, timestamp = 16200538961115274)
Audio data received (3840 samples, timecode = 16200538962956250, timestamp = 16200538961864254)
Audio data received (1920 samples, timecode = 16200538963356250, timestamp = 16200538962315592)


TBH I always wondered which of the two would be the best choice, but I think timecode does looks the better choice here.

Of course we can use the timestamp instead, though I still wonder, is there any particular reason why timecode is not filled in by Screen Capture HX.
 
Top Bottom