Recherche avancée

Médias (1)

Mot : - Tags -/ticket

Autres articles (12)

  • Submit bugs and patches

    13 avril 2011

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

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Librairies et logiciels spécifiques aux médias

    10 décembre 2010, par

    Pour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
    Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...)

Sur d’autres sites (6851)

  • ffmpeg doesn't recognize Quicktime DV codec

    8 août 2017, par 3pointedit

    I have had success with excellent advice, on a Mac OSX10.5, converting a modified MXF media structure to h264 while retaining multitrack audio. But I cannot get ffmpeg to work in Windows environment.

    See this page.

    Here’s the result of latest failure-

    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

    F:\>h:

    H:\>cd conversion folder


    H:\Conversion folder>ffmpeg ffmpeg -report -enable_drefs 1 -use_absolute_path 1
    -i fdb9_AerialsEagleFarm_0610.mov -map 0:v -map 0:a -write_tmcd 1 fd9_AerialsEag
    leFarm_A0609.mp4
    ffmpeg started on 2017-08-08 at 15:01:24
    Report written to "ffmpeg-20170808-150124.log"
    ffmpeg version N-86950-g1bef008 Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 7.1.0 (GCC)
     configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --e
    nable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --
    enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv
    --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-li
    bfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug -
    -enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enabl
    e-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-li
    bsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolam
    e --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
    --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable
    -libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
     libavutil      55. 70.100 / 55. 70.100
     libavcodec     57.102.100 / 57.102.100
     libavformat    57. 76.100 / 57. 76.100
     libavdevice    57.  7.100 / 57.  7.100
     libavfilter     6. 98.100 /  6. 98.100
     libswscale      4.  7.102 /  4.  7.102
     libswresample   2.  8.100 /  2.  8.100
     libpostproc    54.  6.100 / 54.  6.100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 00000000005c99a0] Opening 'video.vid' for reading
    [mov,mp4,m4a,3gp,3g2,mj2 @ 00000000005c99a0] stream 0, error opening alias: path
    ='/VibrintAVFiles/Xchange In/fdb9_AerialsEagleFarm_0610.vmf/video.vid', dir='fdb
    9_AerialsEagleFarm_0610.vmf', filename='video.vid', volume='default', nlvl_from=
    1, nlvl_to=1
    [mov,mp4,m4a,3gp,3g2,mj2 @ 00000000005c99a0] Opening 'audio_0.pcm' for reading
    [mov,mp4,m4a,3gp,3g2,mj2 @ 00000000005c99a0] stream 1, error opening alias: path
    ='/VibrintAVFiles/Xchange In/fdb9_AerialsEagleFarm_0610.vmf/audio_0.pcm', dir='f
    db9_AerialsEagleFarm_0610.vmf', filename='audio_0.pcm', volume='default', nlvl_f
    rom=1, nlvl_to=1
    [mov,mp4,m4a,3gp,3g2,mj2 @ 00000000005c99a0] Opening 'audio_1.pcm' for reading
    [mov,mp4,m4a,3gp,3g2,mj2 @ 00000000005c99a0] stream 2, error opening alias: path
    ='/VibrintAVFiles/Xchange In/fdb9_AerialsEagleFarm_0610.vmf/audio_1.pcm', dir='f
    db9_AerialsEagleFarm_0610.vmf', filename='audio_1.pcm', volume='default', nlvl_f
    rom=1, nlvl_to=1
    [mov,mp4,m4a,3gp,3g2,mj2 @ 00000000005c99a0] Opening 'audio_2.pcm' for reading
    [mov,mp4,m4a,3gp,3g2,mj2 @ 00000000005c99a0] stream 3, error opening alias: path
    ='/VibrintAVFiles/Xchange In/fdb9_AerialsEagleFarm_0610.vmf/audio_2.pcm', dir='f
    db9_AerialsEagleFarm_0610.vmf', filename='audio_2.pcm', volume='default', nlvl_f
    rom=1, nlvl_to=1
    [mov,mp4,m4a,3gp,3g2,mj2 @ 00000000005c99a0] Opening 'audio_3.pcm' for reading
    [mov,mp4,m4a,3gp,3g2,mj2 @ 00000000005c99a0] stream 4, error opening alias: path
    ='/VibrintAVFiles/Xchange In/fdb9_AerialsEagleFarm_0610.vmf/audio_3.pcm', dir='f
    db9_AerialsEagleFarm_0610.vmf', filename='audio_3.pcm', volume='default', nlvl_f
    rom=1, nlvl_to=1
    [mov,mp4,m4a,3gp,3g2,mj2 @ 00000000005c99a0] Could not find codec parameters for
    stream 0 (Video: dvvideo (dvpp / 0x70707664), none, 720x576, 28800 kb/s): unspe
    cified pixel format
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    Guessed Channel Layout for Input Stream #0.1 : mono
    Guessed Channel Layout for Input Stream #0.2 : mono
    Guessed Channel Layout for Input Stream #0.3 : mono
    Guessed Channel Layout for Input Stream #0.4 : mono
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fdb9_AerialsEagleFarm_0610.mov':
     Metadata:
       creation_time   : 2016-10-06T07:01:58.000000Z
     Duration: 00:12:43.90, start: 0.000000, bitrate: 1 kb/s
       Stream #0:0(eng): Video: dvvideo (dvpp / 0x70707664), none, 720x576, 28800 k
    b/s, SAR 118:81 DAR 295:162, 25 fps, 25 tbr, 2500 tbn, 2500 tbc (default)
       Metadata:
         creation_time   : 2016-10-06T07:01:58.000000Z
         handler_name    : Apple Alias Data Handler
         timecode        : 01:17:27:12
       Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, s16,
    768 kb/s (default)
       Metadata:
         creation_time   : 2016-10-06T07:01:58.000000Z
         handler_name    : Apple Alias Data Handler
       Stream #0:2(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, s16,
    768 kb/s (default)
       Metadata:
         creation_time   : 2016-10-06T07:01:58.000000Z
         handler_name    : Apple Alias Data Handler
       Stream #0:3(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, s16,
    768 kb/s (default)
       Metadata:
         creation_time   : 2016-10-06T07:01:58.000000Z
         handler_name    : Apple Alias Data Handler
       Stream #0:4(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, s16,
    768 kb/s (default)
       Metadata:
         creation_time   : 2016-10-06T07:01:58.000000Z
         handler_name    : Apple Alias Data Handler
       Stream #0:5(eng): Data: none (tmcd / 0x64636D74) (default)
       Metadata:
         creation_time   : 2016-10-06T07:01:58.000000Z
         handler_name    : Apple Handle Data Handler
         timecode        : 01:17:27:12
    [NULL @ 00000000005cad20] Unable to find a suitable output format for 'ffmpeg'
    ffmpeg: Invalid argument

    And a screen grab of file structure (although I’m using an alias for target)

    alt mxf media

  • How to compile FFmpeg with bash on Windows 10 ?

    10 août 2017, par user2980183

    In the Creators Update (1703), the Windows 10 bash linux (WSL) can run native windows tools. So, under Windows 10, you can now compile FFmpeg with Visual Studio and the required linux utilities, natively, without having to install MinGW or other interop crap software.

    Here is how I tried to compile FFmpeg (using MSVC 2017 toolchain) :

    • I started the bash shell from "Developer Command Prompt for VS 2017" to set PATH variable to find the MSVC compiler/linker.

    • I installed the "make" tool with the following command : "sudo apt-get install make".

    • To call Windows program from the bash shell, I have to type the command with its .exe extension. So, I must adapt the "configure" and "compat/windows/makedef" files to add ".exe" at the end of "cl", "link" (no confusion possible with the /usr/bin/link), "dumpbin" and "lib" executables :

    configure

    cl_major_ver=$(cl 2>&1 | sed -n 's/.*Version \([[:digit:]]\{1,\}\)\..*/\1/p')
       if [ -z "$cl_major_ver" ] || [ $cl_major_ver -ge 18 ]; then
           cc_default="cl.exe"
       else
           cc_default="c99wrap cl"
       fi
       ld_default="link.exe"
       nm_default="dumpbin.exe -symbols"
       ar_default="lib.exe"

    compat/windows/makedef

    lib.exe -out:${libname} $@ >/dev/null

    arch=$(dumpbin.exe -headers ${libname} |
      tr '\t' ' ' |
      grep '^ \+.\+machine \+(.\+)' |
      head -1 |
      sed -e 's/^ \{1,\}.\{1,\} \{1,\}machine \{1,\}(\(...\)).*/\1/')

    dump=$(dumpbin.exe -linkermember:1 ${libname})

    I hope the FFmpeg build tool chain will be adapted in the future to support natively compiling on bash on Windows...

    • If you want to set an absolute path for YASM in the "configure", you have to use the following pattern /mnt/[letter_partition]/path/yasm.exe.

    ./configure --toolchain=msvc --yasmexe='/mnt/e/Home/Important/Development/Toolkit/Tools/yasm-1.3.0-win32.exe' [all other settings you need]

    • The make command should generate the lib as expected.

    • I tried to type make install but I get the following error :
      No rule to make the target "libavutil\x86\x86util.asm", needed for "libavutil/x86/cpuid.o".

    I don’t know what is wrong...

    As you can see, building FFmpeg on bash under Windows is not very developer friendly yet. Compiling FFmpeg in Windows should be as easy as Linux. Do you know if there is an easier way to proceed ? Do you know if this compilation scenario will be officially supported in next versions of FFmpeg (I don’t find any roadmap) ?

    Thanks.

  • ffmpeg http slower than downloading first

    9 août 2017, par Krylic

    When trying to get a clip of a video from a remote source
    Input source :

    ffprobe version 3.3.2-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2007-2017 the FFmpeg developers
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'http://website.com/video.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: mp42mp41
       creation_time   : 2017-07-13T15:44:58.000000Z
     Duration: 00:57:32.42, start: 0.000000, bitrate: 1939 kb/s
       Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv), 720x480 [SAR 10:11 DAR 15:11], 1745 kb/s, 29.97 fps, 29.97 tbr, 29970 tbn, 59.94 tbc (default)
       Metadata:
         creation_time   : 2017-07-13T15:44:58.000000Z
         handler_name    : Mainconcept MP4 Video Media Handler
         encoder         : AVC Coding
       Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 189 kb/s (default)
       Metadata:
         creation_time   : 2017-07-13T15:44:58.000000Z
         handler_name    : Mainconcept MP4 Sound Media Handler

    Current command :
    ffmpeg version 3.3.2-static
    ffmpeg.linux -threads 2 -y -ss 3273 -i "http://website.com/video.mp4" -an -movflags +faststart -preset veryfast -codec copy /outputfolder/trimmed_video.mp4
    This 5m35.102s to create a 45mb 2min file.

    If I download the file using wget it takes 28s and using ffmpeg only takes 0.243s

    If I add -vn OR -an to the output portion of the command it completes the trim in about 2.101s. Meaning it’s faster to download the two stream and merge them myself.

    Can anyone explain this behaviour and why my first command takes so long when on a lot of other video files it’s very fast ?