Results 1 to 7 of 7

Thread: How to sync video or audio in VLC

  1. #1
    Join Date
    Apr 2010
    Posts
    78

    How to sync video or audio in VLC

    I am using windows Vista in my home PC. I am using VLC 1.8 for multimedia. But i have some trouble with sync video or audio in VLC. Please help how to do sync video or audio in VLC. Any idea. Please suggest. Thanks in advance.

  2. #2
    Join Date
    May 2008
    Posts
    3,316

    Re : How to sync video or audio in VLC

    VLC is designed for Internet development control , very compatible with VC, so call the VLC control VC when always some error, although not affecting the normal use of VLC controls,But the development has products, this phenomenon is not allowed to occur. After several trials,Can be found in what ways VC control in the call will not VLC086D error. Specific steps are:
    (1) Add VLC086D control VC;
    (2) Add the variable CVLCControl * m_pvlc, add # i nclude "vlccontrol.h";
    (3) In the initialization dialog box, add the following code: m_pvlc = NULL; m_pvlc = new CVLCControl; m_pvlc-> Create ("test", SW_SHOW,CRect (0,0,270,270), this, 1234); m_pvlc-> SetVisible (true); so that the interface in the dialog box will appear VLC control.

  3. #3
    Join Date
    Jan 2008
    Posts
    3,755

    Re: How to sync video or audio in VLC

    VLC is a powerful stuff, and you need to do a lot of interesting things.The most simple steps is to open a file from the player, you can also use the command line, such as
    C: \ Program Files \ VideoLAN \ VLC> vlc.exe test.ts
    Get built-in help, will write vlc-help.txt
    C: \ Program Files \ VideoLAN \ VLC> vlc.exe-h
    For more detailed help, there are plenty of options description
    C: \ Program Files \ VideoLAN \ VLC> vlc.exe-H

    Check that and reply.
    Last edited by Sam.D; 22-05-2010 at 09:53 AM.

  4. #4
    Join Date
    Mar 2009
    Posts
    1,588

    Re: How to sync video or audio in VLC

    Audio and video synchronization method
    1)Audio Play playsize = mpctx-> audio_out-> play (sh_audio-> a_out_buffer, playsize, playflags); after the calculated time and the data size of the total mpctx-> delay + = playback_speed * playsize / (double) ao_data.bps;
    2)Video decoding ago, with a total delay time to cut the Chen video mpctx-> delay -= frame_time;
    3)Calculate the sound delay time * time_frame = delay - mpctx-> delay / playback_speed;One float delay = mpctx-> audio_out-> get_delay (); for the years from the current voices OUTPUT BUF data is finished playing all the time so far.
    4) Play video synchronization is complete, so video playback is completely under the sound card output to the final data synchronization.
    5) calculate the difference between the current audio and video PTS double AV_delay = a_pts - audio_delay - v_pts; then calculate the correct value of x = (AV_delay + timing_error * playback_speed) * 0.1f; finally add the correct time delay accumulated in mpctx-> delay + = x;.

  5. #5
    Join Date
    Apr 2008
    Posts
    4,088

    Re: How to sync video or audio in VLC

    VLC specialize in a separate library to parse and encode libdvbpsi TS stream, and call it VLC source code can be found in / modules / demux / ts.c. Fact that the need demux, because of the time in the production of audio and video are actually independent coding, the data obtained are separated, in order to facilitate the transfer must be combined in some way, which has a variety of packaging formats there will be a demux.

  6. #6
    Join Date
    Feb 2010
    Posts
    471

    Re: How to sync video or audio in VLC

    In VLC Audio and video synchronization, For audio data, similar to the previous process with video. The difference is that the audio output link. Video processing is finished in a thread within the loop, but the audio playback of different modules running on a different thread. Audio and video synchronization in full compliance withdemuxAudio and video after the respectivePTSCarried out, with the principle of themplayer The synchronization mechanism is completely different.

  7. #7
    Join Date
    Feb 2010
    Posts
    129

    Re: How to sync video or audio in VLC

    Click "File" then "Open" from the top navigation menu of the player.Click "File", then "Open" from the players at the top navigation menu. Navigate to the movie file to open in the player. Navigate to the movie file to open in the player. Click "OK" to open the file. Click "OK" to open the file. The movie should begin playing immediately. The movie should start playing immediately. If the movie does not begin to play, the file may be corrupted or may contain an error. If the movie does not start playing, the file may be corrupted or may contain an error. For full screen viewing, right-click on the player window and select "Full Screen Mode" from the content menu. For full screen viewing, right click the player window, and select "full screen mode from the context menu.

Similar Threads

  1. How to sync mp4 video to mp4 audio track
    By Echa in forum Media Player
    Replies: 3
    Last Post: 05-03-2012, 08:41 PM
  2. Nero kwik Media Audio/Video Sync Off
    By Newfiejart in forum Windows Software
    Replies: 1
    Last Post: 27-10-2011, 02:31 PM
  3. Replies: 1
    Last Post: 20-05-2011, 08:26 AM
  4. Why is my audio and video out of sync when i use avi2dvd
    By Ekadant in forum Windows Software
    Replies: 3
    Last Post: 21-08-2009, 09:56 PM
  5. Video and Audio Out of Sync
    By ChisholM in forum Media Player
    Replies: 1
    Last Post: 24-09-2008, 01:27 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,677,340.10117 seconds with 17 queries