Search the Community

Showing results for tags 'api review video'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Company news
    • General announcements
  • ftrack Studio (main app)
    • General discussion
    • Feature requests
    • API
    • Help
    • Actions and Widgets
    • ftrack Go
  • ftrack Review
    • General discussion
    • Feature requests
    • Help
  • Connect and plugins
    • General discussion
    • Connect package releases
    • Feature requests
    • Help
    • Connect plugins releases
  • Advisory Forum
  • Tech preview
    • API
    • New integrations
    • Studio overview
    • ftrack Review

Categories

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 1 result

  1. Hello, I've got great headache with publishing versions with video for review with python api. My goal is to get exactly same behaviour as wheen using drag and drop: - Encode video - Video sould be playable in web player and in web review tool - Thumbnail You know how it should look, obviously: At first I tried to do as documentation says. just: asset_type = session.query('AssetType where name is "Upload"').one() f_asset = session.create('Asset', { 'name': 'cg0019_prm_05', 'type': asset_type, 'parent': f_shot }) asset_version = session.create('AssetVersion', { 'asset': f_asset, 'task': f_shot }) component = asset_version2.create_component( path='D:\\yandex\\YandexDisk\\WOF\\tmp\\_bd_to_ftrack\\ml\\prm\\cg0019_prm_v001.mov', data={ 'name': 'ftrackreview-mp4' }, location=server_location ) component['metadata']['ftr_meta'] = json.dumps({ 'frameIn': 0, 'frameOut': 33, 'frameRate': 24 }) component.session.commit() After executing that video file successfuly uploaded to ftrack.server and version is generated. BUT: - Video isn't playable in web player (I could only download it and play locally) - There are no thumbnail looks completely diffrent from drag-n-drop version: Ok I added encoding at the end before commit: #blah blah bla same code as before component['metadata']['ftr_meta'] = json.dumps({ 'frameIn': 0, 'frameOut': 33, 'frameRate': 24 }) job2 = session.encode_media(component) component.session.commit() I see that Encoding job has been added to the queue, but results are the same Ok I made thumbnail by myself and upload it separately: thumbnail = session.create_component(path='D:\\yandex\\YandexDisk\\WOF\\tmp\\_bd_to_ftrack\\ml\\tbn\\cg0019_prm.jpg', data={'name': 'thumbnail'}, location=server_location) asset_version2['thumbnail'] = thumbnail Now I've got thumbnail! (But it isn't right I used to write stuff fo three other project managment systems - all of them have a way to automatically create thumbnail one way or another, so I think it should be a way in ftrack too) But video still doesnt work. Trying to upload and encode it separately: component = session.create_component(path='D:\\yandex\\YandexDisk\\WOF\\tmp\\_bd_to_ftrack\\ml\\prm\\cg0019_prm_v001.mov', data={'name': 'ftrackreview-mp4'}, location=server_location) component['metadata']['ftr_meta'] = json.dumps({ 'frameIn': 0, 'frameOut': 33, 'frameRate': 24 }) session.commit() job2 = session.encode_media(component) asset_type2 = session.query('AssetType where name is "Upload"').one() f_asset2 = session.create('Asset', { 'name': 'cg0019_prm_03_mov', 'type': asset_type2, 'parent': f_shot2 }) asset_version2 = session.create('AssetVersion', { 'asset': f_asset2, 'task': f_shot2 }) asset_version2['components'] = [component] thumbnail = session.create_component(path='D:\\yandex\\YandexDisk\\WOF\\tmp\\_bd_to_ftrack\\ml\\tbn\\cg0019_prm.jpg', data={'name': 'thumbnail'}, location=server_location) asset_version2['thumbnail'] = thumbnail session.commit() Same result. What am I doing wrong?