-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I implement this command line in JAVACV? #1074
Comments
My DTMF wav file is a few key sounds that add a lot of empty data before and after the key sounds. |
It just sounds like you're losing packets on the network. RTP isn't a reliable protocol. Maybe try with HTTP instead. |
Thanks for reply. Losing package is not the cause,because using command line ,ffmpeg did this well. |
Are you running the ffmpeg program on the same device as JavaCV? |
yes。javaCV and ffmpeg are runing on my laptop (windows 10 64bits ,jdk 1.8 32bits) |
Ok, so let's keep debugging this. Does this happen only with RTP? Or does the same thing happen with a file as output? |
Sorry for replied so late. I had tried use file as output ,it is good. |
I mean, does it also work correctly in JavaCV when using a file? |
Yes both command line and javacv worked using file as output |
Ok, so it has something to do with the RTP protocol. What's the configuration of that version of ffmpeg? It get displayed when executing |
use cmd line ffmpeg configuration:
|
Hum, doesn't look like there's anything related to RTP in that list, but might be worth investigating. |
How JavaCV realize the "–re " Option in ffmpeg command line? |
It doesn't, but we can easily use something like |
Thanks, but |
It ends up throttling record(), same difference.
|
I also want to know how to implement the command -re for a record. I send video and audio frames by RTP protocol. And my video conference shows that the video is ok, but the audio is not in a right frame rate. |
Duplicate of #307 With commit bytedeco/javacpp-presets@13ffffd the String ffmpeg = Loader.load(org.bytedeco.ffmpeg.ffmpeg.class);
ProcessBuilder pb = new ProcessBuilder(ffmpeg, "-re", "-i", "+wavFilePath+", "-vn", "-acodec", "pcm_alaw", "-ar", "8000", "-f", "rtp", "rtp://aServer:aPort");
pb.inheritIO().start().waitFor(); Please give it a try with 1.5-SNAPSHOT before the release: http://bytedeco.org/builds/ |
Hi, Ineed send a dtmf wav to callee using rtp, the following command line do this well:
ffmpeg –re -i "+wavFilePath+" -vn -acodec pcm_alaw -ar 8000 -f rtp rtp://aServer:aPort
How can I implement this command line with JAVACV?
Is it the following code? Using the code, on the callee side I can only hear some part of the WAV data content , feeling like some is missing.
The text was updated successfully, but these errors were encountered: