Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • Android FFMpeg No such file or directory error

    2 juin 2016, par GuyZ

    I am using ffmpeg for android (using the gradle plugin 'com.writingminds:FFmpegAndroid:0.3.2') and I am trying to crop a video to a 16:9 (w:h) ratio. The original video is 1080:1920 (w:h). When I execute the command I get an IOException No such file or directory.

    The command I am using:

    -i /storage/emulated/0/Movies/MyApp/result_joined.mp4 -vf crop=1080:607   -preset ultrafast /storage/emulated/0/Movies/MyApp/result_cropped.mp4
    

    The exception:

    java.io.IOException: Error running exec(). Command: 
    [/data/user/0/my.package.name/files/ffmpeg, -i, /storage/emulated/0/Movies/MyApp/result_joined.mp4, -vf, crop=1080:607, -preset, ultrafast, /storage/emulated/0/Movies/MyApp/result_cropped.mp4] Working Directory: null Environment: null
    Caused by: java.io.IOException: No such file or directory
    

    After searching several stack overflow questions with no help. I also tried to save files to internal storage instead of external storage. Same result

    Any help?

  • How to record video from rtsp url of camera using ffmpeg libraries

    2 juin 2016, par samm

    Can anyone tell me How to record video from rtsp url of live camera using ffmpeg libraries in windows platform. in command line we are doing in this way

    ffmpeg -i rtsp://url -vcodec copy -b:v 2108k -t 10 -f avi out.avi

    but I want to do this using ffmpeg library functions.

    thanks in advance

  • Conversion of H.264 media file to mp4

    2 juin 2016, par arceus

    I have a raw h264 file which I want to convert to mp4 format so that I can play them in any video player.But I am getting many errors when I use ffmpeg for this task. I have used the following command line to convert to mp4.

    ffmpeg -f h264 -i input.264 -vcodec output.mp4
    

    Below are the errors I get.

    missing picture in access unit with size 3273224
    no frame
    decoding for stream 0 failed
    could not find codec parameters for stream 0
    

    When I probe using ffprobe input.264 I get these errors.

    Missing picture in access unit with size 3273224
    No start code found
    Error splitting the input into NAL units
    decoding for stream 0 failed
    could not find codec parameters for stream 0
    

    I have checked other similar problems in this site but could not find the solution.I have added the file at http://s000.tinyupload.com/index.php?file_id=81246308569166574331

    Have a look at the video.

  • ffmpeg concat poduces DTS out of order errors

    2 juin 2016, par Andy

    I'm following the documentation on how to concatenate files with ffmpeg but during the process I'm seeing lots of warning and the output video stops after the first chunk but the audio keeps on playing.

    This is the command I'm using to concatenate the files:

    ffmpeg -f concat -i mylist.txt -c copy output.webm
    

    This are the warnings I'm seeing:

    [concat @ 0x7fee11822a00] DTS 0 < 2500 out of order
    [webm @ 0x7fee11011000] Non-monotonous DTS in output stream 0:0; previous: 2500, current: 0; changing to 2500. This may result in incorrect timestamps in the output file.
    

    The video files are coming from an external source. My current solution is to re-encode every file sepeatly to mp4 and then to concatenate them together and then to re-encode the complete file back to webm. That, of cause, that takes some significant time but I can't find another solution.

  • Unknown encoder libvpx [duplicate]

    2 juin 2016, par Justin Tullock

    This question already has an answer here:

    I'm trying to convert gif to webm files. I use

    ffmpeg -i gif.gif -c:v libvpx -crf 12 -b:v 500K webm.webm
    

    which tells me Unknown encoder 'libvpx'

    But when I search libvpx, this is the output

    ========================= N/S matched: libvpx==========================
    libvpx-devel.i686 : Development files for libvpx
    libvpx-devel.x86_64 : Development files for libvpx
    libvpx.i686 : VP8 Video Codec SDK
    libvpx.x86_64 : VP8 Video Codec SDK
    libvpx-utils.x86_64 : VP8 utilities and tools
    

    So I did compile ffmpeg with libvpx correctly? Or did I miss something? Thank you for your help.