tanersener / mobile-ffmpeg

FFmpeg for Android, iOS and tvOS. Not maintained anymore. Superseded by FFmpegKit.
https://tanersener.github.io/mobile-ffmpeg
GNU General Public License v3.0
3.85k stars 787 forks source link

Piping ("Streaming") audio output of ffmpeg to application #680

Closed plmayer closed 3 years ago

plmayer commented 3 years ago

I'm using ffmpeg-mobile to convert compressed audio files (mp3, ogg, ...) to (originally) a PCM file. I then read that in. It works fine, but as normal with ffmpeg goes through an intermediate file.

Now, I tried to use piping to get rid of that file. I registered a named pipe with Config.registerNewFFmpegPipe and changed the command passed to executeAsync to end with "> " + namedPipe

As a result, I get an exit code 1 from ffmpeg, and the last line after all the statistics for the file in logcat reads mobile-ffmpeg: >: Read-only file system

FIXED: The syntax is wrong, should be just namedPipe. Closing issue.