On Sat, 16 Aug 2008 22:28:57 -0400, <[EMAIL PROTECTED]> wrote:

> I want to create a slideshow program and am stuck getting the audio part
> working.
>
> Besides the output_example.c and the actual source code, is there a good
> place to start learning how to use libav* ?

Are you trying to record slideshows as mpeg? or integrate video into a  
slideshow?  If you're looking for playback, there is a nice tutorial at  
http://www.dranger.com/ffmpeg/  however I'm not aware of a tutorial for  
encoding.  But, after understanding all the API used in decoding, the  
encoding makes much more sense, and ffplay.c and output_example.c become  
reasonable documentation sources.

> Else how could I go about debugging my issue ( final video sounds a bit
> like dying Darth Vader :)

If you mean the audio written by your program into a video file, we'd need  
to know more about what format you're trying to encode in, and how you're  
trying to use it (i.e. one video frame every 5 seconds with a full audio  
stream might not be possible in some containers)

If you mean audio played by your program sounds horrible, in a perfect  
world, we would all have real-time OSes.  But in the world of Windows and  
Linux, you have to decode ahead of time, use large buffers, and make sure  
you don't consume too much processor in any of your other threads so that  
the audio thread doesn't get lagged.  And even then, the amount of audio  
consumed by the soundcard will never match up with the amount that should  
have been consumed according to the system clock.  So its really just a  
large exercise in writing robust code.

-- 
Michael Conrad
IntelliTree Solutions llc.
513-552-6362
[EMAIL PROTECTED]
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to