This file contains hidden or 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
| class VideoWorker | |
| include Sidekiq::Worker | |
| def perform(id, s3_key) | |
| # Get the video | |
| video = Video.find(id) | |
| # Call ffmpeg to measure duration | |
| duration = `ffmpeg -i '#{video.ffmpeg_url}' 2>&1 | grep Duration | awk '{print $2}' | tr -d ,` |
This file contains hidden or 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
| Verifying my Blockstack ID is secured with the address 18nsbj4hQKPv8wY3ih4hToN8Rgms9PxXns https://explorer.blockstack.org/address/18nsbj4hQKPv8wY3ih4hToN8Rgms9PxXns |
OlderNewer