Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 29th, 2007, 5:32 PM   #11
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Re: Someone with a good graphics card...?

Here's the deal. Media files are representative of analog signals, which are continuous. (I won't go into the theory that analog signals are micro-digital signals).

One represents these signals by assigning discrete values to some range of continuous values. Suppose that you have a range of 100 volts, but only 8 bits to represent that range. That's 256 actual values. One-hundred volts divided by 256 is a tad uner a half volt per representation. In other words, a signal of 50 volts will be represented the same as a signal of 47.75 volts or a signal of 50.25 volts.

This removes some information. The audience of a punk band might never detect the difference, whereas the audience of a classical ensemble might very well run off into the grass and puke on their shoes.

When this "lumping into discrete categories" occurs, it is called aliasing. One can reduce aliasing by providing a larger range into which to divide the digital representation. One may go to 16, or 32, or 56, or whatever, divisions for a specific period of time. This has nothing to do with format. It has to do with busyness.

If you want to join two signals together, even if they are the same format (a macro property) then they must have the same digitally-expressed range, or you must convert the range to the area of interest.

Depending upon the way your moving, this might require a guess at some intermediate range to assign to a signal, with no prior information about what direction to slide it, or it might merely require what is equivalent to a flooring or rounding or ceiling of information.

First, you have to establish a common denominator. Then you can splice to your heart's content. You cannot add quality (unless you're Godlike), but you can always detract from quality.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Oct 29th, 2007, 6:51 PM   #12
cloud-
Hobbyist Programmer
 
Join Date: Jan 2005
Posts: 110
Rep Power: 4 cloud- is on a distinguished road
Re: Someone with a good graphics card...?

Quote:
Originally Posted by mattireland View Post
Can anyone else please help?
to join the video files together they must be the same size (frame), fps, etc, if you are using vdub, as in the guide posted previously, so it's likely that the videos differ somehow? I didn't check but if that's the case they would need to be re-encoded. alternatively you could use avisynth, it's a "scripting" interface for dealing with video and audio, it allows you to "edit" the video before processing it with the main application (vdub)

an example of joining 2 videos together, with different fps/size etc.

"in.avs" (opens with vdub) Syntax (Toggle Plain Text)
  1. clip1=avisource("some_random.avi", audio=false).Lanczos4Resize(640,480).ConvertToYUY2().ConvertFPS(23.976)
  2. clip2=avisource("different_clip.avi", audio=false).Lanczos4Resize(640,480).ConvertToYUY2().ConvertFPS(23.976)
  3. clip1++clip2

Though I'm not sure if this would cause audio skew (if fps was the case), you'd need to know how the clips differed, you could also just remove the audio like in the example and add that separately.
edit: using avs would need a re-encode too, so it's all the same in the end, i guess, just some time saved..
cloud- is offline   Reply With Quote
Old Oct 29th, 2007, 6:53 PM   #13
Ghost
Man Bear Pig Hunter
 
Ghost's Avatar
 
Join Date: Jul 2005
Location: NorCal, USA
Posts: 290
Rep Power: 4 Ghost is on a distinguished road
Re: Someone with a good graphics card...?

http://www.esfiles.com/cplusplus.wmv

There is everything linked together. Sorry it took me so long to post, kind of forgot I was doing you a favor. (Had a large project released and took up most of my time)
Ghost is offline   Reply With Quote
Old Oct 30th, 2007, 2:35 AM   #14
lectricpharaoh
Caffeinated Neural Net
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 925
Rep Power: 4 lectricpharaoh will become famous soon enough
Re: Someone with a good graphics card...?

Quote:
Originally Posted by Arla
Wait, what are you trying to do? Just join the files together? I can probably help, but need to understand a bit more about exact sizes and stuff, anytime you're joining things you have to re-render them (if I recall)
I think this depends on the codec. I'm pretty sure MPEG-4 streams can be joined by simply appending one to another, though the stream data will obviously need to be taken from the container (AVI, or whatever).

@Matt: What kind of videos are these? Just plain MPEG-4 (like Xvid/DivX) inside an AVI container?
__________________
A man's knowledge is like an expanding sphere, the surface corresponding to the boundary between the known and the unknown. As the sphere grows, so does its surface; the more a man learns, the more he realizes how much he does not know. Hence, the most ignorant man thinks he knows it all. - L. Sprague de Camp
lectricpharaoh is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ Card Game Suite dr.p Project Ideas 2 Sep 8th, 2007 3:29 AM
looking for a good windows programming book cwl157 Coder's Corner Lounge 3 May 30th, 2007 6:51 AM
Anyone know of a good tutorial or place of reference for Fedora? Silicon_Pudding Coder's Corner Lounge 6 Jun 21st, 2006 1:15 PM
BGI graphics not supported under windows problem nineTENdo C 9 Apr 12th, 2006 6:28 AM
Good C++ Books MrMan9879 C++ 3 Oct 19th, 2005 12:13 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:38 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC