[MEncoder-users] growth bar on linux
rastersoft
raster at rastersoft.com
Thu Aug 7 22:51:40 CEST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
David Smith escribió:
> I all,
Hi David:
> First of all I apologize for my poor English...
Me too :)
> I'm using mencoder in a shell script (linux) and I want to make a
> growth bar which indicate progress status of encoding with bash and
> dialog.
>
> --gauge seems to be suitable for that but it needs integer which
> indicate the growth level of encoding.
>
> Of course there is mencoder statusline :
> Pos: 168.1s 4640f (90%) 35fps Trem: 1min 56mb A-V:-0.018 [2378:192]
>
> but I don't know how to retrieve the Pos: number every minute by
> example.
>
> Any clue ? Thanks in advance
Maybe you may want to try with python instead of bash. Just read the
output line per line, and parse it. You should use the percentage
instead the time.
You can see an example in DeVeDe, which does exactly that (but uses GTK
instead of Dialog).
http://www.rastersoft.com/programas/devede.html
- --
Nos leemos
RASTER (Linux user #228804)
raster at rastersoft.com http://www.rastersoft.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIm2BcXEZvyfy1ha8RAqVOAJ9s/71h7WG6FOqAuJrev+TLlILKuQCgp1dV
Sfc4OD7QH5ONp2aI5ytgqVE=
=OHLN
-----END PGP SIGNATURE-----
More information about the MEncoder-users
mailing list