Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] ÿSO-8859-1?Q?Re:_[vdr]_XSO-8859-1?Q?Re:_[v?dr]_vdr-1.1.15_&_mp3-0.? 7.8 & MPlayer-0.90rc1 ÿothing on screen



Hans-Hermann Redenius wrote:
> Stefan Hußfeldt wrote:
> 
>> Hello,
>>
>> i try to use the mplayer plugin with vdr:
>>
>> vdr-1.1.15 (with DVB from Nov  4)
>> mp3-0.7.8
>> MPlayer-0.90rc1 (with --enable-dvb)
>>
> Patched with the head patch?
> 
> Hans-Hermann
> 
> 
> 
Hi,
In mp3 plugin dir you find the patch for MPlayer-0.9pre6
But the slave patch doesn't work with MPlayer-0.9rc1.

Here is a patch for both dvb HEAD and slave mode with vdr.
You also need --with-extraincdir= to dvb's include dir when
configure mplayer.

patch -p1 < ./MPlayer-0.90rc1.DVBHEAD-VDRSLAVE.patch

best luck
::beppe

ps. nice work Klaus. vdr-1.1.19 works very good.


-- Attached file included as plaintext by Listar --
-- File: MPlayer-0.90rc1.DVBHEAD-VDRSLAVE.patch

diff -ruN ./libao2/ao_mpegpes.c /usr/src/MPlayer-0.90rc1/libao2/ao_mpegpes.c
--- ./libao2/ao_mpegpes.c	Sun Oct  6 03:08:04 2002
+++ /usr/src/MPlayer-0.90rc1/libao2/ao_mpegpes.c	Wed Dec 11 15:47:20 2002
@@ -15,7 +15,7 @@
 #include "../mp_msg.h"
 
 #ifdef HAVE_DVB
-#include <ost/audio.h>
-audioMixer_t dvb_mixer={255,255};
+#include <linux/dvb/audio.h>
+audio_mixer_t dvb_mixer={255,255};
 #endif
 extern int vo_mpegpes_fd;
diff -ruN ./libvo/vo_mpegpes.c /usr/src/MPlayer-0.90rc1/libvo/vo_mpegpes.c
--- ./libvo/vo_mpegpes.c	Mon Nov 11 16:20:26 2002
+++ /usr/src/MPlayer-0.90rc1/libvo/vo_mpegpes.c	Wed Dec 11 15:54:49 2002
@@ -35,12 +35,14 @@
 #include <stdio.h>
 #include <time.h>
 
-#include <ost/dmx.h>
-#include <ost/frontend.h>
-#include <ost/sec.h>
-#include <ost/video.h>
-#include <ost/audio.h>
-
+#include <linux/dvb/video.h>
+#include <linux/dvb/audio.h>
+#ifndef true
+#define true 1
+#endif
+#ifndef false
+#define false 0
+#endif
 #endif
 
 #include "config.h"
@@ -86,11 +88,11 @@
 #ifdef HAVE_DVB
     if(!arg){
     //|O_NONBLOCK
-	if((vo_mpegpes_fd = open("/dev/ost/video",O_RDWR)) < 0){
+	if((vo_mpegpes_fd = open("/dev/dvb/adapter0/video0",O_RDWR)) < 0){
 		perror("DVB VIDEO DEVICE: ");
 		return -1;
 	}
-	if((vo_mpegpes_fd2 = open("/dev/ost/audio",O_RDWR|O_NONBLOCK)) < 0){
+	if((vo_mpegpes_fd2 = open("/dev/dvb/adapter0/audio0",O_RDWR|O_NONBLOCK)) < 0){
 		perror("DVB AUDIO DEVICE: ");
 		return -1;
 	}
diff -ruN ./mplayer.c /usr/src/MPlayer-0.90rc1/mplayer.c
--- ./mplayer.c	Thu Dec  5 01:18:56 2002
+++ /usr/src/MPlayer-0.90rc1/mplayer.c	Wed Dec 11 15:49:50 2002
@@ -2682,6 +2682,25 @@
   current_module=NULL;
 }
 
+#if 1
+  if(slave_mode){
+    float position=0.0;
+    float time=0.0;
+    if(demuxer->file_format==DEMUXER_TYPE_AVI && sh_video->video.dwLength>2) {
+      // get pos from frame number / total frames
+      position=(float)d_video->pack_no*100.0/(float)sh_video->video.dwLength;
+      }
+    else {
+      off_t len = ( demuxer->movi_end - demuxer->movi_start );
+      off_t pos = ( demuxer->file_format == DEMUXER_TYPE_AUDIO?stream->pos:demuxer->filepos );
+      if(len>0) position=( pos - demuxer->movi_start ) * 100.0 / len;
+      }
+    if(sh_video) time=d_video->pts;
+    else if(sh_audio) time=sh_audio->delay;
+    mp_msg(MSGT_OSD,MSGL_ERR,"SLAVE: time=%.2f position=%.2f\r",time,position);
+    }
+#endif
+
 #ifdef HAVE_NEW_GUI
       if(use_gui){
         guiEventHandling();



-- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index