A list of useful commands for the ffmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
version: '3.3' | |
services: | |
source_vehicle_zero_point_out: | |
image: ghcr.io/insight-platform/savant-adapters-gstreamer:latest | |
container_name: source-vehicle-33fbd6b3-b721-4be6-8ac3-e652da8d4682 | |
entrypoint: /opt/savant/adapters/gst/sources/rtsp.sh | |
environment: | |
- SYNC_OUTPUT=True | |
- SOURCE_ID=33fbd6b3-b721-4be6-8ac3-e652da8d4682 |
version: '3.3' | |
services: | |
mongodb-sink-people: | |
build: | |
context: . | |
dockerfile: Dockerfile.adapters-py | |
restart: unless-stopped | |
network_mode: "host" | |
environment: | |
- ZMQ_ENDPOINT=sub+connect:tcp://127.0.0.1:4001 |
A list of useful commands for the ffmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
from pynamodb.models import Model | |
from pynamodb.attributes import ( | |
UnicodeAttribute, | |
JSONAttribute | |
) | |
from settings import DYNAMO_SETTINGS | |
__all__ = [ | |
"TwitterStreamData", | |
"TwitterExcelData", |
from google.cloud import bigquery | |
# from google.cloud.storage import Blob, Client as storage_client | |
from google.cloud import storage | |
import uuid | |
import time | |
class BigQueryToGCS(object): | |
def __init__(self, load_config_from_json=True): | |
self.config_from_file = load_config_from_json |
import multiprocessing | |
import time | |
class runner(object): | |
jobs =[] |
[{'count': 1, 'type': u'Twitter Web Client'}, {'count': 1, 'type': u'Twitter for Android'}, {'count': 1, 'type': u'Twitter for Android'}, {'count': 1, 'type': u'Twitter for iPhone'}, {'count': 1, 'type': u'Twitter for Android'}, {'count': 1, 'type': u'Twitter for Android'}, {'count': 1, 'type': u'Twitter for Android'}, {'count': 1, 'type': u'Twitter Web Client'}, {'count': 1, 'type': u'Twitter Web Client'}, {'count': 1, 'type': u'Mobile Web (M5)'}, {'count': 1, 'type': u'Mobile Web (M5)'}, {'count': 1, 'type': u'Twitter Web Client'}, {'count': 1, 'type': u'Twitter Web Client'}, {'count': 1, 'type': u'Twitter Web Client'}, {'count': 1, 'type': u'Twitter Web Client'}, {'count': 1, 'type': u'Twitter Web Client'}, {'count': 1, 'type': u'Twitter Web Client'}, {'count': 1, 'type': u'Twitter Web Client'}, {'count': 1, 'type': u'Twitter Web Client'}, {'count': 1, 'type': u'Twitter Web Client'}, {'count': 1, 'type': u'Twitter Web Client'}, {'count': 1, 'type': u'Twitter Web Client'}, {'count': 1, 'type': u'Twitter Web |
from datetime import datetime | |
def convert_twitter_date_time_to_object(twitter_date_time): | |
try: | |
#_date = datetime.strptime("Thu Feb 23 13:42:39 +0000 2017", '%a %b %d %H:%M:%S +0000 %Y') | |
_date = datetime.strptime(twitter_date_time, '%a %b %d %H:%M:%S +0000 %Y') | |
return _date | |
except Exception as e: | |
return e.message |