How PTS/DTS is set/calculated in vlc ?

*nix specific usage questions
ragas
New Cone
New Cone
Posts: 3
Joined: 24 Jan 2008 07:02

How PTS/DTS is set/calculated in vlc ?

Postby ragas » 20 Feb 2008 14:56

Dear Xperts,

I am working on linux. And i am trying to sync Audio n Video . And the pts data generated at ....ffmpeg/video.c is constant i.e it doesn't get updated ( throughout the running of the video file ) . So due to which i think, i am getting a wrong time stamp all the time. As in the following code below , i_late_frames gets incremented ...
if( p_sys->i_pts && p_sys->i_pts <=( mdate() + 1000000 ) &&
!(p_block->i_flags & BLOCK_FLAG_PREROLL) )
{
p_sys->i_late_frames++;
.
.
}

and finally i get " "more than 5 seconds of late video -> dropping frame (computer too slow ?)" ) " error message and the video passes till 5 sec, and it continous again.

A/V sync is present, but it pauses n plays from time to time. Anybody can put some light on this problem ?

Question :
1) Can somebody direct/ guide me to some material on how/ where pts information is set in vlc ?
2) Any other methods to manipulate PTS to prevent it as late frame and stop those error messages , such that it doesn't affects
A/V sync ?


Warm Regards,
Sagar

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: How PTS/DTS is set/calculated in vlc ?

Postby Jean-Baptiste Kempf » 21 Feb 2008 08:56

Ask on vlc-devel mailing list.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 0 guests