Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
ffmpeg2theora
Commits
264c7a80
Commit
264c7a80
authored
Sep 15, 2008
by
Jan Gerber
Browse files
add some info on frontendmode
parent
1220f889
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/frontendmode.txt
0 → 100644
View file @
264c7a80
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()
'''
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment