[xiph-commits] r14405 - trunk/ffmpeg2theora

j at svn.xiph.org j at svn.xiph.org
Wed Jan 16 01:24:44 PST 2008


Author: j
Date: 2008-01-16 01:24:43 -0800 (Wed, 16 Jan 2008)
New Revision: 14405

Modified:
   trunk/ffmpeg2theora/ffmpeg2theora.c
Log:
remove outdated v4l code, this should be enabled again, no working v4l device right now, so not able to figure out what the new syntax is

Modified: trunk/ffmpeg2theora/ffmpeg2theora.c
===================================================================
--- trunk/ffmpeg2theora/ffmpeg2theora.c	2008-01-16 09:18:50 UTC (rev 14404)
+++ trunk/ffmpeg2theora/ffmpeg2theora.c	2008-01-16 09:24:43 UTC (rev 14405)
@@ -27,6 +27,7 @@
 #include <math.h>
 
 #include "avformat.h"
+#include "avdevice.h"
 #include "swscale.h"
 #include "postprocess.h"
 
@@ -50,9 +51,6 @@
   OPTIMIZE_FLAG,
   SYNC_FLAG,
   NOSOUND_FLAG,
-#ifdef VIDEO4LINUX_ENABLED
-  V4L_FLAG,
-#endif
   CROPTOP_FLAG,
   CROPBOTTOM_FLAG,
   CROPRIGHT_FLAG,
@@ -1052,10 +1050,6 @@
         "      --vhook            you can use ffmpeg's vhook system, example:\n"
         "        ffmpeg2theora --vhook '/path/watermark.so -f wm.gif' input.dv\n"
         "  -f, --format           specify input format\n"
-#ifdef VIDEO4LINUX_ENABLED
-        "      --v4l /dev/video0  read data from v4l device /dev/video0\n"
-        "                          you have to specifiy an output file with -o\n"
-#endif
         "      --inputfps fps     override input fps\n"
         "      --audiostream id   by default the last audio stream is selected,\n"
         "                          use this to select another audio stream\n"
@@ -1087,9 +1081,9 @@
         "  Encode a series of images:\n"
         "    ffmpeg2theora -f image2 frame%%06d.png -o output.ogv\n"
         "\n"
-#ifdef VIDEO4LINUX_ENABLED
+#ifdef 0
         "  Live streaming from V4L Device:\n"
-        "    ffmpeg2theora --v4l /dev/video0 --inputfps 15 -x 160 -y 128 -o - \\\n"
+        "    ffmpeg2theora  /dev/video0 -fps 15 -x 160 -y 128 -o - \\\n"
         "     | oggfwd iccast2server 8000 password /theora.ogv\n"
         "\n"
 #endif
@@ -1145,9 +1139,6 @@
       {"nosound",0,&flag,NOSOUND_FLAG},
       {"vhook",required_argument,&flag,VHOOK_FLAG},
       {"framerate",required_argument,NULL,'F'},
-#ifdef VIDEO4LINUX_ENABLED
-      {"v4l",required_argument,&flag,V4L_FLAG},
-#endif
       {"aspect",required_argument,&flag,ASPECT_FLAG},
       {"v2v-preset",required_argument,NULL,'p'},
       {"nice",required_argument,NULL,'N'},
@@ -1234,14 +1225,7 @@
                             info.frontend = 1;
                             flag = -1;
                             break;
-#ifdef VIDEO4LINUX_ENABLED
-                        case V4L_FLAG:
-                            formatParams = malloc(sizeof(AVFormatParameters));
-                            formatParams->device = optarg;
-                            flag = -1;
-                            break;
-#endif
-                /* crop */
+                        /* crop */
                         case CROPTOP_FLAG:
                             convert->frame_topBand = crop_check(convert,"top",optarg);
                             flag = -1;



More information about the commits mailing list