Jaffree | _______ Java ffmpeg | Video Utils library
kandi X-RAY | Jaffree Summary
kandi X-RAY | Jaffree Summary
Jaffree stands for JAva FFmpeg and FFprobe FREE command line wrapper. Jaffree supports programmatic video production and consumption (with transparency). It integrates with ffmpeg via java.lang.Process.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Reads the log message
- Get the next message
- Parses the log level
- Determine if next log level exists
- Parse the given input stream
- Parses a frame into a Frame object
- Read a frame from the input stream
- Entry point for testing
- Download a website from an URL
- Parse stdout from stdout
- Converts a string to a byte array
- Retrieves the frames
- Converts byte array into a buffered image
- Run the server
- Get sub data list
- Compares two rational numbers
- Set the frame count for this stream
- Returns the string representation of this command
- Parses the probes input stream
- Returns the command line arguments
- Starts FTP server
- Read bytes from stdout
- Get Packets and frames from the probe data
- Disables streaming
- Captures the current device as a window
- Execute the probe asynchronously
Jaffree Key Features
Jaffree Examples and Code Snippets
Community Discussions
Trending Discussions on Jaffree
QUESTION
I. Background
- I am trying to make an application which helps to match subtitles to the audio waveform very accurately at the waveform level, at the word level or even at the character level.
- The audio is expected to be Sanskrit chants (Yoga, rituals etc.) which are extremely long compound words [ example - aṅganyā-sokta-mātaro-bījam is traditionally one word broken only to assist reading ]
- The input transcripts / subtitles might be roughly in sync at the sentence/verse level but surely would not be in sync at the word level.
- The application should be able to figure out points of silence in the audio waveform, so that it can guess the start and end points of each word (or even letter/consonant/vowel in a word), such that the audio-chanting and visual-subtitle at the word level (or even at letter/consonant/vowel level) perfectly match, and the corresponding UI just highlights or animates the exact word (or even letter) in the subtitle line which is being chanted at that moment, and also show that word (or even the letter/consonant/vowel) in bigger font. This app's purpose is to assist learning Sanskrit chanting.
- It is not expected to be a 100% automated process, nor 100% manual but a mix where the application should assist the human as much as possible.
II. Following is the first code I wrote for this purpose, wherein
- First I open a mp3 (or any audio format) file,
- Seek to some arbitrary point in the timeline of the audio file // as of now playing from zero offset
- Get the audio data in raw format for 2 purposes - (1) playing it and (2) drawing the waveform.
- Playing the raw audio data using standard java audio libraries
III. The problem I am facing is, between every cycle there is screeching sound.
- Probably I need to close the line between cycles ? Sounds simple, I can try.
- But I am also wondering if this overall approach itself is correct? Any tip, guide, suggestion, link would be really helpful.
- Also I just hard coded the sample-rate etc ( 44100Hz etc. ), are these good to set as default presets or it should depend on the input format ?
IV. Here is the code
...ANSWER
Answered 2020-Apr-27 at 14:59I suspect your screech sound stems from a half-filled buffer that is handed to the audio system.
As indicated in the comment above, I'd use something like FFSampledSP (if on mac or Windows) and then code like the following, which is much more java-esque.
Just make sure the FFSampledSP complete jar is in your path and you should be good to go.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Jaffree
You can use Jaffree like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the Jaffree component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page