Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • ffmpeg-Error splitting the argument list : Option not found

    1er mars 2017, par Stranger

    I am trying to execute below command using ffmpeg-android-java

    -i /storage/sdcard0/WhatsApp/Media/WhatsApp Video/VID-20170228-WA0000.mp4 -ss 180 -t 292 -strict -2 -async 1 /storage/sdcard0/Movies/cropper_video_1.mp4

    I am getting below failure message-

    FAILED with output : ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 4.8 (GCC) configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags= libavutil 55. 17.103 / 55. 17.103 libavcodec 57. 24.102 / 57. 24.102 libavformat 57. 25.100 / 57. 25.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 31.100 / 6. 31.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 libpostproc 54. 0.100 / 54. 0.100 Unrecognized option 'i /storage/sdcard0/WhatsApp/Media/WhatsApp Video/VID-20170228-WA0000.mp4 -ss 180 -t 292 -strict -2 -async 1 /storage/sdcard0/Movies/cropper_video_1.mp4'. Error splitting the argument list: Option not found

    Why am i getting this error and how can i resolve it?

  • How to retain format in conversion by FFmpeg ?

    1er mars 2017, par jarno

    Suppose the input file does not have filename extension. FFmpeg detects input file format, but how to use the same format for output file automatically?

  • how to extract EPG from dvb-t (live tv stream - udp) with ffmpeg ?

    1er mars 2017, par Amir Moradabadi

    I want to extract EPG from dvb-t (live tv stream - udp) with ffmpeg. I have a dvb-t device and receiving streams with udp.

  • Android - Add text or image while recording video ?

    1er mars 2017, par LuongTruong

    I am struggling with recording and editing videos. For editing, I found a useful library in Android named ffmpeg4Android. However, I am still get stuck in recording video. Here is what I want:

    1/ Add text or images in video while recording
    2/ Add filter while recording video

    I found there is a library GPUImage for Android but it has only some examples related to taking a photo, not to recording video)

    Please let me know if you have any ways or any suggested libraries which can do it.

    Thank you in advance!

    Links which I read when researching:
    Add overlay while record video on Android
    How to Record video with GPUImage?
    FFMpeg add text to actual video file after recording in Android

  • How to detect the silence at the end of an audio file ?

    1er mars 2017, par Ali Akber

    I am trying to detect silence at the end of an audio file.
    I have made some progress with ffmpeg library. Here I used silencedetect to list all the silences in an audio file.

    ffmpeg -i audio.wav -af silencedetect=n=-50dB:d=0.5 -f null - 2> /home/aliakber/log.txt
    

    Here is the output of the command:

    --With silence at the front and end of the audio file--

    [silencedetect @ 0x1043060] silence_start: 0.484979
    [silencedetect @ 0x1043060] silence_end: 1.36898 | silence_duration: 0.884
    [silencedetect @ 0x1043060] silence_start: 2.57298
    [silencedetect @ 0x1043060] silence_end: 3.48098 | silence_duration: 0.908
    [silencedetect @ 0x1043060] silence_start: 4.75698
    size=N/A time=00:00:05.56 bitrate=N/A
    

    --Without silence at the front and end of the audio file--

    [silencedetect @ 0x106fd60] silence_start: 0.353333
    [silencedetect @ 0x106fd60] silence_end: 1.25867 | silence_duration: 0.905333
    [silencedetect @ 0x106fd60] silence_start: 2.46533
    [silencedetect @ 0x106fd60] silence_end: 3.37067 | silence_duration: 0.905333
    size=N/A time=00:00:04.61 bitrate=N/A
    

    But I want something more flexible so that I can manipulate the output and do further task depending on the result.
    I want to get the output something like true or false. If there is a certain period of silence exists at the end of the audio file it will return true and false otherwise.

    Can someone suggest me an easy way to achieve this?