[vlc-devel] Help please with this

Kaarlo Räihä agent_007 at luukku.com
Tue Jan 19 08:25:38 CET 2010


none d kirjoitti 19.01.2010 kello 05:20:
> 
> I would like to save this stats into a text file while running VLCThe
> following lines print the stats in the console window of ubuntu, but
>  I want
> these info saved into a text file
> Any suggestion please?

Easiest thing is to pipe the error stream to file, if you can launch VLC freely.

http://talk.cmyweb.net/2008/01/24/how-to-pipe-standard-error-stderr-to-another-program/

> 
> From vlc/src/misc/stats.c
> fprintf( stderr, "Input : %i (%i bytes) - %f kB/s - "
> "Demux : %i (%i bytes) - %f kB/s\n"                     " - Vout :
>  %i/%i -
> Aout : %i/%i - Sout : %f\n",                    p_stats->i_read_packets,
> p_stats->i_read_bytes,                    p_stats->f_input_bitrate *
>  1000,
> p_stats->i_demux_read_packets,
> p_stats->i_demux_read_bytes,                   
>  p_stats->f_demux_bitrate *
> 1000,                    p_stats->i_displayed_pictures,
> p_stats->i_lost_pictures,                    p_stats->i_played_abuffers,
> p_stats->i_lost_abuffers,                    p_stats->f_send_bitrate );
> 
> Thanks 		 	   		  
> _________________________________________________________________
> Hotmail: Trusted email with powerful SPAM protection.
> http://clk.atdmt.com/GBL/go/196390707/direct/01/


....................................................................
Luukku Plus -paketilla pääset eroon tila- ja turvallisuusongelmista.
Hanki Luukku Plus ja helpotat elämääsi. http://www.mtv3.fi/luukku



More information about the vlc-devel mailing list