Recherche avancée

Médias (0)

Mot : - Tags -/clipboard

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

Autres articles (37)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (5244)

  • Compile OpenCV3 with Cuda7.5 ffmpeg (latest) issue OpenSUSE 13.2

    23 janvier 2016, par Ingeborg

    I am using an OpenSUSE 13.2-X86-64 and a Geforce 940M GPU. I want to work with it on the Qt5 IDE.
    For this purpose, i have installed my GPU Driver with the Cuda7.5 toolkit rpm from the cudazone. Everything is nearly fine.
    It detects everything I have made and executed a couple of the cuda samples.

    As next step, i have installed the current FFmpeg version with nvenc and other libraries like Xvid and many of
    the other usefull stuff which would be to much to list it here. After that i have downloaded the current
    OpenCV-3.0.0 source code and ran cmake-gui where i have added cuda, ffmpeg, Qt5 etc and maked it.

    On different points of the make session (make -j4) i get this kind of mistake from my console (The list of the Multiple definition
    error is much longer). This is the first one.

    .
    .
    .
    .
    .
    .
    nvlink error   : Multiple definition of '_ZN2cv5cudev16color_cvt_detail15c_HlsSectorDataE' in '/home/peter/Programme/opencv/build/modules/cudev/test/CMakeFiles/opencv_test_cudev.dir//./opencv_test_cudev_generated_test_arithm_func.cu.o', first defined in '/home/peter/Programme/opencv/build/modules/cudev/test/CMakeFiles/opencv_test_cudev.dir//./opencv_test_cudev_generated_test_lut.cu.o'
    nvlink error   : Multiple definition of '_ZN2cv5cudev16color_cvt_detail16c_sRGBGammaTab_bE' in '/home/peter/Programme/opencv/build/modules/cudev/test/CMakeFiles/opencv_test_cudev.dir//./opencv_test_cudev_generated_test_arithm_func.cu.o', first defined in '/home/peter/Programme/opencv/build/modules/cudev/test/CMakeFiles/opencv_test_cudev.dir//./opencv_test_cudev_generated_test_lut.cu.o'
    nvlink error   : Multiple definition of '_ZN2cv5cudev16color_cvt_detail14c_sRGBGammaTabE' in '/home/peter/Programme/opencv/build/modules/cudev/test/CMakeFiles/opencv_test_cudev.dir//./opencv_test_cudev_generated_test_arithm_func.cu.o', first defined in '/home/peter/Programme/opencv/build/modules/cudev/test/CMakeFiles/opencv_test_cudev.dir//./opencv_test_cudev_generated_test_lut.cu.o'
    nvlink error   : Multiple definition of '_ZN2cv5cudev16color_cvt_detail17c_sRGBInvGammaTabE' in '/home/peter/Programme/opencv/build/modules/cudev/test/CMakeFiles/opencv_test_cudev.dir//./opencv_test_cudev_generated_test_arithm_func.cu.o', first defined in '/home/peter/Programme/opencv/build/modules/cudev/test/CMakeFiles/opencv_test_cudev.dir//./opencv_test_cudev_generated_test_lut.cu.o'
    nvlink error   : Multiple definition of '_ZN2cv5cudev16color_cvt_detail12c_LabCbrtTabE' in '/home/peter/Programme/opencv/build/modules/cudev/test/CMakeFiles/opencv_test_cudev.dir//./opencv_test_cudev_generated_test_arithm_func.cu.o', first defined in '/home/peter/Programme/opencv/build/modules/cudev/test/CMakeFiles/opencv_test_cudev.dir//./opencv_test_cudev_generated_test_lut.cu.o'
    modules/cudev/test/CMakeFiles/opencv_test_cudev.dir/build.make:5302: recipe for target 'modules/cudev/test/CMakeFiles/opencv_test_cudev.dir/./opencv_test_cudev_intermediate_link.o' failed
    make[2]: *** [modules/cudev/test/CMakeFiles/opencv_test_cudev.dir/./opencv_test_cudev_intermediate_link.o] Error 255
    CMakeFiles/Makefile2:1182: recipe for target 'modules/cudev/test/CMakeFiles/opencv_test_cudev.dir/all' failed
    make[1]: *** [modules/cudev/test/CMakeFiles/opencv_test_cudev.dir/all] Error 2
    Makefile:137: recipe for target 'all' failed
    make: *** [all] Error 2

    And I have no idea how to fix that.

    Thx !

    Edit : added cmake configuration

    ~/Programme/opencv/build> cmake /home/peter/Programme/opencv-3.0.0
    CMake Error: The source "/home/peter/Programme/opencv-3.0.0/CMakeLists.txt" does not match the source "/home/peter/Programme/opencv/CMakeLists.txt" used to generate cache.  Re-run cmake with a different source directory.
    peter@linux-3mgc:~/Programme/opencv/build> cmake /home/peter/Programme/opencv
    -- Detected version of GNU GCC: 48 (408)
    -- Found ZLIB: /usr/lib64/libz.so (found suitable version "1.2.8", minimum required is "1.2.3")
    -- Found ZLIB: /usr/lib64/libz.so (found version "1.2.8")
    -- checking for module 'gstreamer-video-0.10'
    --   package 'gstreamer-video-0.10' not found
    -- checking for module 'gstreamer-app-0.10'
    --   package 'gstreamer-app-0.10' not found
    -- checking for module 'gstreamer-riff-0.10'
    --   package 'gstreamer-riff-0.10' not found
    -- checking for module 'gstreamer-pbutils-0.10'
    --   package 'gstreamer-pbutils-0.10' not found
    -- Looking for linux/videodev.h
    -- Looking for linux/videodev.h - not found
    -- Looking for linux/videodev2.h
    -- Looking for linux/videodev2.h - found
    -- Looking for sys/videoio.h
    -- Looking for sys/videoio.h - not found
    -- checking for module 'libavresample'
    --   package 'libavresample' not found
    -- Looking for libavformat/avformat.h
    -- Looking for libavformat/avformat.h - found
    -- Looking for ffmpeg/avformat.h
    -- Looking for ffmpeg/avformat.h - not found
    -- found IPP (ICV version): 8.2.1 [8.2.1]
    -- at: /home/peter/Programme/opencv/3rdparty/ippicv/unpack/ippicv_lnx
    -- CUDA detected: 7.5
    -- CUDA NVCC target flags: -gencode;arch=compute_50,code=sm_50
    -- To enable PlantUML support, set PLANTUML_JAR environment variable or pass -DPLANTUML_JAR=<filepath> option to cmake
    -- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.8", minimum required is "2.7")
    -- Found PythonLibs: /usr/lib64/libpython2.7.so (found suitable exact version "2.7.8")
    -- Found PythonInterp: /usr/bin/python3.4 (found suitable version "3.4.1", minimum required is "3.4")
    -- Found PythonLibs: /usr/lib64/libpython3.4m.so (found suitable exact version "3.4.1")
    Traceback (most recent call last):
    File "<string>", line 1, in <module>
    ImportError: No module named 'numpy'
    -- Found apache ant 1.8.0: /usr/bin/ant
    -- Could NOT find JNI (missing:  JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH)
    -- Could NOT find Matlab (missing:  MATLAB_MEX_SCRIPT      MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN)
    -- VTK support is disabled. Incompatible combination: OpenCV + Qt5 and VTK ver.6.1.0 + Qt4
    --
    -- General configuration for OpenCV 3.0.0-dev =====================================
    --   Version control:               3.0.0-528-g3a3f403-dirty
    --
    --   Platform:
    --     Host:                        Linux 3.16.7-24-desktop x86_64
    --     CMake:                       3.0.2
    --     CMake generator:             Unix Makefiles
    --     CMake build tool:            /usr/bin/gmake
    --     Configuration:               Release
    --
    --   C/C++:
    --     Built as dynamic libs?:      YES
    --     C++ Compiler:                /usr/bin/c++  (ver 4.8.3)
    --     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 -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 -fopenmp -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 -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 -fopenmp -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 -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 -fopenmp -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 -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 -fopenmp -g  -O0 -DDEBUG -D_DEBUG
    --     Linker flags (Release):      
    --     Linker flags (Debug):        
    --     Precompiled headers:         YES
    --     Extra dependencies:          /usr/lib64/libcuda.so /usr/lib64/libnvcuvid.so Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Test Qt5::Concurrent Qt5::OpenGL /usr/lib64/libwebp.so /usr/lib64/libpng.so /usr/lib64/libz.so /usr/lib64/libtiff.so /usr/lib64/libjasper.so /usr/lib64/libjpeg.so gstbase-0.10 gstreamer-0.10 gobject-2.0 gmodule-2.0 gthread-2.0 xml2 ucil glib-2.0 unicap dc1394 xine v4l1 v4l2 avcodec avformat avutil swscale gphoto2 gphoto2_port exif /usr/lib64/libbz2.so dl m pthread rt /usr/lib64/libGLU.so /usr/lib64/libGL.so /usr/lib64/libSM.so /usr/lib64/libICE.so /usr/lib64/libX11.so /usr/lib64/libXext.so cudart nppc nppi npps cublas cufft
    --     3rdparty dependencies:       IlmImf ippicv
    --
    --   OpenCV modules:
    --     To be built:                 cudev hal core cudaarithm flann imgproc ml video cudabgsegm cudafilters cudaimgproc cudawarping imgcodecs photo shape videoio cudacodec highgui objdetect ts features2d calib3d cudafeatures2d cudalegacy cudaobjdetect cudaoptflow cudastereo stitching superres videostab python2
    --     Disabled:                    world
    --     Disabled by dependency:      -
    --     Unavailable:                 java python3 viz
    --
    --   GUI:
    --     QT 5.x:                      YES (ver 5.4.2)
    --     QT OpenGL support:           YES (Qt5::OpenGL 5.4.2)
    --     OpenGL support:              YES (/usr/lib64/libGLU.so /usr/lib64/libGL.so /usr/lib64/libSM.so /usr/lib64/libICE.so /usr/lib64/libX11.so /usr/lib64/libXext.so)
    --     VTK support:                 NO
    --
    --   Media I/O:
    --     ZLib:                        /usr/lib64/libz.so (ver 1.2.8)
    --     JPEG:                        /usr/lib64/libjpeg.so (ver )
    --     WEBP:                        /usr/lib64/libwebp.so (ver encoder: 0x0202)
    --     PNG:                         /usr/lib64/libpng.so (ver 1.2.51)
    --     TIFF:                        /usr/lib64/libtiff.so (ver 42 - 4.0.4)
    --     JPEG 2000:                   /usr/lib64/libjasper.so (ver 1.900.1)
    --     OpenEXR:                     build (ver 1.7.1)
    --     GDAL:                        NO
    --
    --   Video I/O:
    --     DC1394 1.x:                  NO
    --     DC1394 2.x:                  YES (ver 2.2.2)
    --     FFMPEG:                      YES
    --       codec:                     YES (ver 57.3.100)
    --       format:                    YES (ver 57.2.100)
    --       util:                      YES (ver 55.2.100)
    --       swscale:                   YES (ver 4.0.100)
    --       resample:                  NO
    --       gentoo-style:              YES
    --     GStreamer:                   NO
    --     OpenNI:                      NO
    --     OpenNI PrimeSensor Modules:  NO
    --     OpenNI2:                     NO
    --     PvAPI:                       NO
    --     GigEVisionSDK:               NO
    --     UniCap:                      YES (ver 0.9.12)
    --     UniCap ucil:                 YES (ver 0.9.10)
    --     V4L/V4L2:                    Using libv4l1 (ver 1.2.1) / libv4l2 (ver 1.2.1)
    --     XIMEA:                       NO
    --     Xine:                        YES (ver 1.2.6)
    --     gPhoto2:                     YES
    --
    --   Parallel framework:            OpenMP
    --
    --   Other third-party libraries:
    --     Use IPP:                     8.2.1 [8.2.1]
    --          at:                     /home/peter/Programme/opencv/3rdparty/ippicv/unpack/ippicv_lnx
    --     Use IPP Async:               NO
    --     Use VA:                      NO
    --     Use Intel VA-API/OpenCL:     NO
    --     Use Eigen:                   YES (ver 3.2.2)
    --     Use Cuda:                    YES (ver 7.5)
    --     Use OpenCL:                  YES
    --
    --   NVIDIA CUDA
    --     Use CUFFT:                   YES
    --     Use CUBLAS:                  YES
    --     USE NVCUVID:                 YES
    --     NVIDIA GPU arch:             50
    --     NVIDIA PTX archs:
    --     Use fast math:               YES
    --
    --   OpenCL:
    --     Version:                     dynamic
    --     Include path:                /home/peter/Programme/opencv/3rdparty/include/opencl/1.2
    --     Use AMDFFT:                  NO
    --     Use AMDBLAS:                 NO
    --
    --   Python 2:
    --     Interpreter:                 /usr/bin/python2.7 (ver 2.7.8)
    --     Libraries:                   /usr/lib64/libpython2.7.so (ver 2.7.8)
    --     numpy:                       /usr/lib64/python2.7/site-packages/numpy/core/include (ver 1.9.0)
    --     packages path:               lib/python2.7/site-packages
    --
    --   Python 3:
    --     Interpreter:                 /usr/bin/python3.4 (ver 3.4.1)
    --
    --   Python (for build):            /usr/bin/python2.7
    --
    --   Java:
    --     ant:                         /usr/bin/ant (ver 1.8.0)
    --     JNI:                         NO
    --     Java wrappers:               NO
    --     Java tests:                  NO
    --
    --   Matlab:
    --     mex:                         NO
    --
    --   Documentation:
    --     Doxygen:                     /usr/bin/doxygen (ver 1.8.8)
    --     PlantUML:                    NO
    --
    --   Tests and samples:
    --     Tests:                       YES
    --     Performance tests:           YES
    --     C/C++ Examples:              NO
    --
    --   Install path:                  /usr/local
    --
    --   cvconfig.h is in:              /home/peter/Programme/opencv/build
    --        
    -----------------------------------------------------------------
    --
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/peter/Programme/opencv/build
    </module></string></filepath>
  • Convert a video to MP4 (H.264/AAC) with ffmpeg

    5 décembre 2015, par user176455

    If I don’t make a mistake, Safari currently need MP4 (H.264/AAC) video encoded for the HTML5 <video></video> element.

    So I tried to convert a video to this format with ffmpeg. However when I enter the shell command ffmpeg -i video.flv video.mp4, the returned error is :

    Seems stream 0 codec frame rate
    differs from container frame rate :
    2000.00 (2000/1) -> 29.92 (359/12) Input #0, flv, from ’video.flv’ :
    Duration : 00:05:01.20, start :
    0.000000, bitrate : 66 kb/s
    Stream #0.0 : Video : h264, yuv420p, 320x240 [PAR 1:1 DAR 4:3], 66 kb/s,
    29.92 tbr, 1k tbn, 2k tbc
    Stream #0.1 : Audio : aac, 22050 Hz, stereo, s16 Output #0, mp4, to
    ’video.mp4’ :
    Stream #0.0 : Video : mpeg4, yuv420p, 320x240 [PAR 1:1 DAR 4:3],
    q=2-31, 200 kb/s, 90k tbn, 29.92 tbc
    Stream #0.1 : Audio : 0x0000, 22050 Hz, stereo, s16, 64 kb/s Stream
    mapping : Stream #0.0 -> #0.0
    Stream #0.1 -> #0.1 Unsupported codec
    for output stream #0.1

    An AAC codec is required but I’m quite newbie with ubuntu and I dont really now how to fix this problem. I’m using Ubuntu 9.10 Karmik Koala (for amd64).

    Thank you very much. :)

  • How to enable different components of FFMPEG ?

    3 décembre 2011, par Richard77

    I've found this C# wrapper code around FFMPEG. I'm using ASP.NET MVC3 and C#. When trying to get it work, I'm getting the following error :

           RawOutput   "ffmpeg version N-34906-g4e7b3ef, Copyright (c) 2000-2011
           the FFmpeg developers

           built on Nov 16 2011 12:35:07 with gcc 4.6.2

           configuration: --enable-gpl --enable-version3 --disable-w32threads
           --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r
           --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype
           --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp
           --enable-libschroedinger --enable-libspeex --enable-libtheora
           --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
           --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid
           --enable-zlib

           libavutil    51. 25. 0 / 51. 25. 0
           libavcodec   53. 34. 0 / 53. 34. 0
           libavformat  53. 20. 0 / 53. 20. 0
           libavdevice  53.  4. 0 / 53.  4. 0  
           libavfilter   2. 48. 1 /  2. 48. 1
           libswscale    2.  1. 0 /  2.  1. 0
           libpostproc  51.  2. 0 / 51.  2. 0
           [wmv3 @ 002BFA00] Extra data: 8 bits left, value: 0
           [asf @ 002B8A80] parser not found for codec wmav2, packets or times may be invalid.
           Seems stream 1 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 30.00 (30/1)
           Input #0, asf, from &#39;C:\\FfMpeg\\Videos\\Original\\Video1.wmv&#39;:
           Metadata:
           WMFSDKVersion   : 11.0.6002.18049  
           WMFSDKNeeded    : 0.0.0.0000
           IsVBR           : 0
           Duration: 00:00:41.80, start: 0.000000, bitrate: 888 kb/s
           Stream #0:0(eng): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, 2 channels, s16, 64 kb/s
           Stream #0:1(eng): Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 320x240, 786 kb/s, 30 tbr, 1k tbn, 1k tbc
           Incompatible pixel format &#39;yuv420p&#39; for codec &#39;mjpeg&#39;, auto-selecting format &#39;yuvj420p&#39;
           [buffer @ 031D8DA0] w:320 h:240 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param:
           [buffersink @ 031D8FA0] auto-inserting filter &#39;auto-inserted scale 0&#39; between the filter &#39;src&#39; and the filter &#39;out&#39;
           [scale @ 03106C20] w:320 h:240 fmt:yuv420p -> w:320 h:240 fmt:yuvj420p flags:0x4
           [wmv3 @ 002BFA00] Extra data: 8 bits left, value: 0
           Output #0, image2, to &#39;87334ed0-2bcf-4be5-82ae-9089c14e0323.jpg&#39;:
           Metadata:
           WMFSDKVersion   : 11.0.6002.18049
           WMFSDKNeeded    : 0.0.0.0000
           IsVBR           : 0
           encoder         : Lavf53.20.0
           Stream #0:0(eng): Video: mjpeg, yuvj420p, 320x240, q=2-31, 200 kb/s, 90k tbn, 30 tbc
           Stream mapping:
           Stream #0:1 -> #0:0 (wmv3 -> mjpeg)
           Press [q] to stop, [?] for help
           [image2 @ 03107920] Could not open file : 87334ed0-2bcf-4be5-82ae-9089c14e0323.jpg
           av_interleaved_write_frame(): Input/output error
           "   string

    I'm absolutely new to FFMPEG, so I don't know where to start to solve the above probleme.

    EDIT

    public ActionResult Convert()
       {
           Converter _converter = new Converter(@"C:\FfMpeg\ffmpeg.exe");
           OutputPackage oo = _converter.ConvertToFLV(@"C:\FfMpeg\Videos\Original\Video1.wmv");

           FileStream outStream = System.IO.File.OpenWrite(@"C:\FfMpeg\Videos\Converted\Video1.flv");
           oo.VideoStream.WriteTo(outStream);
           outStream.Flush();
           outStream.Close();

           oo.PreviewImage.Save(@"C:\FfMpeg\Videos\Thumbnail\Thumbnail1.jpg");

           return RedirectToAction("WatchMovie");
       }

    Thanks for helping