NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 63 64 65 66 67 … 93 Next »
MPEG2 Frame Capture

 
  • 0 Vote(s) - 0 Average
MPEG2 Frame Capture
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#1
2005-12-06, 01:40 AM
has anyone had any luck with this? ive been able to capture a frame with every other file format, but i really really really need to be able to capture a frame (to jpeg, bmp, tiff whatever) from a mpeg2 file. ive searched thecodeproject.com and none of the guides there can handled mpeg2, ive googled until my eyes have bleed and had no joy.

the best i have done is found a program called snatchit, which does want i want by its shareware, and you have to pay US$30 for it, which is a bloody rip off.

anyone know if you can capture a frame from the command line with ffmpeg or virtual dub (any version/modification), or anyone know any free programs that can do this from the command line. i would prefer to do it via code, but the command line will do.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#2
2005-12-07, 06:40 AM
ok still no joy on this front, anyone know a program (command line) that can convert part of a mpeg2 file to another format, quickly?

ffmpeg can do it but it takes over 2 minutes on my machine to create a 2second avi file. i need to be able to specify where in the mpeg2 file i want the new file to start and for how long. i figured since i can get a frame from a avi file it will be easier finding a free tool to convert a segment of the mpeg2 file to avi.

i need something that is rather small aswell since i want to include it in the my videos package (dont want people to have to download 30megs just to grab a thumbnail Smile)
-stattik-
Offline

Posting Freak

Posts: 924
Threads: 26
Joined: Mar 2005
#3
2005-12-07, 02:49 PM
My thread on mencoder should be able to do that.

http://forums.nextpvr.com/showthread.php?t=10606&page=2

If you create an edl file, you can specify when you want to start and stop.

Here's a sample:

0.03 60.00 0
120.00 180.00 0

Assuming this is a 3 minute file, this would start recording at 60 seconds and stop recording at 120 seconds. A mpeg reencode transcodes at about 45fps on my 1.5 ghz pc.
-stattik-
Offline

Posting Freak

Posts: 924
Threads: 26
Joined: Mar 2005
#4
2005-12-07, 03:06 PM
Mplayer also has an output option to jpeg:

Video output drivers are interfaces to different video output facilities. The syntax is:
-vo <driver1[Confuseduboption1[=value]:...],driv- er2,...[,]>

jpeg
Output each frame into a JPEG file in the current directory. Each file takes the frame number padded with leading zeros as name.

http://www.mplayerhq.hu/DOCS/man/en/mpla...YER%20ONLY)
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#5
2005-12-07, 11:03 PM
thanks stattik i managed to get it to work using mplayer without needing to conver the file first.
erik
Offline

Posting Freak

Posts: 1,138
Threads: 123
Joined: Apr 2005
#6
2005-12-08, 12:50 AM
If you only want to capture a single frame from an mpeg2 file you can use mpeg2cut2 (google for it)
Its free and you can dump a .bmp picture of any frame.
Very quick navigation too.
P4 3GHz 1GB, 250GB, nVidia dualTV, GBPVR 1.3.11, XP
Support Comskip, visit the forum and donate at http://www.comskip.org/
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#7
2005-12-08, 01:01 AM
do you know if mpeg2cut2 works from the command line? the documentation doesnt seem to mention it at all.
erik
Offline

Posting Freak

Posts: 1,138
Threads: 123
Joined: Apr 2005
#8
2005-12-08, 01:06 AM
Sorry, missed that requirement, nope, it does not.
P4 3GHz 1GB, 250GB, nVidia dualTV, GBPVR 1.3.11, XP
Support Comskip, visit the forum and donate at http://www.comskip.org/
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#9
2005-12-08, 01:22 AM
bugger....
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Frame rate imilne 12 4,102 2011-03-28, 02:50 PM
Last Post: imilne
  Capture source names imilne 4 2,599 2010-11-18, 01:49 PM
Last Post: imilne
  Select capture source khaver 3 1,871 2008-12-15, 02:20 AM
Last Post: khaver
  TS container can contain MPEG2 and H264? zehd 5 4,002 2008-12-13, 08:42 AM
Last Post: zehd
  Problems with THEATRIX 550 HW MPEG2 encoder bitrates. tmrt 0 1,226 2007-05-28, 01:36 PM
Last Post: tmrt
  Grabbing live TV video frame Snarky 1 1,354 2007-05-12, 05:30 AM
Last Post: sub
  Need MPEG2 PS file specification bgowland 4 2,758 2007-01-22, 07:37 PM
Last Post: bgowland
  DV capture Chicago 10 4,348 2006-03-06, 05:09 PM
Last Post: Kindred359
  MPEG2 question erik 1 1,559 2005-08-15, 07:13 PM
Last Post: reboot
  Looking for utility to save a frame as a jpeg Peter K 0 1,155 2005-01-12, 10:25 PM
Last Post: Peter K

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

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

Linear Mode
Threaded Mode