Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    deepak sood
    @deepaksood619
    Command that does run with no audio - -y -loop 1 -i /storage/emulated/0/VideoEditor/download.jpg -i /storage/emulated/0/VideoEditor/audio_20170426_224342.mp3 -shortest /storage/emulated/0/VideoEditor/intermediate_0.ts
    I have tried different formats with this configuration too like copying the audio using -c copy with different codecs.
    But nothing worked.
    Is there something i am missing or doing wrong?
    Daniyal Yasin
    @daniyalyasin93

    Hi,

    I am using this lib in my project.

    On running:
    ffmpeg -i "/storage/emulated/legacy/DCIM/Camera/VID_20170426_234723.mp4"

    I am getting: "/storage/emulated/legacy/DCIM/Camera/VID_20170426_234723.mp4": No such file or directory

    While if i use adb shell to verify existence of file:

    shell@mako:/storage/emulated/legacy/DCIM/Camera $ ls | grep 723.mp4
    Output: VID_20170426_234723.mp4

    Can someone please help regarding this?
    hothucdong
    @hothcudong
    Hi all!
    I have a problem with ffmpeg in android
    hothucdong
    @hothcudong
    My app use ffmpeg to convert webm to mp3, it work fine when only 1 instance of ffmpeg running. But when i use many ffmpeg task it's issue an error that only 1 ffmpeg can run at a time, how can i solve that
    Cloyd
    @cloyd1926
    Hello
    Junqiu Zheng
    @OddCN
    hello
    Junqiu Zheng
    @OddCN
    hi hello
    Junqiu Zheng
    @OddCN
    :smile:
    :+1:
    Junqiu Zheng
    @OddCN
    hello
    Junqiu Zheng
    @OddCN
    :sparkles:
    Killer
    @mwshubham
    Hello Dev community
    \o
    Anbuselvankt
    @Anbuselvankt

    Hi,

    I used the video compression process with the below comments, it works for up to Nougat 7.0 (API level 24), After the Android version doesn't work. Kindly help me on this.
    string[] cmds = new string[] {
    "-y",
    "-i",
    inputFilepath,
    "-strict", "experimental",
    "-vcodec", "libx264",
    "-preset", "ultrafast",
    "-crf","30", "-acodec","aac", "-ar", "44100" ,
    "-q:v", "20",
    "-vf",
    "mp=eq2=1:1.68:0.3:1.25:1:0.96:1",
    ouputFile,
    };
    Has anyone had this same problem and has a solution?

    Sagar Atalatti
    @sagaratalatti
    Never got this project compiled 😫
    Sagar Atalatti
    @sagaratalatti
    Has anyone compiled ffmpeg-androind-java on windows ?
    GerardS
    @ginzzo
    Hi guys
    anyone here?
    zhimin.yu
    @yuzhimin201
    Hi guys!
    I got a problem here, when i use ffmpegframeRecorder, i input a mp3 audio and output as outputstream, but i will block at recorder.stop()
    the error is could not encode audio packet
    சதீஷ் ஜெகநாதன்
    @tutysathish1404_twitter
    Hi Guys
    Any one completed android 64 bit support?
    AamirNaseer1
    @AamirNaseer1
    hi
    is there anyone to help me ?
    I need help
    Pratik Butani
    @pratikbutani

    Im getting this issue while killing process

    E/FFmpeg: Error running FFmpeg
    java.lang.IllegalThreadStateException: process hasn't exited
    at java.lang.UNIXProcess.exitValue(UNIXProcess.java:215)
    at com.github.hiteshsondhi88.libffmpeg.CommandResult.getOutputFromProcess(CommandResult.java:18)
    at com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:44)
    at com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:10)
    at android.os.AsyncTask$2.call(AsyncTask.java:333)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
    at java.lang.Thread.run(Thread.java:764)

    Can anyone help?
    Akshay Bhuradia
    @akshaybhuradia2020

    I want to convert m3u8 to mp4 and i would like to do conversion as well as download on same time. for download i have used http protocol of ffmpeg.

    I am running this command

    ffmpeg -i ultra.m3u8 -c copy -listen 1 -seekable 1 -f mp4 http://0.0.0.0:8080/test.mp4

    when i trigger this url("http://0.0.0.0:8080/test.mp4"), then file start's download, but i am not able to play video.

    and i get error when all chunks are read:

    [hls @ 0x55da053b4100] Opening 'ultra177.ts' for reading
    [tcp @ 0x55da0540f940] Connection to tcp://0.0.0.0:8080 failed: Connection refused
    [tcp @ 0x55da05520480] Connection to tcp://0.0.0.0:8080 failed: Connection refused
    [tcp @ 0x55da053ca780] Connection to tcp://0.0.0.0:8080 failed: Connection refused
    [tcp @ 0x55da05485f80] Connection to tcp://0.0.0.0:8080 failed: Connection refused
    [tcp @ 0x55da053ced40] Connection to tcp://0.0.0.0:8080 failed: Connection refused
    [tcp @ 0x55da054255c0] Connection to tcp://0.0.0.0:8080 failed: Connection refused
    [tcp @ 0x55da0540f940] Connection to tcp://0.0.0.0:8080 failed: Connection refused
    [tcp @ 0x55da05435380] Connection to tcp://0.0.0.0:8080 failed: Connection refused

    frame=53236 fps=7939 q=-1.0 Lsize= 476447kB time=00:29:36.30 bitrate=2197.3kbits/s speed= 265x
    video:446847kB audio:28278kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.278083%

    dianappsmahendra
    @dianappsmahendra
    Hello
    Can Any one Help me
    dianappsmahendra
    @dianappsmahendra
    exeCmd.add("-y");
    exeCmd.add("-i");
    exeCmd.add(videoPath1);
            exeCmd.add("-i");
            exeCmd.add(imgPath2);
    
            exeCmd.add("-filter_complex");
            exeCmd.add("[1:v]scale="+circleBitmapWidth+":"+circleBitmapHeight+"[ovrl];[0:v][ovrl]overlay=x=(main_w-overlay_w)-5:y=(main_h-overlay_h)-5");
            exeCmd.add("-vcodec");
            exeCmd.add("libx264");
            exeCmd.add("-preset");
            exeCmd.add("ultrafast");
    exeCmd.add("-y");
    exeCmd.add("-i");
    exeCmd.add(videoPath);
    exeCmd.add("-i");
    exeCmd.add(imgPath1);
            exeCmd.add("-filter_complex");
            exeCmd.add("[1:v]scale=" + logoBitmapWidth + ":" + logoBitmapHeight + "[ovrl];[0:v][ovrl]overlay=x=15:y=(main_h-overlay_h)-5");
    
            exeCmd.add("-vcodec");
            exeCmd.add("libx264");
            exeCmd.add("-preset");
            exeCmd.add("ultrafast");
            exeCmd.add(output.getAbsolutePath());
    How can i run two command into one command
    ?
    chetanprakashsharma
    @chetanprakashsharma

    Hello Friends
    In Android Studio:
    I am facing problem in merging audio and video into one video....I have tried various commands but everytime only video is coming as silent...

    ffmpeg -i video.mp4 -i audio.mp3 -c:v copy -c:a aac -map 0:v:0 -map 1:a:0 output-2.mp4

    it will be a great help if any one suggest where i am wrong

    1 reply
    zia
    @zia-shaadoow
    You need to use this command -filter_complex [0:a][1:a]amerge=inputs=2,pan=stereo|c0<c0+c2|c1<c1+c3 -vb 2M -vcodec libx264 apply this filter. [0:a][1:a]amerge=inputs=2 -> first this set of command merge the two aduio and next this set pan=stereo|c0<c0+c2|c1<c1+c3
    tells the ffmpeg to select the channel of audio stream.
    chetanprakashsharma
    @chetanprakashsharma
    thank you for your help....it's working for android version till 28 but it's not working in android version 29 and 30...can you please help me in this
    zia
    @zia-shaadoow
    what error you are getting ? I am using same command and its working fine.

    use this gradle library.
    this one is updated and better in speed.
    implementation 'com.arthenica:mobile-ffmpeg-full-gpl:4.3.1'

    val resultCommand = FFmpeg.execute("Enter your command")
    if you get 0 command works fine and if you get 1 in result , than there is issue. i hope this will help you.

    Ketan Pipaliya
    @pipaliyaketan
    hi error=13, Permission denied error occure on my app any solution?
    Anjali Sahu
    @Anjali_07_gitlab
    Hi getting the same error..
    zia
    @zia-shaadoow
    you have to implement run time permission. otherwise command will execute.
    zp2521
    @zp2521
    AnkitaManiya
    @AnkitaManiya
    @hiteshsondhi88 I'm working on OverlayImage on video using ffmpeg .It's working fine upto Android 10. but when i test it in Android11 command failed with E/mobile-ffmpeg: /storage/emulated/0/Maker/motion_20211016_180036.mp4: No such file or directory. My Input command is: strArr = new String[]{"-i", "/storage/emulated/0/Maker/motion_20211016_180036.mp4","-i","/storage/emulated/0/Maker/motion_20211016_180036.png","-filter_complex", "[0:v][1:v] overlay=W-w:H-h", "-c:a", "copy", "/storage/emulated/0/Maker/video_20211016_136.mp4"}; Have provide any solutions?