NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 68 69 70 71 72 … 93 Next »
cutting movies within gbpvr

 
  • 0 Vote(s) - 0 Average
cutting movies within gbpvr
dottore
Offline

Posting Freak

Posts: 986
Threads: 44
Joined: May 2004
#11
2005-07-20, 12:52 PM
i think the code for getting still pictures from a mpeg2-movie would be quite interesting for all of us including reven. i was searching around and found some directx code for .net including grabbing and playing of mediafiles. i am now trying to load a mpeg2-movie and make a thumbnail at a given position.
but if collin has some code for this, it would be nice, if we could have a look at it...

that would be the best, so no other software is used. the mplayer-way is too complicated and slow.
---------------------
www.sitecomposer.de
jorm
Offline

Posting Freak

Posts: 2,014
Threads: 109
Joined: Aug 2004
#12
2005-07-20, 01:53 PM
My idea was we would send in a bunch of points the mpeg would be loaded once and would extract lets say the 10 frame pictures. We would then show them to the user and they can zoom in on any one of the 10, lets say in 1 minute intervals. Narrowing down if they want or move x frames per click. Marking the commercials.

I agree about the mpeg2 extraction code. If we can use it we can do things like in xrecord have scene selection for a given show. (sub would have to add a play from frame offset).

It is one of the features gbpvr should have.
WinXP Home
3 X MVPs
Hauppauge 250 MCE
Hauppauge 150
P-4 2.4 GHz / 768 megs Ram
610 Gigs Of Media Storage
jorm
Offline

Posting Freak

Posts: 2,014
Threads: 109
Joined: Aug 2004
#13
2005-07-27, 05:34 PM
I just tried the mplayer call that was posted here, it generates an image, however if I delete the image and change the seconds it returns the same image.
WinXP Home
3 X MVPs
Hauppauge 250 MCE
Hauppauge 150
P-4 2.4 GHz / 768 megs Ram
610 Gigs Of Media Storage
jorm
Offline

Posting Freak

Posts: 2,014
Threads: 109
Joined: Aug 2004
#14
2005-07-29, 11:25 AM
I got really bored last night and figured out how to extract images from movies (avi, divx, mpeg) in C#.

So lets figure out what kind of interface we need for the extraction tool and the plugin.

Extraction tool
extract single frame
extract list of frames from file one frame number per line
extract the total number of frames.
extract the video formatting information (not really needed)
WinXP Home
3 X MVPs
Hauppauge 250 MCE
Hauppauge 150
P-4 2.4 GHz / 768 megs Ram
610 Gigs Of Media Storage
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#15
2005-07-29, 12:14 PM
Quote:I got really bored last night and figured out how to extract images from movies (avi, divx, mpeg) in C#.

So lets figure out what kind of interface we need for the extraction tool and the plugin.

Extraction tool
extract single frame
extract list of frames from file one frame number per line
extract the total number of frames.
extract the video formatting information (not really needed)
you want to throw this into a helper dll so every plugin can access this? im still unable to capture a frame from an mpeg2 file. all i would need from this helper dll would be something like
Code:
public Image GetFrame(string videofile, float frame)
would be handy to have.
jorm
Offline

Posting Freak

Posts: 2,014
Threads: 109
Joined: Aug 2004
#16
2005-07-29, 06:30 PM
I dont think I can easily make a dll for it. Since it is in a form and I have to add form components to it. I was going to do it as an executable that plugins could call.

getframe -single c:\xx.mpg frameNumber outputname

or

getframe -file c:\xx.mpg c:\filelist.txt outputname (to export multiple frames)
WinXP Home
3 X MVPs
Hauppauge 250 MCE
Hauppauge 150
P-4 2.4 GHz / 768 megs Ram
610 Gigs Of Media Storage
dottore
Offline

Posting Freak

Posts: 986
Threads: 44
Joined: May 2004
#17
2005-09-02, 09:58 AM
jorm Wrote:I dont think I can easily make a dll for it. Since it is in a form and I have to add form components to it. I was going to do it as an executable that plugins could call.

getframe -single c:\xx.mpg frameNumber outputname

or

getframe -file c:\xx.mpg c:\filelist.txt outputname (to export multiple frames)

how is that going? is there something, we could try out?
---------------------
www.sitecomposer.de
jorm
Offline

Posting Freak

Posts: 2,014
Threads: 109
Joined: Aug 2004
#18
2005-09-02, 10:31 AM
The reason I did not publish it is I ran into a problem and did not have time to figure it out. I can post the code. It does extract the frame and if you say

getframe x.mpg 1 (first frame) it is really quick. But takes considerably longer as the frame number grows. I will post the code and see if another pair of eyes can reveal the problem. Anyone know directx?
WinXP Home
3 X MVPs
Hauppauge 250 MCE
Hauppauge 150
P-4 2.4 GHz / 768 megs Ram
610 Gigs Of Media Storage
dottore
Offline

Posting Freak

Posts: 986
Threads: 44
Joined: May 2004
#19
2005-09-05, 10:33 AM
yes, please post the code. i would like to have a look at it.
---------------------
www.sitecomposer.de
jorm
Offline

Posting Freak

Posts: 2,014
Threads: 109
Joined: Aug 2004
#20
2005-09-05, 08:32 PM
I havent found my attempt at it yet but this is where I stole the code from

http://www.codeproject.com/cs/media/pict...mmovie.asp
WinXP Home
3 X MVPs
Hauppauge 250 MCE
Hauppauge 150
P-4 2.4 GHz / 768 megs Ram
610 Gigs Of Media Storage
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): « Previous 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Recorded movies mvallevand 8 2,489 2021-12-29, 02:50 AM
Last Post: mvallevand
  TitanTv Remote Schedule For GBPVR UncleJohnsBand 51 34,587 2015-08-20, 05:11 PM
Last Post: sub
  Roku & GBPVR pvruser 16 11,676 2011-10-16, 08:31 PM
Last Post: pvruser
  (Yet Another) Rename Helper script for GBPVR & NPVR pvruser 2 2,800 2011-07-22, 01:27 AM
Last Post: pvruser
  Live GBPVR CD/DVD/Thumb drive :D pBS 101 29,993 2010-01-03, 06:22 AM
Last Post: pBS
  some help on basic gbpvr plugin code Etacovda 12 4,862 2009-06-14, 08:24 PM
Last Post: Etacovda
  Linking gbpvr.db3 to Access 2003: get readonly tables Khurram 5 4,024 2008-09-11, 08:35 AM
Last Post: Khurram
  UAC and Vista with GBPVR systemshark 2 2,000 2008-08-03, 07:20 AM
Last Post: systemshark
  Controlling an Audio Receiver with the GBPVR remote erik 7 2,835 2008-06-01, 08:31 PM
Last Post: erik
  SkipTool, do you use the GBPVR SQLite database? mkenyon2 1 1,653 2008-04-21, 07:30 PM
Last Post: pastro

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode