Bemanistyle #1 In music game coverage - Dance Dance Revolution, Beatmania, IIDX, Popn Music Sponsored Banner Ad. Contact Keith or Djp to AdvertiseSponsored Advertisement

Go Back   Bemanistyle [dot] com Forums > Bemani Simulation > Dance Dance Revolution Simulation
Tags: , ,

Reply
 
Thread Tools

Forgive newb question: syncing video
Old 09-29-2008, 01:57 AM   #1
Krishach
//bemanistyle::[User]
 
Krishach's Avatar
 
Krishach is offline
Join Date: Sep 2008
Posts: 6
Marketplace Rating: 0
Tokens: 132.76
Bank: 0.00
Total Tokens: 132.76
Donate Tokens
Send a message via PM  to Krishach
Default Forgive newb question: syncing video

This has been frustrating me for a while now.

I have some WONDERFUL videos, full length, to use as backgrounds for step-charts, all of which was created by artists better than I.

However, I cannot get the damn things to syncronize properly with the step chart and music.

I have resorted thus far to adding empty space to the beginning of the videos, or credits, to allow them to display properly when I try them in Step Mania play.

2 problems with this:
1) the sync is NOT always consistant ><
2) the sync in the TEST AREA is always correct without video editing. It starts the vid where I tell it to, based on the simple options available in the stepmania editor. However, the PLAY area starts the video MORE THAN 8 SECONDS BEFORE the listed start time. So its not starting at 0:00 on the vid. Except in the test area for making it ><


I don't know code, and this shouldn't be that hard. I am not trying to sync or move or transition through multiple images or movies: I just want ONE video to start when the music starts, and stay synched throughout at 100% speed (the step chart was made from the audio in the video, so that should not be the issue). Even worse, this is not something I can jury rig on MY machine, I am making this for someone else, so it has to work on HIS PC, and any DDR arcades he brings it to.



What am I doing wrong? Do I need to add the 8-9 seconds of dead space to make the video line up? WILL THE SYNC BE RIGHT ON SOMEONE ELSES MACHINE? Please help.


Lastly, despite reading the excellent BG thread by TheFlyingSquirrel, I am still lost when it comes to any coding, and so I am doing this through the visual step-chart editor inside Step Mania as a BGAnim add.

Thanks


EDIT: Ok, I finally wrapped my head around the way the .sm file is coded for background changes. I added the lines in the .sm file, and tried as "#BGCHANGES:0.001=Krishach - Halloween 2008=1.000=0=0=1;"

also, used the original editor added line
#BGCHANGES:0.001=Krishach - Halloween 2008=1.000=0=0=1,
99999=-nosongbg-=1.000=0=0=0 // don't automatically add -songbackground-
;

Still has the same time lag. Again, the problem is the video starts at SECOND NINE, instead of the beginning, and I have to add blank spots to the video itself to get it to line up. However, having done this, it doesn't sync the same on other machines.

Last edited by Krishach : 10-01-2008 at 02:59 AM.
  Reply With Quote

Old 10-18-2008, 04:36 AM   #2
chaotixmaster
//bemanistyle::[User]
 
chaotixmaster's Avatar
 
chaotixmaster is offline
Join Date: Jul 2008
Posts: 5
Marketplace Rating: 0
Tokens: 237.41
Bank: 0.00
Total Tokens: 237.41
Donate Tokens
Send a message via PM  to chaotixmaster
Default

Quote:
Originally Posted by Krishach View Post
This has been frustrating me for a while now.

I have some WONDERFUL videos, full length, to use as backgrounds for step-charts, all of which was created by artists better than I.

However, I cannot get the damn things to syncronize properly with the step chart and music.

I have resorted thus far to adding empty space to the beginning of the videos, or credits, to allow them to display properly when I try them in Step Mania play.

2 problems with this:
1) the sync is NOT always consistant ><
2) the sync in the TEST AREA is always correct without video editing. It starts the vid where I tell it to, based on the simple options available in the stepmania editor. However, the PLAY area starts the video MORE THAN 8 SECONDS BEFORE the listed start time. So its not starting at 0:00 on the vid. Except in the test area for making it ><


I don't know code, and this shouldn't be that hard. I am not trying to sync or move or transition through multiple images or movies: I just want ONE video to start when the music starts, and stay synched throughout at 100% speed (the step chart was made from the audio in the video, so that should not be the issue). Even worse, this is not something I can jury rig on MY machine, I am making this for someone else, so it has to work on HIS PC, and any DDR arcades he brings it to.



What am I doing wrong? Do I need to add the 8-9 seconds of dead space to make the video line up? WILL THE SYNC BE RIGHT ON SOMEONE ELSES MACHINE? Please help.


Lastly, despite reading the excellent BG thread by TheFlyingSquirrel, I am still lost when it comes to any coding, and so I am doing this through the visual step-chart editor inside Step Mania as a BGAnim add.

Thanks


EDIT: Ok, I finally wrapped my head around the way the .sm file is coded for background changes. I added the lines in the .sm file, and tried as "#BGCHANGES:0.001=Krishach - Halloween 2008=1.000=0=0=1;"

also, used the original editor added line
#BGCHANGES:0.001=Krishach - Halloween 2008=1.000=0=0=1,
99999=-nosongbg-=1.000=0=0=0 // don't automatically add -songbackground-
;

Still has the same time lag. Again, the problem is the video starts at SECOND NINE, instead of the beginning, and I have to add blank spots to the video itself to get it to line up. However, having done this, it doesn't sync the same on other machines.
hmm does your video have audio also if it does just throw your mp3 file in the trash and use the video file....
  Reply With Quote

Old 10-19-2008, 03:16 AM   #3
Daniel
//bemanistyle::[v.i.p.]
 
Daniel is offline
Join Date: Jun 2006
Donated: $26 ?
Posts: 565
Marketplace Rating: 0
Tokens: 67.48
Bank: 455,404.64
Total Tokens: 455,472.12
Donate Tokens
Send a message via PM  to Daniel
Default

If the mp3 was directly ripped from the video the simfile should sync up automatically. However why are you using #BGCHANGES:0.001? You should be using #BGCHANGES:0.000

Was the mp3 actually created from the video? This may be a hardware problem if you are attempting an ITG2 hack. ITG2 hardware isn't totally powerful.
  Reply With Quote

Old 10-19-2008, 11:58 AM   #4
TougaKiryuu
//badass freakin' overlord
 
TougaKiryuu's Avatar
 
TougaKiryuu is offline
Join Date: Jun 2006
Location: Greer, SC
Posts: 2,202
Marketplace Rating: 0
Tokens: 6,019.80
Bank: 4,252,972.77
Total Tokens: 4,258,992.57
Donate Tokens
Send a message via PM  to TougaKiryuu
Default

part of the problem could be how the audio was ripped. I have occasions where if I rip audio, the program will put in a very brief moment of quiet which causes it to be off, you could always check the mp3 with goldwave and remove any silence if that's what happened
__________________
  Reply With Quote

Old 10-19-2008, 01:51 PM   #5
Daniel
//bemanistyle::[v.i.p.]
 
Daniel is offline
Join Date: Jun 2006
Donated: $26 ?
Posts: 565
Marketplace Rating: 0
Tokens: 67.48
Bank: 455,404.64
Total Tokens: 455,472.12
Donate Tokens
Send a message via PM  to Daniel
Default

Oops I forgot to explain how the offset of the video and the offset of the entire step chart has to be correct.

When you place a video at second 0 the chart itself more than likely does not start at second 0. The chart begins at -0.980 for example. Therefore the video has to have an offset to match the chart's offset. However the #BGCHANGE tag places videos based on beats and the #OFFSET tag places the entire step chart field based on seconds. We are going to need some algebra to convert seconds to beats.

Let's say the offset is -7.372. We need to know what that amount of time is in beats. Here is the formula...

((# of beats) / BPM) * 60 = # of seconds

If the BPM is 134.94 here is our math problem in the formula

((X)/134.940) * 60 = -7.372 <== offset

Here it is solved for example

0.445x= -7.372

-7.372/0.445

-16.566

Here is an except from my notes.

Quote:
To solve this Algebra problem calculate the reciprocal of the BPM.

Multiply the reciprocal of the BPM by 60

Attach the variable to the BPM's reciprocal and place the equal sign
next to the offset.

Divide the offset by the BPM's reciprocal to reveal the variable.

Plug in the answer to see if it works.
Hope this helps.
  Reply With Quote

Old 10-19-2008, 05:25 PM   #6
MdX MaxX
Zeta3
 
MdX MaxX's Avatar
 
MdX MaxX is offline
Join Date: Jun 2006
Location: Fayetteville, Georgia
Posts: 672
Marketplace Rating: 0
Tokens: 2,458.40
Bank: 3,500.12
Total Tokens: 5,958.52
Donate Tokens
Send a message via PM  to MdX MaxX
Default

Have you tried setting the video to start on a negative beat (manually through the SM file)? For example, if there are 5 beats of emptiness in the video you could set the video to start at -5.000 beats manually. I did this with BPMs so I assume it would work with BGVideos also.
__________________

Current Version: v0.6

Come help with the Stepmania DM Ashura Pack Project!
We need steppers and music contributors!
And a few graphic makers.
  Reply With Quote

Old 10-24-2008, 12:35 PM   #7
KyahRyorin
//::[DEVIL.MAY.CRY]
 
KyahRyorin's Avatar
 
KyahRyorin is offline
Join Date: Sep 2006
Location: Eh, somewhere.
Posts: 365
Marketplace Rating: 0
Tokens: 91.91
Bank: 42,296.03
Total Tokens: 42,387.94
Donate Tokens
Send a message via PM  to KyahRyorin
Default

Quote:
Originally Posted by MdX MaxX View Post
Have you tried setting the video to start on a negative beat (manually through the SM file)? For example, if there are 5 beats of emptiness in the video you could set the video to start at -5.000 beats manually. I did this with BPMs so I assume it would work with BGVideos also.
It does. I have several videos that are set at negative times to sync with the music. You have to make sure it matches correctly, otherwise you have a very off beat video to an on beat song. X3
__________________
  Reply With Quote

Old 10-31-2008, 09:22 PM   #8
Krishach
//bemanistyle::[User]
 
Krishach's Avatar
 
Krishach is offline
Join Date: Sep 2008
Posts: 6
Marketplace Rating: 0
Tokens: 132.76
Bank: 0.00
Total Tokens: 132.76
Donate Tokens
Send a message via PM  to Krishach
Default

I've had to resort to doing that several times now, and the audio WAS ripped from the video. And in the TEST area, the video sync's correctly if set at 0.0000

In the PLAY area is where is way way off. And the two are drastically different.

Also, if you wouldn't mind, what scripting are you using to get the video to start play on a negative second? You have to make that sort of script in DWI if I recall. When I make it using the info provided on SM and DWI BG vids thread it doesn't change its timing, and I wonder if thats because I still have the line
Quote:
#BGCHANGES:0.000=Krishach - Project=1.000=0=0=1,
99999=-nosongbg-=1.000=0=0=0 // don't automatically add -songbackground
in the SM file. Does that need to be removed or altered?

How do you write your script in DWI when your playing just one video?

Last edited by Krishach : 11-07-2008 at 11:38 AM.
  Reply With Quote

Old 11-14-2008, 11:37 AM   #9
Krishach
//bemanistyle::[User]
 
Krishach's Avatar
 
Krishach is offline
Join Date: Sep 2008
Posts: 6
Marketplace Rating: 0
Tokens: 132.76
Bank: 0.00
Total Tokens: 132.76
Donate Tokens
Send a message via PM  to Krishach
Default



Would someone please post an example script for a single video, and tell me with clear words what changes need to be make to the SM file so the video write in the DWI file plays correctly?
  Reply With Quote

Old 11-17-2008, 04:45 AM   #10
Akira
I Can, You Can, We Can
 
Akira's Avatar
 
Akira is offline
Join Date: Dec 2005
Location: Shizuoka Elementary School
Posts: 2,002
Marketplace Rating: 0
Tokens: 29,276.92
Bank: 201,390,354.34
Total Tokens: 201,419,631.26
Donate Tokens
Send a message via PM  to Akira
Default

okay... shameless plug

Aya Hirano - God Knows

what I did was actually edit the video to match the beat to where it starts. look at that file in the editor and see where I start them

also, I remove the audio from the video file and keep it in a low, but clear resolution like 320 x 240 to prevent lag. Also, use a more familiar encoding like DivX and XviD
  Reply With Quote

Old 11-17-2008, 10:04 PM   #11
Krishach
//bemanistyle::[User]
 
Krishach's Avatar
 
Krishach is offline
Join Date: Sep 2008
Posts: 6
Marketplace Rating: 0
Tokens: 132.76
Bank: 0.00
Total Tokens: 132.76
Donate Tokens
Send a message via PM  to Krishach
Default

Thanks. If my projects finish, is it against this sites rules to post the DMI and SM files and link offsite to AMV.org, where the videos I have been given permission to use are?

The artist videos are freeform fan vids, but I believe its a free download. Not sure about rights though, however I personally bought the CDs for the songs in the vids (why do a vid/stepchart if you don't love the song, right?)


EDIT: it looks like you changed the beat that the video starts on. How do you change the Second that the video starts on? Like starting at -8.46 seconds, for example.

Last edited by Krishach : 11-17-2008 at 11:20 PM.
  Reply With Quote

Old Yesterday, 09:33 PM   #12
Krishach
//bemanistyle::[User]
 
Krishach's Avatar
 
Krishach is offline
Join Date: Sep 2008
Posts: 6
Marketplace Rating: 0
Tokens: 132.76
Bank: 0.00
Total Tokens: 132.76
Donate Tokens
Send a message via PM  to Krishach
Default

sorry again for a bump, but I still need a little help changing what second the video itself starts on. The information previously provided let me change what BEAT it started on, but if I need to start the video itself on second 20 (video time 0:20, not song time) or on time -8.46, how does a string for DWI look to make that work? I tried writing the one for the FAQ on DWIs and starting that way, but I must have coded something wrong, because it doesn't seem to change anything.
  Reply With Quote
Reply



Go Back   Bemanistyle [dot] com Forums > Bemani Simulation > Dance Dance Revolution Simulation
Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Sponsored Advertisement



All times are GMT -6. The time now is 08:48 PM.

vBulletin skin developed by: eXtremepixels
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
| Home | Register | FAQ | Members List | Calendar | Today's Posts | Search | New Posts |