Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[mpeg2] MPEG-1 works for me now
Ralph, whatever you changed in kfir.c, it fixed MPEG-1 encoding for me.
Attached is a patch showing which the I use for 352x240 NTSC @ 1.5Mbps
with 44.1KHz audio @ 192Kbps. Most of these can be set via the
commandline, but I liked the idea of just typing "insmod kfir.o" and
getting these defaults. :-)
-- Attached file included as plaintext by Listar --
Index: kfir.c
===================================================================
RCS file: /cvs/linuxtv/kfir/driver/kfir.c,v
retrieving revision 1.4
diff -u -r1.4 kfir.c
--- kfir.c 2001/02/05 02:29:24 1.4
+++ kfir.c 2001/02/06 03:27:20
@@ -71,14 +71,14 @@
MODULE_PARM(streamtype,"i");
MODULE_PARM(sndfreq,"i");
-static int vidinmode = VIDEO_MODE_PAL;
+static int vidinmode = VIDEO_MODE_NTSC;
static int vidinput = 0;
-static int vidoutmode = VT_KFIR_PAL;
-static int vidsize = (KFIR_V_576*16+KFIR_H_FD1);
-static int vidrate = 4500000;
-static int sndfreq = VT_KFIR_AUDIO_FREQ_48_000;
-static int mpeg1mode = 0;
-static int streamtype = VT_KFIR_PROGRAM;
+static int vidoutmode = VT_KFIR_NTSC;
+static int vidsize = (KFIR_V_240*16+KFIR_H_352);
+static int vidrate = 1500000;
+static int sndfreq = VT_KFIR_AUDIO_FREQ_44_100;
+static int mpeg1mode = 1;
+static int streamtype = VT_KFIR_SYSTEM;
#define dprintk if (debug) printk
@@ -793,7 +793,7 @@
P->AudioMode = VT_KFIR_STEREO;
P->AudioFormat = VT_KFIR_LAYER_II;
P->AudioFreq = sndfreq;
- P->AudioBitRate = 6;
+ P->AudioBitRate = 5;
P->AudioCRC = VT_KFIR_OFF;
P->StreamType = streamtype;
@@ -848,7 +848,7 @@
if (vidoutmode==VT_KFIR_PAL)
P->KF_FrameRate = KFIR_25;
else
- P->KF_FrameRate = KFIR_30;
+ P->KF_FrameRate = KFIR_29_97;
P->KF_HorResolution = (vidsize&7);
P->KF_VertResolution = ((vidsize>>4)&7);
Home |
Main Index |
Thread Index