chenry / monte

The Monte Media Library is a Java library for processing media data. Supported media formats include still images, video, audio and meta-data.
http://www.randelshofer.ch/monte/
7 stars 3 forks source link

Audio Issues #2

Open preetamsikdar opened 6 years ago

preetamsikdar commented 6 years ago

Hi Chenry I have added the monte jar and use the audio options but its not working well getting some distorted noise in the audio.So ho can i improve that in my code.

I have added this code for adding audio along with the video screenRecorder = new ScreenRecorder(gc, new Format( MediaTypeKey, MediaType.FILE, MimeTypeKey, FormatKeys.MIME_QUICKTIME), new Format(MediaTypeKey, MediaType.VIDEO, EncodingKey, VideoFormatKeys.ENCODING_QUICKTIME_ANIMATION, CompressorNameKey, ENCODING_AVI_TECHSMITH_SCREEN_CAPTURE, DepthKey, 24, FrameRateKey, Rational.valueOf(15), QualityKey, 1.0f, KeyFrameIntervalKey, 15 * 60), new Format( MediaTypeKey, MediaType.VIDEO, EncodingKey, "black", FrameRateKey, Rational.valueOf(30)), new Format(MediaTypeKey, MediaType.AUDIO, EncodingKey, ENCODING_QUICKTIME_TWOS_PCM, FrameRateKey, new Rational(48000, 1), SampleSizeInBitsKey, 16, ChannelsKey, 2, SampleRateKey, new Rational(48000, 1), SignedKey, true, ByteOrderKey, ByteOrder.BIG_ENDIAN)); screenRecorder.start();

Can you please provide some help.

chenry commented 6 years ago

I am sorry. Ihavent worked with that codebase in over 10 years. I am not going to be able to help.

Best of luck.

On Wed, May 23, 2018, 5:41 AM preetamsikdar notifications@github.com wrote:

Hi Chenry I have added the monte jar and use the audio options but its not working well getting some distorted noise in the audio.So ho can i improve that in my code.

I have added this code for adding audio along with the video screenRecorder = new ScreenRecorder(gc, new Format( MediaTypeKey, MediaType.FILE, MimeTypeKey, FormatKeys.MIME_QUICKTIME), new Format(MediaTypeKey, MediaType.VIDEO, EncodingKey, VideoFormatKeys.ENCODING_QUICKTIME_ANIMATION, CompressorNameKey, ENCODING_AVI_TECHSMITH_SCREEN_CAPTURE, DepthKey, 24, FrameRateKey, Rational.valueOf(15), QualityKey, 1.0f, KeyFrameIntervalKey, 15 * 60), new Format( MediaTypeKey, MediaType.VIDEO, EncodingKey, "black", FrameRateKey, Rational.valueOf(30)), new Format(MediaTypeKey, MediaType.AUDIO, EncodingKey, ENCODING_QUICKTIME_TWOS_PCM, FrameRateKey, new Rational(48000, 1), SampleSizeInBitsKey, 16, ChannelsKey, 2, SampleRateKey, new Rational(48000, 1), SignedKey, true, ByteOrderKey, ByteOrder.BIG_ENDIAN)); screenRecorder.start();

Can you please provide some help.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/chenry/monte/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJS5PtB9KuCsPjScemD4x6-duSdfmaTks5t1S7BgaJpZM4UKHFl .