# Python - get first frame source timecode on PySegment

**URL:** <https://forum.logik.tv/t/python-get-first-frame-source-timecode-on-pysegment/6910>\
**Category:** Python\
**Tags:** pysegment\
**Created:** [October 10, 2022, 9:19pm UTC](https://forum.logik.tv/t/python-get-first-frame-source-timecode-on-pysegment/6910 "2022-10-10T21:19:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bryanb](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/bryanb/32/136_2.png) [@bryanb](https://forum.logik.tv/u/bryanb)\
**Post date:** [October 10, 2022, 9:19pm UTC](https://forum.logik.tv/t/python-get-first-frame-source-timecode-on-pysegment/6910/1 "2022-10-10T21:19:56Z")

</div>

I’m trying to get the the ‘in’ frame (source timecode) for a PySegment.

I have some metadata like source\_width, source\_height, source\_bit\_depth but I can’t get timecode.

Any ideas?

---

<div class="post-metadata">

**Author:** ![PhilippeJ](https://avatars.discourse-cdn.com/v4/letter/p/a5b964/32.png) [@PhilippeJ](https://forum.logik.tv/u/PhilippeJ)\
**Post date:** [October 10, 2022, 10:34pm UTC](https://forum.logik.tv/t/python-get-first-frame-source-timecode-on-pysegment/6910/2 "2022-10-10T22:34:12Z")

</div>

PySegment.source\_in

---

<div class="post-metadata">

**Author:** ![bryanb](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/bryanb/32/136_2.png) [@bryanb](https://forum.logik.tv/u/bryanb)\
**Post date:** [October 10, 2022, 11:03pm UTC](https://forum.logik.tv/t/python-get-first-frame-source-timecode-on-pysegment/6910/3 "2022-10-10T23:03:03Z")

</div>

Thanks Philippe. So simple.

I tried this once… probably had a typo somewhere else.
