Recherche avancée

Médias (91)

Autres articles (51)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (13121)

  • FFMPEG av_interleaved_write_frame() : Operation not permitted

    20 octobre 2014, par camslaz

    Ok I receiving a ’av_interleaved_write_frame() : Operation not permitted’ error while trying to encode an MOV file. Firstly I need to outline the conditions behind it.

    I am encoding 12 different files of different resolution sizes and format types via a PHP script that runs on cron. Basically it grabs a 250mb HD MOV file and encodes it in 4 different frame sizes as MOV, MP4 and WMV file types.

    Now the script takes over 10mins to run and encode each of the files for the 250mb input file. I am outputting the processing times and as soon as the time on the script hits 10mins FFMPEG crashes and returns "av_interleaved_write_frame() : Operation not permitted" for the current file being encoded and all other remaining files yet to be encoded.

    If the input videos is 150MB the total time the script runs for is under 10mins so it encodes all of the videos fine. Additionally if I run the FFMPEG command on the individual file that it fails on for the 250mb file it encodes the file with no issues.

    From doing to research on the error "av_interleaved_write_frame()" it seems it is related to timestamps of what I understand to be of the input file. But in saying that it doesn’t seem to be the case in my instance because I can encode the file with no problem if I do it individually.

    example ffmpeg command

    ffmpeg -i GVowbt3vsrXL.mov -s 1920x1080 -sameq -vf "unsharp" -y GVowbt3vsrXL_4.wmv

    Error output on the failed file at 10mins. Remember there is no issue with the command if I run it by itself it is only when the script hits 10mins.

    'output' =>
        array (
          0 => 'FFmpeg version SVN-r24545, Copyright (c) 2000-2010 the FFmpeg developers',
          1 => '  built on Aug 20 2010 23:32:02 with gcc 4.1.2 20080704 (Red Hat 4.1.2-48)',
          2 => '  configuration: --enable-shared --enable-gpl --enable-pthreads --enable-nonfree --cpu=opteron --extra-cflags=\'-O3 -march=opteron -mtune=opteron\' --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-avfilter --enable-filter=movie --enable-avfilter-lavf --enable-swscale',
          3 => '  libavutil     50.23. 0 / 50.23. 0',
          4 => '  libavcore      0. 1. 0 /  0. 1. 0',
          5 => '  libavcodec    52.84. 1 / 52.84. 1',
          6 => '  libavformat   52.77. 0 / 52.77. 0',
          7 => '  libavdevice   52. 2. 0 / 52. 2. 0',
          8 => '  libavfilter    1.26. 1 /  1.26. 1',
          9 => '  libswscale     0.11. 0 /  0.11. 0',
          10 => 'Input #0, mov,mp4,m4a,3gp,3g2,mj2, from \'/home/hdfootage/public_html/process/VideoEncode/_tmpfiles/GVowbt3vsrXL/GVowbt3vsrXL.mov\':',
          11 => '  Metadata:',
          12 => '    major_brand     : qt',
          13 => '    minor_version   : 537199360',
          14 => '    compatible_brands: qt',
          15 => '  Duration: 00:00:20.00, start: 0.000000, bitrate: 110802 kb/s',
          16 => '    Stream #0.0(eng): Video: mjpeg, yuvj422p, 1920x1080 [PAR 72:72 DAR 16:9], 109386 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc',
          17 => '    Stream #0.1(eng): Audio: pcm_s16be, 44100 Hz, 2 channels, s16, 1411 kb/s',
          18 => '[buffer @ 0xdcd0e0] w:1920 h:1080 pixfmt:yuvj422p',
          19 => '[unsharp @ 0xe00280] auto-inserting filter \'auto-inserted scaler 0\' between the filter \'src\' and the filter \'Filter 0 unsharp\'',
          20 => '[scale @ 0xe005b0] w:1920 h:1080 fmt:yuvj422p -> w:1920 h:1080 fmt:yuv420p flags:0xa0000004',
          21 => '[unsharp @ 0xe00280] effect:sharpen type:luma msize_x:5 msize_y:5 amount:1.00',
          22 => '[unsharp @ 0xe00280] effect:none type:chroma msize_x:0 msize_y:0 amount:0.00',
          23 => 'Output #0, asf, to \'/home/hdfootage/public_html/process/VideoEncode/_tmpfiles/GVowbt3vsrXL/GVowbt3vsrXL_4.wmv\':',
          24 => '  Metadata:',
          25 => '    WM/EncodingSettings: Lavf52.77.0',
          26 => '    Stream #0.0(eng): Video: msmpeg4, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 1k tbn, 25 tbc',
          27 => '    Stream #0.1(eng): Audio: libmp3lame, 44100 Hz, 2 channels, s16, 64 kb/s',
          28 => 'Stream mapping:',
          29 => '  Stream #0.0 -> #0.0',
          30 => '  Stream #0.1 -> #0.1',
          31 => 'Press [q] to stop encoding',
          32 => '[msmpeg4 @ 0xdccb50] warning, clipping 1 dct coefficients to -127..127',

    Then it errors

    frame=   75 fps=  5 q=1.0 size=   12704kB time=2.90 bitrate=3588 6.0kbits av_interleaved_write_frame(): Operation not permitted',
        )

    Has any anybody encountered this sort of problem before ? It seems to be something to do with the timestamps but only because the script is running for a period longer then 10mins. It maybe related to PHP/Apache config but I don’t know if it is FFMPEG or if it is server config I need to be looking at.

  • android crop square video android compress to upload like instagram

    27 février 2018, par Mehdi Shojaeian

    I had an android application which like instagram& now I want to crop selected video in square and compress it.
    I tested ffmpeg with FFmpegAndroid by this command :

    {"-y", "-ss", "" + (startTime / 1000), "-t", "" + ((endTime - startTime) / 1000), "-i", srcFilePath, "-vcodec", "libx264", "-crf", "35", dstFilePath}

    The problem is ffmpeg run too mush slowly about 15 minute for just 30 sec video.

    I also test silicompressorr but it just resize in standard video size and not compress final video.

    How instagram cut, crop and scale down video files too fast ?

    please help me !!!

    Edit
    Ffmpef log for above is :

    D/BHUVNESH: Progress command : ffmpeg ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
    02-27 20:29:36.402 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg   built with gcc 4.8 (GCC)
    02-27 20:29:36.402 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg   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=
    02-27 20:29:36.402 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg   libavutil      55. 17.103 / 55. 17.103
    02-27 20:29:36.402 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg   libavcodec     57. 24.102 / 57. 24.102
    02-27 20:29:36.402 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg   libavformat    57. 25.100 / 57. 25.100
    02-27 20:29:36.403 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg   libavdevice    57.  0.101 / 57.  0.101
    02-27 20:29:36.403 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg   libavfilter     6. 31.100 /  6. 31.100
    02-27 20:29:36.403 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg   libswscale      4.  0.100 /  4.  0.100
    02-27 20:29:36.403 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg   libswresample   2.  0.101 /  2.  0.101
    02-27 20:29:36.403 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg   libpostproc    54.  0.100 / 54.  0.100
    02-27 20:29:37.526 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/9016-4EF8/movie/compress_video_new14.mp4':
    02-27 20:29:37.527 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg   Metadata:
    02-27 20:29:37.527 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg     major_brand     : isom
    02-27 20:29:37.527 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg     minor_version   : 512
    02-27 20:29:37.527 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg     compatible_brands: isomiso2avc1mp41
    02-27 20:29:37.528 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg     encoder         : Lavf57.25.100
    02-27 20:29:37.528 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg   Duration: 00:00:20.01, start: 0.000000, bitrate: 48020 kb/s
    02-27 20:29:37.528 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg     Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, smpte170m), 3840x2160, 47857 kb/s, 28.58 fps, 30 tbr, 90k tbn, 180k tbc (default)
    02-27 20:29:37.528 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg     Metadata:
    02-27 20:29:37.528 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg       rotate          : 90
    02-27 20:29:37.528 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg       handler_name    : VideoHandler
    02-27 20:29:37.528 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg     Side data:
    02-27 20:29:37.529 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg       displaymatrix: rotation of -90.00 degrees
    02-27 20:29:37.529 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg     Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 155 kb/s (default)
    02-27 20:29:37.529 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg     Metadata:
    02-27 20:29:37.529 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg       handler_name    : SoundHandler
    02-27 20:29:37.541 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg [swscaler @ 0xf47ef000] deprecated pixel format used, make sure you did set range correctly
    02-27 20:29:37.594 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg [swscaler @ 0xf47e4000] deprecated pixel format used, make sure you did set range correctly
    02-27 20:29:37.594 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg No pixel format specified, yuvj420p for H.264 encoding chosen.
    02-27 20:29:37.594 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg Use -pix_fmt yuv420p for compatibility with outdated media players.
    02-27 20:29:37.594 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg [libx264 @ 0xf506d400] using cpu capabilities: none!
    02-27 20:29:37.674 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg [libx264 @ 0xf506d400] profile High, level 3.1
    02-27 20:29:37.674 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg [libx264 @ 0xf506d400] 264 - core 148 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    02-27 20:29:37.674 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg Output #0, mp4, to '/storage/emulated/0/Movies/compress_video_new21.mp4':
    02-27 20:29:37.674 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg   Metadata:
    02-27 20:29:37.674 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg     major_brand     : isom
    02-27 20:29:37.674 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg     minor_version   : 512
    02-27 20:29:37.674 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg     compatible_brands: isomiso2avc1mp41
    02-27 20:29:37.675 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg     encoder         : Lavf57.25.100
    02-27 20:29:37.675 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg     Stream #0:0(eng): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuvj420p(pc), 1280x720, q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
    02-27 20:29:37.676 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg     Metadata:
    02-27 20:29:37.676 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg       handler_name    : VideoHandler
    02-27 20:29:37.676 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg       encoder         : Lavc57.24.102 libx264
    02-27 20:29:37.676 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg     Side data:
    02-27 20:29:37.676 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg       unknown side data type 10 (24 bytes)
    02-27 20:29:37.676 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg     Stream #0:1(eng): Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 155 kb/s (default)
    02-27 20:29:37.676 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg     Metadata:
    02-27 20:29:37.676 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg       handler_name    : SoundHandler
    02-27 20:29:37.676 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg Stream mapping:
    02-27 20:29:37.676 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg   Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
    02-27 20:29:37.676 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg   Stream #0:1 -> #0:1 (copy)
    02-27 20:29:37.676 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg Press [q] to stop, [?] for help
    02-27 20:29:38.359 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg frame=    1 fps=0.0 q=0.0 size=       0kB time=00:00:00.16 bitrate=   2.3kbits/s speed=0.247x    
    02-27 20:29:39.053 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg frame=    4 fps=2.9 q=0.0 size=       0kB time=00:00:00.27 bitrate=   1.4kbits/s speed=0.197x    
    02-27 20:29:39.752 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg frame=    7 fps=3.4 q=0.0 size=       0kB time=00:00:00.35 bitrate=   1.1kbits/s speed=0.173x    
    02-27 20:29:40.466 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg frame=   10 fps=3.6 q=0.0 size=       0kB time=00:00:00.46 bitrate=   0.8kbits/s speed=0.167x    
    02-27 20:29:40.990 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg frame=   12 fps=3.6 q=0.0 size=       0kB time=00:00:00.52 bitrate=   0.7kbits/s speed=0.159x    
    02-27 20:29:41.672 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg frame=   15 fps=3.8 q=0.0 size=       0kB time=00:00:00.63 bitrate=   0.6kbits/s speed=0.16x    
    02-27 20:29:42.408 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg frame=   18 fps=3.8 q=0.0 size=       0kB time=00:00:00.72 bitrate=   0.5kbits/s speed=0.153x    
    02-27 20:29:42.917 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg frame=   20 fps=3.8 q=0.0 size=       0kB time=00:00:00.80 bitrate=   0.5kbits/s speed=0.154x    
    02-27 20:29:43.660 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg frame=   23 fps=3.8 q=0.0 size=       0kB time=00:00:00.89 bitrate=   0.4kbits/s speed=0.149x    
    02-27 20:29:44.392 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg frame=   26 fps=3.9 q=0.0 size=       0kB time=00:00:00.99 bitrate=   0.4kbits/s speed=0.149x    
    02-27 20:29:44.904 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg frame=   28 fps=3.9 q=0.0 size=       0kB time=00:00:01.06 bitrate=   0.4kbits/s speed=0.147x    
    02-27 20:29:45.467 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg frame=   30 fps=3.9 q=0.0 size=       0kB time=00:00:01.12 bitrate=   0.3kbits/s speed=0.145x    
    02-27 20:29:46.014 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg frame=   32 fps=3.8 q=0.0 size=       0kB time=00:00:01.19 bitrate=   0.3kbits/s speed=0.143x    
    02-27 20:29:46.533 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg frame=   34 fps=3.8 q=0.0 size=       0kB time=00:00:01.25 bitrate=   0.3kbits/s speed=0.142x    
    02-27 20:29:47.094 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg frame=   36 fps=3.8 q=0.0 size=       0kB time=00:00:01.33 bitrate=   0.3kbits/s speed=0.142x    
    02-27 20:29:47.681 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg frame=   38 fps=3.8 q=0.0 size=       0kB time=00:00:01.40 bitrate=   0.3kbits/s speed=0.14x    
    02-27 20:29:48.191 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg frame=   40 fps=3.8 q=0.0 size=       0kB time=00:00:01.48 bitrate=   0.3kbits/s speed=0.142x    
    02-27 20:29:48.752 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg frame=   42 fps=3.8 q=0.0 size=       0kB time=00:00:01.57 bitrate=   0.2kbits/s speed=0.142x    
    02-27 20:29:49.531 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg frame=   45 fps=3.8 q=0.0 size=       0kB time=00:00:01.68 bitrate=   0.2kbits/s dup=1 drop=0 speed=0.142x    
    02-27 20:29:51.327 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg frame=   46 fps=3.4 q=0.0 size=       0kB time=00:00:01.74 bitrate=   0.2kbits/s dup=1 drop=0 speed=0.128x    
    02-27 20:29:52.108 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg frame=   49 fps=3.4 q=0.0 size=       0kB time=00:00:01.83 bitrate=   0.2kbits/s dup=2 drop=0 speed=0.127x    
    02-27 20:29:52.755 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg frame=   51 fps=3.4 q=29.0 size=      70kB time=00:00:01.89 bitrate= 301.9kbits/s dup=3 drop=0 speed=0.126x    
    02-27 20:29:53.826 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg frame=   52 fps=3.2 q=29.0 size=      93kB time=00:00:01.93 bitrate= 391.3kbits/s dup=3 drop=0 speed=0.12x    
    02-27 20:29:54.884 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg frame=   54 fps=3.1 q=29.0 size=     117kB time=00:00:01.97 bitrate= 482.4kbits/s dup=4 drop=0 speed=0.115x    
    02-27 20:29:55.448 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg frame=   55 fps=3.1 q=29.0 size=     121kB time=00:00:02.04 bitrate= 484.1kbits/s dup=4 drop=0 speed=0.115x    
    02-27 20:29:55.643 12094-12116/videoeditor.bhuvnesh.com.ffmpegvideoeditor I/MediaPlayer: message received msg=6, ext1=0, ext2=0
    02-27 20:29:56.328 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg frame=   57 fps=3.1 q=29.0 size=     146kB time=00:00:02.08 bitrate= 571.8kbits/s dup=5 drop=0 speed=0.112x    
    02-27 20:29:57.838 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg frame=   58 fps=2.9 q=29.0 size=     165kB time=00:00:02.12 bitrate= 633.4kbits/s dup=5 drop=0 speed=0.106x    
    02-27 20:29:58.733 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg frame=   60 fps=2.9 q=29.0 size=     189kB time=00:00:02.19 bitrate= 707.6kbits/s dup=6 drop=0 speed=0.104x    
    02-27 20:29:59.497 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg frame=   61 fps=2.8 q=29.0 size=     194kB time=00:00:02.23 bitrate= 712.0kbits/s dup=6 drop=0 speed=0.102x    
    02-27 20:30:00.706 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg frame=   63 fps=2.7 q=29.0 size=     220kB time=00:00:02.29 bitrate= 782.9kbits/s dup=7 drop=0 speed=0.0999x    
    02-27 20:30:02.546 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg frame=   64 fps=2.6 q=29.0 size=     240kB time=00:00:02.34 bitrate= 840.0kbits/s dup=7 drop=0 speed=0.0942x    
    02-27 20:30:03.278 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg frame=   66 fps=2.6 q=29.0 size=     265kB time=00:00:02.38 bitrate= 908.4kbits/s dup=8 drop=0 speed=0.0932x    
    02-27 20:30:03.877 12094-12094/videoeditor.bhuvnesh.com.ffmpegvideoeditor D/BHUVNESH: Progress command : ffmpeg frame=   67 fps=2.6 q=29.0 size=     270kB time=00:00:02.44 bitrate= 902.0kbits/s dup=8 drop=0 speed=0.0936x
  • using ffmpeg for development, libavutil/error environment not OK

    26 février 2018, par luoyanghero

    I want to build a latest ffmpeg development library. I refered the docker script
    https://github.com/jrottenberg/ffmpeg/blob/master/docker-images/3.4/Dockerfile’,
    and I changed the docker file to a shell file. Download all source files,
    compile all dependency source and ffmpeg 3.4.1 source.
    The following is my changed shell script.

    #!/bin/sh
    export           PKG_CONFIG_PATH=/opt/ffmpeg/lib/pkgconfig
              LD_LIBRARY_PATH=/opt/ffmpeg/lib
              PREFIX=/opt/ffmpeg
              MAKEFLAGS="-j4"

    export         FFMPEG_VERSION=3.4.1    
    export         FDKAAC_VERSION=0.1.5    
    export         LAME_VERSION=3.99.5    
    export         LIBASS_VERSION=0.13.7  
    export         OGG_VERSION=1.3.2      
    export         OPENCOREAMR_VERSION=0.1.4
    export         OPUS_VERSION=1.2        
    export         OPENJPEG_VERSION=2.1.2
    export         THEORA_VERSION=1.1.1  
    export         VORBIS_VERSION=1.3.5  
    export         VPX_VERSION=1.6.1    
    export         X264_VERSION=20170226-2245-stable
    export         X265_VERSION=2.3          
    export         XVID_VERSION=1.3.4      
    export         FREETYPE_VERSION=2.5.5  
    export         FRIBIDI_VERSION=0.19.7
    export         FONTCONFIG_VERSION=2.12.4
    export         LIBVIDSTAB_VERSION=1.1.0
               SRC=/usr/local

               OGG_SHA256SUM="e19ee34711d7af328cb26287f4137e70630e7261b17cbe3cd41011d73a654692  libogg-1.3.2.tar.gz"
               OPUS_SHA256SUM="77db45a87b51578fbc49555ef1b10926179861d854eb2613207dc79d9ec0a9a9  opus-1.2.tar.gz"
               VORBIS_SHA256SUM="6efbcecdd3e5dfbf090341b485da9d176eb250d893e3eb378c428a2db38301ce  libvorbis-1.3.5.tar.gz"
               THEORA_SHA256SUM="40952956c47811928d1e7922cda3bc1f427eb75680c3c37249c91e949054916b  libtheora-1.1.1.tar.gz"
               XVID_SHA256SUM="4e9fd62728885855bc5007fe1be58df42e5e274497591fec37249e1052ae316f  xvidcore-1.3.4.tar.gz"
               FREETYPE_SHA256SUM="5d03dd76c2171a7601e9ce10551d52d4471cf92cd205948e60289251daddffa8  freetype-2.5.5.tar.gz"
               LIBVIDSTAB_SHA256SUM="14d2a053e56edad4f397be0cb3ef8eb1ec3150404ce99a426c4eb641861dc0bb  v1.1.0.tar.gz"
               LIBASS_SHA256SUM="8fadf294bf701300d4605e6f1d92929304187fca4b8d8a47889315526adbafd7  0.13.7.tar.gz"
               FRIBIDI_SHA256SUM="3fc96fa9473bd31dcb5500bdf1aa78b337ba13eb8c301e7c28923fea982453a8  0.19.7.tar.gz"


           apt-get -y update
           apt-get install -y  --no-install-recommends ca-certificates expat libgomp1
           apt-get autoremove -y
           apt-get clean -y
    apt-get install -y --no-install-recommends autoconf
    apt-get install -y --no-install-recommends automake
    apt-get install -y --no-install-recommends cmake
    apt-get install -y --no-install-recommends curl
    apt-get install -y --no-install-recommends bzip2
    apt-get install -y --no-install-recommends libexpat1-dev
    apt-get install -y --no-install-recommends g++
    apt-get install -y --no-install-recommends gcc
    apt-get install -y --no-install-recommends git
    apt-get install -y --no-install-recommends gperf
    apt-get install -y --no-install-recommends libtool
    apt-get install -y --no-install-recommends make
    apt-get install -y --no-install-recommends nasm
    apt-get install -y --no-install-recommends perl
    apt-get install -y --no-install-recommends pkg-config
    apt-get install -y --no-install-recommends python
    apt-get install -y --no-install-recommends libssl-dev
    apt-get install -y --no-install-recommends yasm
    apt-get install -y --no-install-recommends zlib1g-dev

    ############LIB env
    ## opencore-amr https://sourceforge.net/projects/opencore-amr/
    ####OnLine    
    #        DIR=/tmp/opencore-amr && \
    #        rm -rf ${DIR} && \
    #        mkdir -p ${DIR} && \
    #        cd ${DIR} && \
    #        curl -sL https://downloads.sf.net/project/opencore-amr/opencore-amr/opencore-amr-${OPENCOREAMR_VERSION}.tar.gz | \
    #        tar -zx --strip-components=1 && \
    #        ./configure --prefix="${PREFIX}" --enable-shared  && \
    #        make && \
    #        make install && \
    #        rm -rf ${DIR}
    ##curl -sL https://downloads.sf.net/project/opencore-amr/opencore-amr/opencore-amr-0.1.4.tar.gz | tar -zx --strip-components=1

    ####OffLine    
           DIR=opencore-amr-${OPENCOREAMR_VERSION} && \
           rm -rf ./${DIR}
           tar -xvf ./${DIR}.tar.gz && \
           cd ./${DIR} && \
           ./configure --prefix="${PREFIX}" --enable-shared  && \
           make && \
           make install && \
           cd ..
    ### x264 http://www.videolan.org/developers/x264.html
    #    
    #        DIR=/tmp/x264 && \
    #        rm -rf ${DIR} && \
    #        mkdir -p ${DIR} && \
    #        cd ${DIR} && \
    #        curl -sL https://download.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-${X264_VERSION}.tar.bz2 | \
    #        tar -jx --strip-components=1 && \
    #        ./configure --prefix="${PREFIX}" --enable-shared --enable-pic --disable-cli && \
    #        make && \
    #        make install && \
    #        rm -rf ${DIR}
    ####OffLine    
           DIR=x264-snapshot-${X264_VERSION}
           rm -rf ./${DIR}
           tar -xvf ./${DIR}.tar.bz2 && \
           cd ./${DIR} && \
           ./configure --prefix="${PREFIX}" --enable-shared --enable-pic --disable-cli && \
           make && \
           make install && \
           cd ..
    #### x265 http://x265.org/
    #    
    #        DIR=/tmp/x265 && \
    #        rm -rf ${DIR} && \
    #        mkdir -p ${DIR} && \
    #        cd ${DIR} && \
    #        curl -sL https://download.videolan.org/pub/videolan/x265/x265_${X265_VERSION}.tar.gz  | \
    #        tar -zx && \
    #        cd x265_${X265_VERSION}/build/linux && \
    #        sed -i "/-DEXTRA_LIB/ s/$/ -DCMAKE_INSTALL_PREFIX=\/opt\/ffmpeg/" multilib.sh && \
    #        sed -i "/^cmake/ s/$/ -DENABLE_CLI=OFF/" multilib.sh && \
    #        ./multilib.sh && \
    #        make -C 8bit install
    ###        rm -rf ${DIR}
    ####OffLine    
           DIR=x265_${X265_VERSION}
           rm -rf ./${DIR}
           tar -xvf ./${DIR}.tar.gz && \
           cd ./${DIR}/build/linux && \
           sed -i "/-DEXTRA_LIB/ s/$/ -DCMAKE_INSTALL_PREFIX=\/opt\/ffmpeg/" multilib.sh && \
           sed -i "/^cmake/ s/$/ -DENABLE_CLI=OFF/" multilib.sh && \
           ./multilib.sh && \
           make -C 8bit install
           cd ../../../
    #### libogg https://www.xiph.org/ogg/
    #    
    #        DIR=/tmp/ogg && \
    #        rm -rf ${DIR} && \
    #        mkdir -p ${DIR} && \
    #        cd ${DIR} && \
    #        curl -sLO http://downloads.xiph.org/releases/ogg/libogg-${OGG_VERSION}.tar.gz && \
    #        echo ${OGG_SHA256SUM} | sha256sum --check && \
    #        tar -zx --strip-components=1 -f libogg-${OGG_VERSION}.tar.gz && \
    #        ./configure --prefix="${PREFIX}" --enable-shared  && \
    #        make && \
    #        make install
    ##        rm -rf ${DIR}
    ####OffLine    
           DIR=libogg-${OGG_VERSION}
           rm -rf ./${DIR}
           tar -xvf ./${DIR}.tar.gz && \
           cd ./${DIR} && \
           ./configure --prefix="${PREFIX}" --enable-shared  && \
           make && \
           make install && \
           cd ..
    #### libopus https://www.opus-codec.org/
    #    
    #        DIR=/tmp/opus && \
    #        rm -rf ${DIR} && \
    #        mkdir -p ${DIR} && \
    #        cd ${DIR} && \
    #        curl -sLO https://archive.mozilla.org/pub/opus/opus-${OPUS_VERSION}.tar.gz && \
    #        echo ${OPUS_SHA256SUM} | sha256sum --check && \
    #        tar -zx --strip-components=1 -f opus-${OPUS_VERSION}.tar.gz && \
    #        autoreconf -fiv && \
    #        ./configure --prefix="${PREFIX}" --enable-shared && \
    #        make && \
    #        make install
    ##        rm -rf ${DIR}
    ####OffLine    
           DIR=opus-${OPUS_VERSION}
           rm -rf ./${DIR}
           tar -xvf ./${DIR}.tar.gz && \
           cd ./${DIR} && \
           autoreconf -fiv && \
           ./configure --prefix="${PREFIX}" --enable-shared && \
           make && \
           make install && \
           cd ..
    #### libvorbis https://xiph.org/vorbis/
    #    
    #        DIR=/tmp/vorbis && \
    #        rm -rf ${DIR} && \
    #        mkdir -p ${DIR} && \
    #        cd ${DIR} && \
    #        curl -sLO http://downloads.xiph.org/releases/vorbis/libvorbis-${VORBIS_VERSION}.tar.gz && \
    #        echo ${VORBIS_SHA256SUM} | sha256sum --check && \
    #        tar -zx --strip-components=1 -f libvorbis-${VORBIS_VERSION}.tar.gz && \
    #        ./configure --prefix="${PREFIX}" --with-ogg="${PREFIX}" --enable-shared && \
    #        make && \
    #        make install
    ##        rm -rf ${DIR}
    ####OffLine    
           DIR=libvorbis-${VORBIS_VERSION}
           rm -rf ./${DIR}
           tar -xvf ./${DIR}.tar.gz && \
           cd ./${DIR} && \
           ./configure --prefix="${PREFIX}" --with-ogg="${PREFIX}" --enable-shared && \
           make && \
           make install && \
           cd ..
    #### libtheora http://www.theora.org/
    #    
    #        DIR=/tmp/theora && \
    #        rm -rf ${DIR} && \
    #        mkdir -p ${DIR} && \
    #        cd ${DIR} && \
    #        curl -sLO http://downloads.xiph.org/releases/theora/libtheora-${THEORA_VERSION}.tar.gz && \
    #        echo ${THEORA_SHA256SUM} | sha256sum --check && \
    #        tar -zx --strip-components=1 -f libtheora-${THEORA_VERSION}.tar.gz && \
    #        ./configure --prefix="${PREFIX}" --with-ogg="${PREFIX}" --enable-shared && \
    #        make && \
    #        make install
    ##        rm -rf ${DIR}
    ####OffLine    
           DIR=libtheora-${THEORA_VERSION}
           rm -rf ./${DIR}
           tar -xvf ./${DIR}.tar.gz && \
           cd ./${DIR} && \
           ./configure --prefix="${PREFIX}" --with-ogg="${PREFIX}" --enable-shared && \
           make && \
           make install && \
           cd ..
    #### libvpx https://www.webmproject.org/code/
    #    
    #        DIR=/tmp/vpx && \
    #        rm -rf ${DIR} && \
    #        mkdir -p ${DIR} && \
    #        cd ${DIR} && \
    #        curl -sL https://codeload.github.com/webmproject/libvpx/tar.gz/v${VPX_VERSION} | \
    #        tar -zx --strip-components=1 && \
    #        ./configure --prefix="${PREFIX}" --enable-vp8 --enable-vp9 --enable-pic --enable-shared \
    #        --disable-debug --disable-examples --disable-docs --disable-install-bins  && \
    #        make && \
    #        make install
    ##        rm -rf ${DIR}

    #####OffLine    
           DIR=libvpx-1.6.1
           rm -rf ./${DIR}
           tar -xvf ./${DIR}.tar.gz && \
           cd ./${DIR} && \
           ./configure --prefix="${PREFIX}" --enable-vp8 --enable-vp9 --enable-pic --enable-shared \
           --disable-debug --disable-examples --disable-docs --disable-install-bins  && \
           make && \
           make install && \
           cd ..
    #### libmp3lame http://lame.sourceforge.net/
    #    
    #        DIR=/tmp/lame && \
    #        rm -rf ${DIR} && \
    #        mkdir -p ${DIR} && \
    #        cd ${DIR} && \
    #        curl -sL https://downloads.sf.net/project/lame/lame/${LAME_VERSION%.*}/lame-${LAME_VERSION}.tar.gz | \
    #        tar -zx --strip-components=1 && \
    #        ./configure --prefix="${PREFIX}" --bindir="${PREFIX}/bin" --enable-shared --enable-nasm --enable-pic --disable-frontend && \
    #        make && \
    #        make install
    ##        rm -rf ${DIR}

    ####OffLine    
           DIR=lame-3.99.5
           rm -rf ./${DIR}
           tar -xvf ./${DIR}.tar.gz && \
           cd ./${DIR} && \
           ./configure --prefix="${PREFIX}" --bindir="${PREFIX}/bin" --enable-shared --enable-nasm --enable-pic --disable-frontend && \
           make && \
           make install && \
           cd ..
    #### xvid https://www.xvid.com/
    #    
    #        DIR=/tmp/xvid && \
    #        rm -rf ${DIR} && \
    #        mkdir -p ${DIR} && \
    #        cd ${DIR} && \
    #        curl -sLO http://downloads.xvid.org/downloads/xvidcore-${XVID_VERSION}.tar.gz && \
    #        echo ${XVID_SHA256SUM} | sha256sum --check && \
    #        tar -zx -f xvidcore-${XVID_VERSION}.tar.gz && \
    #        cd xvidcore/build/generic && \
    #        ./configure --prefix="${PREFIX}" --bindir="${PREFIX}/bin" --datadir="${DIR}" --enable-shared --enable-shared && \
    #        make && \
    #        make install
    ##        rm -rf ${DIR}

    ####OffLine    
           DIR=xvidcore
           BASE_DIR=`pwd`
           rm -rf ./${DIR}-1.3.4
           tar -xvf ./${DIR}-1.3.4.tar.gz && \
           cd ./${DIR} && \
           cd ./build/generic && \
           ./configure --prefix="${PREFIX}" --bindir="${PREFIX}/bin" --datadir="${BASE_DIR}/${DIR}" --enable-shared --enable-shared && \
           make && \
           make install && \
           cd ../../../
    #### fdk-aac https://github.com/mstorsjo/fdk-aac
    #    
    #        DIR=/tmp/fdk-aac && \
    #        rm -rf ${DIR} && \
    #        mkdir -p ${DIR} && \
    #        cd ${DIR} && \
    #        curl -sL https://github.com/mstorsjo/fdk-aac/archive/v${FDKAAC_VERSION}.tar.gz | \
    #        tar -zx --strip-components=1 && \
    #        autoreconf -fiv && \
    #        ./configure --prefix="${PREFIX}" --enable-shared --datadir="${DIR}" && \
    #        make && \
    #        make install
    ##        rm -rf ${DIR}

    ####OffLine    
           BASE_DIR=`pwd`
           DIR=fdk-aac-0.1.5
           rm -rf ./${DIR}
           tar -xvf ./${DIR}.tar.gz && \
           cd ./${DIR} && \
           autoreconf -fiv && \
           ./configure --prefix="${PREFIX}" --enable-shared --datadir="${BASE_DIR}/${DIR}" && \
           make && \
           make install && \
           cd ..
    ## openjpeg https://github.com/uclouvain/openjpeg

    #        DIR=/tmp/openjpeg && \
    #        rm -rf ${DIR} && \
    #        mkdir -p ${DIR} && \
    #        cd ${DIR} && \
    #        curl -sL https://github.com/uclouvain/openjpeg/archive/v${OPENJPEG_VERSION}.tar.gz | \
    #        tar -zx --strip-components=1 && \
    #        cmake -DBUILD_THIRDPARTY:BOOL=ON -DCMAKE_INSTALL_PREFIX="${PREFIX}" . && \
    #        make && \
    #        make install
    ##        rm -rf ${DIR}

    ####OffLine    
           DIR=openjpeg-2.1.2
           rm -rf ./${DIR}
           tar -xvf ./${DIR}.tar.gz && \
           cd ./${DIR} && \
           cmake -DBUILD_THIRDPARTY:BOOL=ON -DCMAKE_INSTALL_PREFIX="${PREFIX}" . && \
           make && \
           make install && \
           cd ..
    ### freetype https://www.freetype.org/
    ##RUN  \
    ##        DIR=/tmp/freetype && \
    ##        mkdir -p ${DIR} && \
    ##        cd ${DIR} && \
    ##        curl -sLO http://download.savannah.gnu.org/releases/freetype/freetype-${FREETYPE_VERSION}.tar.gz && \
    ##        echo ${FREETYPE_SHA256SUM} | sha256sum --check && \
    ##        tar -zx --strip-components=1 -f freetype-${FREETYPE_VERSION}.tar.gz && \
    ##        ./configure --prefix="${PREFIX}" --disable-static --enable-shared && \
    ##        make && \
    ##        make install && \
    ##        rm -rf ${DIR}

    ###OffLine    
           DIR=freetype-${FREETYPE_VERSION}
           rm -rf ./${DIR}
           tar -xvf ./${DIR}.tar.gz && \
           cd ./${DIR} && \
           ./configure --prefix="${PREFIX}" --disable-static --enable-shared && \
           make && \
           make install && \
           cd ..

    ### libvstab https://github.com/georgmartius/vid.stab
    #
    #        DIR=/tmp/vid.stab && \
    #        rm -rf ${DIR} && \
    #        mkdir -p ${DIR} && \
    #        cd ${DIR} && \
    #        curl -sLO https://github.com/georgmartius/vid.stab/archive/v${LIBVIDSTAB_VERSION}.tar.gz &&\
    #        echo ${LIBVIDSTAB_SHA256SUM} | sha256sum --check && \
    #        tar -zx --strip-components=1 -f v${LIBVIDSTAB_VERSION}.tar.gz && \
    #        cmake -DCMAKE_INSTALL_PREFIX="${PREFIX}" . && \
    #        make && \
    #        make install
    ##        rm -rf ${DIR}

    ####OffLine    
           DIR=vid.stab
           rm -rf ./${DIR}-1.1.0
           tar -xvf ./${DIR}_v1.1.0.tar.gz && \
           cd ./${DIR}-1.1.0 && \
           cmake -DCMAKE_INSTALL_PREFIX="${PREFIX}" . && \
           make && \
           make install && \
           cd ..
    ### fridibi https://www.fribidi.org/
    # + https://github.com/fribidi/fribidi/issues/8
    #
    #        DIR=/tmp/fribidi && \
    #        rm -rf ${DIR} && \
    #        mkdir -p ${DIR} && \
    #        cd ${DIR} && \
    #        curl -sLO https://github.com/fribidi/fribidi/archive/${FRIBIDI_VERSION}.tar.gz && \
    #        echo ${FRIBIDI_SHA256SUM} | sha256sum --check && \
    #        tar -zx --strip-components=1 -f ${FRIBIDI_VERSION}.tar.gz && \
    #        sed -i 's/^SUBDIRS =.*/SUBDIRS=gen.tab charset lib/' Makefile.am && \
    #        ./bootstrap --no-config && \
    #        ./configure -prefix="${PREFIX}" --disable-static --enable-shared && \
    #        make && \
    #        make install
    #        rm -rf ${DIR}

    ####OffLine    
           DIR=fribidi-0.19.7 && \
           rm -rf ./${DIR}
           tar -xvf ./${DIR}.tar.gz && \
           cd ./${DIR} && \
           sed -i 's/^SUBDIRS =.*/SUBDIRS=gen.tab charset lib/' Makefile.am && \
           ./bootstrap --no-config && \
           ./configure -prefix="${PREFIX}" --disable-static --enable-shared && \
           make && \
           make install && \
           cd ..
    ### fontconfig https://www.freedesktop.org/wiki/Software/fontconfig/

    #        DIR=/tmp/fontconfig && \
    #        rm -rf ${DIR} && \
    #        mkdir -p ${DIR} && \
    #        cd ${DIR} && \
    #        curl -sLO https://www.freedesktop.org/software/fontconfig/release/fontconfig-${FONTCONFIG_VERSION}.tar.bz2 &&\
    #        tar -jx --strip-components=1 -f fontconfig-${FONTCONFIG_VERSION}.tar.bz2 && \
    #        ./configure -prefix="${PREFIX}" --disable-static --enable-shared && \
    #        make && \
    #        make install
    ##        rm -rf ${DIR}

    ####OffLine    
           DIR=fontconfig-2.12.4 && \
           rm -rf ./${DIR}
           tar -xvf ./${DIR}.tar.bz2 && \
           cd ./${DIR} && \
           ./configure -prefix="${PREFIX}" --disable-static --enable-shared && \
           make && \
           make install && \
           cd ..
    ## libass https://github.com/libass/libass
    #need add PKG_CONFIG_PATH
    #
    #        DIR=/tmp/libass && \
    #        rm -rf ${DIR} && \
    #        mkdir -p ${DIR} && \
    #        cd ${DIR} && \
    #        curl -sLO https://github.com/libass/libass/archive/${LIBASS_VERSION}.tar.gz &&\
    #        echo ${LIBASS_SHA256SUM} | sha256sum --check && \
    #        tar -zx --strip-components=1 -f ${LIBASS_VERSION}.tar.gz && \
    #        ./autogen.sh && \
    #        ./configure --prefix="${PREFIX}" --disable-static --enable-shared && \
    #        make && \
    #        make install
    ##        rm -rf ${DIR}

    ####OffLine    
           DIR=libass && \
           rm -rf ./${DIR}-0.13.7
           tar -xvf ./${DIR}_0.13.7.tar.gz && \
           cd ./${DIR}-0.13.7 && \
           ./autogen.sh && \
           ./configure --prefix="${PREFIX}" --disable-static --enable-shared && \
           make && \
           make install && \
           cd ..
    ### ffmpeg https://ffmpeg.org/

    #####OffLine
           DIR=ffmpeg341 && \
           mkdir -p ${DIR} && cd ${DIR} && \
           rm -rf ffmpeg-${FFMPEG_VERSION} && \
           tar -xvf ffmpeg-${FFMPEG_VERSION}.tar.gz && \
           cd ffmpeg-${FFMPEG_VERSION} && \
           ./configure \
           --enable-debug \
           --enable-doc \
           --disable-ffplay \
           --enable-shared \
           --enable-avresample \
           --enable-libopencore-amrnb \
           --enable-libopencore-amrwb \
           --enable-gpl \
           --enable-libass \
           --enable-libfreetype \
           --enable-libvidstab \
           --enable-libmp3lame \
           --enable-libopenjpeg \
           --enable-libopus \
           --enable-libtheora \
           --enable-libvorbis \
           --enable-libvpx \
           --enable-libx265 \
           --enable-libxvid \
           --enable-libx264 \
           --enable-nonfree \
           --enable-openssl \
           --enable-libfdk_aac \
           --enable-postproc \
           --enable-small \
           --enable-version3 \
           --extra-cflags="-I${PREFIX}/include" \
           --extra-ldflags="-L${PREFIX}/lib" \
           --extra-libs=-ldl \
           --prefix="${PREFIX}" && \
           make && \
           make install && \
           make distclean && \
           hash -r && \
           cd tools && \
           make qt-faststart && \
           cp qt-faststart ${PREFIX}/bin
            cd ../../

    I try to run my compiled ffmpeg, it is OK.

    #

    export LD_LIBRARY_PATH=/opt/ffmpeg/lib/
    /opt/ffmpeg/bin/ffmpeg -i "/home/luoy/Videos/芳华.2017.TC720P独家高清中字.mp4" -ss 00:00:00 -t 00:00:01 -f image2 -y "./2_%04d.bmp"
    ffmpeg version 3.4.1 Copyright (c) 2000-2017 the FFmpeg developers
    built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.6) 20160609
    configuration: --enable-debug --enable-doc --disable-ffplay --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-gpl --enable-libass --enable-libfreetype --enable-libvidstab --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx265 --enable-libxvid --enable-libx264 --enable-nonfree --enable-openssl --enable-libfdk_aac --enable-postproc --enable-small --enable-version3 --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib --extra-libs=-ldl --prefix=/opt/ffmpeg
    libavutil 55. 78.100 / 55. 78.100
    libavcodec 57.107.100 / 57.107.100
    libavformat 57. 83.100 / 57. 83.100
    libavdevice 57. 10.100 / 57. 10.100
    libavfilter 6.107.100 / 6.107.100
    libavresample 3. 7. 0 / 3. 7. 0
    libswscale 4. 8.100 / 4. 8.100
    libswresample 2. 9.100 / 2. 9.100
    libpostproc 54. 7.100 / 54. 7.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/luoy/Videos/芳华.2017.TC720P独家高清中字.mp4':
    Metadata:
    major_brand : isom
    minor_version : 1
    compatible_brands: isomavc1
    creation_time : 2017-12-15T16:28:00.000000Z
    encoder : Lite MP4 Tool v2.3
    Duration: 02:09:09.24, start: 0.000000, bitrate: 1587 kb/s
    Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p, 1280x720, 1456 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)
    Metadata:
    creation_time : 2017-12-15T16:28:00.000000Z
    handler_name : Imported with GPAC 0.4.6-DEV (internal rev. 5)
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default)
    Metadata:
    creation_time : 2017-12-15T16:28:45.000000Z
    handler_name : GPAC ISO Audio Handler
    Stream mapping:
    Stream #0:0 -> #0:0 (h264 (native) -> bmp (native))
    Press [q] to stop, [?] for help
    Output #0, image2, to './2_%04d.bmp':
    Metadata:
    major_brand : isom
    minor_version : 1
    compatible_brands: isomavc1
    encoder : Lavf57.83.100
    Stream #0:0(und): Video: bmp, bgr24, 1280x720, q=2-31, 200 kb/s, 23.98 fps, 23.98 tbn, 23.98 tbc (default)
    Metadata:
    creation_time : 2017-12-15T16:28:00.000000Z
    handler_name : Imported with GPAC 0.4.6-DEV (internal rev. 5)
    encoder : Lavc57.107.100 bmp
    frame= 24 fps=0.0 q=-0.0 Lsize=N/A time=00:00:01.00 bitrate=N/A dup=1 drop=0 speed= 5.6x
    video:64801kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

    #

    Now I write a simple code, save as a 0_hello_world.c file.

    #

    #include "libavcodec/avcodec.h"
    #include "libavformat/avformat.h"
    #include
    #include
    #include
    #include
    #include
    #include
    #include
    #include "libavutil/error.h"
    int main(int argc, const char *argv[])
    {
    av_register_all();
    int response = 0;
    char *pchar;
    // pchar = av_err2str(response);
    return 0;
    }

    #

    Use the follow command for make, it’s OK.

    #

    gcc -g -Wall -o build/hello_world -lz 0_hello_world.c
    -lavformat -lavcodec -lswscale
    -I/opt/ffmpeg/include -L/opt/ffmpeg/lib

    #

    But when I use the "av_err2str" function(uncomment this line) :
    ’pchar = av_err2str(response) ;’
    compile show the following error :

    #

    gcc -g -Wall -o build/hello_world -lz 0_hello_world.c
    -lavformat -lavcodec -lswscale
    -I/opt/ffmpeg/include -L/opt/ffmpeg/lib
    0_hello_world.c: In function ‘main’:
    0_hello_world.c:16:9: warning: variable ‘pchar’ set but not used [-Wunused-but-set-variable]
    char *pchar;
    ^
    /usr/bin/ld: /tmp/ccgJJ9CV.o: undefined reference to symbol 'av_strerror@@LIBAVUTIL_55'
    /opt/ffmpeg/lib/libavutil.so.55: error adding symbols: DSO missing from command line
    collect2: error: ld returned 1 exit status
    Makefile:10: recipe for target 'hello_world' failed
    make: *** [hello_world] Error 1

    #

    As I know "av_register_all" use the "libavformat/avformat.h" header ; "av_err2str" use the "libavutil/error.h" header.
    Both the two headers I have included, why "av_err2str" is not OK ?
    I guess this is my environment not OK. How can I find the error ?
    I have checked my LD_LIBRARY_PATH, it is OK.

    #

    $ echo $LD_LIBRARY_PATH
    /opt/ffmpeg/lib: