We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 30 - Video capture
Summary: Video capture
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.0
Hardware: x86 All
: P2 enhancement
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-04 05:35 UTC by tommi uimonen
Modified: 2006-06-21 05:13 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tommi uimonen 2006-01-04 05:35:07 UTC
A video output device that saves the frames to harddisk. This feature would just rock!
Comment 1 Ryan C. Gordon 2006-01-05 02:33:47 UTC
(Changed severity to "API change" for a bunch of bugs.)

--ryan.

Comment 2 Ryan C. Gordon 2006-01-27 11:23:08 UTC
Setting Sam as "QA Contact" on all bugs (even resolved ones) so he'll definitely be in the loop to any further discussion here about SDL.

--ryan.

Comment 3 Sam Lantinga 2006-06-21 04:15:39 UTC
This feature is implemented in the dummy video driver for SDL 1.3.  You have to set the environment variable SDL_VIDEO_DUMMY_SAVE_FRAMES to 1 to enable this feature.
Comment 4 Ryan C. Gordon 2006-06-21 04:59:05 UTC
Also worth noting that you can implement this in your app without changes to SDL, if you don't need it to be transparent to the app...the disk bandwidth needed to write out uncompressed frames tends to kill the app's performance to the point where it won't work identically without some logic to handle this anyhow.

And this isn't generally useful with OpenGL video modes anyhow.

Here's something I wrote up a few years ago, if it's helpful to you:
  http://icculus.org/misc/mpeg.txt

--ryan.

Comment 5 Sam Lantinga 2006-06-21 05:13:25 UTC
(In reply to comment #4)
>   http://icculus.org/misc/mpeg.txt

Wow, hardcore. :)
Actually, I think I did something very similar with xine dumping out frames of the Civ:CTP movies, and re-encoding them as MPEG-1.  I also used the same xine dump trick with the Railroad Tycoon 2 movies, and then encoded them in the custom MJPEG format. :)