This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for f in *.mov; do ffmpeg -y -i "$f" -f image2 -ss 10 -vframes 1 -an "${f%.mov}.jpg"; done |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
/ This sample code demonstrates applying a Folder template to a Frame.io Project. | |
/ A Zapier Code Step must be configured to catch webhook events emitted by Frame.io. | |
/ Learn about Frame.io webhooks: https://docs.frame.io/docs/webhooks | |
/ Learn about using JavaScript in Zapier: https://zapier.com/help/create/code-webhooks/use-javascript-code-in-zaps | |
*/ | |
// Destructure Zapier-defined variables | |
const { teamId, userId, resourceId, AUTH_TOKEN_KEY } = inputData; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
""" | |
This code demonstrates how to catch Frame.io comments in Zapier | |
to route them to another app such as Google Docs or Excel. | |
The following refactors could improve this code: | |
1. input_data (populated by Zapier) should be presumed to be a comment_id, | |
not an asset_id. This would simplify the code and reduce API calls. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Destructure Zapier-defined variables | |
const { teamId, userId, resourceId, AUTH_TOKEN_KEY } = inputData; | |
// Frame.io variables. To run on Zapier you must provide your API Token | |
const AuthHeader = { | |
Authorization: `Bearer ${AUTH_TOKEN_KEY}`, | |
'Content-Type': 'application/json' | |
}; | |
const API_URL = "https://api.frame.io/v2"; |