Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma
You can get the list of supported formats with:
ffmpeg -formats
You can get the list of installed codecs with:
| from sshtunnel import SSHTunnelForwarder | |
| from sqlalchemy import create_engine | |
| from sqlalchemy.orm import sessionmaker | |
| from functools import wraps | |
| # secrets.py contains credentials, etc. | |
| import secrets | |
| def get_engine_for_port(port): | |
| return create_engine('postgresql://{user}:{password}@{host}:{port}/{db}'.format( |
| #!/usr/bin/env python | |
| """ | |
| Note!!: Changed mlogic to use keep_output flag instead, see Code. | |
| And changed name to nb_drop_output.py | |
| Original from https://gist.github.com/pbugnion/ea2797393033b54674af , including comments there | |
| Suppress output and prompt numbers in git version control. | |
| This script will tell git to ignore prompt numbers and cell output |
| from __future__ import print_function | |
| import requests | |
| import json | |
| import cv2 | |
| addr = 'http://localhost:5000' | |
| test_url = addr + '/api/test' | |
| # prepare headers for http request | |
| content_type = 'image/jpeg' |
| #!/bin/bash | |
| # | |
| # DESCRIPTION: | |
| # | |
| # Set the bash prompt according to: | |
| # * the active virtualenv | |
| # * the branch/status of the current git repository | |
| # * the return value of the previous command | |
| # * the fact you just came from Windows and are used to having newlines in | |
| # your prompts. |