1 /*****************************************************************************
2 * stats.c : stats plugin for vlc
3 *****************************************************************************
4 * Copyright (C) 2000, 2001 the VideoLAN team
7 * Authors: Samuel Hocevar <sam@zoy.org>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 *****************************************************************************/
24 /*****************************************************************************
26 *****************************************************************************/
32 #include <vlc_common.h>
33 #include <vlc_plugin.h>
38 * $ vlc movie.avi --sout="#transcode{aenc=dummy,venc=stats}:\
39 * std{access=http,mux=dummy,dst=0.0.0.0:8081}"
40 * $ vlc -vvv http://127.0.0.1:8081 --demux=stats --vout=stats --codec=stats
43 /*****************************************************************************
45 *****************************************************************************/
48 set_shortname( _("Stats"));
49 set_description( _("Stats encoder function") );
50 set_capability( "encoder", 0 );
51 add_shortcut( "stats" );
52 set_callbacks( OpenEncoder, CloseEncoder );
54 set_section( N_( "Stats decoder" ), NULL );
55 set_description( _("Stats decoder function") );
56 set_capability( "decoder", 0 );
57 set_callbacks( OpenDecoder, CloseDecoder );
59 set_section( N_( "Stats demux" ), NULL );
60 set_description( _("Stats demux function") );
61 set_capability( "demux", 0 );
62 set_callbacks( OpenDemux, CloseDemux );
64 set_section( N_( "Stats video output" ), NULL );
65 set_description( _("Stats video output function") );
66 set_capability( "video output", 0 );
67 set_callbacks( OpenVideo, NULL );