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.
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.
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.
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.
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;.
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.
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.
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.
Bookmarks