Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • How to convert OpenCv Mat to ffmpeg AVPicture ? [on hold]

    9 août 2015, par Pavel

    I need convert OpenCV Mat BGR image to AVPicture YUV420P struct. How do it?

  • Record D3.js whiteboard animation as mp4 audio and video

    9 août 2015, par Jin Ng

    I have a whiteboard/hand sketching app written with D3.js svg path elements. These elements are grouped into scenes with their own mp3 audio.

    Multiple scenes with their animated svg paths are played according to a timeline, with the audio running perfectly.

    So the end result is like a whiteboard animated movie. This works well within the app. How can i record the whole animation as a mp4 file?

    I would like to run this entirely on the client side. I have looked at ffmpeg but prefer not to do a desktop install for this web app.

    I looked into using chrome tab extension but it only works on chrome browser.

    What other options do I have?

  • FFmpegMediaPlayer : findLibrary returned null

    8 août 2015, par IceJOKER

    I use https://github.com/wseemann/FFmpegMediaPlayer in my applicaton, but some Adndroid device throw exception:

    java.lang.ExceptionInInitializerError
    at ru.mypackage.PlayService.initPlayer(PlayService.java:74)
    at ru.mypackage.PlayService.onCreate(PlayService.java:68)
    at android.app.ActivityThread.handleCreateService(ActivityThread.java:1949)
    at android.app.ActivityThread.access$2500(ActivityThread.java:117)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:989)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:130)
    at android.app.ActivityThread.main(ActivityThread.java:3687)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:507)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
    at dalvik.system.NativeStart.main(Native Method)
    Caused by: java.lang.UnsatisfiedLinkError: Couldn't load avutil: findLibrary returned null
    at java.lang.Runtime.loadLibrary(Runtime.java:429)
    at java.lang.System.loadLibrary(System.java:554)
    at wseemann.media.FFmpegMediaPlayer.(FFmpegMediaPlayer.java:620)
    ... 13 more
    

    My project: enter image description here

    [![enter image description here][3]][3]

    Can somebody explain me what's wrong there? On my device and some other device the app working nice, but on some device (for example: Galaxy Ace (GT-S5830i) Android 2.3.3 - 2.3.7) it throw the exception.

    p.s. about "lib" prefix I understood ( http://developer.android.com/intl/ru/reference/java/lang/System.html#mapLibraryName(java.lang.String) )

  • Cropping android video reducing its quality

    8 août 2015, par Muhammad Umar

    I am trying to encode a video in Android with ffmpeg.

    Here is the code:

    mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.DEFAULT);
    mMediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
    mMediaRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.H264);
    mMediaRecorder.setVideoEncodingBitRate(1024 * 1000);
    mMediaRecorder.setVideoFrameRate(30);
    mMediaRecorder.setVideoSize(720, 480);
    mMediaRecorder.setOrientationHint(90);
    mMediaRecorder.setOutputFile(VIDEO_PATH_NAME);
    

    FFMPEG command:

    buffer.append("ffmpeg -i /storage/emulated/0/file.mp4 -filter:v \"crop=480:480:0:0\" -preset ultrafast -r 30 /storage/emulated/0/cropped.mp4 -movflags faststart");
    

    The cropped file is twice the size of original file and half the quality . What is going on? How can I make it lossless

  • Is it possible to create 1 image + 1 audio file = 1 video WITHOUT using ffmpeg ?

    8 août 2015, par user997841

    Is it possible to create a "1 image + 1 audio file = 1 video" WITHOUT using ffmpeg? My hosting doesn't allow it, so I'm searching for an alternative.

    I would like to be able to write it in php if that is possible.

    If anyone can lead me in the right direction that would be awesome! Switching to a dedicated server is not an option at the moment :)

    This is the code that I tried (I'm pretty new at this stuff so please be gentle :))

    $command = 'ffmpeg -loop 1 -shortest -y -i image.jpg -i audio.wav -acodec copy -vcodec mjpeg result.avi';
    exec($command);