path: root/stream/tv.h
diff options
authorvoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-10-13 17:14:39 +0000
committervoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-10-13 17:14:39 +0000
commit45287b2c2b9213d7bcfe443125e2aae6ef5a22dc (patch)
treedb5a2ca75130023f5db98c520546bff147620489 /stream/tv.h
parentf512c465264a71129636521dd5276572bbbbb397 (diff)
DirectShow based tv:// driver for win32
Teletext is also supported (but 625 system parameters are hardcoded). pthreads is required for teletext. Code is still experimental. git-svn-id: svn:// b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/tv.h')
1 files changed, 35 insertions, 2 deletions
diff --git a/stream/tv.h b/stream/tv.h
index ff04a901d3..acd78f108f 100644
--- a/stream/tv.h
+++ b/stream/tv.h
@@ -11,7 +11,7 @@ typedef struct tv_param_s {
char *chanlist;
char *norm;
int automute;
-#ifdef HAVE_TV_V4L2
+#if defined(HAVE_TV_V4L2) || defined(HAVE_TV_DSHOW)
int normid;
char *device;
@@ -26,15 +26,18 @@ typedef struct tv_param_s {
int immediate;
int audiorate;
int audio_id;
-#if defined(HAVE_TV_V4L)
+#if defined(HAVE_TV_V4L) || defined(HAVE_TV_DSHOW)
int amode;
int volume;
+#if defined(HAVE_TV_V4L)
int bass;
int treble;
int balance;
int forcechan;
int force_audio;
int buffer_size;
+#if defined(HAVE_TV_V4L)
int mjpeg;
int decimation;
int quality;
@@ -43,6 +46,7 @@ typedef struct tv_param_s {
char* adevice;
int brightness;
int contrast;
int hue;
@@ -56,6 +60,35 @@ typedef struct tv_param_s {
int scan;
int scan_threshold;
float scan_period;
+ /**
+ Terminate stream with video renderer instead of Null renderer
+ Will help if video freezes but audio does not.
+ May not work with -vo directx and -vf crop combination.
+ */
+ int hidden_video_renderer;
+ /**
+ For VIVO cards VP pin have to be rendered too.
+ This tweak will cause VidePort pin stream to be terminated with video renderer
+ instead of removing it from graph.
+ Use if your card have vp pin and video is still choppy.
+ May not work with -vo directx and -vf crop combination.
+ */
+ int hidden_vp_renderer;
+ /**
+ Use system clock as sync source instead of default graph clock (usually the clock
+ from one of live sources in graph.
+ */
+ int system_clock;
+ /**
+ Some audio cards creates audio chunks with about 0.5 sec size.
+ This can cause choppy video when using mplayer with immediatemode=0
+ Use followingtweak to decrease audio chunk sizes.
+ It will create audio chunks with time length equal to one video frame time.
+ */
+ int normalize_audio_chunks;
} tv_param_t;
extern tv_param_t stream_tv_defaults;