Recherche avancée

Médias (0)

Mot : - Tags -/diogene

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (21)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • 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 (...)

  • Selection of projects using MediaSPIP

    2 mai 2011, par

    The examples below are representative elements of MediaSPIP specific uses for specific projects.
    MediaSPIP farm @ Infini
    The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)

Sur d’autres sites (6747)

  • FFMPEG doesn't convert from m4v files

    8 février 2014, par MattD

    I am trying to transcode an m4v file from iTunes so I can play it on Windows or XBox. I am running ffmpeg from Windows. Is there some -vcodec I need to specify or something I need to install ? Here's the command I'm running and the error I'm getting.

    Edit : Complete output

    ffmpeg version N-60393-g9707b53 Copyright (c) 2000-2014 the FFmpeg developers
     built on Feb  6 2014 22:07:13 with gcc 4.8.2 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
     libavutil      52. 63.101 / 52. 63.101
     libavcodec     55. 49.101 / 55. 49.101
     libavformat    55. 30.100 / 55. 30.100
     libavdevice    55.  7.100 / 55.  7.100
     libavfilter     4.  1.102 /  4.  1.102
     libswscale      2.  5.101 /  2.  5.101
     libswresample   0. 17.104 /  0. 17.104
     libpostproc    52.  3.100 / 52.  3.100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000268f620] stream 0, timescale not set
    [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000268f620] Stream #3: not enough frames to estimate rate; consider increasing probesize
    [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000268f620] Stream #4: not enough frames to estimate rate; consider increasing probesize
    [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000268f620] Could not find codec parameters for stream 1 (Video: none (drmi / 0x696D7264), 960x718, 3957 kb/s): unknown codec
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000268f620] Could not find codec parameters for stream 2 (Audio: none (drms / 0x736D7264), 48000 Hz, 5.1(side), 384 kb/s): unknown codec
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000268f620] Could not find codec parameters for stream 3 (Subtitle: none (p608 / 0x38303670), 1280x718, 0 kb/s): unknown codec
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Y:02 The Empty Hearse (HD).m4v':
     Metadata:
       major_brand     : M4V
       minor_version   : 0
       compatible_brands: M4V mp42isom
       creation_time   : 2014-01-13 18:51:33
       title           : [...]
       artist          : [...]
       album           : [...]
       genre           : Drama
       track           : 2/8
       disc            : 1/1
       date            : 2014-01-19T08:00:00Z
       description     : [...]
       hd_video        : 1
       network         : PBS
       show            : Sherlock
       episode_id      : 1
       season_number   : 3
       episode_sort    : 2
       media_type      : 10
       synopsis        : [...]
     Duration: 01:26:28.70, start: 0.000000, bitrate: 4505 kb/s
       Stream #0:0(eng): Audio: aac (drms / 0x736D7264), 48000 Hz, stereo, fltp, 156 kb/s (default)
       Metadata:
         creation_time   : 2014-01-13 18:51:33
         handler_name    : Apple Sound Media Handler
       Stream #0:1(eng): Video: none (drmi / 0x696D7264), 960x718, 3957 kb/s, SAR 4:3 DAR 640:359, 25 fps, 25 tbr, 2500 tbn, 2500 tbc (default)
       Metadata:
         creation_time   : 2014-01-13 18:51:33
         handler_name    : Apple Video Media Handler
       Stream #0:2(eng): Audio: none (drms / 0x736D7264), 48000 Hz, 5.1(side), 384 kb/s
       Metadata:
         creation_time   : 2014-01-13 18:51:33
         handler_name    : Apple Sound Media Handler
       Stream #0:3(eng): Subtitle: none (p608 / 0x38303670), 1280x718, 0 kb/s (default)
       Metadata:
         creation_time   : 2014-01-13 18:51:33
         handler_name    : Apple Closed Caption Media Handler
       Stream #0:4: Video: mjpeg, yuvj444p(pc), 640x640 [SAR 300:300 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
    File 'Sherlock.wmv' already exists. Overwrite ? [y/N] [buffer @ 0000000005fc5760] Unable to parse option value "-1" as pixel format
       Last message repeated 1 times
    [buffer @ 0000000005fc5760] Error setting option pix_fmt to value -1.
    [graph 0 input from stream 0:1 @ 00000000027d7da0] Error applying options to the filter.
    Error opening filters!
  • OpenCV compile process fails

    12 septembre 2017, par bork

    So I’m following this post on how to install openCV for Python 3. And I’m running into some issues at the compile process. Running the make -j4 command goes fine up until it’s 28% through when I get this error message : error: use of undeclared identifier 'avcodec_free_frame'; did you mean 'avcodec_get_name'?

    I don’t even know where to start to solve this issue. I’ve got ffmpeg installed through brew.

    Complete list of commands :

    cd ~
    git clone https://github.com/Itseez/opencv.git
    cd opencv
    git checkout 3.0.0
    cd ~
    git clone https://github.com/Itseez/opencv_contrib.git
    cd opencv_contrib
    git checkout 3.0.0
    cd ~/opencv
    mkdir build
    cd build
    cmake CMAKE_BUILD_TYPE=RELEASE \
       -D CMAKE_INSTALL_PREFIX=/usr/local \
       -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \
       -D PYTHON3_LIBRARY=/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/lib/python3.5/config-3.5m/libpython3.5.dylib \
       -D PYTHON3_INCLUDE_DIR=/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/include/python3.5m/ \
       -D PYTHON3_EXECUTABLE=$VIRTUAL_ENV/bin/python \
       -D BUILD_opencv_python2=OFF \
       -D BUILD_opencv_python3=ON \
       -D INSTALL_PYTHON_EXAMPLES=ON \
       -D INSTALL_C_EXAMPLES=OFF \
       -D BUILD_EXAMPLES=ON .. \
       -D FFMPEG_INCLUDE_DIR=/usr/local/Cellar/ffmpeg/3.3.4/include/
       -D FFMPEG_LIB_DIR=/usr/local/Cellar/ffmpeg/3.3.4/lib/
       -D WITH_FFMPEG=ON
    cmake
    make -j4

    I got the FFMPEG_INCLUDE_DIR, FFMPEG_LIB_DIR and WITH_FFMPEG from this post : http://blog.jiashen.me/2014/12/23/build-opencv-3-on-mac-os-x-with-python-3-and-ffmpeg-support/

    The full error log :

    [ 28%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_qtkit.mm.o
    In file included from /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg.cpp:45:
    /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:317:9: error: use of undeclared identifier
         'avcodec_free_frame'; did you mean 'avcodec_get_name'?
           avcodec_free_frame(&picture);
           ^~~~~~~~~~~~~~~~~~
           avcodec_get_name
    /usr/local/Cellar/ffmpeg/3.3.4/include/libavcodec/avcodec.h:6289:13: note: 'avcodec_get_name' declared here
    const char *avcodec_get_name(enum AVCodecID id);
               ^
    In file included from /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg.cpp:45:
    /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:317:28: error: cannot initialize a parameter of type
         'enum AVCodecID' with an rvalue of type 'AVFrame **'
           avcodec_free_frame(&picture);
                              ^~~~~~~~
    /usr/local/Cellar/ffmpeg/3.3.4/include/libavcodec/avcodec.h:6289:45: note: passing argument to parameter 'id' here
    const char *avcodec_get_name(enum AVCodecID id);
                                               ^
    In file included from /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg.cpp:45:
    /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:632:23: error: use of undeclared identifier
         'avcodec_alloc_frame'
               picture = avcodec_alloc_frame();
                         ^
    /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:635:41: error: use of undeclared identifier
         'PIX_FMT_BGR24'; did you mean 'AV_PIX_FMT_BGR24'?
                       avpicture_get_size( PIX_FMT_BGR24,
                                           ^~~~~~~~~~~~~
                                           AV_PIX_FMT_BGR24
    /usr/local/Cellar/ffmpeg/3.3.4/include/libavutil/pixfmt.h:65:5: note: 'AV_PIX_FMT_BGR24' declared here
       AV_PIX_FMT_BGR24,     ///< packed RGB 8:8:8, 24bpp, BGRBGR...
       ^
    In file included from /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg.cpp:45:
    /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:638:29: error: use of undeclared identifier
         'PIX_FMT_BGR24'; did you mean 'AV_PIX_FMT_BGR24'?
                               PIX_FMT_BGR24, enc->width, enc->height );
                               ^~~~~~~~~~~~~
                               AV_PIX_FMT_BGR24
    /usr/local/Cellar/ffmpeg/3.3.4/include/libavutil/pixfmt.h:65:5: note: 'AV_PIX_FMT_BGR24' declared here
       AV_PIX_FMT_BGR24,     ///< packed RGB 8:8:8, 24bpp, BGRBGR...
       ^
    In file included from /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg.cpp:45:
    /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:738:67: error: use of undeclared identifier
         'PIX_FMT_RGB24'; did you mean 'AV_PIX_FMT_RGB24'?
       avpicture_fill((AVPicture*)&rgb_picture, rgb_picture.data[0], PIX_FMT_RGB24,
                                                                     ^~~~~~~~~~~~~
                                                                     AV_PIX_FMT_RGB24
    /usr/local/Cellar/ffmpeg/3.3.4/include/libavutil/pixfmt.h:64:5: note: 'AV_PIX_FMT_RGB24' declared here
       AV_PIX_FMT_RGB24,     ///< packed RGB 8:8:8, 24bpp, RGBRGB...
       ^
    In file included from /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg.cpp:45:
    /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:756:17: error: use of undeclared identifier
         'PIX_FMT_BGR24'; did you mean 'AV_PIX_FMT_BGR24'?
                   PIX_FMT_BGR24,
                   ^~~~~~~~~~~~~
                   AV_PIX_FMT_BGR24
    /usr/local/Cellar/ffmpeg/3.3.4/include/libavutil/pixfmt.h:65:5: note: 'AV_PIX_FMT_BGR24' declared here
       AV_PIX_FMT_BGR24,     ///< packed RGB 8:8:8, 24bpp, BGRBGR...
       ^
    In file included from /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg.cpp:45:
    /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:1110:15: error: use of undeclared identifier
         'avcodec_alloc_frame'
       picture = avcodec_alloc_frame();
                 ^
    /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:1113:33: error: unknown type name 'PixelFormat'; did you
         mean 'AVPixelFormat'?
       size = avpicture_get_size( (PixelFormat) pix_fmt, width, height);
                                   ^~~~~~~~~~~
                                   AVPixelFormat
    /usr/local/Cellar/ffmpeg/3.3.4/include/libavutil/pixfmt.h:60:6: note: 'AVPixelFormat' declared here
    enum AVPixelFormat {
        ^
    In file included from /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg.cpp:45:
    /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:1122:25: error: unknown type name 'PixelFormat'; did you
         mean 'AVPixelFormat'?
                          (PixelFormat) pix_fmt, width, height);
                           ^~~~~~~~~~~
                           AVPixelFormat
    /usr/local/Cellar/ffmpeg/3.3.4/include/libavutil/pixfmt.h:60:6: note: 'AVPixelFormat' declared here
    enum AVPixelFormat {
        ^
    In file included from /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg.cpp:45:
    /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:1230:19: error: unknown type name 'PixelFormat'; did you
         mean 'AVPixelFormat'?
       c->pix_fmt = (PixelFormat) pixel_format;
                     ^~~~~~~~~~~
                     AVPixelFormat
    /usr/local/Cellar/ffmpeg/3.3.4/include/libavutil/pixfmt.h:60:6: note: 'AVPixelFormat' declared here
    enum AVPixelFormat {
        ^
    In file included from /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg.cpp:45:
    /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:1405:26: error: use of undeclared identifier
         'PIX_FMT_BGR24'; did you mean 'AV_PIX_FMT_BGR24'?
       if (input_pix_fmt == PIX_FMT_BGR24) {
                            ^~~~~~~~~~~~~
                            AV_PIX_FMT_BGR24
    /usr/local/Cellar/ffmpeg/3.3.4/include/libavutil/pixfmt.h:65:5: note: 'AV_PIX_FMT_BGR24' declared here
       AV_PIX_FMT_BGR24,     ///< packed RGB 8:8:8, 24bpp, BGRBGR...
       ^
    In file included from /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg.cpp:45:
    /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:1410:31: error: use of undeclared identifier
         'PIX_FMT_GRAY8'; did you mean 'AV_PIX_FMT_GRAY8'?
       else if (input_pix_fmt == PIX_FMT_GRAY8) {
                                 ^~~~~~~~~~~~~
                                 AV_PIX_FMT_GRAY8
    /usr/local/Cellar/ffmpeg/3.3.4/include/libavutil/pixfmt.h:70:5: note: 'AV_PIX_FMT_GRAY8' declared here
       AV_PIX_FMT_GRAY8,     ///<        Y        ,  8bpp
       ^
    In file included from /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg.cpp:45:
    /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:1423:25: error: unknown type name 'PixelFormat'; did you
         mean 'AVPixelFormat'?
                          (PixelFormat)input_pix_fmt, width, height);
                           ^~~~~~~~~~~
                           AVPixelFormat
    /usr/local/Cellar/ffmpeg/3.3.4/include/libavutil/pixfmt.h:60:6: note: 'AVPixelFormat' declared here
    enum AVPixelFormat {
        ^
    In file included from /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg.cpp:45:
    /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:1429:47: error: unknown type name 'PixelFormat'; did you
         mean 'AVPixelFormat'?
                                                (PixelFormat)input_pix_fmt,
                                                 ^~~~~~~~~~~
                                                 AVPixelFormat
    /usr/local/Cellar/ffmpeg/3.3.4/include/libavutil/pixfmt.h:60:6: note: 'AVPixelFormat' declared here
    enum AVPixelFormat {
        ^
    In file included from /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg.cpp:45:
    /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:1447:25: error: unknown type name 'PixelFormat'; did you
         mean 'AVPixelFormat'?
                          (PixelFormat)input_pix_fmt, width, height);
                           ^~~~~~~~~~~
                           AVPixelFormat
    /usr/local/Cellar/ffmpeg/3.3.4/include/libavutil/pixfmt.h:60:6: note: 'AVPixelFormat' declared here
    enum AVPixelFormat {
        ^
    In file included from /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg.cpp:45:
    /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:1604:25: error: use of undeclared identifier
         'PIX_FMT_BGR24'; did you mean 'AV_PIX_FMT_BGR24'?
           input_pix_fmt = PIX_FMT_BGR24;
                           ^~~~~~~~~~~~~
                           AV_PIX_FMT_BGR24
    /usr/local/Cellar/ffmpeg/3.3.4/include/libavutil/pixfmt.h:65:5: note: 'AV_PIX_FMT_BGR24' declared here
       AV_PIX_FMT_BGR24,     ///< packed RGB 8:8:8, 24bpp, BGRBGR...
       ^
    In file included from /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg.cpp:45:
    /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:1607:25: error: use of undeclared identifier
         'PIX_FMT_GRAY8'; did you mean 'AV_PIX_FMT_GRAY8'?
           input_pix_fmt = PIX_FMT_GRAY8;
                           ^~~~~~~~~~~~~
                           AV_PIX_FMT_GRAY8
    /usr/local/Cellar/ffmpeg/3.3.4/include/libavutil/pixfmt.h:70:5: note: 'AV_PIX_FMT_GRAY8' declared here
       AV_PIX_FMT_GRAY8,     ///<        Y        ,  8bpp
       ^
    In file included from /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg.cpp:45:
    /Users/myuser/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:1683:25: error: use of undeclared identifier
         'PIX_FMT_YUV422P'; did you mean 'AV_PIX_FMT_YUV422P'?
           codec_pix_fmt = PIX_FMT_YUV422P;
                           ^~~~~~~~~~~~~~~
                           AV_PIX_FMT_YUV422P
    /usr/local/Cellar/ffmpeg/3.3.4/include/libavutil/pixfmt.h:66:5: note: 'AV_PIX_FMT_YUV422P' declared here
       AV_PIX_FMT_YUV422P,   ///< planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
       ^
    fatal error: too many errors emitted, stopping now [-ferror-limit=]
    20 errors generated.
    make[2]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_ffmpeg.cpp.o] Error 1
    make[2]: *** Waiting for unfinished jobs....
    /Users/myuser/opencv/modules/videoio/src/cap_qtkit.mm:46:9: fatal error: 'QTKit/QTKit.h' file not found
    #import <qtkit></qtkit>QTKit.h>
           ^
    1 error generated.
    make[2]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_qtkit.mm.o] Error 1
    make[1]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/all] Error 2
    make: *** [all] Error 2

    This question on openCV’s website seems to adress the same issue but there is no solution posted : http://answers.opencv.org/question/90091/error-use-of-undeclared-identifier-avcodec_free_frame-did-you-mean-avcodec_get_name/

  • FFMPEG results in a silent video when trying to combine video and audio tracks

    23 septembre 2017, par Stuart Clarke

    I’m using the following command to combine a video and an audio track.

    ffmpeg -y -i /var/www/temp/merged.mp4 -i /var/www/temp/combined.mp3 -strict -2 /var/www/temp/videoExtouiulbjryzxlehjj2.mp4

    Edit :

    Here is the output from the first command

    ffmpeg version 2.5.10-0ubuntu0.15.04.1 Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 4.9.2 (Ubuntu 4.9.2-10ubuntu13)
     configuration: --prefix=/usr --extra-version=0ubuntu0.15.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --shlibdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --enable-shared --disable-stripping --enable-avresample --enable-avisynth --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libshine --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libwavpack --enable-libwebp --enable-libxvid --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzvbi --enable-libzmq --enable-frei0r --enable-libvpx --enable-libx264 --enable-libsoxr --enable-gnutls --enable-openal --enable-libopencv --enable-librtmp --enable-libx265
     libavutil      54. 15.100 / 54. 15.100
     libavcodec     56. 13.100 / 56. 13.100
     libavformat    56. 15.102 / 56. 15.102
     libavdevice    56.  3.100 / 56.  3.100
     libavfilter     5.  2.103 /  5.  2.103
     libavresample   2.  1.  0 /  2.  1.  0
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/var/www/temp/merged.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf56.15.102
     Duration: 00:02:31.80, start: 0.000000, bitrate: 2384 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 2381 kb/s, 25.43 fps, 29.97 tbr, 11988 tbn, 59.94 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 0 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Input #1, mp3, from '/var/www/temp/audioTrack.mp3':
     Metadata:
       encoder         : Lavf56.15.102
     Duration: 00:02:08.94, start: 0.011995, bitrate: 128 kb/s
       Stream #1:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
       Metadata:
         encoder         : Lavf
    [libx264 @ 0x1e903a0] using SAR=1/1
    [libx264 @ 0x1e903a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
    [libx264 @ 0x1e903a0] profile High, level 4.0
    [libx264 @ 0x1e903a0] 264 - core 142 r2495 6a301b6 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - 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
    Output #0, mp4, to '/var/www/temp/videoExtvzxvphotsyfpcbkd.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf56.15.102
       Stream #0:0(und): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 29.97 fps, 30k tbn, 29.97 tbc (default)
       Metadata:
         handler_name    : VideoHandler
         encoder         : Lavc56.13.100 libx264
       Stream #0:1(und): Audio: mp3 (libmp3lame) (i[0][0][0] / 0x0069), 48000 Hz, stereo, fltp (default)
       Metadata:
         handler_name    : SoundHandler
         encoder         : Lavc56.13.100 libmp3lame
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
     Stream #0:1 -> #0:1 (aac (native) -> mp3 (libmp3lame))
    Press [q] to stop, [?] for help
    frame=   31 fps=0.0 q=0.0 size=       0kB time=00:00:01.05 bitrate=   0.4kbits/s dup=1 drop=0frame=   46 fps= 41 q=0.0 size=       0kB time=00:00:01.56 bitrate=   0.2kbits/s dup=1 drop=0frame=   52 fps= 32 q=29.0 size=     149kB time=00:00:01.75 bitrate= 698.4kbits/s dup=1 drop=frame=   64 fps= 28 q=29.0 size=     258kB time=00:00:02.16 bitrate= 977.2kbits/s dup=1 drop=frame=   74 fps= 26 q=29.0 size=     389kB  
    video:39673kB audio:211kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.143487%
    [libx264 @ 0x1e903a0] frame I:27    Avg QP:18.78  size: 58834
    [libx264 @ 0x1e903a0] frame P:2202  Avg QP:23.67  size: 14187
    [libx264 @ 0x1e903a0] frame B:2323  Avg QP:25.75  size:  3356
    [libx264 @ 0x1e903a0] consecutive B-frames: 24.7% 18.7%  9.0% 47.5%
    [libx264 @ 0x1e903a0] mb I  I16..4: 18.8% 74.7%  6.5%
    [libx264 @ 0x1e903a0] mb P  I16..4:  2.1%  5.0%  0.3%  P16..4: 22.2%  6.0%  1.9%  0.0%  0.0%    skip:62.5%
    [libx264 @ 0x1e903a0] mb B  I16..4:  0.1%  0.3%  0.0%  B16..8: 19.9%  1.0%  0.1%  direct: 0.3%  skip:78.3%  L0:42.3% L1:55.3% BI: 2.4%
    [libx264 @ 0x1e903a0] 8x8 transform intra:68.2% inter:86.5%
    [libx264 @ 0x1e903a0] coded y,uvDC,uvAC intra: 35.8% 52.3% 4.5% inter: 5.2% 7.4% 0.0%
    [libx264 @ 0x1e903a0] i16 v,h,dc,p: 28% 23%  8% 40%
    [libx264 @ 0x1e903a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 20% 22%  3%  6%  6%  7%  5%  4%
    [libx264 @ 0x1e903a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 21% 14%  4%  8%  7%  7%  4%  3%
    [libx264 @ 0x1e903a0] i8c dc,h,v,p: 56% 18% 20%  6%
    [libx264 @ 0x1e903a0] Weighted P-Frames: Y:0.9% UV:0.2%
    [libx264 @ 0x1e903a0] ref P L0: 73.4% 13.0% 10.0%  3.6%  0.0%
    [libx264 @ 0x1e903a0] ref B L0: 92.2%  6.7%  1.1%
    [libx264 @ 0x1e903a0] ref B L1: 96.6%  3.4%
    [libx264 @ 0x1e903a0] kb/s:2139.74

    End Edit

    I know this should work since the exact line does work for other files. But the result with these is a silent video.

    I checked the audio file being used and it seemed fine when played. but I did get a weird warning when creating it. Basically I have 2 audio tracks, one is overlay music and the other is talking. I create the combined audio with this command.

    ffmpeg -y -i /var/www/temp/audioTrack.mp3 -i /var/www/temp/musicTrack.mp3 -filter_complex amerge -c:a libmp3lame -q:a 4 /var/www/temp/combined.mp3

    Here is the output from the second command.

    ffmpeg version 2.5.10-0ubuntu0.15.04.1 Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 4.9.2 (Ubuntu 4.9.2-10ubuntu13)
     configuration: --prefix=/usr --extra-version=0ubuntu0.15.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --shlibdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --enable-shared --disable-stripping --enable-avresample --enable-avisynth --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libshine --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libwavpack --enable-libwebp --enable-libxvid --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzvbi --enable-libzmq --enable-frei0r --enable-libvpx --enable-libx264 --enable-libsoxr --enable-gnutls --enable-openal --enable-libopencv --enable-librtmp --enable-libx265
     libavutil      54. 15.100 / 54. 15.100
     libavcodec     56. 13.100 / 56. 13.100
     libavformat    56. 15.102 / 56. 15.102
     libavdevice    56.  3.100 / 56.  3.100
     libavfilter     5.  2.103 /  5.  2.103
     libavresample   2.  1.  0 /  2.  1.  0
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, mp3, from '/var/www/temp/audioTrack.mp3':
     Metadata:
       encoder         : Lavf56.15.102
     Duration: 00:02:08.89, start: 0.025057, bitrate: 128 kb/s
       Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
       Metadata:
         encoder         : Lavc56.13
    Input #1, mp3, from '/var/www/temp/musicTrack.mp3':
     Metadata:
       encoder         : Lavf56.15.102
     Duration: 00:02:08.89, start: 0.025057, bitrate: 128 kb/s
       Stream #1:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
       Metadata:
         encoder         : Lavc56.13
    [Parsed_amerge_0 @ 0x15e3760] No channel layout for input 1
    [Parsed_amerge_0 @ 0x15e3760] Input channel layouts overlap: output layout will be determined by the number of distinct input channels
    Output #0, mp3, to '/var/www/temp/combined.mp3':
     Metadata:
       TSSE            : Lavf56.15.102
       Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, stereo, s16p (default)
       Metadata:
         encoder         : Lavc56.13.100 libmp3lame
    Stream mapping:
     Stream #0:0 (mp3) -> amerge:in0
     Stream #1:0 (mp3) -> amerge:in1
     amerge -> Stream #0:0 (libmp3lame)
    Press [q] to stop, [?] for help
    [libmp3lame @ 0x1601000] Trying to remove 1152 samples, but the queue is empty
    size=    2001kB time=00:02:08.88 bitrate= 127.2kbits/s    
    video:0kB audio:2001kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.012350%

    Of note is these sections (I believe).

    [Parsed_amerge_0 @ 0x15e3760] No channel layout for input 1
    [Parsed_amerge_0 @ 0x15e3760] Input channel layouts overlap: output layout will be determined by the number of distinct input channels

    and

    [libmp3lame @ 0x1601000] Trying to remove 1152 samples, but the queue is empty

    As I said the output audio file sounds correct.

    The Music and Audio tracks are created with AudioSegment in python from the pydub library. I’ve used this before with no issues. The code for this is as follows.

    sound = AudioSegment.from_mp3(audio)
    introSilence = AudioSegment.silent(duration=introLength)
    creditsSilence = AudioSegment.silent(duration=creditsLength)
    increasedAudio = sound + 12
    talking = introSilence + increasedAudio + creditsSilence
    talking.export(audioTrack, format="mp3")
    mus = AudioSegment.from_mp3(music)
    introMusic = mus[ : introLength]
    videoMusic = mus[introLength - crossFade : introLength + videoLength + crossFade]
    creditsMusic = mus[totalLength - creditsLength : totalLength]
    lowerMusic = videoMusic - 6
    totalMusic = introMusic.append(lowerMusic, crossfade=crossFade).append(creditsMusic, crossfade=crossFade).fade_out(fadeOut)
    totalMusic.export(musicTrack, format="mp3")

    Here is the output of ffprobe on the 2 audio files.

    for audioTrack

    ffprobe version 2.5.10-0ubuntu0.15.04.1 Copyright (c) 2007-2016 the FFmpeg developers
     built with gcc 4.9.2 (Ubuntu 4.9.2-10ubuntu13)
     configuration: --prefix=/usr --extra-version=0ubuntu0.15.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --shlibdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --enable-shared --disable-stripping --enable-avresample --enable-avisynth --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libshine --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libwavpack --enable-libwebp --enable-libxvid --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzvbi --enable-libzmq --enable-frei0r --enable-libvpx --enable-libx264 --enable-libsoxr --enable-gnutls --enable-openal --enable-libopencv --enable-librtmp --enable-libx265
     libavutil      54. 15.100 / 54. 15.100
     libavcodec     56. 13.100 / 56. 13.100
     libavformat    56. 15.102 / 56. 15.102
     libavdevice    56.  3.100 / 56.  3.100
     libavfilter     5.  2.103 /  5.  2.103
     libavresample   2.  1.  0 /  2.  1.  0
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, mp3, from 'temp/audioTrack.mp3':
     Metadata:
       encoder         : Lavf56.15.102
     Duration: 00:02:08.89, start: 0.025057, bitrate: 128 kb/s
       Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
       Metadata:
         encoder         : Lavc56.13

    and for musicTrack

    ffprobe version 2.5.10-0ubuntu0.15.04.1 Copyright (c) 2007-2016 the FFmpeg developers
     built with gcc 4.9.2 (Ubuntu 4.9.2-10ubuntu13)
     configuration: --prefix=/usr --extra-version=0ubuntu0.15.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --shlibdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --enable-shared --disable-stripping --enable-avresample --enable-avisynth --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libshine --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libwavpack --enable-libwebp --enable-libxvid --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzvbi --enable-libzmq --enable-frei0r --enable-libvpx --enable-libx264 --enable-libsoxr --enable-gnutls --enable-openal --enable-libopencv --enable-librtmp --enable-libx265
     libavutil      54. 15.100 / 54. 15.100
     libavcodec     56. 13.100 / 56. 13.100
     libavformat    56. 15.102 / 56. 15.102
     libavdevice    56.  3.100 / 56.  3.100
     libavfilter     5.  2.103 /  5.  2.103
     libavresample   2.  1.  0 /  2.  1.  0
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, mp3, from 'temp/musicTrack.mp3':
     Metadata:
       encoder         : Lavf56.15.102
     Duration: 00:02:08.89, start: 0.025057, bitrate: 128 kb/s
       Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
       Metadata:
         encoder         : Lavc56.13

    I can’t see any issues with these.

    For completeness here is the ffprobe result for the combined audio track.

    ffprobe version 2.5.10-0ubuntu0.15.04.1 Copyright (c) 2007-2016 the FFmpeg developers
     built with gcc 4.9.2 (Ubuntu 4.9.2-10ubuntu13)
     configuration: --prefix=/usr --extra-version=0ubuntu0.15.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --shlibdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --enable-shared --disable-stripping --enable-avresample --enable-avisynth --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libshine --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libwavpack --enable-libwebp --enable-libxvid --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzvbi --enable-libzmq --enable-frei0r --enable-libvpx --enable-libx264 --enable-libsoxr --enable-gnutls --enable-openal --enable-libopencv --enable-librtmp --enable-libx265
     libavutil      54. 15.100 / 54. 15.100
     libavcodec     56. 13.100 / 56. 13.100
     libavformat    56. 15.102 / 56. 15.102
     libavdevice    56.  3.100 / 56.  3.100
     libavfilter     5.  2.103 /  5.  2.103
     libavresample   2.  1.  0 /  2.  1.  0
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, mp3, from 'temp/combined.mp3':
     Metadata:
       encoder         : Lavf56.15.102
     Duration: 00:02:08.91, start: 0.025057, bitrate: 127 kb/s
       Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 127 kb/s
       Metadata:
         encoder         : Lavc56.13

    Any help would be much appreciated.

    Thanks,

    Stu.