Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 15 of 15
  1. #1
    Join Date
    May 2003
    Location
    Belarus
    Posts
    45

    problem with sound and video sinchronization

    Problem with sound and video sinchronization.
    I want to make video player where I can choose Language sound (english or russian), Subtitles (ON - english or russian).
    I've made 3 files - video.avi, english.wav, russian.wav.
    So when I choose another sound for video (video is playing) - there is no sinchronization audio with sound. I tried several codecs for audio and for video and no success.

    Help me (who know) to solve this problem, or how to make such player???
    THNX

  2. #2
    Join Date
    Jun 2002
    Location
    Israel
    Posts
    1,843
    If you really want to make sure you remain with perfect sync, you need to interleave (make one file) of audio and video. In your case, that would be one file for english and one for russian. Then, based on the user's choice, you would play the relevant video file.
    You can use a program like VirtualDub to build (mux) your audios with video.
    Good luck
    Yossi

  3. #3
    Join Date
    May 2003
    Location
    Belarus
    Posts
    45

    yes

    Yes, I agree, but I need several video clips, with different length. If I will do 2 video files for every video clip then my program will need a lot of dick space.

  4. #4
    Join Date
    Jun 2002
    Location
    Israel
    Posts
    1,843
    I don't think you have a lot of choice. With subs, you could get away with external synchronizing, but with audio, especially if you want lipsync...no way, in my opinion.
    Yossi

  5. #5
    Join Date
    May 2003
    Location
    Belarus
    Posts
    45
    Ok, I understood. Will try to do it in your way.

  6. #6
    Join Date
    Jun 2002
    Location
    Israel
    Posts
    1,843
    Space management is crucial.
    Advanced planning is the key.
    How long a time do your videos total?
    Based on that figure, you can calcute what codec and at what compression do you need to work.
    Good luck
    Yossi

  7. #7
    Join Date
    May 2003
    Location
    Belarus
    Posts
    45
    Ok, what can you suggest me for subtitles. How to realise it?

  8. #8
    Join Date
    Aug 2003
    Location
    Maine, USA
    Posts
    1,695
    Windows Media Player will do captions via SAMI file (xml file), but it's a lot of work. What are the lengths of these videos?

    Info on SAMI format -

    http://www.webaim.org/techniques/captions/windows/1.php

  9. #9
    Join Date
    May 2003
    Location
    Belarus
    Posts
    45
    Ok, thnx for suggestion.
    But how tell me please -
    WHAT is SAMI ??? (could I make subtitles with this files)
    How to switch Subtitles On in Windows Media Player Plugin ??? (if I will hide context menu)

    THNX

  10. #10
    Join Date
    May 2003
    Location
    Belarus
    Posts
    45
    I downloaded Example.wmv and Example.smi files. And in the Windows Media Player Plugin it does not work.
    Now I am going to "AutoPlay 5.0 Plugins & Addons" section for answering questions.
    Lets go together

  11. #11
    Join Date
    Aug 2003
    Location
    Maine, USA
    Posts
    1,695
    Well, I just realized that, by default, the WMP plugin in AMS doesn't have the captions window enabled (and I don't see a way to rectifiy this), so in order for a structured xml file to work, it would have to be in a web object - I think this is beyond the scope of this topic.....

    What you may want to look into and study are the video positioning actions and use if statements to populate a paragraph object. Again, would take some time, but it could be done.

    Here's a quick example using the magnolia.mpg. Kind of thrown together, but you'll get the idea (I'm sure the code could be streamlined).

    Captions


    HTH

  12. #12
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Coo-wel.

  13. #13
    Join Date
    Jun 2002
    Location
    Israel
    Posts
    1,843
    Here is a workflow to build/use/embbed subtitles:
    Tools needed:
    Subtitle Workshop (free)
    VobSub (free)
    TmpgEncoder (partly free)

    First of all, download and install these 3 apps. Then...

    1. With Subtitle workshop, you can type/import your text and time it to your video file. It is a GREAT!!! tool. CHeck all functions, especially the translation ones

    2. You get a subtitle file (in any of the 10s of formats available...), check that it has the same name as the video file.

    3. After installing VobSub, you can see the subtitles in your media player. (VobSub acts as a DirectShow plugin).

    3. Same in TMPGEnc. There, you can import your Video file (AVI, for example) and convert to mpeg while embbedding the subs. Or save as AVI again with the subs embbeded.
    Works smoothly and give good results.

    Good luck

    Yossi

  14. #14
    Join Date
    May 2003
    Location
    Belarus
    Posts
    45
    Ok thnx. I 'll do it.
    Again thanx to everybody.
    Br.

  15. #15
    Join Date
    May 2003
    Location
    Belarus
    Posts
    45

Similar Threads

  1. Video sound volume
    By soldier22022 in forum AutoPlay Media Studio 5.0
    Replies: 1
    Last Post: 01-31-2005, 02:53 PM
  2. Video Problem
    By ScottDuncan in forum AutoPlay Media Studio 5.0
    Replies: 4
    Last Post: 06-26-2004, 12:50 PM
  3. WMV 8 & Video Seek Specific problem
    By Stormstereo in forum AutoPlay Media Studio 5.0
    Replies: 7
    Last Post: 05-07-2004, 06:55 AM
  4. No video but sound okay on CDrom
    By Qbaser in forum AutoPlay Media Studio 4.0
    Replies: 2
    Last Post: 10-27-2003, 04:14 PM
  5. Sound but no video
    By charwell in forum AutoPlay Media Studio 4.0
    Replies: 6
    Last Post: 10-19-2003, 09:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts