
Recherche avancée
Autres articles (43)
-
Librairies et binaires spécifiques au traitement vidéo et sonore
31 janvier 2010, parLes logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
Binaires complémentaires et facultatifs flvtool2 : (...) -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...) -
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)
Sur d’autres sites (8350)
-
trying to make OpenCV 3.2.0 work with virtualenv
24 juillet 2017, par lollercoasterI’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 Falsebut 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 ldconfigHere’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 offfmpeg
? 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.aviAnd the
opencv_test_videoio
unit test reports the following : https://pastebin.com/q4mf224QHowever, 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 -
ffmpeg conversion .dav to any video files
2 février 2021, par Marcello GalvãoI am trying for days to convert
.dav
file (file generated by dvrs [image recorders]). I have tried several variations withffmpeg
and can not succeed.


Command and console output :



$ ffmpeg -i input.dav -codec:v libx264 -crf 23 -preset medium -codec:a libfdk_aac -vbr 4 -movflags faststart -vf scale=-1:720,format=yuv420p output.mp4
ffmpeg version 2.8 Copyright (c) 2000-2015 the FFmpeg developers
 built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
 configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libdcadec --enable-libfreetype --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvo-aacenc --enable-libvidstab
 libavutil 54. 31.100 / 54. 31.100
 libavcodec 56. 60.100 / 56. 60.100
 libavformat 56. 40.101 / 56. 40.101
 libavdevice 56. 4.100 / 56. 4.100
 libavfilter 5. 40.101 / 5. 40.101
 libavresample 2. 1. 0 / 2. 1. 0
 libswscale 3. 1.101 / 3. 1.101
 libswresample 1. 2.101 / 1. 2.101
 libpostproc 53. 3.100 / 53. 3.100
Input #0, h264, from 'input.Dav':
 Duration: N/A, bitrate: N/A
 Stream #0:0: Video: h264 (Baseline), yuv420p, 704x480, 25 fps, 25 tbr, 1200k tbn, 50 tbc
Codec AVOption vbr (VBR mode (1-5)) specified for output file #0 (output.mp4) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
[libx264 @ 0x2d99e00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 0x2d99e00] profile High, level 3.1
[libx264 @ 0x2d99e00] 264 - core 142 r2491 24e4fed - 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=3 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 'output.mp4':
 Metadata:
 encoder : Lavf56.40.101
 Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1056x720, q=-1--1, 25 fps, 12800 tbn, 25 tbc
 Metadata:
 encoder : Lavc56.60.100 libx264
Stream mapping:
 Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
frame= 58 fps=0.0 q=28.0 size= 93kB time=00:00:00.36 bitrate=2124.9kbits/s 
frame= 76 fps= 71 q=28.0 size= 178kB time=00:00:01.08 bitrate=1347.6kbits/s 
frame= 94 fps= 58 q=28.0 size= 275kB time=00:00:01.80 bitrate=1251.3kbits/s 
frame= 106 fps= 50 q=28.0 size= 393kB time=00:00:02.28 bitrate=1412.9kbits/s 
frame= 122 fps= 46 q=28.0 size= 504kB time=00:00:02.92 bitrate=1413.9kbits/s 
frame= 138 fps= 43 q=28.0 size= 586kB time=00:00:03.56 bitrate=1348.4kbits/s 
frame= 153 fps= 41 q=28.0 size= 676kB time=00:00:04.16 bitrate=1330.4kbits/s 
[h264 @ 0x3348440] Frame num change from 35 to 162
[h264 @ 0x3348440] decode_slice_header error
frame= 166 fps= 39 q=28.0 size= 785kB time=00:00:04.68 bitrate=1374.8kbits/s 
frame= 179 fps= 38 q=28.0 size= 894kB time=00:00:05.20 bitrate=1407.9kbits/s 
frame= 191 fps= 36 q=28.0 size= 1010kB time=00:00:05.68 bitrate=1457.0kbits/s 
frame= 206 fps= 36 q=28.0 size= 1137kB time=00:00:06.28 bitrate=1482.7kbits/s 
frame= 222 fps= 35 q=28.0 size= 1229kB time=00:00:06.92 bitrate=1455.2kbits/s 
frame= 239 fps= 35 q=28.0 size= 1327kB time=00:00:07.60 bitrate=1430.8kbits/s 
frame= 258 fps= 35 q=28.0 size= 1409kB time=00:00:08.36 bitrate=1380.4kbits/s 
frame= 273 fps= 35 q=28.0 size= 1496kB time=00:00:08.96 bitrate=1367.5kbits/s 
frame= 288 fps= 34 q=28.0 size= 1599kB time=00:00:09.56 bitrate=1370.3kbits/s 
frame= 301 fps= 34 q=28.0 size= 1730kB time=00:00:10.08 bitrate=1405.7kbits/s 
frame= 318 fps= 34 q=28.0 size= 1807kB time=00:00:10.76 bitrate=1376.0kbits/s 
frame= 336 fps= 34 q=28.0 size= 1873kB time=00:00:11.48 bitrate=1336.3kbits/s 
frame= 358 fps= 34 q=28.0 size= 1938kB time=00:00:12.36 bitrate=1284.4kbits/s 
frame= 378 fps= 34 q=28.0 size= 1995kB time=00:00:13.16 bitrate=1242.1kbits/s 
frame= 398 fps= 35 q=28.0 size= 2053kB time=00:00:13.96 bitrate=1204.5kbits/s 
frame= 415 fps= 35 q=28.0 size= 2115kB time=00:00:14.64 bitrate=1183.4kbits/s 
frame= 434 fps= 35 q=28.0 size= 2165kB time=00:00:15.40 bitrate=1151.4kbits/s 
frame= 454 fps= 35 q=28.0 size= 2220kB time=00:00:16.20 bitrate=1122.8kbits/s 
frame= 470 fps= 35 q=28.0 size= 2279kB time=00:00:16.84 bitrate=1108.5kbits/s 
frame= 489 fps= 35 q=28.0 size= 2350kB time=00:00:17.60 bitrate=1093.9kbits/s 
frame= 505 fps= 35 q=28.0 size= 2410kB time=00:00:18.24 bitrate=1082.5kbits/s 
frame= 515 fps= 34 q=28.0 size= 2534kB time=00:00:18.64 bitrate=1113.5kbits/s 
frame= 531 fps= 34 q=28.0 size= 2668kB time=00:00:19.28 bitrate=1133.8kbits/s 
frame= 547 fps= 34 q=28.0 size= 2782kB time=00:00:19.92 bitrate=1144.2kbits/s 
frame= 565 fps= 34 q=28.0 size= 2925kB time=00:00:20.64 bitrate=1160.9kbits/s 
frame= 581 fps= 34 q=28.0 size= 3043kB time=00:00:21.28 bitrate=1171.3kbits/s 
frame= 595 fps= 34 q=28.0 size= 3136kB time=00:00:21.84 bitrate=1176.1kbits/s 
frame= 611 fps= 34 q=28.0 size= 3240kB time=00:00:22.48 bitrate=1180.5kbits/s 
frame= 630 fps= 34 q=28.0 size= 3351kB time=00:00:23.24 bitrate=1181.2kbits/s 
frame= 651 fps= 34 q=28.0 size= 3451kB time=00:00:24.08 bitrate=1174.1kbits/s 
frame= 675 fps= 34 q=28.0 size= 3528kB time=00:00:25.04 bitrate=1154.2kbits/s 
frame= 700 fps= 35 q=28.0 size= 3612kB time=00:00:26.04 bitrate=1136.2kbits/s 
frame= 724 fps= 35 q=28.0 size= 3701kB time=00:00:27.00 bitrate=1122.9kbits/s 
frame= 747 fps= 35 q=28.0 size= 3808kB time=00:00:27.92 bitrate=1117.4kbits/s 
frame= 768 fps= 35 q=28.0 size= 3884kB time=00:00:28.76 bitrate=1106.4kbits/s 
frame= 799 fps= 36 q=28.0 size= 3983kB time=00:00:30.00 bitrate=1087.6kbits/s 
frame= 834 fps= 36 q=28.0 size= 4052kB time=00:00:31.40 bitrate=1057.1kbits/s 
frame= 868 fps= 37 q=28.0 size= 4097kB time=00:00:32.76 bitrate=1024.5kbits/s 
frame= 894 fps= 37 q=28.0 size= 4141kB time=00:00:33.80 bitrate=1003.6kbits/s 
frame= 914 fps= 37 q=28.0 size= 4234kB time=00:00:34.60 bitrate=1002.5kbits/s 
frame= 933 fps= 37 q=28.0 size= 4363kB time=00:00:35.36 bitrate=1010.8kbits/s 
frame= 954 fps= 37 q=28.0 size= 4442kB time=00:00:36.20 bitrate=1005.3kbits/s 
frame= 976 fps= 37 q=28.0 size= 4510kB time=00:00:37.08 bitrate= 996.3kbits/s 
frame= 994 fps= 37 q=28.0 size= 4579kB time=00:00:37.80 bitrate= 992.3kbits/s 
frame= 1010 fps= 37 q=28.0 size= 4663kB time=00:00:38.44 bitrate= 993.7kbits/s 
frame= 1030 fps= 37 q=28.0 size= 4734kB time=00:00:39.24 bitrate= 988.3kbits/s 
frame= 1043 fps= 37 q=28.0 size= 4843kB time=00:00:39.76 bitrate= 997.9kbits/s 
frame= 1065 fps= 37 q=28.0 size= 5021kB time=00:00:40.64 bitrate=1012.1kbits/s 
frame= 1092 fps= 38 q=28.0 size= 5052kB time=00:00:41.72 bitrate= 991.9kbits/s 
frame= 1118 fps= 38 q=28.0 size= 5129kB time=00:00:42.76 bitrate= 982.6kbits/s 
frame= 1145 fps= 38 q=28.0 size= 5185kB time=00:00:43.84 bitrate= 968.8kbits/s 
frame= 1174 fps= 38 q=28.0 size= 5214kB time=00:00:45.00 bitrate= 949.1kbits/s 
frame= 1202 fps= 39 q=28.0 size= 5256kB time=00:00:46.12 bitrate= 933.7kbits/s 
frame= 1220 fps= 39 q=28.0 size= 5341kB time=00:00:46.84 bitrate= 934.1kbits/s 
frame= 1236 fps= 38 q=28.0 size= 5432kB time=00:00:47.48 bitrate= 937.2kbits/s 
[h264 @ 0x2d68ca0] A non-intra slice in an IDR NAL unit.
[h264 @ 0x2d68ca0] decode_slice_header error
frame= 1252 fps= 38 q=28.0 size= 5552kB time=00:00:48.12 bitrate= 945.2kbits/s 
frame= 1269 fps= 38 q=28.0 size= 5666kB time=00:00:48.80 bitrate= 951.2kbits/s 
frame= 1286 fps= 38 q=28.0 size= 5773kB time=00:00:49.48 bitrate= 955.7kbits/s 
frame= 1302 fps= 38 q=28.0 size= 5908kB time=00:00:50.12 bitrate= 965.7kbits/s 
frame= 1324 fps= 38 q=28.0 size= 6011kB time=00:00:51.00 bitrate= 965.6kbits/s 
frame= 1349 fps= 38 q=28.0 size= 6103kB time=00:00:52.00 bitrate= 961.4kbits/s 
frame= 1373 fps= 38 q=28.0 size= 6200kB time=00:00:52.96 bitrate= 959.1kbits/s 
frame= 1399 fps= 39 q=28.0 size= 6284kB time=00:00:54.00 bitrate= 953.3kbits/s 
frame= 1424 fps= 39 q=28.0 size= 6388kB time=00:00:55.00 bitrate= 951.5kbits/s 
frame= 1447 fps= 39 q=28.0 size= 6492kB time=00:00:55.92 bitrate= 951.1kbits/s 
frame= 1476 fps= 39 q=28.0 size= 6530kB time=00:00:57.08 bitrate= 937.2kbits/s 
frame= 1503 fps= 39 q=28.0 size= 6580kB time=00:00:58.16 bitrate= 926.8kbits/s 
frame= 1518 fps= 39 q=28.0 size= 6709kB time=00:00:58.76 bitrate= 935.4kbits/s 
frame= 1542 fps= 39 q=28.0 size= 6835kB time=00:00:59.72 bitrate= 937.6kbits/s 
[h264 @ 0x3348440] data partitioning is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[h264 @ 0x3348440] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)
frame= 1568 fps= 39 q=28.0 size= 6958kB time=00:01:00.76 bitrate= 938.1kbits/s 
frame= 1596 fps= 39 q=28.0 size= 7006kB time=00:01:01.88 bitrate= 927.5kbits/s 
frame= 1619 fps= 39 q=28.0 size= 7096kB time=00:01:02.80 bitrate= 925.6kbits/s 
frame= 1646 fps= 40 q=28.0 size= 7152kB time=00:01:03.88 bitrate= 917.2kbits/s 
frame= 1671 fps= 40 q=28.0 size= 7205kB time=00:01:04.88 bitrate= 909.8kbits/s 
frame= 1698 fps= 40 q=28.0 size= 7268kB time=00:01:05.96 bitrate= 902.7kbits/s 
frame= 1725 fps= 40 q=28.0 size= 7328kB time=00:01:07.04 bitrate= 895.5kbits/s 
frame= 1752 fps= 40 q=28.0 size= 7382kB time=00:01:08.12 bitrate= 887.7kbits/s 
frame= 1779 fps= 40 q=28.0 size= 7433kB time=00:01:09.20 bitrate= 879.9kbits/s 
frame= 1803 fps= 40 q=28.0 size= 7580kB time=00:01:10.16 bitrate= 885.1kbits/s 
frame= 1827 fps= 41 q=28.0 size= 7643kB time=00:01:11.12 bitrate= 880.4kbits/s 
frame= 1852 fps= 41 q=28.0 size= 7703kB time=00:01:12.12 bitrate= 875.0kbits/s 
frame= 1879 fps= 41 q=28.0 size= 7751kB time=00:01:13.20 bitrate= 867.4kbits/s 
frame= 1899 fps= 41 q=28.0 size= 7840kB time=00:01:14.00 bitrate= 867.9kbits/s 
frame= 1918 fps= 41 q=28.0 size= 7946kB time=00:01:14.76 bitrate= 870.7kbits/s 
frame= 1938 fps= 41 q=28.0 size= 8046kB time=00:01:15.56 bitrate= 872.3kbits/s 
frame= 1959 fps= 41 q=28.0 size= 8134kB time=00:01:16.40 bitrate= 872.1kbits/s 
frame= 1978 fps= 41 q=28.0 size= 8227kB time=00:01:17.16 bitrate= 873.5kbits/s 
frame= 1997 fps= 41 q=28.0 size= 8322kB time=00:01:17.92 bitrate= 874.9kbits/s 
frame= 2022 fps= 41 q=28.0 size= 8390kB time=00:01:18.92 bitrate= 870.9kbits/s 
[h264 @ 0x2d64180] concealing 1320 DC, 1320 AC, 1320 MV errors in I frame
[mp4 @ 0x2cdb900] Starting second pass: moving the moov atom to the beginning of the file
frame= 2041 fps= 40 q=-1.0 Lsize= 8657kB time=00:01:21.56 bitrate= 869.5kbits/s 
video:8633kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.275387%
[libx264 @ 0x2d99e00] frame I:9 Avg QP:18.32 size: 48212
[libx264 @ 0x2d99e00] frame P:698 Avg QP:22.05 size: 9056
[libx264 @ 0x2d99e00] frame B:1334 Avg QP:27.18 size: 1562
[libx264 @ 0x2d99e00] consecutive B-frames: 10.6% 5.0% 5.4% 79.0%
[libx264 @ 0x2d99e00] mb I I16..4: 18.4% 57.3% 24.2%
[libx264 @ 0x2d99e00] mb P I16..4: 5.3% 8.2% 1.0% P16..4: 26.3% 9.1% 4.0% 0.0% 0.0% skip:46.0%
[libx264 @ 0x2d99e00] mb B I16..4: 0.2% 0.1% 0.0% B16..8: 20.6% 1.8% 0.3% direct: 0.8% skip:76.2% L0:38.8% L1:57.6% BI: 3.6%
[libx264 @ 0x2d99e00] 8x8 transform intra:56.1% inter:75.9%
[libx264 @ 0x2d99e00] coded y,uvDC,uvAC intra: 35.0% 44.9% 12.4% inter: 6.5% 8.1% 0.2%
[libx264 @ 0x2d99e00] i16 v,h,dc,p: 34% 40% 3% 22%
[libx264 @ 0x2d99e00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36% 26% 16% 3% 4% 4% 5% 4% 4%
[libx264 @ 0x2d99e00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 41% 10% 2% 4% 4% 5% 3% 3%
[libx264 @ 0x2d99e00] i8c dc,h,v,p: 47% 24% 24% 5%
[libx264 @ 0x2d99e00] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x2d99e00] ref P L0: 72.8% 10.0% 13.7% 3.5%
[libx264 @ 0x2d99e00] ref B L0: 90.8% 7.9% 1.2%
[libx264 @ 0x2d99e00] ref B L1: 96.5% 3.5%
[libx264 @ 0x2d99e00] kb/s:866.17



-
current version of ffmpeg3.3.2 encode twice time of my video,the duration last two times long
20 juin 2017, par jimmyI have a video with 00:01:41.46 play time,and transcode it perfect with ffmpeg-2.1.1,but when I upgrade FFmpeg version to 3.3.2 and compile it with the same compile option and same transcode option as 2.1.1 version used, I got a video with 00:03:21.82 long, I played that video to see what was added after 1:41.46, and find that it just repeat the video from the beginning with no audio, I find out no idea to this issue, it seems to be a bug that FFmpeg introducing, anyone help me !
here is the log that I had transcoded with ffmpeg 3.3.2 :
ffmpeg -i natural.mp4 -c:v libx264 -c:a copy output.mp4
ffmpeg version 3.3.2 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 4.6 (Ubuntu/Linaro 4.6.4-6ubuntu2)
configuration: --enable-gpl --enable-nonfree --yasmexe=release/bin/yasm -- prefix=release --cc= --enable-static --disable-shared --disable-debug --extra-cflags=-Irelease/include --extra-ldflags='-Lrelease/lib -lm -ldl' --disable-ffplay --disable-ffprobe --disable-ffserver --disable-doc --enable-postproc --enable-bzlib --enable-zlib --enable-parsers --enable-libx264 --enable-libmp3lame --enable-libfdk-aac --enable-libspeex --enable-pthreads --extra->libs=-lpthread --enable-encoders --enable-decoders --enable-avfilter --enable->muxers --enable-demuxers
libavutil 55. 58.100 / 55. 58.100
libavcodec 57. 89.100 / 57. 89.100
libavformat 57. 71.100 / 57. 71.100
libavdevice 57. 6.100 / 57. 6.100
libavfilter 6. 82.100 / 6. 82.100
libswscale 4. 6.100 / 4. 6.100
libswresample 2. 7.100 / 2. 7.100
libpostproc 54. 5.100 / 54. 5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'natural.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42isom
creation_time : 2009-07-11T08:32:34.000000Z
encoder : mp4creator 1.6.1d
Duration: 00:01:41.46, start: 0.000000, bitrate: 9063 kb/s
Stream #0:0(eng): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 1440x1080 [SAR 4:3 DAR 16:9], 8976 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 2997 tbc (default)
Metadata:
creation_time : 2009-07-11T08:32:34.000000Z
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
Metadata:
creation_time : 2009-07-11T08:33:09.000000Z
Stream mapping:
Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[libx264 @ 0x2d951e0] using SAR=4/3
[libx264 @ 0x2d951e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[libx264 @ 0x2d951e0] profile High, level 4.0
[libx264 @ 0x2d951e0] 264 - core 138 r1+3473M a37a143 - H.264/MPEG-4 AVC codec >- Copyleft 2003-2013 - 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=23 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 'output.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42isom
encoder : Lavf57.71.100
Stream #0:0(eng): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1440x1080 [SAR 4:3 DAR 16:9], q=-1--1, 23.98 fps, 24k tbn, 23.98 tbc (default)
Metadata:
creation_time : 2009-07-11T08:32:34.000000Z
encoder : Lavc57.89.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
Stream #0:1(eng): Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 125 kb/s (default)
Metadata:
creation_time : 2009-07-11T08:33:09.000000Z
frame= 4842 fps= 27 q=-1.0 Lsize= 107608kB time=00:03:21.82
bitrate=4367.8kbits/s speed=1.11x
video:105973kB audio:1556kB subtitle:0kB other streams:0kB global headers:0kB >muxing overhead: 0.074199%
[libx264 @ 0x2d951e0] frame I:54 Avg QP:19.81 size: 77248
[libx264 @ 0x2d951e0] frame P:3960 Avg QP:22.01 size: 25371
[libx264 @ 0x2d951e0] frame B:828 Avg QP:23.01 size: 4680
[libx264 @ 0x2d951e0] consecutive B-frames: 75.2% 4.6% 4.3% 15.9%
[libx264 @ 0x2d951e0] mb I I16..4: 17.0% 79.0% 3.9%
[libx264 @ 0x2d951e0] mb P I16..4: 2.1% 7.8% 0.2% P16..4: 43.9% 9.7% 6.4% 0.0% 0.0% skip:29.9%
[libx264 @ 0x2d951e0] mb B I16..4: 0.2% 1.1% 0.0% B16..8: 29.2% 1.2% 0.2% direct: 0.7% skip:67.3% L0:49.0% L1:47.7% BI: 3.3%
[libx264 @ 0x2d951e0] 8x8 transform intra:78.1% inter:81.6%
[libx264 @ 0x2d951e0] coded y,uvDC,uvAC intra: 52.3% 66.4% 11.9% inter: 20.5% >24.2% 0.8%
[libx264 @ 0x2d951e0] i16 v,h,dc,p: 32% 22% 28% 18%
[libx264 @ 0x2d951e0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 19% 43% 3% 3% 3% 5% 2% 4%
[libx264 @ 0x2d951e0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 24% 12% 4% 8% 7% 11% 4% 5%
[libx264 @ 0x2d951e0] i8c dc,h,v,p: 50% 23% 23% 4%
[libx264 @ 0x2d951e0] Weighted P-Frames: Y:1.5% UV:0.3%
[libx264 @ 0x2d951e0] ref P L0: 71.9% 17.0% 8.5% 2.5% 0.0%
[libx264 @ 0x2d951e0] ref B L0: 89.7% 9.2% 1.2%
[libx264 @ 0x2d951e0] ref B L1: 97.5% 2.5%
[libx264 @ 0x2d951e0] kb/s:4298.67Here is the output when use ffmpeg -i natural.mp4 -c copy out.mp4,the output still last double times long :
./ffmpeg -i natural.mp4 -c copy out.mp4
ffmpeg version 3.3.2 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 4.6 (Ubuntu/Linaro 4.6.4-6ubuntu2)
configuration: --enable-gpl --enable-nonfree --yasmexe=release/bin/yasm --prefix=release --cc= --enable-static --disable-shared --disable-debug --extra-cflags=-Irelease/include --extra-ldflags='-Lrelease/lib -lm -ldl' --disable-ffplay --disable-ffprobe --disable-ffserver --disable-doc --enable-postproc --enable-bzlib --enable-zlib --enable-parsers --enable-libx264 --enable-libmp3lame --enable-libfdk-aac --enable-libspeex --enable-pthreads --extra-libs=-lpthread --enable-encoders --enable-decoders --enable-avfilter --enable-muxers --enable-demuxers
libavutil 55. 58.100 / 55. 58.100
libavcodec 57. 89.100 / 57. 89.100
libavformat 57. 71.100 / 57. 71.100
libavdevice 57. 6.100 / 57. 6.100
libavfilter 6. 82.100 / 6. 82.100
libswscale 4. 6.100 / 4. 6.100
libswresample 2. 7.100 / 2. 7.100
libpostproc 54. 5.100 / 54. 5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'natural.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42isom
creation_time : 2009-07-11T08:32:34.000000Z
encoder : mp4creator 1.6.1d
Duration: 00:01:41.46, start: 0.000000, bitrate: 9063 kb/s
Stream #0:0(eng): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 1440x1080 [SAR 4:3 DAR 16:9], 8976 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 2997 tbc (default)
Metadata:
creation_time : 2009-07-11T08:32:34.000000Z
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
Metadata:
creation_time : 2009-07-11T08:33:09.000000Z
Output #0, mp4, to 'out.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42isom
encoder : Lavf57.71.100
Stream #0:0(eng): Video: mpeg4 (Simple Profile) ( [0][0][0] / 0x0020), yuv420p, 1440x1080 [SAR 4:3 DAR 16:9], q=2-31, 8976 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 90k tbc (default)
Metadata:
creation_time : 2009-07-11T08:32:34.000000Z
Stream #0:1(eng): Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 125 kb/s (default)
Metadata:
creation_time : 2009-07-11T08:33:09.000000Z
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 4842 fps=2243 q=-1.0 Lsize= 222944kB time=00:03:21.91
bitrate=9045.4kbits/s speed=93.5x
video:221299kB audio:1556kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.039627%Here is the output what ffmpeg-2.1.1 generate,It’s executed correctly :
./ffmpeg -i natural.mp4 -c copy output2.mp4
ffmpeg version 2.1.1 Copyright (c) 2000-2013 the FFmpeg developers
built on Mar 10 2017 13:56:14 with gcc 4.6 (Ubuntu/Linaro 4.6.4-6ubuntu2)
configuration: --enable-gpl --enable-nonfree --yasmexe=release/bin/yasm --prefix=release --cc= --enable-static --disable-shared --disable-debug --extra-cflags='-I${ffmpeg_exported_release_dir}/include' --extra-ldflags='-L${ffmpeg_exported_release_dir}/lib -lm -ldl' --disable-ffplay --disable-ffprobe --disable-ffserver --disable-doc --enable-postproc --enable-bzlib --enable-zlib --enable-parsers --enable-libx264 --enable-libmp3lame --enable-libfdk-aac --enable-libspeex --enable-pthreads --extra-libs=-lpthread --enable-encoders --enable-decoders --enable-avfilter --enable-muxers --enable-demuxers
libavutil 52. 48.101 / 52. 48.101
libavcodec 55. 39.101 / 55. 39.101
libavformat 55. 19.104 / 55. 19.104
libavdevice 55. 5.100 / 55. 5.100
libavfilter 3. 90.100 / 3. 90.100
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 @ 0x2d2e900] multiple edit list entries, a/v desync might occur, patch welcome
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'natural.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42isom
creation_time : 2009-07-11 08:32:34
encoder : mp4creator 1.6.1d
Duration: 00:01:41.46, start: 0.000000, bitrate: 9063 kb/s
Stream #0:0(eng): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 1440x1080 [SAR 4:3 DAR 16:9], 8976 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 2997 tbc (default)
Metadata:
creation_time : 2009-07-11 08:32:34
Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
Metadata:
creation_time : 2009-07-11 08:33:09
Output #0, mp4, to 'output2.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42isom
encoder : Lavf55.19.104
Stream #0:0(eng): Video: mpeg4 ( [0][0][0] / 0x0020), yuv420p, 1440x1080 [SAR 4:3 DAR 16:9], q=2-31, 8976 kb/s, 23.98 fps, 90k tbn, 90k tbc (default)
Metadata:
creation_time : 2009-07-11 08:32:34
Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, 125 kb/s (default)
Metadata:
creation_time : 2009-07-11 08:33:09
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 2421 fps=0.0 q=-1.0 Lsize= 112273kB time=00:01:41.49 bitrate=9062.0kbits/s
video:110650kB audio:1556kB subtitle:0 global headers:0kB muxing overhead 0.060302%Here is the video link