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

Create MP4 file based on h265 stream #608

Closed pmuvva closed 3 years ago

pmuvva commented 3 years ago

Hi,

I am using mobile-ffmpeg in Android platform. I collected h265 stream from gstreamer in filesink. ! queue ! valve name=valve ! rtph265depay ! h265parse ! video/x-h265, stream-format="byte-stream" ! filesink location=input.h265

I want to put h265 stream into mp4 without re-encoding: I ran below command:

parsecommand= "-i input.h265 -c copy output.mp4"

final int rc = FFmpeg.execute(parsedCommand)

Always rc returns 1 instead 0 and it is not generated mp4 file.

I ran same command in dektop ffmpeg and it generated MP4 properly. I am able to play .MP4 file through VLC player and Android player also.

Please specify what am I making mistake here?

pmuvva commented 3 years ago

I made mistake, added extra space because of that it failed.