Commit Graph

186 Commits

Author SHA1 Message Date
Jonathan Thomas
e9e1b86f5c Fixed audio code to work with the newest version of JUCE (v2.0), and removed sample programs 2012-06-17 23:15:47 -05:00
Jonathan Thomas
b775fff325 Got ffmpeg and juce compiling and mostly everything working again. FFmpeg is the newest version, and so is JUCE. 2012-06-16 02:12:48 -05:00
Jonathan Thomas
403c7e512e Fixed 2 bugs related to audio samples. Each frame can now determine it's own # of samples, due to some sample rates not being divisible evenly into some frame rates. Also, a bug was fixed that injected a bad sample into a frame's samples, when a frame received samples from multiple audio packets. 2012-02-26 16:40:53 -06:00
Jonathan Thomas
ade29c7d68 Fixed tons of issues related to video timebase being different than the video framerate. Also, added new properties for interlaced video, correctly detect pixel ratio, and fixed Display() to adjust for pixel ratio. Also added sample_rate to a frame, so it can playback audio at the correct rate. Refactored FFmpegReader to make most methods private, and only expose the important methods publicly. 2011-12-11 20:42:50 -06:00
Jonathan Thomas
44ed83b25c Fixed bug in Display() method for audio only files (i.e. files with no images) 2011-10-27 11:38:58 -05:00
Jonathan Thomas
bfc05d507d Fixed bug on Image processing, with no video or audio present. Play() and DisplayWaveform() methods now handle not having any audio samples. 2011-10-27 11:27:44 -05:00
Jonathan Thomas
26083f27b7 Fixed a rounding error on mapping audio samples to frames. Also adjusted the sample rate on the frame.Play() method to 48khz. 2011-10-26 14:34:14 -05:00
Jonathan Thomas
81941041e3 Added a DisplayWaveform method on a frame, to help debug audio issues. It uses ImageMagick to draw each channel and all samples in each channel. 2011-10-24 17:32:26 -05:00
Jonathan Thomas
43fd6c33d0 Some major refactoing of the FFmpegReader, to allow for audio and video packets that are out of order. 2011-10-24 08:22:21 -05:00
Jonathan Thomas
4646aea99f Fixed a bug with the SDL YUV420p color conversion. Locally scoped Image was going out of scope, before I could get the colors completly out of it. Race condition. 2011-10-11 23:20:26 -05:00
Jonathan Thomas
161e8923af Initial check-in of OpenShot Library 2011-10-11 08:44:27 -05:00