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:
This example illustrates how QSortFilterProxyModel and QAbstractListModel can be used to display a list of filterable items in QML and Python.
See <http://docutils.sf.net/rst.html> for introductory docs.
David Goodger <goodger@python.org>
This is a "docinfo block", or bibliographic field list
Note
If you are reading this as HTML, please read
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
"""Encrypt/decrypt files with symmetric AES cipher-block chaining (CBC) mode. | |
Usage: | |
File Encryption: | |
aescrypt.py [-f] infile [outfile] |
import logging | |
from traceback import format_exc | |
import datetime | |
from schedule import Scheduler | |
logger = logging.getLogger('schedule') | |
from kivy.config import Config | |
Config.set('graphics', 'width', '320') | |
Config.set('graphics', 'height', '480') | |
from kivy.app import App | |
from kivy.lang import Builder | |
from kivy.uix.widget import Widget | |
from kivy.uix.settings import SettingsWithNoMenu | |
from kivy.properties import StringProperty |
-- Two dashes start a one-line comment. | |
--[[ | |
Adding two ['s and ]'s makes it a | |
multi-line comment. | |
--]] | |
---------------------------------------------------- | |
-- 1. Variables and flow control. | |
---------------------------------------------------- |
#!flask/bin/python | |
from flask import Flask, jsonify, abort, request, make_response, url_for | |
from flask_httpauth import HTTPBasicAuth | |
app = Flask(__name__, static_url_path = "") | |
auth = HTTPBasicAuth() | |
@auth.get_password | |
def get_password(username): | |
if username == 'miguel': |
# coding=UTF-8 | |
import nltk | |
from nltk.corpus import brown | |
# This is a fast and simple noun phrase extractor (based on NLTK) | |
# Feel free to use it, just keep a link back to this post | |
# http://thetokenizer.com/2013/05/09/efficient-way-to-extract-the-main-topics-of-a-sentence/ | |
# Create by Shlomi Babluki | |
# May, 2013 |
// Datenbank anlegen | |
var request = indexedDB.open('html5', 1); | |
// Änderungs/Erzeugungs-Event | |
request.onupgradeneeded = function(){ | |
console.log('Datenbank angelegt'); | |
var db = this.result; | |
if(!db.objectStoreNames.contains('features')){ | |
store = db.createObjectStore('features', { | |
keyPath: 'key', |