Newest 'ffmpeg' Questions - Stack Overflow

http://stackoverflow.com/questions/tagged/ffmpeg

Les articles publiés sur le site

  • FFMPEG : error on audio and video combined

    9 septembre 2014, par oneofakind

    I have a command to combine a audio only file and a video only file, but there is an error in executing it.

      [h264 @ 0xca23d40]brainfart cropping not supported, this could look slightly wrong ...
      [h264 @ 0xca23d40]left block unavailable for requested intra mode at 0 0
      [h264 @ 0xca23d40]error while decoding MB 0 0, bytestream (134838)
    

    Here is my command:

      ffmpeg -i video.mp4 -i audio.wav -map 0:v -map 1:a -acodec copy -pass 1 -vcodec copy -b 120000 -s 2560x1024 -f avi -threads 0 -y combine2.mp4
    

    This works in my windows PC but does not work on my linux. It generate a result the audio sounds fine but the video does not move. It's as if it just one picture.

    Help, thanks.

  • FFmpeg in Android:UnsatisfiedLinkError : Cannot load library : reloc_library:cannot locat 'log2f'

    9 septembre 2014, par rosen

    Compiled transplant FFmpeg using the NDK in ubuntu,After the success of the compilation, Run under the eclipse will appear "cannot locate 'log2f" error

    09-09 12:03:31.152: W/dalvikvm(31395): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/example/ffmpegtest/MainActivity;

    09-09 12:03:31.152: W/dalvikvm(31395): Class init failed in newInstance call (Lcom/example/ffmpegtest/MainActivity;)

    09-09 12:03:31.162: W/dalvikvm(31395): threadid=1: thread exiting with uncaught exception (group=0x40ce12d0)

    09-09 12:03:31.162: E/AndroidRuntime(31395): FATAL EXCEPTION: main

    09-09 12:03:31.162: E/AndroidRuntime(31395): java.lang.ExceptionInInitializerError

    09-09 12:03:31.162: E/AndroidRuntime(31395): at java.lang.Class.newInstanceImpl(Native Method)

    09-09 12:03:31.162: E/AndroidRuntime(31395): at java.lang.Class.newInstance(Class.java:1319)

    09-09 12:03:31.162: E/AndroidRuntime(31395): at android.app.Instrumentation.newActivity(Instrumentation.java:1023)

    09-09 12:03:31.162: E/AndroidRuntime(31395): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1874)

    09-09 12:03:31.162: E/AndroidRuntime(31395): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1984)

    09-09 12:03:31.162: E/AndroidRuntime(31395): at android.app.ActivityThread.access$600(ActivityThread.java:126)

    09-09 12:03:31.162: E/AndroidRuntime(31395): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1150)

    09-09 12:03:31.162: E/AndroidRuntime(31395): at android.os.Handler.dispatchMessage(Handler.java:99)

    09-09 12:03:31.162: E/AndroidRuntime(31395): at android.os.Looper.loop(Looper.java:137)

    09-09 12:03:31.162: E/AndroidRuntime(31395): at android.app.ActivityThread.main(ActivityThread.java:4456)

    09-09 12:03:31.162: E/AndroidRuntime(31395): at java.lang.reflect.Method.invokeNative(Native Method)

    09-09 12:03:31.162: E/AndroidRuntime(31395): at java.lang.reflect.Method.invoke(Method.java:511)

    09-09 12:03:31.162: E/AndroidRuntime(31395): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:787)

    09-09 12:03:31.162: E/AndroidRuntime(31395): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:554)

    09-09 12:03:31.162: E/AndroidRuntime(31395): at dalvik.system.NativeStart.main(Native Method)

    09-09 12:03:31.162: E/AndroidRuntime(31395): Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1287]: 143 cannot locate 'log2f'...

    09-09 12:03:31.162: E/AndroidRuntime(31395): at java.lang.Runtime.loadLibrary(Runtime.java:370)

    09-09 12:03:31.162: E/AndroidRuntime(31395): at java.lang.System.loadLibrary(System.java:535)

    09-09 12:03:31.162: E/AndroidRuntime(31395): at com.example.ffmpegtest.MainActivity.(MainActivity.java:23)

    09-09 12:03:31.162: E/AndroidRuntime(31395): ... 15 more

  • ffmpeg correct audio ( stretch or shrink)

    9 septembre 2014, par mido22

    I am not familiar with ffmpeg or video processing in general, but i am developing a web app, where people can record videos. I have been able to send chunks of audio n video to server successfully, where I am trying to combine them and return as single proper file.

    my problem is if the recording is for one hour, after merging the chunks

    video length : 1:00:00 , audio length : 00:59:30,

    now, this is not a issue of audio not getting recorded( I have checked that), the problem is, somehow, when i merge the chunks of audio, it shrinks,

    I find that it is progressive sync issue where it gets worse and worse as time increases.

    I have searched the net for the solution, most places say async, I have tried using it, but to no avail, is the below usage correct?

    ffmpeg -i audio.wav -async 1 -i video.webm -y -strict -2 v.mp4

    (v.mp4 is the final file that I provide to the users.)

  • JavaCv take time to create video from images

    8 septembre 2014, par Sohaib Ahmed

    I used the Javacv in android. In AsyncTask I convert the sequence of images into video but it take time. I run application user click on record button then handler take the images of my app after one second.When user click on the stop. Handler stop the work and AsyncTask creating the video from sequence of images but it take time. I do not understand why it take time. Any way to make it fast? FFmpegFrameRecorder is used to create the video from sequence of images.

    Even I run my app just for 1 minute after I stop it take 5-10 minute to create the video from images.

  • FFmpeg fails to be built for android

    8 septembre 2014, par Andro-Begg

    I'm trying to build FFmpeg for android, everything works just fine until the build of build_android.sh, I get at the end :

    /bin/sh: 1: cd: can't cd to ../ffmpeg-build/armeabi/lib
    make: *** [install-libavresample-shared] Error 2
    make: *** Waiting for unfinished jobs....
    /bin/sh: 1: cd: can't cd to ../ffmpeg-build/armeabi/lib
    make: *** [install-libavutil-shared] Error 2
    /bin/sh: 1: cd: can't cd to ../ffmpeg-build/armeabi/lib
    make: *** [install-libswresample-shared] Error 2
    

    I've been inspecting this for a while but couldn't figure out where the problem is..

    Any help will be very appreciated. Thank you.