Changeset acf4606c17f89631b8a3568d0824a4dcab6ebbb6

Show
Ignore:
Timestamp:
10/03/05 18:23:43 (4 years ago)
Author:
Christophe Massiot <massiot@videolan.org>
git-committer:
Christophe Massiot <massiot@videolan.org> 1110475423 +0000
git-parent:

[9cb4d58cce49e1a1687bd51dfb9a12cb4a5b6a1f]

git-author:
Christophe Massiot <massiot@videolan.org> 1110475423 +0000
Message:

* modules/stream_out/switcher.c: New module allowing to replace an MPEG2

video by a fixed panel (format .uyvy). Specify panel files with
--sout-switcher-files=toto.uyvy,tata.uyvy,titi.uyvy and the size of
pictures with --sout-switcher-sizes=720x576,720x576,480x576.
--sout-switcher-port=4242 opens up a UDP port. echo 1 | nc -u localhost 4242
switches to panel #1 (0 is the live video, -1 disables all output).
The audio is blanked out when a panel is active. --sout-switcher-command
specifies the first command to run on start-up.

* modules/access/fake.c: Fake video input simulating a video at x fps.

Use it to switch between fixed panels with the switcher when you have
no video.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • configure.ac

    r25c37b3 racf4606  
    985985VLC_ADD_PLUGINS([i420_rgb rawvideo blend scale image logo]) 
    986986VLC_ADD_PLUGINS([wav araw subtitle vobsub adpcm a52sys dtssys au voc xa]) 
    987 VLC_ADD_PLUGINS([access_directory access_file access_udp access_tcp]) 
     987VLC_ADD_PLUGINS([access_directory access_file access_udp access_tcp access_fake]) 
    988988VLC_ADD_PLUGINS([access_http access_mms access_ftp ipv4]) 
    989989VLC_ADD_PLUGINS([packetizer_mpegvideo packetizer_h264]) 
     
    19961996    AC_CHECK_HEADERS(ffmpeg/avcodec.h) 
    19971997    AC_CHECK_HEADERS(postproc/postprocess.h) 
    1998     VLC_ADD_PLUGINS([ffmpeg]) 
    1999     VLC_ADD_CFLAGS([ffmpeg],[`${FFMPEG_CONFIG} --cflags`]) 
     1998    VLC_ADD_PLUGINS([ffmpeg stream_out_switcher]) 
     1999    VLC_ADD_CFLAGS([ffmpeg stream_out_switcher],[`${FFMPEG_CONFIG} --cflags`]) 
    20002000    VLC_ADD_LDFLAGS([ffmpeg],[`${FFMPEG_CONFIG} --plugin-libs avcodec avformat postproc`]) 
    20012001  else 
     
    20322032      AC_CHECK_HEADERS(postproc/postprocess.h, [], [AC_MSG_ERROR([Missing header file postproc/postprocess.h.])] ) 
    20332033      AC_CHECK_LIB(avcodec, avcodec_init, [ 
    2034         VLC_ADD_BUILTINS([ffmpeg]) 
     2034        VLC_ADD_BUILTINS([ffmpeg stream_out_switcher]) 
    20352035        VLC_ADD_LDFLAGS([ffmpeg],[-lavcodec])], 
    20362036         [ AC_MSG_ERROR([Could not find ffmpeg on your system: you may get it from http://ffmpeg.sf.net/ (cvs version is recommended). Alternatively you can use --disable-ffmpeg to disable the ffmpeg plugins.]) ]) 
     
    20972097      fi 
    20982098 
    2099       VLC_ADD_BUILTINS([ffmpeg]) 
     2099      VLC_ADD_BUILTINS([ffmpeg stream_out_switcher]) 
    21002100      VLC_ADD_LDFLAGS([ffmpeg],[-L${real_ffmpeg_tree}/libavcodec ${real_ffmpeg_tree}/libavcodec/libavcodec.a]) 
    2101       VLC_ADD_CPPFLAGS([ffmpeg],[-I${real_ffmpeg_tree}/libavcodec]) 
     2101      VLC_ADD_CPPFLAGS([ffmpeg stream_out_switcher],[-I${real_ffmpeg_tree}/libavcodec]) 
    21022102 
    21032103      if test -f "${real_ffmpeg_tree}/libavformat/libavformat.a"; then 
    21042104        AC_DEFINE(HAVE_LIBAVFORMAT, 1, [Define if you have ffmpeg's libavformat.]) 
    21052105        VLC_ADD_LDFLAGS([ffmpeg],[-L${real_ffmpeg_tree}/libavformat ${real_ffmpeg_tree}/libavformat/libavformat.a]) 
    2106         VLC_ADD_CPPFLAGS([ffmpeg],[-I${real_ffmpeg_tree}/libavformat]) 
     2106        VLC_ADD_CPPFLAGS([ffmpeg stream_out_switcher],[-I${real_ffmpeg_tree}/libavformat]) 
    21072107      fi 
    21082108    fi 
     
    21472147      VLC_ADD_CPPFLAGS([ffmpegaltivec],[-I${real_ffmpeg_tree}/libavformat]) 
    21482148    fi 
     2149    VLC_ADD_LDFLAGS([stream_out_switcher],[-L${real_ffmpeg_tree}/libavcodec]) 
     2150    VLC_ADD_CPPFLAGS([stream_out_switcher],[-I${real_ffmpeg_tree}/libavcodec -I${real_ffmpeg_tree}/libavformat]) 
    21492151  fi 
    21502152fi 
  • modules/access/Modules.am

    r0e27492 racf4606  
    99SOURCES_dvdread = dvdread.c 
    1010SOURCES_slp = slp.c 
     11SOURCES_access_fake = fake.c 
    1112SOURCES_cdda = \ 
    1213        cdda.c \ 
  • modules/stream_out/Modules.am

    raba6d6b racf4606  
    1010SOURCES_stream_out_gather = gather.c 
    1111SOURCES_stream_out_rtp = rtp.c 
     12SOURCES_stream_out_switcher = switcher.c