Commit 264c7a80 authored by Jan Gerber's avatar Jan Gerber
Browse files

add some info on frontendmode

parent 1220f889
example in python to parse ffmpeg2theora in frontend mode:
import os
cmd = "ffmpeg2theora --frontend ..."
f_stdout, f_stdin, f = os.popen3(cmd)
info = {}
line = f.readline()
while line:
if line.startswith('f2t'):
for o in line.split(';')[1:]:
oo = o.split(': ')
if len(oo) >= 2:
info[oo[0]] = ": ".join(oo[1:]).strip()
#do something with info dict here
line = f.readline()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment