Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • Invalid data found when processing input (on MKV's)

    7 décembre 2013, par Martzy

    With .avi and .mp4 works ok, but with mkv does not.

    ffmpeg.exe -i F:\video.mkv
    ffmpeg version N-50610-g586ae70 Copyright (c) 2000-2013 the FFmpeg developers
      built on Mar  9 2013 19:56:18 with gcc 4.7.2 (GCC)
      configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
    isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
    le-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libg
    sm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libo
    pencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-li
    bschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-lib
    twolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enabl
    e-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
      libavutil      52. 19.100 / 52. 19.100
      libavcodec     54. 92.100 / 54. 92.100
      libavformat    54. 63.104 / 54. 63.104
      libavdevice    54.  3.103 / 54.  3.103
      libavfilter     3. 42.103 /  3. 42.103
      libswscale      2.  2.100 /  2.  2.100
      libswresample   0. 17.102 /  0. 17.102
      libpostproc    52.  2.100 / 52.  2.100
    F:\video.mkv:
     Invalid data found when processing input
    

    I tried with different mkv files, with the same result.

  • ffmpeg php - how to apply filters without losing quality

    7 décembre 2013, par John

    Here is a simple request, it has an input, output, and two watermarks. From what I gathered I can't apply "-codec copy" because I'm using a filter.

    exec('ffmpeg -i input.mp4 -i wm-bl.png -i wm-br.png -filter_complex "overlay=x=0:y=H-h,overlay=x=W-w:y=H-h" output.mp4');
    

    this does the trick, as far as watermarking is concerned, but the output is compressed into half the original file size.

    Is it possible to watermark without losing video quality?

  • AMR-NB support in javacv -> ffmpeg

    7 décembre 2013, par cyberpawn

    I am trying to use AMR_NB Codec in JavaCV Android but having problems:

    This is the code i run:

    avcodec.avcodec_register_all();
    avformat.av_register_all();
    AVCodec mCodec = avcodec.avcodec_find_encoder(avcodec.AV_CODEC_ID_AMR_NB);
    

    Output: The mCodec is null but if I pass avcodec.AV_CODEC_ID_AAC than mCodec is not null

    I am assuming that I have to recompile ffmpeg with --enable-libopencore-amrnb. So, I downloaded Android NDKr9+ffmpeg-2.0.2+last_stable_x264 and added them to javacv-cppjars folder, I have also installed opencore-amr library in /usr/local. In ffmpeg-2.0.2-android-arm.patch i added the --enable-libopencore-amrnb flag and run following command in terminal

    ANDROID_NDK=/Users/android-ndk-r9b/ FFMPEG_VERSION=2.0.2 ./build_ffmpeg-android-arm.sh
    

    The script runs but the libs are not generated and the jar is empty but if I remove the --enable-libopencore-amrnb flag back then the libs are generated successfully, Please advise what am I doing wrong? What should I do? Any help would be greatly appreciated!

    by the way, I am using mac-osx

    Thanks.

  • usding ffmpeg How set watermark to video , and how split one video to multiple video using ffmpeg [on hold]

    7 décembre 2013, par user2452749

    Resp. sir

    i have quest about

    ffmpeg

    1) usding ffmpeg How set watermark to video , 2) and how split one video to multiple video using ffmpeg

  • Usage ffmpeg with Qt on mac OS X

    7 décembre 2013, par AntonD

    I'm trying to build some app on Mac OS X 10.8.5.

    I'm using Qt 5.1.1 (Clang 3.1, 64 bit) and Qt Creator 2.8.1

    ffmpeg the latest from the git repos.

    ffmpeg was builded successfully with following config

    ./configure --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-      libaacplus --enable-libass --enable-libcelt --enable-libfaac --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-openssl --enable-libopus --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-shared --disable-static --cc=clang --arch=x86_64 --enable-libxvid --prefix=/Users/ad/dev/ffmpeg/build
    

    But when i'm trying to build application int Qt i'm receving a lot of errors, smth like:

    Undefined symbols for architecture x86_64:
    "_BN_CTX_free", referenced from:
      _dh_is_valid_public_key in libavformat.a(rtmpdh.o)
    "_BN_CTX_new", referenced from:
      _dh_is_valid_public_key in libavformat.a(rtmpdh.o)
    "_BN_bin2bn", referenced from:
      _ff_dh_compute_shared_secret_key in libavformat.a(rtmpdh.o)
    etc...
    

    IMHO i'm facing the problem with linking ffmpeg. Because when i builded it i used clang compiler. But Qt used clang++ compiler. I tried to rebuild ffmpeg with flag

    --cc=clang++ 
    

    instead of

    --cc=clang 
    

    in my first config. But then i receiving error:

    ERROR: libaacplus >= 2.0.0 not found 
    

    But libaacplus presented in my enviroment.

    Could anyone say me, please, how can i decide this problem?