1 /*****************************************************************************
2 * stats.c : stats plugin for vlc
3 *****************************************************************************
4 * Copyright (C) 2000-2008 the VideoLAN team
6 * Authors: Samuel Hocevar <sam@zoy.org>
7 * Pierre d'Herbemont <pdherbemont@videolan.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( N_("Stats"))
49 set_description( N_("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( N_("Stats decoder function") )
56 set_capability( "decoder", 0 )
57 add_shortcut( "stats" )
58 set_callbacks( OpenDecoder, CloseDecoder )
60 set_section( N_( "Stats demux" ), NULL )
61 set_description( N_("Stats demux function") )
62 set_capability( "demux", 0 )
63 add_shortcut( "stats" )
64 set_callbacks( OpenDemux, CloseDemux )