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

Discussion Overview

The discussion revolves around methods for splitting and reassembling video files for use in an interactive programming context. Participants explore various video formats, libraries, and tools that could facilitate this process, focusing on the technical aspects of video manipulation and programming integration.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant seeks a method to cut a video file into smaller segments for real-time reassembly based on user input, expressing uncertainty about video file structures.
  • Another participant suggests using a video library, specifically mentioning libmpeg2, but notes that the choice depends on the programming language and video format.
  • A participant questions the relevance of the suggested library, seeking clarification on how to use it for recording and manipulating video files based on user interactions.
  • There is a suggestion to consider using AviSynth and VirtualDub, which can handle various video formats and work with command files.
  • One participant expresses a desire to create an executable program that utilizes user input for video file manipulation, indicating a more complex interactive requirement.

Areas of Agreement / Disagreement

Participants have not reached a consensus on the best approach or tools to use, as multiple suggestions and questions remain unresolved. There are competing views on the appropriate libraries and methods for achieving the desired video manipulation.

Contextual Notes

Participants have not specified the video formats they are considering, nor have they clarified the programming languages they intend to use, which may affect the applicability of the suggested tools and libraries.

Who May Find This Useful

This discussion may be useful for individuals interested in video processing, interactive programming, and those looking for technical guidance on manipulating video files for user-driven applications.

dlgoff
Science Advisor
Gold Member
Messages
4,458
Reaction score
3,265
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
4K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
11
Views
8K
Replies
17
Views
7K
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 15 ·
Replies
15
Views
4K
Replies
1
Views
2K