~ubuntu-branches/ubuntu/jaunty/ffmpeg2theora/jaunty

« back to all changes in this revision

Viewing changes to frontend/frontendmode.txt

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2009-01-04 01:20:11 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20090104012011-zw1fgdu64igeugyn
Tags: 0.23-0ubuntu1
* New upstream release.
* Rebuild for libavcodec51 -> libavcodec52 transition.
* Disable the fix-includes patch.
* Add scons to Build-Depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
example in python to parse ffmpeg2theora in frontend mode:
 
2
 
 
3
'''
 
4
import os
 
5
 
 
6
cmd = "ffmpeg2theora  --frontend ..."
 
7
f_stdout, f_stdin, f = os.popen3(cmd)
 
8
info = {}
 
9
line = f.readline()
 
10
while line:
 
11
    if line.startswith('f2t'):
 
12
        for o in line.split(';')[1:]:
 
13
            oo = o.split(': ')
 
14
            if len(oo) >= 2:
 
15
                info[oo[0]] = ": ".join(oo[1:]).strip()
 
16
 
 
17
    #do something with info dict here
 
18
 
 
19
    line = f.readline()
 
20
'''
 
21