Skip to content

Instantly share code, notes, and snippets.

Live Transcoding

This is a collection of working commandline examples to show how one could use FFMpeg and VLC for live transcoding of video streams. All examples have been tested on OSX 10.7.5 with FFMPeg 1.1.3 and VLC 2.0.5 in early 2013.

Documentation links

@balazs-endresz
balazs-endresz / models.py
Last active April 3, 2024 22:58
analyze explain django queryset
from django.db import connections
from django.db.models.query import QuerySet
def explain(self):
cursor = connections[self.db].cursor()
cursor.execute('set enable_seqscan = off')
query, params = self.query.sql_with_params()
print(query % params)
cursor.execute('EXPLAIN ANALYZE %s' % query, params)