----- Original Message ----- From: "Jason Tackaberry" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 08, 2004 4:10 AM Subject: Re: [Freevo-users] Time Shifting with Live TV in MPlayer (demo code) On Wed, 2004-07-07 at 22:04 -0300, Rob Shortt wrote: > > http://sault.org/mebox/livetv.php > > Ok, that's impressive!
Thanks. :) > I wonder if it will work with the PS from vdr-streamdev... Assuming mplayer has no troubles with it by itself, then the main issue is going to be how the mpeg timestamps are done. With my ivtv card, timestamps begin at 0 from the time the device is opened. If vdr- streamdev works differently, some extra logic will have to be added to handle that, but I don't think the design needs to be fundamentally changed. > Yes, how about a bmovl2 plugin anyone? Jason, can you make available > any bmovl2 controlling python code you have? Also, the canvas looks > interesting as well. Sure. Tomorrow I'll work on separating out the canvas classes from MeBox so they can stand on their own and do up a few examples. The canvas code, as it is now, is my first crack at it. And you know how it goes: it's not until about the third rewrite that most developers are happy with their code. But it'll give you a good starting point. My stuff uses imlib2, which I've made a python extension for, so I'll release that as well. This wasn't so much due to Not Invented Here syndrome, but rather because PIL and pygame wouldn't fit the bill. (PIL's compositing/blending functions were lacking, and pygame required initializing an X11 window, but since MeBox works entirely through MPlayer this was a problem; I couldn't figure out how to work around that.) My Imlib2 python extension also has some custom code to work with bmovl2, specifically converting RGBA to YV12 (bmovl2 can do this, but it's better to be done outside the mplayer process) and as well some mmap stuff. But Imlib2 isn't required. PIL or pygame will work fine with bmovl2. I just had different requirements. I'll post here once I have something downloadable. > I will have to find some time for hacking this weekend for sure. The > best way for me to test the timeshifting stuff will be to get it working > inside Freevo so if anyone else is working on that please let me know so > I don't duplicate effort. :) It'd be really awesome if you got this working with Freevo. :) I'm not sure how you'll handle the OSD stuff, but if you end up using bmovl2, I'll push harder to get it merged upstream. I posted a patch to mplayer-dev some months ago, but I've added mmap optimizations since then and it hasn't been reviewed. Cheers, Jason. I've playing around with the patched version of mplayer and the timeshifting implementation of Jason IT ROCKSSSSSSS even at at resolution of 640x480 i have FULL speed on the mplayer side while my CPU utilisation is about 30% (not by using a hardware encoding card but just by using a saa7134 in combination with mp1e) This is what i did: cd mplayer cp -r MPlayer-1.0pre4 main cp -r MPlayer-1.0pre4 main.orig wget http://sault.org/mebox/downloads/mplayer-ringbuffer-2004-07-06.patch patch -p 0 < mplayer-ringbuffer-2004-07-06.patch cd main.orig ./configure make make install wget http://sault.org/mebox/downloads/timeshift-2004-07-07.tar.gz tar -xvf timeshift-2004-07-07.tar.gz cd timeshift* changed tv.start in tv.start(cmd = "mp1e -v -m3 -p/dev/dsp1 -S32 -b1 -a0 -F1 -c/dev/video0 -s640x480 -b3") modified the mplayer path to my system settings and then just run test.py I had some issues with audio from mp1e and mplayer (i heard the audio from mp1e in the background of the current show while mplayer was playing the "timeshifted" show It isn't perfect yet, starting after a pause results in a temporary delay of the audio, but this is maybe adjustable by modifying the mp1e paramaters. But i would say, if the right people incorperate this in freevo (with the right programming, skills i personaly don't have) this could be a way to go to implement this in Freevo. An idea to encorperate this in Freevo is: >From the TVguide: press REC on the remote control -> record current show (this can be done with an optional second capturing card (freevo record server handels this) press PLAY to start timeshifting, only stop leaves this process, no channel changing is possible (STOP cleanes the buffer and returns to the TVguide), PAUSE, FFWD, REW perhaps i slowmotion button was nice but i don't know if mplayer supports this press OK to view the current channel with TVtime (timeshifting is not always needed) as usual Personaly i guess an implementation with mp1e would be more than nice for users wich have a "low end" capturing card. My 2 cents Fons van der Beek ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Freevo-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-users
