Recherche avancée

Médias (91)

Autres articles (107)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Problèmes fréquents

    10 mars 2010, par

    PHP et safe_mode activé
    Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
    La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

Sur d’autres sites (7772)

  • trying to make OpenCV 3.2.0 work with virtualenv

    24 juillet 2017, par lollercoaster

    I’m on Ubuntu 16.04 with Python 2.7 and virtualenv & virtualenvwrapper.

    By following this guide I managed to get the following script working with my system Python2.7 which has cv2 globally installed.

    I used this script to install it :

    ######################################
    # INSTALL OPENCV ON UBUNTU OR DEBIAN #
    ######################################

    # |         THIS SCRIPT IS TESTED CORRECTLY ON         |
    # |----------------------------------------------------|
    # | OS             | OpenCV       | Test | Last test   |
    # |----------------|--------------|------|-------------|
    # | Ubuntu 16.04.2 | OpenCV 3.2.0 | OK   | 20 May 2017 |
    # | Debian 8.8     | OpenCV 3.2.0 | OK   | 20 May 2017 |
    # | Debian 9.0     | OpenCV 3.2.0 | OK   | 25 Jun 2017 |

    # 1. KEEP UBUNTU OR DEBIAN UP TO DATE

    sudo apt-get -y update
    sudo apt-get -y upgrade
    sudo apt-get -y dist-upgrade
    sudo apt-get -y autoremove


    # 2. INSTALL THE DEPENDENCIES

    # Build tools:
    sudo apt-get install -y build-essential cmake

    # GUI (if you want to use GTK instead of Qt, replace 'qt5-default' with 'libgtkglext1-dev' and remove '-DWITH_QT=ON' option in CMake):
    sudo apt-get install -y qt5-default libvtk6-dev

    # Media I/O:
    sudo apt-get install -y zlib1g-dev libjpeg-dev libwebp-dev libpng-dev libtiff5-dev libjasper-dev libopenexr-dev libgdal-dev

    # Video I/O:
    sudo apt-get install -y libdc1394-22-dev libavcodec-dev libavformat-dev libswscale-dev libtheora-dev libvorbis-dev libxvidcore-dev libx264-dev yasm libopencore-amrnb-dev libopencore-amrwb-dev libv4l-dev libxine2-dev

    # Parallelism and linear algebra libraries:
    sudo apt-get install -y libtbb-dev libeigen3-dev

    # Python:
    sudo apt-get install -y python-dev python-tk python-numpy python3-dev python3-tk python3-numpy

    # Documentation:
    sudo apt-get install -y doxygen

    # UI stuff
    sudo apt-get install libgtk-3-dev libatlas-base-dev gfortran


    # 3. INSTALL THE LIBRARY (YOU CAN CHANGE '3.2.0' FOR THE LAST STABLE VERSION)
    sudo apt-get install -y unzip wget

    # opencv contrib
    wget https://github.com/opencv/opencv_contrib/archive/3.2.0.zip -O opencv_contrib-3.2.0.zip
    unzip opencv_contrib-3.2.0.zip
    rm opencv_contrib-3.2.0.zip

    # opencv
    wget https://github.com/opencv/opencv/archive/3.2.0.zip
    unzip 3.2.0.zip
    rm 3.2.0.zip
    mv opencv-3.2.0 OpenCV-3.2.0
    cd OpenCV-3.2.0

    mkdir build
    cd build
    cmake -D WITH_QT=ON \
       -D WITH_OPENGL=ON \
       -D FORCE_VTK=ON \
       -D WITH_TBB=ON \
       -D WITH_GDAL=ON \
       -D WITH_XINE=ON \
       -D BUILD_EXAMPLES=ON \
       -D INSTALL_PYTHON_EXAMPLES=ON \
       -D ENABLE_PRECOMPILED_HEADERS=OFF \
       -D BUILD_NEW_PYTHON_SUPPORT=ON \
       ..

    make -j4
    sudo make install
    sudo ldconfig


    # 4. EXECUTE SOME OPENCV EXAMPLES AND COMPILE A DEMONSTRATION

    # To complete this step, please visit 'http://milq.github.io/install-opencv-ubuntu-debian'.

    The following script below works great with that system-wide installation :

    import cv2

    img = cv2.imread('some_img.jpg')

    Though this one doesn’t - even the system Python can’t read videos for some reason...

    import cv2

    video_capture = cv2.VideoCapture(0)
    ret, frame = video_capture.read()
    print ret  # always False

    but I want it to work with my virtualenv. So I recompiled OpenCV with :

    cmake -D WITH_QT=ON \
       -D WITH_OPENGL=ON \
       -D FORCE_VTK=ON \
       -D WITH_TBB=ON \
       -D WITH_GDAL=ON \
       -D WITH_XINE=ON \
       -D BUILD_EXAMPLES=ON \
       -D INSTALL_PYTHON_EXAMPLES=ON \
       -D ENABLE_PRECOMPILED_HEADERS=OFF \
       -D BUILD_NEW_PYTHON_SUPPORT=ON \
       -D OPENCV_EXTRA_MODULES_PATH=/home/me/code/myproject/opencv_contrib-3.2.0/modules \
       -D PYTHON_EXECUTABLE=~/.envs/myenv/bin/python \
       ..

    make -j4
    sudo make install
    sudo ldconfig

    Here’s the CMake log :

    -- Found VTK ver. 6.2.0 (usefile: /usr/lib/cmake/vtk-6.2/UseVTK.cmake)
    -- Caffe:   NO
    -- Protobuf:   YES
    -- Glog:   NO
    -- freetype2:   YES
    -- harfbuzz:    YES
    -- Module opencv_sfm disabled because the following dependencies are not found: Glog/Gflags
    -- freetype2:   YES
    -- harfbuzz:    YES
    -- Checking for modules 'tesseract;lept'
    --   No package 'tesseract' found
    --   No package 'lept' found
    -- Tesseract:   NO
    -- Check contents of vgg_generated_48.i ...
    -- Check contents of vgg_generated_64.i ...
    -- Check contents of vgg_generated_80.i ...
    -- Check contents of vgg_generated_120.i ...
    -- Check contents of boostdesc_bgm.i ...
    -- Check contents of boostdesc_bgm_bi.i ...
    -- Check contents of boostdesc_bgm_hd.i ...
    -- Check contents of boostdesc_binboost_064.i ...
    -- Check contents of boostdesc_binboost_128.i ...
    -- Check contents of boostdesc_binboost_256.i ...
    -- Check contents of boostdesc_lbgm.i ...
    --
    -- General configuration for OpenCV 3.2.0 =====================================
    --   Version control:               817bd7b-dirty
    --
    --   Extra modules:
    --     Location (extra):            /home/me/code/myproject/opencv_contrib-3.2.0/modules
    --     Version control (extra):     817bd7b-dirty
    --
    --   Platform:
    --     Timestamp:                   2017-07-20T18:25:26Z
    --     Host:                        Linux 4.8.0-58-generic x86_64
    --     CMake:                       3.5.1
    --     CMake generator:             Unix Makefiles
    --     CMake build tool:            /usr/bin/make
    --     Configuration:               Release
    --
    --   C/C++:
    --     Built as dynamic libs?:      YES
    --     C++ Compiler:                /usr/bin/c++  (ver 5.4.0)
    --     C++ flags (Release):         -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG  -DNDEBUG
    --     C++ flags (Debug):           -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -g  -O0 -DDEBUG -D_DEBUG
    --     C Compiler:                  /usr/bin/cc
    --     C flags (Release):           -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -O3 -DNDEBUG  -DNDEBUG
    --     C flags (Debug):             -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -g  -O0 -DDEBUG -D_DEBUG
    --     Linker flags (Release):
    --     Linker flags (Debug):
    --     ccache:                      NO
    --     Precompiled headers:         NO
    --     Extra dependencies:          Qt5::Test Qt5::Concurrent Qt5::OpenGL /usr/lib/x86_64-linux-gnu/libwebp.so /usr/lib/x86_64-linux-gnu/libjasper.so /usr/lib/x86_64-linux-gnu/libImath.so /usr/lib/x86_64-linux-gnu/libIlmImf.so /usr/lib/x86_64-linux-gnu/libIex.so /usr/lib/x86_64-linux-gnu/libHalf.so /usr/lib/x86_64-linux-gnu/libIlmThread.so /usr/lib/libgdal.so dc1394 xine avcodec-ffmpeg avformat-ffmpeg avutil-ffmpeg swscale-ffmpeg Qt5::Core Qt5::Gui Qt5::Widgets /usr/lib/x86_64-linux-gnu/hdf5/serial/lib/libhdf5.so /usr/lib/x86_64-linux-gnu/libpthread.so /usr/lib/x86_64-linux-gnu/libsz.so /usr/lib/x86_64-linux-gnu/libdl.so /usr/lib/x86_64-linux-gnu/libm.so vtkRenderingOpenGL vtkImagingHybrid vtkIOImage vtkCommonDataModel vtkCommonMath vtkCommonCore vtksys vtkCommonMisc vtkCommonSystem vtkCommonTransforms vtkCommonExecutionModel vtkDICOMParser vtkIOCore /usr/lib/x86_64-linux-gnu/libz.so vtkmetaio /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib/x86_64-linux-gnu/libpng.so /usr/lib/x86_64-linux-gnu/libtiff.so vtkImagingCore vtkRenderingCore vtkCommonColor vtkFiltersExtraction vtkFiltersCore vtkFiltersGeneral vtkCommonComputationalGeometry vtkFiltersStatistics vtkImagingFourier vtkalglib vtkFiltersGeometry vtkFiltersSources vtkInteractionStyle vtkRenderingLOD vtkFiltersModeling vtkIOPLY vtkIOGeometry /usr/lib/x86_64-linux-gnu/libjsoncpp.so vtkFiltersTexture vtkRenderingFreeType /usr/lib/x86_64-linux-gnu/libfreetype.so vtkftgl vtkIOExport vtkRenderingAnnotation vtkImagingColor vtkRenderingContext2D vtkRenderingGL2PS vtkRenderingContextOpenGL /usr/lib/libgl2ps.so vtkRenderingLabel dl m pthread rt /usr/lib/x86_64-linux-gnu/libGLU.so /usr/lib/x86_64-linux-gnu/libGL.so tbb
    --     3rdparty dependencies:       libprotobuf
    --
    --   OpenCV modules:
    --     To be built:                 core flann hdf imgproc ml photo reg surface_matching video viz dnn freetype fuzzy imgcodecs shape videoio highgui objdetect plot superres ts xobjdetect xphoto bgsegm bioinspired dpm face features2d line_descriptor saliency text calib3d ccalib cvv datasets rgbd stereo tracking videostab xfeatures2d ximgproc aruco optflow phase_unwrapping stitching structured_light java python2 python3
    --     Disabled:                    world contrib_world
    --     Disabled by dependency:      -
    --     Unavailable:                 cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev cnn_3dobj matlab sfm
    --
    --   GUI:
    --     QT 5.x:                      YES (ver 5.5.1)
    --     QT OpenGL support:           YES (Qt5::OpenGL 5.5.1)
    --     OpenGL support:              YES (/usr/lib/x86_64-linux-gnu/libGLU.so /usr/lib/x86_64-linux-gnu/libGL.so)
    --     VTK support:                 YES (ver 6.2.0)
    --
    --   Media I/O:
    --     ZLib:                        /usr/lib/x86_64-linux-gnu/libz.so (ver 1.2.8)
    --     JPEG:                        /usr/lib/x86_64-linux-gnu/libjpeg.so (ver )
    --     WEBP:                        /usr/lib/x86_64-linux-gnu/libwebp.so (ver encoder: 0x0202)
    --     PNG:                         /usr/lib/x86_64-linux-gnu/libpng.so (ver 1.2.54)
    --     TIFF:                        /usr/lib/x86_64-linux-gnu/libtiff.so (ver 42 - 4.0.6)
    --     JPEG 2000:                   /usr/lib/x86_64-linux-gnu/libjasper.so (ver 1.900.1)
    --     OpenEXR:                     /usr/lib/x86_64-linux-gnu/libImath.so /usr/lib/x86_64-linux-gnu/libIlmImf.so /usr/lib/x86_64-linux-gnu/libIex.so /usr/lib/x86_64-linux-gnu/libHalf.so /usr/lib/x86_64-linux-gnu/libIlmThread.so (ver 2.2.0)
    --     GDAL:                        /usr/lib/libgdal.so
    --     GDCM:                        NO
    --
    --   Video I/O:
    --     DC1394 1.x:                  NO
    --     DC1394 2.x:                  YES (ver 2.2.4)
    --     FFMPEG:                      YES
    --       avcodec:                   YES (ver 56.60.100)
    --       avformat:                  YES (ver 56.40.101)
    --       avutil:                    YES (ver 54.31.100)
    --       swscale:                   YES (ver 3.1.101)
    --       avresample:                NO
    --     GStreamer:                   NO
    --     OpenNI:                      NO
    --     OpenNI PrimeSensor Modules:  NO
    --     OpenNI2:                     NO
    --     PvAPI:                       NO
    --     GigEVisionSDK:               NO
    --     Aravis SDK:                  NO
    --     UniCap:                      NO
    --     UniCap ucil:                 NO
    --     V4L/V4L2:                    NO/YES
    --     XIMEA:                       NO
    --     Xine:                        YES (ver 1.2.6)
    --     gPhoto2:                     NO
    --
    --   Parallel framework:            TBB (ver 4.4 interface 9002)
    --
    --   Other third-party libraries:
    --     Use IPP:                     9.0.1 [9.0.1]
    --          at:                     /home/me/code/myproject/OpenCV-3.2.0/build/3rdparty/ippicv/ippicv_lnx
    --     Use IPP Async:               NO
    --     Use VA:                      NO
    --     Use Intel VA-API/OpenCL:     NO
    --     Use Lapack:                  NO
    --     Use Eigen:                   YES (ver 3.2.92)
    --     Use Cuda:                    NO
    --     Use OpenCL:                  YES
    --     Use OpenVX:                  NO
    --     Use custom HAL:              NO
    --
    --   OpenCL:                        <dynamic loading="loading" of="of" opencl="opencl" library="library">
    --     Include path:                /home/me/code/myproject/OpenCV-3.2.0/3rdparty/include/opencl/1.2
    --     Use AMDFFT:                  NO
    --     Use AMDBLAS:                 NO
    --
    --   Python 2:
    --     Interpreter:                 /home/me/.envs/myenv/bin/python (ver 2.7.12)
    --     Libraries:                   /usr/lib/x86_64-linux-gnu/libpython2.7.so (ver 2.7.12)
    --     numpy:                       /home/me/.envs/myenv/local/lib/python2.7/site-packages/numpy/core/include (ver 1.13.1)
    --     packages path:               lib/python2.7/site-packages
    --
    --   Python 3:
    --     Interpreter:                 /usr/bin/python3 (ver 3.5.2)
    --     Libraries:                   /usr/lib/x86_64-linux-gnu/libpython3.5m.so (ver 3.5.2)
    --     numpy:                       /usr/lib/python3/dist-packages/numpy/core/include (ver 1.11.0)
    --     packages path:               lib/python3.5/dist-packages
    --
    --   Python (for build):            /home/me/.envs/myenv/bin/python
    --
    --   Java:
    --     ant:                         /usr/bin/ant (ver 1.9.6)
    --     JNI:                         /usr/lib/jvm/default-java/include /usr/lib/jvm/default-java/include/linux /usr/lib/jvm/default-java/include
    --     Java wrappers:               YES
    --     Java tests:                  YES
    --
    --   Matlab:                        Matlab not found or implicitly disabled
    --
    --   Documentation:
    --     Doxygen:                     /usr/bin/doxygen (ver 1.8.11)
    --
    --   Tests and samples:
    --     Tests:                       YES
    --     Performance tests:           YES
    --     C/C++ Examples:              YES
    --
    --   Install path:                  /usr/local
    --
    --   cvconfig.h is in:              /home/me/code/myproject/OpenCV-3.2.0/build
    -- -----------------------------------------------------------------
    --
    </dynamic>

    Unfortunately, while this works and I can import cv2 in the shell, it cannot read video using the above script, probably due to incorrect compilation or linking of ffmpeg ? The confusing part is the system-wide installation of OpenCV works fine, even without ffmpeg installed !

    What am I doing wrong ? How can I get OpenCV working with a virtualenv ?

    ====

    EDIT : Running the C++ video writing example has this result :

    $ cd /home/me/code/myproject/OpenCV-3.2.0/build/bin
    $ ./cpp-tutorial-video-write ../../samples/data/vtest.avi R Y
    ------------------------------------------------------------------------------
    This program shows how to write video files.
    You can extract the R or G or B color channel of the input video.
    Usage:
    ./video-write  [ R | G | B] [Y | N]
    ------------------------------------------------------------------------------

    OpenCV: FFMPEG: tag 0xffffffff/'����' is not found (format 'avi / AVI (Audio Video Interleaved)')'

    (cpp-tutorial-video-write:19523): GStreamer-CRITICAL **: gst_element_make_from_uri: assertion 'gst_uri_is_valid (uri)' failed
    OpenCV Error: Unsupported format or combination of formats (Gstreamer Opencv backend does not support this codec.) in CvVideoWriter_GStreamer::open, file /home/me/code/myproject/OpenCV-3.2.0/modules/videoio/src/cap_gstreamer.cpp, line 1388
    VIDEOIO(cvCreateVideoWriter_GStreamer(filename, fourcc, fps, frameSize, is_color)): raised OpenCV exception:

    /home/me/code/myproject/OpenCV-3.2.0/modules/videoio/src/cap_gstreamer.cpp:1388: error: (-210) Gstreamer Opencv backend does not support this codec. in function CvVideoWriter_GStreamer::open

    Could not open the output video for write: ../../samples/data/vtest.avi

    And the opencv_test_videoio unit test reports the following : https://pastebin.com/q4mf224Q

    However, running the c++ video starter example DOES work, with the following command and output, I can see the webcam working and streaming video in the highgui interface :

    $ ./cpp-example-videocapture_starter 0
    VIDEOIO ERROR: V4L: device 0: Unable to query number of channels
    (ERROR)icvOpenAVI_XINE(): Unable to initialize video driver.
    GStreamer: Error opening bin: no element "0"
    press space to save a picture. q or esc to quit
    init done
    opengl support available
  • Speeding up/slowing down video ffmpeg

    4 avril 2021, par BahaaIddin Al Sharqawi

    I want to change video speed using ffmpeg framework. I used this command for that :

    &#xA;&#xA;

    ffmpeg -y -i /storage/extSdCard/Video/1.avi -filter_complex [0:v]fps=50.0, setpts=0.5*PTS[v];[0:a]atempo=2.0[a] -map [v] -map [a] -preset ultrafast /storage/emulated/0/VID-20170716-VidRotate1.mp4

    &#xA;&#xA;

    How can I guess the duration of the resulting video after slowing down or speeding up video ?

    &#xA;&#xA;

    This is my whole log in console :

    &#xA;&#xA;

    ffmpeg -y -i /storage/extSdCard/Video/1.avi -filter_complex [0:v]fps=50.0, setpts=0.5*PTS[v];[0:a]atempo=2.0[a] -map [v] -map [a] -preset ultrafast /storage/emulated/0/VID-20170716-VidRotate1.mp4 &#xA;    07-16 15:07:15.112: ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers&#xA;    07-16 15:07:15.112:   built with gcc 4.8 (GCC)&#xA;    07-16 15:07:15.112:   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=&#x27;-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all&#x27; --extra-ldflags=&#x27;-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie&#x27; --extra-libs=&#x27;-lpng -lexpat -lm&#x27; --extra-cxxflags=&#xA;    07-16 15:07:15.122:   libavutil      55. 17.103 / 55. 17.103&#xA;    07-16 15:07:15.122:   libavcodec     57. 24.102 / 57. 24.102&#xA;    07-16 15:07:15.122:   libavformat    57. 25.100 / 57. 25.100&#xA;    07-16 15:07:15.132:   libavdevice    57.  0.101 / 57.  0.101&#xA;    07-16 15:07:15.132:   libavfilter     6. 31.100 /  6. 31.100&#xA;    07-16 15:07:15.132:   libswscale      4.  0.100 /  4.  0.100&#xA;    07-16 15:07:15.132:   libswresample   2.  0.101 /  2.  0.101&#xA;    07-16 15:07:15.142:   libpostproc    54.  0.100 / 54.  0.100&#xA;    07-16 15:07:15.232: Input #0, avi, from &#x27;/storage/extSdCard/Video/1.avi&#x27;:&#xA;    07-16 15:07:15.232:   Metadata:&#xA;    07-16 15:07:15.232:     encoder         : Lavf52.104.0&#xA;    07-16 15:07:15.232:   Duration: 00:02:03.96, start: 0.000000, bitrate: 773 kb/s&#xA;    07-16 15:07:15.242:     Stream #0:0: Video: mpeg4 (Simple Profile) (xvid / 0x64697678), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 632 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc&#xA;    07-16 15:07:15.242:     Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16p, 128 kb/s&#xA;    07-16 15:07:15.262 750-781/? W/ActivityManager: mDVFSHelper.release()&#xA;    07-16 15:07:15.282: [libx264 @ 0xb5428800] using SAR=1/1&#xA;    07-16 15:07:15.312: [libx264 @ 0xb5428800] using cpu capabilities: none!&#xA;    07-16 15:07:15.422: [libx264 @ 0xb5428800] profile Constrained Baseline, level 3.1&#xA;    07-16 15:07:15.422: [libx264 @ 0xb5428800] 264 - core 148 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0&#xA;    07-16 15:07:15.462: Output #0, mp4, to &#x27;/storage/emulated/0/VID-20170716-VidRotate1.mp4&#x27;:&#xA;    07-16 15:07:15.462:   Metadata:&#xA;    07-16 15:07:15.462:     encoder         : Lavf57.25.100&#xA;    07-16 15:07:15.462:     Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 640x480 [SAR 1:1 DAR 4:3], q=-1--1, 50 fps, 12800 tbn, 50 tbc (default)&#xA;    07-16 15:07:15.462:     Metadata:&#xA;    07-16 15:07:15.462:       encoder         : Lavc57.24.102 libx264&#xA;    07-16 15:07:15.462:     Side data:&#xA;    07-16 15:07:15.462:       unknown side data type 10 (24 bytes)&#xA;    07-16 15:07:15.472:     Stream #0:1: Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 128 kb/s (default)&#xA;    07-16 15:07:15.472:     Metadata:&#xA;    07-16 15:07:15.472:       encoder         : Lavc57.24.102 aac&#xA;    07-16 15:07:15.472: Stream mapping:&#xA;    07-16 15:07:15.472:   Stream #0:0 (mpeg4) -> fps&#xA;    07-16 15:07:15.472:   Stream #0:1 (mp3) -> atempo&#xA;    07-16 15:07:15.472:   setpts -> Stream #0:0 (libx264)&#xA;    07-16 15:07:15.472:   atempo -> Stream #0:1 (aac)&#xA;    07-16 15:07:15.472: Press [q] to stop, [?] for help&#xA;    07-16 15:07:15.532: Past duration 0.999992 too large&#xA;    07-16 15:07:15.972: frame=   24 fps=0.0 q=15.0 size=      62kB time=00:00:00.39 bitrate=1296.2kbits/s dup=0 drop=19 speed=0.781x    &#xA;    07-16 15:07:16.483: frame=   45 fps= 44 q=15.0 size=      63kB time=00:00:00.83 bitrate= 617.2kbits/s dup=0 drop=40 speed=0.827x    &#xA;    07-16 15:07:16.983: frame=   72 fps= 48 q=20.0 size=     104kB time=00:00:01.36 bitrate= 621.9kbits/s dup=0 drop=67 speed=0.906x    &#xA;    07-16 15:07:17.484: frame=   99 fps= 49 q=17.0 size=     171kB time=00:00:01.90 bitrate= 734.8kbits/s dup=0 drop=94 speed=0.942x    &#xA;    07-16 15:07:18.004: frame=  125 fps= 49 q=22.0 size=     208kB time=00:00:02.41 bitrate= 704.8kbits/s dup=0 drop=120 speed=0.953x    &#xA;    07-16 15:07:18.515: frame=  152 fps= 50 q=18.0 size=     334kB time=00:00:02.97 bitrate= 919.6kbits/s dup=0 drop=147 speed=0.979x    &#xA;    07-16 15:07:19.015: frame=  181 fps= 51 q=18.0 size=     407kB time=00:00:03.55 bitrate= 938.9kbits/s dup=0 drop=176 speed=   1x    &#xA;    07-16 15:07:19.516: frame=  209 fps= 52 q=16.0 size=     465kB time=00:00:04.13 bitrate= 921.3kbits/s dup=0 drop=204 speed=1.02x    &#xA;    07-16 15:07:20.026: frame=  234 fps= 51 q=15.0 size=     483kB time=00:00:04.59 bitrate= 860.0kbits/s dup=0 drop=229 speed=1.01x    &#xA;    07-16 15:07:20.527: frame=  258 fps= 51 q=20.0 size=     606kB time=00:00:05.08 bitrate= 975.7kbits/s dup=0 drop=253 speed=1.01x    &#xA;    07-16 15:07:21.047: frame=  291 fps= 52 q=15.0 size=     606kB time=00:00:05.73 bitrate= 866.0kbits/s dup=0 drop=286 speed=1.03x    &#xA;    07-16 15:07:21.558: frame=  317 fps= 52 q=23.0 size=     716kB time=00:00:06.24 bitrate= 938.8kbits/s dup=0 drop=312 speed=1.03x    &#xA;    07-16 15:07:22.048: frame=  342 fps= 52 q=17.0 size=     781kB time=00:00:06.75 bitrate= 947.1kbits/s dup=0 drop=337 speed=1.03x    &#xA;    07-16 15:07:22.549: frame=  367 fps= 52 q=20.0 size=     823kB time=00:00:07.26 bitrate= 927.7kbits/s dup=0 drop=362 speed=1.03x    &#xA;    07-16 15:07:23.049: frame=  393 fps= 52 q=19.0 size=     903kB time=00:00:07.77 bitrate= 951.0kbits/s dup=0 drop=388 speed=1.03x    &#xA;    07-16 15:07:23.560: frame=  421 fps= 52 q=17.0 size=     992kB time=00:00:08.33 bitrate= 974.6kbits/s dup=0 drop=416 speed=1.03x    &#xA;    07-16 15:07:24.060: frame=  448 fps= 52 q=15.0 size=    1016kB time=00:00:08.87 bitrate= 938.7kbits/s dup=0 drop=443 speed=1.03x    &#xA;    07-16 15:07:24.551: frame=  474 fps= 52 q=15.0 size=    1029kB time=00:00:09.40 bitrate= 896.0kbits/s dup=0 drop=469 speed=1.04x    &#xA;    07-16 15:07:25.061: frame=  500 fps= 52 q=15.0 size=    1029kB time=00:00:09.91 bitrate= 850.1kbits/s dup=0 drop=495 speed=1.03x    &#xA;    07-16 15:07:25.562: frame=  528 fps= 52 q=15.0 size=    1110kB time=00:00:10.49 bitrate= 866.8kbits/s dup=0 drop=523 speed=1.04x    &#xA;    07-16 15:07:26.052: frame=  560 fps= 53 q=15.0 size=    1114kB time=00:00:11.12 bitrate= 820.6kbits/s dup=0 drop=555 speed=1.05x    &#xA;    07-16 15:07:26.563: frame=  591 fps= 53 q=15.0 size=    1117kB time=00:00:11.74 bitrate= 779.1kbits/s dup=0 drop=586 speed=1.06x    &#xA;    07-16 15:07:27.063: frame=  621 fps= 54 q=18.0 size=    1154kB time=00:00:12.35 bitrate= 765.2kbits/s dup=0 drop=616 speed=1.07x    &#xA;    07-16 15:07:27.574: frame=  648 fps= 54 q=20.0 size=    1200kB time=00:00:12.91 bitrate= 761.2kbits/s dup=0 drop=643 speed=1.07x    &#xA;    07-16 15:07:28.084: frame=  675 fps= 54 q=20.0 size=    1292kB time=00:00:13.42 bitrate= 788.6kbits/s dup=0 drop=670 speed=1.06x    &#xA;    07-16 15:07:28.585: frame=  701 fps= 53 q=16.0 size=    1346kB time=00:00:13.95 bitrate= 790.4kbits/s dup=0 drop=696 speed=1.06x    &#xA;    07-16 15:07:29.085: frame=  729 fps= 54 q=15.0 size=    1380kB time=00:00:14.48 bitrate= 780.0kbits/s dup=0 drop=724 speed=1.06x    &#xA;    07-16 15:07:29.616: frame=  753 fps= 53 q=12.0 size=    1380kB time=00:00:15.00 bitrate= 753.6kbits/s dup=0 drop=748 speed=1.06x    &#xA;    07-16 15:07:30.116: frame=  780 fps= 53 q=15.0 size=    1459kB time=00:00:15.51 bitrate= 770.4kbits/s dup=0 drop=775 speed=1.06x    &#xA;    07-16 15:07:30.627: frame=  812 fps= 54 q=15.0 size=    1464kB time=00:00:16.16 bitrate= 742.1kbits/s dup=0 drop=807 speed=1.07x    &#xA;    07-16 15:07:31.127: frame=  843 fps= 54 q=15.0 size=    1465kB time=00:00:16.78 bitrate= 715.0kbits/s dup=0 drop=838 speed=1.07x    &#xA;    07-16 15:07:31.638: frame=  875 fps= 54 q=15.0 size=    1469kB time=00:00:17.41 bitrate= 691.0kbits/s dup=0 drop=870 speed=1.08x    &#xA;    07-16 15:07:32.138: frame=  906 fps= 54 q=18.0 size=    1507kB time=00:00:18.04 bitrate= 684.1kbits/s dup=0 drop=901 speed=1.08x    &#xA;    07-16 15:07:32.649: frame=  932 fps= 54 q=21.0 size=    1555kB time=00:00:18.55 bitrate= 686.8kbits/s dup=0 drop=927 speed=1.08x    &#xA;    07-16 15:07:33.159: frame=  960 fps= 54 q=23.0 size=    1614kB time=00:00:19.13 bitrate= 691.1kbits/s dup=0 drop=955 speed=1.08x    &#xA;    07-16 15:07:33.670: frame=  988 fps= 54 q=20.0 size=    1737kB time=00:00:19.66 bitrate= 723.7kbits/s dup=0 drop=983 speed=1.08x    &#xA;    07-16 15:07:34.180: frame= 1014 fps= 54 q=16.0 size=    1876kB time=00:00:20.22 bitrate= 759.9kbits/s dup=0 drop=1009 speed=1.08x    &#xA;    07-16 15:07:34.671: frame= 1042 fps= 54 q=15.0 size=    1897kB time=00:00:20.75 bitrate= 748.6kbits/s dup=0 drop=1037 speed=1.08x    &#xA;    07-16 15:07:35.181: frame= 1069 fps= 54 q=15.0 size=    1911kB time=00:00:21.29 bitrate= 735.3kbits/s dup=0 drop=1064 speed=1.08x    &#xA;    07-16 15:07:35.692: frame= 1098 fps= 54 q=15.0 size=    1912kB time=00:00:21.89 bitrate= 715.2kbits/s dup=0 drop=1093 speed=1.08x    &#xA;    07-16 15:07:36.182: frame= 1126 fps= 54 q=15.0 size=    1918kB time=00:00:22.43 bitrate= 700.3kbits/s dup=0 drop=1121 speed=1.08x    &#xA;    07-16 15:07:36.703: frame= 1154 fps= 54 q=15.0 size=    1918kB time=00:00:23.01 bitrate= 682.8kbits/s dup=0 drop=1149 speed=1.08x    &#xA;    07-16 15:07:37.203: frame= 1182 fps= 54 q=15.0 size=    1952kB time=00:00:23.56 bitrate= 678.4kbits/s dup=0 drop=1177 speed=1.08x    &#xA;    07-16 15:07:37.724: frame= 1212 fps= 54 q=21.0 size=    1990kB time=00:00:24.19 bitrate= 673.6kbits/s dup=0 drop=1207 speed=1.09x    &#xA;    07-16 15:07:38.224: frame= 1240 fps= 55 q=20.0 size=    2085kB time=00:00:24.72 bitrate= 690.5kbits/s dup=0 drop=1235 speed=1.09x    &#xA;    07-16 15:07:38.725: frame= 1267 fps= 54 q=16.0 size=    2227kB time=00:00:25.28 bitrate= 721.3kbits/s dup=0 drop=1262 speed=1.09x    &#xA;    07-16 15:07:39.235: frame= 1296 fps= 55 q=15.0 size=    2266kB time=00:00:25.86 bitrate= 717.8kbits/s dup=0 drop=1291 speed=1.09x    &#xA;    07-16 15:07:39.736: frame= 1321 fps= 54 q=15.0 size=    2279kB time=00:00:26.35 bitrate= 708.3kbits/s dup=0 drop=1316 speed=1.09x    &#xA;    07-16 15:07:40.236: frame= 1348 fps= 54 q=15.0 size=    2279kB time=00:00:26.91 bitrate= 693.8kbits/s dup=0 drop=1343 speed=1.09x    &#xA;    07-16 15:07:40.747: frame= 1375 fps= 54 q=15.0 size=    2288kB time=00:00:27.42 bitrate= 683.6kbits/s dup=0 drop=1370 speed=1.09x    &#xA;    07-16 15:07:41.237: frame= 1402 fps= 54 q=15.0 size=    2289kB time=00:00:27.95 bitrate= 670.6kbits/s dup=0 drop=1397 speed=1.08x    &#xA;    07-16 15:07:41.768: frame= 1430 fps= 54 q=15.0 size=    2294kB time=00:00:28.53 bitrate= 658.4kbits/s dup=0 drop=1425 speed=1.09x    &#xA;    07-16 15:07:42.278: frame= 1456 fps= 54 q=22.0 size=    2296kB time=00:00:29.04 bitrate= 647.4kbits/s dup=0 drop=1451 speed=1.08x    &#xA;    07-16 15:07:42.779: frame= 1485 fps= 54 q=21.0 size=    2350kB time=00:00:29.62 bitrate= 649.6kbits/s dup=0 drop=1480 speed=1.09x    &#xA;    07-16 15:07:43.279: frame= 1512 fps= 54 q=20.0 size=    2492kB time=00:00:30.16 bitrate= 676.9kbits/s dup=0 drop=1507 speed=1.08x    &#xA;    07-16 15:07:43.790: frame= 1539 fps= 54 q=16.0 size=    2562kB time=00:00:30.72 bitrate= 683.1kbits/s dup=0 drop=1534 speed=1.09x    &#xA;    07-16 15:07:44.290: frame= 1566 fps= 54 q=15.0 size=    2581kB time=00:00:31.25 bitrate= 676.4kbits/s dup=0 drop=1561 speed=1.08x    &#xA;    07-16 15:07:44.801: frame= 1592 fps= 54 q=15.0 size=    2581kB time=00:00:31.76 bitrate= 665.7kbits/s dup=0 drop=1587 speed=1.08x    &#xA;    07-16 15:07:45.301: frame= 1619 fps= 54 q=15.0 size=    2589kB time=00:00:32.29 bitrate= 656.5kbits/s dup=0 drop=1614 speed=1.08x    &#xA;    07-16 15:07:45.802: frame= 1646 fps= 54 q=15.0 size=    2589kB time=00:00:32.83 bitrate= 646.0kbits/s dup=0 drop=1641 speed=1.08x    &#xA;    07-16 15:07:46.332: frame= 1672 fps= 54 q=15.0 size=    2593kB time=00:00:33.39 bitrate= 636.2kbits/s dup=0 drop=1667 speed=1.08x    &#xA;    07-16 15:07:46.823: frame= 1698 fps= 54 q=15.0 size=    2594kB time=00:00:33.87 bitrate= 627.2kbits/s dup=0 drop=1693 speed=1.08x    &#xA;    07-16 15:07:47.333: frame= 1724 fps= 54 q=15.0 size=    2597kB time=00:00:34.43 bitrate= 617.9kbits/s dup=0 drop=1719 speed=1.08x    &#xA;    07-16 15:07:47.844: frame= 1748 fps= 54 q=17.0 size=    2661kB time=00:00:34.89 bitrate= 624.7kbits/s dup=0 drop=1743 speed=1.08x    &#xA;    07-16 15:07:48.344: frame= 1775 fps= 54 q=22.0 size=    2731kB time=00:00:35.43 bitrate= 631.4kbits/s dup=0 drop=1770 speed=1.08x    &#xA;    07-16 15:07:48.865: frame= 1800 fps= 54 q=19.0 size=    2867kB time=00:00:35.92 bitrate= 653.8kbits/s dup=0 drop=1795 speed=1.08x    &#xA;    07-16 15:07:49.375: frame= 1826 fps= 54 q=17.0 size=    2968kB time=00:00:36.43 bitrate= 667.3kbits/s dup=0 drop=1821 speed=1.07x    &#xA;    07-16 15:07:49.876: frame= 1854 fps= 54 q=15.0 size=    3014kB time=00:00:36.98 bitrate= 667.5kbits/s dup=0 drop=1849 speed=1.08x    &#xA;    07-16 15:07:50.366: frame= 1878 fps= 54 q=15.0 size=    3041kB time=00:00:37.47 bitrate= 664.7kbits/s dup=0 drop=1873 speed=1.07x    &#xA;    07-16 15:07:50.877: frame= 1904 fps= 54 q=15.0 size=    3052kB time=00:00:38.01 bitrate= 657.7kbits/s dup=0 drop=1899 speed=1.07x    &#xA;    07-16 15:07:51.387: frame= 1929 fps= 54 q=15.0 size=    3056kB time=00:00:38.49 bitrate= 650.3kbits/s dup=0 drop=1924 speed=1.07x    &#xA;    07-16 15:07:51.888: frame= 1955 fps= 54 q=17.0 size=    3060kB time=00:00:39.03 bitrate= 642.2kbits/s dup=0 drop=1950 speed=1.07x    &#xA;    07-16 15:07:52.388: frame= 1981 fps= 54 q=17.0 size=    3062kB time=00:00:39.54 bitrate= 634.3kbits/s dup=0 drop=1976 speed=1.07x    &#xA;    07-16 15:07:52.899: frame= 2007 fps= 54 q=25.0 size=    3064kB time=00:00:40.07 bitrate= 626.4kbits/s dup=0 drop=2002 speed=1.07x    &#xA;    07-16 15:07:53.419: frame= 2036 fps= 54 q=20.0 size=    3255kB time=00:00:40.63 bitrate= 656.1kbits/s dup=0 drop=2031 speed=1.07x    &#xA;    07-16 15:07:53.920: frame= 2061 fps= 54 q=21.0 size=    3306kB time=00:00:41.14 bitrate= 658.2kbits/s dup=0 drop=2056 speed=1.07x    &#xA;    07-16 15:07:54.420: frame= 2089 fps= 54 q=17.0 size=    3371kB time=00:00:41.70 bitrate= 662.2kbits/s dup=0 drop=2084 speed=1.07x    &#xA;    07-16 15:07:54.910: frame= 2116 fps= 54 q=15.0 size=    3438kB time=00:00:42.23 bitrate= 666.8kbits/s dup=0 drop=2111 speed=1.07x    &#xA;    07-16 15:07:55.421: frame= 2139 fps= 54 q=15.0 size=    3460kB time=00:00:42.70 bitrate= 663.7kbits/s dup=0 drop=2134 speed=1.07x    &#xA;    07-16 15:07:55.921: frame= 2164 fps= 53 q=15.0 size=    3467kB time=00:00:43.21 bitrate= 657.2kbits/s dup=0 drop=2159 speed=1.07x    &#xA;    07-16 15:07:56.422: frame= 2189 fps= 53 q=15.0 size=    3470kB time=00:00:43.69 bitrate= 650.6kbits/s dup=0 drop=2184 speed=1.07x    &#xA;    07-16 15:07:56.932: frame= 2214 fps= 53 q=15.0 size=    3472kB time=00:00:44.21 bitrate= 643.4kbits/s dup=0 drop=2209 speed=1.07x    &#xA;    07-16 15:07:57.433: frame= 2235 fps= 53 q=15.0 size=    3474kB time=00:00:44.60 bitrate= 637.9kbits/s dup=0 drop=2230 speed=1.06x    &#xA;    07-16 15:07:57.943: frame= 2260 fps= 53 q=16.0 size=    3547kB time=00:00:45.13 bitrate= 643.7kbits/s dup=0 drop=2255 speed=1.06x    &#xA;    07-16 15:07:58.454: frame= 2292 fps= 53 q=24.0 size=    3555kB time=00:00:45.76 bitrate= 636.3kbits/s dup=0 drop=2287 speed=1.06x    &#xA;    07-16 15:07:58.964: frame= 2320 fps= 53 q=21.0 size=    3643kB time=00:00:46.34 bitrate= 643.9kbits/s dup=0 drop=2315 speed=1.07x    &#xA;    07-16 15:07:59.475: frame= 2348 fps= 53 q=16.0 size=    3700kB time=00:00:46.88 bitrate= 646.6kbits/s dup=0 drop=2343 speed=1.07x    &#xA;    07-16 15:07:59.985: frame= 2375 fps= 53 q=22.0 size=    3755kB time=00:00:47.43 bitrate= 648.5kbits/s dup=0 drop=2370 speed=1.07x    &#xA;    07-16 15:08:00.486: frame= 2400 fps= 53 q=22.0 size=    3880kB time=00:00:47.92 bitrate= 663.3kbits/s dup=0 drop=2395 speed=1.06x    &#xA;    07-16 15:08:00.996: frame= 2427 fps= 53 q=15.0 size=    3977kB time=00:00:48.46 bitrate= 672.2kbits/s dup=0 drop=2422 speed=1.06x    &#xA;    07-16 15:08:01.497: frame= 2456 fps= 53 q=18.0 size=    4012kB time=00:00:49.06 bitrate= 669.9kbits/s dup=0 drop=2451 speed=1.07x    &#xA;    07-16 15:08:01.997: frame= 2481 fps= 53 q=16.0 size=    4029kB time=00:00:49.55 bitrate= 666.1kbits/s dup=0 drop=2476 speed=1.06x    &#xA;    07-16 15:08:02.498: frame= 2507 fps= 53 q=20.0 size=    4036kB time=00:00:50.06 bitrate= 660.4kbits/s dup=0 drop=2502 speed=1.06x    &#xA;    07-16 15:08:03.008: frame= 2538 fps= 53 q=15.0 size=    4113kB time=00:00:50.68 bitrate= 664.7kbits/s dup=0 drop=2533 speed=1.07x    &#xA;    07-16 15:08:03.529: frame= 2568 fps= 53 q=22.0 size=    4132kB time=00:00:51.26 bitrate= 660.2kbits/s dup=0 drop=2563 speed=1.07x    &#xA;    07-16 15:08:04.039: frame= 2596 fps= 53 q=22.0 size=    4184kB time=00:00:51.85 bitrate= 661.1kbits/s dup=0 drop=2591 speed=1.07x    &#xA;    07-16 15:08:04.560: frame= 2623 fps= 53 q=23.0 size=    4276kB time=00:00:52.40 bitrate= 668.4kbits/s dup=0 drop=2618 speed=1.07x    &#xA;    07-16 15:08:05.060: frame= 2647 fps= 53 q=16.0 size=    4379kB time=00:00:52.87 bitrate= 678.5kbits/s dup=0 drop=2642 speed=1.07x    &#xA;    07-16 15:08:05.571: frame= 2671 fps= 53 q=19.0 size=    4425kB time=00:00:53.33 bitrate= 679.6kbits/s dup=0 drop=2666 speed=1.06x    &#xA;    07-16 15:08:06.071: frame= 2696 fps= 53 q=15.0 size=    4452kB time=00:00:53.87 bitrate= 677.0kbits/s dup=0 drop=2691 speed=1.06x    &#xA;    07-16 15:08:06.582: frame= 2723 fps= 53 q=15.0 size=    4478kB time=00:00:54.38 bitrate= 674.5kbits/s dup=0 drop=2718 speed=1.06x    &#xA;    07-16 15:08:07.102: frame= 2750 fps= 53 q=15.0 size=    4479kB time=00:00:54.91 bitrate= 668.1kbits/s dup=0 drop=2745 speed=1.06x    &#xA;    07-16 15:08:07.593: frame= 2779 fps= 53 q=15.0 size=    4558kB time=00:00:55.49 bitrate= 672.8kbits/s dup=0 drop=2774 speed=1.06x    &#xA;    07-16 15:08:08.093: frame= 2810 fps= 53 q=16.0 size=    4560kB time=00:00:56.12 bitrate= 665.5kbits/s dup=0 drop=2805 speed=1.07x    &#xA;    07-16 15:08:08.594: frame= 2841 fps= 53 q=21.0 size=    4565kB time=00:00:56.74 bitrate= 658.9kbits/s dup=0 drop=2836 speed=1.07x    &#xA;    07-16 15:08:09.104: frame= 2871 fps= 54 q=21.0 size=    4616kB time=00:00:57.33 bitrate= 659.5kbits/s dup=0 drop=2866 speed=1.07x    &#xA;    07-16 15:08:09.615: frame= 2897 fps= 54 q=22.0 size=    4673kB time=00:00:57.88 bitrate= 661.3kbits/s dup=0 drop=2892 speed=1.07x    &#xA;    07-16 15:08:10.115: frame= 2925 fps= 54 q=16.0 size=    4779kB time=00:00:58.42 bitrate= 670.1kbits/s dup=0 drop=2920 speed=1.07x    &#xA;    07-16 15:08:10.616: frame= 2951 fps= 54 q=15.0 size=    4817kB time=00:00:58.95 bitrate= 669.4kbits/s dup=0 drop=2946 speed=1.07x    &#xA;    07-16 15:08:11.146: frame= 2978 fps= 54 q=15.0 size=    4851kB time=00:00:59.51 bitrate= 667.8kbits/s dup=0 drop=2973 speed=1.07x    &#xA;    07-16 15:08:11.667: frame= 3007 fps= 54 q=21.0 size=    4852kB time=00:01:00.04 bitrate= 661.9kbits/s dup=0 drop=3002 speed=1.07x    &#xA;    07-16 15:08:12.157: frame= 3037 fps= 54 q=15.0 size=    4933kB time=00:01:00.65 bitrate= 666.3kbits/s dup=0 drop=3032 speed=1.07x    &#xA;    07-16 15:08:12.648: frame= 3069 fps= 54 q=15.0 size=    4939kB time=00:01:01.30 bitrate= 660.0kbits/s dup=0 drop=3064 speed=1.07x    &#xA;    07-16 15:08:13.148: frame= 3101 fps= 54 q=15.0 size=    4939kB time=00:01:01.88 bitrate= 653.9kbits/s dup=0 drop=3096 speed=1.07x    &#xA;    07-16 15:08:13.238: frame= 3101 fps= 54 q=-1.0 Lsize=    4994kB time=00:01:02.02 bitrate= 659.6kbits/s dup=0 drop=3096 speed=1.07x    &#xA;    07-16 15:08:13.238: video:4923kB audio:16kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.108781%&#xA;    07-16 15:08:13.248: [libx264 @ 0xb5428800] frame I:13    Avg QP:14.15  size: 72152&#xA;    07-16 15:08:13.248: [libx264 @ 0xb5428800] frame P:3088  Avg QP:17.25  size:  1329&#xA;    07-16 15:08:13.248: [libx264 @ 0xb5428800] mb I  I16..4: 100.0%  0.0%  0.0%&#xA;    07-16 15:08:13.248: [libx264 @ 0xb5428800] mb P  I16..4:  0.8%  0.0%  0.0%  P16..4:  7.0%  0.0%  0.0%  0.0%  0.0%    skip:92.2%&#xA;    07-16 15:08:13.248: [libx264 @ 0xb5428800] coded y,uvDC,uvAC intra: 49.6% 59.6% 45.8% inter: 2.5% 4.8% 1.9%&#xA;    07-16 15:08:13.248: [libx264 @ 0xb5428800] i16 v,h,dc,p: 50% 26% 13% 10%&#xA;    07-16 15:08:13.248: [libx264 @ 0xb5428800] i8c dc,h,v,p: 45% 24% 21% 10%&#xA;    07-16 15:08:13.248: [libx264 @ 0xb5428800] kb/s:650.25&#xA;    07-16 15:08:13.258: [aac @ 0xb5429000] Qavg: 65536.000&#xA;

    &#xA;

  • ffmpeg 1FPS extraction call spits out infinite images until disk is bricked on poorly-encoded movie

    12 juillet 2017, par John Allard

    This is one of the oddest things I’ve ever seen while using ffmpeg.

    This is the scenario - we are getting video footage from a IONODE ION-E100 encoder, the footage is encoded in h264. I can view the footage fine in VLC, and I can copy it over to another video using ffmpeg and -c:v copy. The issue arises when I try and extract one FPS from the movie using the following command :

    ffmpeg -i testmovie.mp4 -r 1 -vf 640:-2 -q:v 18 -loglevel error /tmp/tmp/extraction_%04d.jpeg

    What this should do is go through the movie and extract one frame per second, then dump the frames to the files /tmp/tmp/extraction_0001.jpeg, /tmp/tmp/extraction_0002.jpeg, ..., /tmp/tmp/extraction_000X.jpeg. It should end when it reaches the end of the video.

    Now the odd thing that happens when I run this command is that it will run in a tight loop, writing tens or hundreds of thousands of images to the disk until the disk is full at which point the command fails. All of the extracted images are the exact same as one another.

    Here is the ffmpeg stats output on the video

    ffmpeg version 3.2.2 Copyright (c) 2000-2016 the FFmpeg developers
     built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
     configuration: --prefix=/usr/local/Cellar/ffmpeg/3.2.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
     libavutil      55. 34.100 / 55. 34.100
     libavcodec     57. 64.101 / 57. 64.101
     libavformat    57. 56.100 / 57. 56.100
     libavdevice    57.  1.100 / 57.  1.100
     libavfilter     6. 65.100 /  6. 65.100
     libavresample   3.  1.  0 /  3.  1.  0
     libswscale      4.  2.100 /  4.  2.100
     libswresample   2.  3.100 /  2.  3.100
     libpostproc    54.  1.100 / 54.  1.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/john/ionode/test2.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       title           : /videoinput_1:0/h264_1/media.stm
       encoder         : Lavf57.56.100
     Duration: 00:00:16.52, start: -9791.427750, bitrate: 2165 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 2119 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 8000 Hz, mono, fltp, 236 kb/s (default)
       Metadata:
         handler_name    : SoundHandler

    (notice the start: -9791.427750 value, what is this ?)

    Here are the encoding details on the footage :

    {
       "programs": [

       ],
       "streams": [
           {
               "index": 0,
               "codec_name": "h264",
               "codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
               "profile": "High",
               "codec_type": "video",
               "codec_time_base": "1/50",
               "codec_tag_string": "avc1",
               "codec_tag": "0x31637661",
               "width": 1920,
               "height": 1080,
               "coded_width": 1920,
               "coded_height": 1080,
               "has_b_frames": 2,
               "sample_aspect_ratio": "1:1",
               "display_aspect_ratio": "16:9",
               "pix_fmt": "yuv420p",
               "level": 40,
               "chroma_location": "left",
               "refs": 1,
               "is_avc": "true",
               "nal_length_size": "4",
               "r_frame_rate": "25/1",
               "avg_frame_rate": "25/1",
               "time_base": "1/12800",
               "start_pts": 0,
               "start_time": "0.000000",
               "duration_ts": 211456,
               "duration": "16.520000",
               "bit_rate": "2119813",
               "bits_per_raw_sample": "8",
               "nb_frames": "413",
               "disposition": {
                   "default": 1,
                   "dub": 0,
                   "original": 0,
                   "comment": 0,
                   "lyrics": 0,
                   "karaoke": 0,
                   "forced": 0,
                   "hearing_impaired": 0,
                   "visual_impaired": 0,
                   "clean_effects": 0,
                   "attached_pic": 0,
                   "timed_thumbnails": 0
               },
               "tags": {
                   "language": "und",
                   "handler_name": "VideoHandler"
               }
           }
       ]
    }

    Here a link to the sample video to use : http://s000.tinyupload.com/?file_id=03169189167771012515
    (it’s a 5MB video file)

    The only clues I have as to what is actually going on is the error output
    from the command that grabs the video from the encoder :

    [mp4 @ 0x7faa1a83ba00] Non-monotonous DTS in output stream 0:1; previous: -629823640, current: -630275919; changing to -629823639. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7faa1a83ba00] Non-monotonous DTS in output stream 0:1; previous: -629823639, current: -630274895; changing to -629823638. This may result in incorrect timestamps in the output file.
    frame=  124 fps= 21 q=28.0 size=      41kB time=00:00:02.60 bitrate= 128.8kbits/s dup=26 drop=4 spee[mp4 @ 0x7faa1a83ba00] Non-monotonous DTS in output stream 0:1; previous: -629823638, current: -630273871; changing to -629823637. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7faa1a83ba00] Non-monotonous DTS in output stream 0:1; previous: -629823637, current: -630272847; changing to -629823636. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7faa1a83ba00] Non-monotonous DTS in output stream 0:1; previous: -629823636, current: -630271824; changing to -629823635. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7faa1a83ba00] Non-monotonous DTS in output stream 0:1; previous: -629823635, current: -630270800; changing to -629823634. This may result in incorrect timestamps in the output file.
    frame=  124 fps= 19 q=28.0 size=      43kB time=00:00:02.60 bitrate= 137.0kbits/s dup=26 drop=4 spee[mp4 @ 0x7faa1a83ba00] Non-monotonous DTS in output stream 0:1; previous: -629823634, current: -630269776; changing to -629823633. This may result in incorrect timestamps in the output file.
    [aac @ 0x7faa1a832000] Queue input is backward in time
    [mp4 @ 0x7faa1a83ba00] Non-monotonous DTS in output stream 0:1; previous: -629823633, current: -630268752; changing to -629823632. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7faa1a83ba00] Non-monotonous DTS in output stream 0:1; previous: -629823632, current: -630267728; changing to -629823631. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7faa1a83ba00] Non-monotonous DTS in output stream 0:1; previous: -629823631, current: -630513833; changing to -629823630. This may result in incorrect timestamps in the output file.
    frame=  124 fps= 18 q=28.0 size=      46kB time=00:00:02.60 bitrate= 145.4kbits/s dup=26 drop=4 spee[mp4 @ 0x7faa1a83ba00] Non-monotonous DTS in output stream 0:1; previous: -629823630, current: -630512810; changing to -629823629. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7faa1a83ba00] Non-monotonous DTS in output stream 0:1; previous: -629823629, current: -630511786; changing to -629823628. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7faa1a83ba00] Non-monotonous DTS in output stream 0:1; previous: -629823628, current: -630510762; changing to -629823627. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7faa1a83ba00] Non-monotonous DTS in output stream 0:1; previous: -629823627, current: -630509738; changing to -629823626. This may result in incorrect timestamps in the output file.
    frame=  124 fps= 17 q=28.0 size=      49kB time=00:00:02.60 bitrate= 153.6kbits/s dup=26 drop=4 spee[mp4 @ 0x7faa1a83ba00] Non-monotonous DTS in output stream 0:1; previous: -629823626, current: -630508714; changing to -629823625. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7faa1a83ba00] Non-monotonous DTS in output stream 0:1; previous: -629823625, current: -630507690; changing to -629823624. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7faa1a83ba00] Non-monotonous DTS in output stream 0:1; previous: -629823624, current: -630506667; changing to -629823623. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7faa1a83ba00] Non-monotonous DTS in output stream 0:1; previous: -629823623, current: -630505643; changing to -629823622. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7faa1a83ba00] Non-monotonous DTS in output stream 0:1; previous: -629823622, current: -630504619; changing to -629823621. This may result in incorrect timestamps in the output file.
    frame=  124 fps= 16 q=28.0 size=      52kB time=00:00:02.60 bitrate= 163.5kbits/s dup=26 drop=4 spee[mp4 @ 0x7faa1a83ba00] Non-monotonous DTS in output stream 0:1; previous: -629823621, current: -630503595; changing to -629823620. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7faa1a83ba00] Non-monotonous DTS in output stream 0:1; previous: -629823620, current: -630502571; changing to -629823619. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7faa1a83ba00] Non-monotonous DTS in output stream 0:1; previous: -629823619, current: -630501548; changing to -629823618. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7faa1a83ba00] Non-monotonous DTS in output stream 0:1; previous: -629823618, current: -630500524; changing to -629823617. This may result in incorrect timestamps in the output file.
    frame=  124 fps= 15 q=28.0 size=      54kB time=00:00:02.60 bitrate= 171.4kbits/s dup=26 drop=4 spee[mp4 @ 0x7faa1a83ba00] Non-monotonous DTS in output stream 0:1; previous: -629823617, current: -630499500; changing to -629823616. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7faa1a83ba00] Non-monotonous DTS in output stream 0:1; previous: -629823616, current: -630498476; changing to -629823615. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7faa1a83ba00] Non-monotonous DTS in output stream 0:1; previous: -629823615, current: -630497452; changing to -629823614. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7faa1a83ba00] Non-monotonous DTS in output stream 0:1; previous: -629823614, current: -630496428; changing to -629823613. This may result in incorrect timestamps in the output file.
    frame=  124 fps= 14 q=28.0 size=      57kB time=00:00:02.60 bitrate= 179.3kbits/s dup=26 drop=4 spee[mp4 @ 0x7faa1a83ba00] Non-monotonous DTS in output stream 0:1; previous: -629823613, current: -630495405; changing to -629823612. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7faa1a83ba00] Non-monotonous DTS in output stream 0:1; previous: -629823612, current: -630494381; changing to -629823611. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7faa1a83ba00] Non-monotonous DTS in output stream 0:1; previous: -629823611, current: -630493357; changing to -629823610. This may result in incorrect timestamps in the output file.
    frame=  124 fps= 13 q=28.0 size=      59kB time=00:00:02.60 bitrate= 185.6kbits/s dup=26 drop=4 spee[aac @ 0x7faa1a832000] Queue input is backward in time
    [mp4 @ 0x7faa1a83ba00] Non-monotonous DTS in output stream 0:1; previous: -629823610, current: -630492333; changing to -629823609. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7faa1a83ba00] Non-monotonous DTS in output stream 0:1; previous: -629823609, current: -630491309; changing to -629823608. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7faa1a83ba00] Non-monotonous DTS in output stream 0:1; previous: -629823608, current: -630736398; changing to -629823607. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7faa1a83ba00] Non-monotonous DTS in output stream 0:1; previous: -629823607, current: -630735375; changing to -629823606. This may result in incorrect timestamps in the output file.
    frame=  124 fps= 12 q=28.0 size=      61kB time=00:00:02.60 bitrate= 193.5kbits/s dup=26 drop=4 spee[mp4 @ 0x7faa1a83ba00] Non-monotonous DTS in output stream 0:1; previous: -629823606, current: -630734351; changing to -629823605. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7faa1a83ba00] Non-monotonous DTS in output stream 0:1; previous: -629823605, current: -630733327; changing to -629823604. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7faa1a83ba00] Non-monotonous DTS in output stream 0:1; previous: -629823604, current: -630732303; changing to -629823603. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7faa1a83ba00] Non-monotonous DTS in output stream 0:1; previous: -629823603, current: -630731279; changing to -629823602. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7faa1a83ba00] Non-monotonous DTS in output stream 0:1; previous: -629823602, current: -630730256; changing to -629823601. This may result in incorrect timestamps in the output file.
    frame=  124 fps= 12 q=-1.0 Lsize=     507kB time=00:00:04.84 bitrate= 858.7kbits/s dup=26 drop=4 speed=0.453x

    So my question is, why does this video break ffmpeg ? Why does ffmpeg get caught up in a tight loop extracting images without ever making any progres towards the end of the video ?