Repository navigation
Replies: 2 comments · 1 reply
|
I'm having the same problem, did you find a solution? |
All reactions
|
Please, provide exception stacktrace and ffmpeg debug logs. |
All reactions
|
Hello kokorin In some videos I encoded, there were two video streams, and one of them was in MJPEG format, which caused an error. As a solution, when I used -map 0:v:0 to take the first video stream, I encountered the issue I mentioned earlier. Alternatively, I resolved the problem by using ffprobe to identify the sources and mapping the non-MJPEG video streams with -map 0:index. However, as I mentioned before, when I manually ran the -map 0:v:0 command directly on the server, I was able to profile without any issues. ffmpeg debug logs = |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I'm using the Jaffree library in my Spring Boot application to execute FFmpeg commands with a ProgressListener. While the same FFmpeg command works perfectly when run manually in the terminal without -progress section, it fails in my application with the following warning and error logs:
WARN --- [ Runnable-0] c.g.k.jaffree.process.Executor : Interrupting starter thread (Thread-11) because of exception: TCP negotiation failed WARN --- [ Thread-11] c.g.k.jaffree.process.ProcessHandler : Process has been interrupted DEBUG --- [ StdErr] c.g.k.jaffree.process.Executor : Exception in thread StdErr, collecting for later report. Message: Read failedMy Code is =
`FFmpeg command =
FFmpeg.atPath(Paths.get(ffmpegPath))
.addInput(UrlInput.fromUrl(job.getSource().getPath()))
.addOutput(UrlOutput.toUrl(job.getOutputPath()))
.setLogLevel(LogLevel.ERROR)
.setProgressListener(progressListener);
ffmpeg command example =
/usr/bin/ffmpeg -loglevel level+error -i /home/berkay.demirbas/test.mkv -n -progress tcp://127.0.0.1:36813 -c:a aac -b:a 128000 -ar 48000 -ac 2 -c:v libx264 -crf 17 -vf scale=1920:1080 -b:v 4500000 -maxrate 5000000 -bufsize 2250000 -tune film -profile:v baseline -map 0:v:0 -c:s mov_text /home/berkay.demirbas/test-1080p.mp4All reactions