How Can I Split and Reassemble a Video File for Interactive Programming?

  • Thread starter Thread starter dlgoff
  • Start date Start date
  • Tags Tags
    Video
Click For Summary
To cut a video file into smaller segments for real-time reassembly based on user input, selecting the right video format and programming language is crucial. Libraries such as libmpeg2 are recommended for handling video, but understanding their functionality is important, as some may serve primarily as decoders. For practical implementation, tools like AviSynth and VirtualDub are suggested, as they can manipulate video files and support various formats. These programs can work independently or together, allowing for command file processing. The goal is to create an executable program that utilizes user input to control the playback of video segments, facilitating an interactive experience.
dlgoff
Science Advisor
Gold Member
Messages
4,441
Reaction score
3,277
I am looking for a way to cut a video file (format?) into a bunch of small files that can then be reassembled in "real time" in an order determined by an interactive program I'll write. The programing is not a problem; simple if/then logic and being able to read the small files from a CD/DVD (format?) then displaying.

I'm not familiar with the structure of video files. But I think any format that can be edited and recorded to a CD would be okay.

Any suggestions?

Regards
 
Computer science news on Phys.org
You'll probably want to use some type of video library like this:

http://libmpeg2.sourceforge.net/

The library you choose depends on which programming language and video format you want to use
 
dduardo said:
You'll probably want to use some type of video library like this:

http://libmpeg2.sourceforge.net/

The library you choose depends on which programming language and video format you want to use
I don't understand. Isn't the link for a decoder? How do I use it? What I'm wanting to do is record a person going through a set of movements then with a computer cut out the individual movements and save them to files that I can output depending on a user input.

Thanks

Don
 
Well, what language do you want to program in? What video format do you want to use?
 
Something simple like a basic compiler. I have Borland Turbobasic that works fine for everything except direct video writing (too slow); that's why I want to just manipulate files.

Regards

Don
 
Thank you dduardo. I'll go through the tutorial right now. I might have another question but I'll have to wait until tomorrow to post.

Sincerely

Don
 
You might want to look at AviSynth and VirtualDub.
These programs can work independently or together and can take command files.
Plus they can handle most if not all video formats.
 
NoTime said:
You might want to look at AviSynth and VirtualDub.
These programs can work independently or together and can take command files.
Plus they can handle most if not all video formats.
I'm wanting to create an .exe where the users input (pattern reconition of user) will cause a loop of video files to branch to another loop.

Regards

Don
 

Similar threads

  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
11
Views
7K
  • · Replies 77 ·
3
Replies
77
Views
6K
Replies
17
Views
5K
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 15 ·
Replies
15
Views
4K