Skip to content
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

Can't convert audio only file (mp3) #44

Closed
Emmenemoi opened this issue Mar 28, 2019 · 3 comments
Closed

Can't convert audio only file (mp3) #44

Emmenemoi opened this issue Mar 28, 2019 · 3 comments

Comments

@Emmenemoi
Copy link

2019-03-28 07:48:07.564 WARN [FFmpeg-async-runner][] c.g.k.j.p.ProcessHandler - Waiting for process has been interrupted
java.lang.InterruptedException: null
	at java.lang.Object.wait(Native Method)
	at java.lang.Object.wait(Object.java:502)
	at java.lang.UNIXProcess.waitFor(UNIXProcess.java:395)
	at com.github.kokorin.jaffree.process.ProcessHandler.interactWithProcess(ProcessHandler.java:112)
	at com.github.kokorin.jaffree.process.ProcessHandler.execute(ProcessHandler.java:85)
	at com.github.kokorin.jaffree.ffmpeg.FFmpeg.execute(FFmpeg.java:161)
	at com.github.kokorin.jaffree.ffmpeg.FFmpeg$1.call(FFmpeg.java:176)
	at com.github.kokorin.jaffree.ffmpeg.FFmpeg$1.call(FFmpeg.java:173)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.lang.Thread.run(Thread.java:745)
2019-03-28 07:48:07.564 WARN [FFmpeg-async-runner][] c.g.k.j.p.Executor - Interrupting ALIVE thread: StdOut

Probably problem parsing ffmpeg output being (for audio only):
size= 11986kB time=00:24:55.80 bitrate= 65.6kbits/s speed=55.8x

@st-h
Copy link
Contributor

st-h commented Mar 28, 2019

@Emmenemoi I have been using Jaffree to convert and analyse audio files without issues. Usually you can get more information about what is going on by enabling debug logging. This also prints out the command being executed, which often is the cause of the error you are seeing.

You can also set a breakpoint here and see what command is executed

LOGGER.info("Command constructed:\n{}", joinArguments(command));

This is what I have added to my log4j config to enable logging

        {
          "name": "com.github.kokorin.jaffree",
          "level": "debug",
          "additivity": "false",
          "appender-ref": [
            {
              "ref": "File-Appender"
            }
          ]
        },

Hope that helps in finding the cause of your issue

@Emmenemoi
Copy link
Author

Yes, sorry. After enabling debug logging i found the problem in the progress handler...

@kokorin
Copy link
Owner

kokorin commented Mar 28, 2019

@Emmenemoi thanks for your interest in Jaffree. @st-h thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants