Recherche avancée

Médias (1)

Mot : - Tags -/punk

Autres articles (3)

  • Les images

    15 mai 2013
  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

Sur d’autres sites (1816)

  • ffmpeg - cut without reencoding and strange behaviour : application provided duration is out of range for mov/mp4 format [closed]

    27 août 2023, par user2707175

    In Ubuntu 18.04 I quite often used the following command for trimming part of the video without re encoding (which means without any quality loss).

    &#xA;

    ffmpeg -ss 00:06:00 -i DSCF5984.MOV -t 00:07:00 -c copy DSCF5984_A_wszystkie.MOV

    &#xA;

    Not so much time ago I moved to Ubuntu 22.04. Still having the same video camera and still using the same format for recording, when using the command as above I'm getting quite strange error and the behavior is unexpected. In this case mov file is 40 sec file. I want to get 7 seconds fragment starting from 6 second (thus from 6 to 13 sec). Instead of this I get very short fragment from the beginning of the file. I don't even know how long as none of video players want to display its length. Probably it's 1-2 sec. Thus it's not only, I get this error, but ffmpeg doesn't work. In theory I have the newest version available for ubuntu 22.04.

    &#xA;

    Messages displayed by ffmpeg

    &#xA;

    ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers&#xA;  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)&#xA;  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared&#xA;  WARNING: library configuration mismatch&#xA;  avcodec     configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libaribb24 --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc --enable-libsmbclient&#xA;  libavutil      56. 70.100 / 56. 70.100&#xA;  libavcodec     58.134.100 / 58.134.100&#xA;  libavformat    58. 76.100 / 58. 76.100&#xA;  libavdevice    58. 13.100 / 58. 13.100&#xA;  libavfilter     7.110.100 /  7.110.100&#xA;  libswscale      5.  9.100 /  5.  9.100&#xA;  libswresample   3.  9.100 /  3.  9.100&#xA;  libpostproc    55.  9.100 / 55.  9.100&#xA;Guessed Channel Layout for Input Stream #0.1 : stereo&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;DSCF5984.MOV&#x27;:&#xA;  Metadata:&#xA;    major_brand     : qt  &#xA;    minor_version   : 0&#xA;    compatible_brands: qt  &#xA;    creation_time   : 2023-08-12T23:07:18.000000Z&#xA;    original_format : Digital Camera&#xA;    original_format-eng: Digital Camera&#xA;    comment         : FUJIFILM DIGITAL CAMERA X-S10&#xA;    comment-eng     : FUJIFILM DIGITAL CAMERA X-S10&#xA;  Duration: 00:00:40.04, start: 0.000000, bitrate: 105270 kb/s&#xA;  Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, smpte170m/bt709/smpte170m), 3840x2160, 101873 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)&#xA;    Metadata:&#xA;      creation_time   : 2023-08-12T23:07:18.000000Z&#xA;      vendor_id       : [0][0][0][0]&#xA;      encoder         : AVC Coding&#xA;      timecode        : 07:05:54;21&#xA;  Stream #0:1(eng): Audio: pcm_s24le (lpcm / 0x6D63706C), 48000 Hz, stereo, s32 (24 bit), 2304 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2023-08-12T23:07:18.000000Z&#xA;      vendor_id       : [0][0][0][0]&#xA;      timecode        : 07:05:54;21&#xA;  Stream #0:2(eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2023-08-12T23:07:18.000000Z&#xA;      timecode        : 07:05:54;21&#xA;[mov @ 0x55a005fa6e40] Application provided duration: -9223372036854775808 / timestamp: -9223372036854775808 is out of range for mov/mp4 format&#xA;[mov @ 0x55a005fa6e40] pts has no value&#xA;Output #0, mov, to &#x27;DSCF5984_A_wszystkie.MOV&#x27;:&#xA;  Metadata:&#xA;    major_brand     : qt  &#xA;    minor_version   : 0&#xA;    compatible_brands: qt  &#xA;    comment-eng     : FUJIFILM DIGITAL CAMERA X-S10&#xA;    original_format : Digital Camera&#xA;    original_format-eng: Digital Camera&#xA;    comment         : FUJIFILM DIGITAL CAMERA X-S10&#xA;    encoder         : Lavf58.76.100&#xA;  Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, smpte170m/bt709/smpte170m), 3840x2160, q=2-31, 101873 kb/s, 0.03 fps, 29.97 tbr, 30k tbn, 30k tbc (default)&#xA;    Metadata:&#xA;      creation_time   : 2023-08-12T23:07:18.000000Z&#xA;      vendor_id       : [0][0][0][0]&#xA;      encoder         : AVC Coding&#xA;      timecode        : 07:05:54;21&#xA;  Stream #0:1(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, stereo, s32 (24 bit), 2304 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2023-08-12T23:07:18.000000Z&#xA;      vendor_id       : [0][0][0][0]&#xA;      timecode        : 07:05:54;21&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (copy)&#xA;  Stream #0:1 -> #0:1 (copy)&#xA;Press [q] to stop, [?] for help&#xA;frame=   30 fps=0.0 q=-1.0 Lsize=   13475kB time=-00:05:19.97 bitrate=N/A speed=N/A    &#xA;video:13191kB audio:282kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.019629%&#xA;

    &#xA;

    Is that some kind of error ? Or should I do sth different ? I'm quite surprised as I didn't change my camera. So is that sth changed in ffmpeg ?

    &#xA;

  • How to tell ffmpeg that /tmp/phpFm6H79 is a safe file name ?

    28 août 2023, par hanshenrik

    How do I tell ffmpeg that /tmp/phpFm6H79 is a safe filename ?

    &#xA;

    When I do

    &#xA;

    ffmpeg -y -f concat -i &#x27;/tmp/phpFm6H79&#x27; -c:v:libx264 -vsync vfr &#x27;/home/hans/projects/test/output2.mp4&#x27;&#xA;

    &#xA;

    I get (*only the last 2 lines are interesting)

    &#xA;

    ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers&#xA;  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)&#xA;  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared&#xA;  libavutil      56. 70.100 / 56. 70.100&#xA;  libavcodec     58.134.100 / 58.134.100&#xA;  libavformat    58. 76.100 / 58. 76.100&#xA;  libavdevice    58. 13.100 / 58. 13.100&#xA;  libavfilter     7.110.100 /  7.110.100&#xA;  libswscale      5.  9.100 /  5.  9.100&#xA;  libswresample   3.  9.100 /  3.  9.100&#xA;  libpostproc    55.  9.100 / 55.  9.100&#xA;[concat @ 0x55b070e9ff40] Unsafe file name &#x27;/tmp/phpbshsmF&#x27;&#xA;/tmp/phpFm6H79: Operation not permitted&#xA;

    &#xA;

    The filepath is generated with PHP's tmpfile() like

    &#xA;

    $ffmpegInputTxtFileHandle = tmpfile();&#xA;$ffmpegInputTxtFilePath = stream_get_meta_data($ffmpegInputTxtFileHandle)[&#x27;uri&#x27;];&#xA;

    &#xA;

    The code should be threadsafe, so using hardcoded paths is not really viable, and using tmpfile() is very convenient, it takes care of automatically deleting the file when the script exit, even if php crashes, so I'd rather tell ffmpeg that it is safe, than change it to something other than tmpfile(), is it possible ? how ?

    &#xA;

    I tried using this fugly workaround to get it to end with ".txt"

    &#xA;

            $ffmpegInputTxtFileHandle = tmpfile();&#xA;        $ffmpegInputTxtFilePath = stream_get_meta_data($ffmpegInputTxtFileHandle)[&#x27;uri&#x27;] . ".txt";&#xA;        fclose($ffmpegInputTxtFileHandle);&#xA;        $ffmpegInputTxtFileHandle = fopen($ffmpegInputTxtFilePath, &#x27;w&#x2B;b&#x27;);&#xA;        register_shutdown_function(function () use ($ffmpegInputTxtFileHandle, $ffmpegInputTxtFilePath) {&#xA;            @fclose($ffmpegInputTxtFileHandle);&#xA;            @unlink($ffmpegInputTxtFilePath);&#xA;        });&#xA;

    &#xA;

    but it even says that /tmp/phpFm6H79.txt is an unsafe filename :'(

    &#xA;

  • FFmpeg filter_complex to merge audio from two files fails without an error due to album cover PNG stream

    13 décembre 2023, par kaushal

    When you run FFmpeg filter_complex command to process two mp3 files and merge them into one, the command runs successfully, the output mp3 file is generated. No errors are reported. But the output fails to run. The result log from FFmpeg looks something like this, which points to an PNG stream in one of the mp3.

    &#xA;

    [mp3 @ 00000215d251e7c0] Estimating duration from bitrate, this may be inaccurate&#xA;Input #0, mp3, from &#x27;C:\\vid gen\\Track_ Outwild x She Is Jules - Golden [NCS Release].mp3&#x27;:&#xA;  Metadata:&#xA;    artist          : Outwild x She Is Jules&#xA;    album_artist    : Outwild x She Is Jules&#xA;    TCM             : Outwild, She Is Jules&#xA;    album           : Golden [Single]&#xA;    title           : Golden&#xA;    genre           : Electronic&#xA;    date            : 2021&#xA;  Duration: 00:04:09.60, &#xA;start: 0.000000, bitrate: 378 kb/s&#xA;  Stream #0:0: Audio: mp3, 48000 Hz, stereo, fltp, 320 kb/s&#xA;  Stream #0:1: Video: mjpeg (Baseline), yuvj444p(pc, bt470bg/unknown/unknown), 3000x3000, 90k tbr, 90k tbn (attached pic)&#xA;    Metadata:&#xA;      comment         : Other&#xA;[mp3 @ 00000215d253f380] Estimating duration from bitrate, this may be inaccurate&#xA;Input #1, mp3, from &#x27;E:\voiceover.mp3&#x27;:&#xA;  Duration: 00:00:51.96, start: 0.000000, bitrate: 32 kb/s&#xA;  Stream #1:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s&#xA;Stream mapping:&#xA;  Stream #0:0 (mp3float) -> volume:default (graph 0)&#xA;  Stream #1:0 (mp3float) -> adelay:default (graph 0)&#xA;  amerge:default (graph 0) -> Stream #0:0 (libmp3lame)&#xA;  Stream #0:1 -> #0:1 (mjpeg (native) -> png (native))&#xA;Press [q] to stop, [?] for help&#xA;[swscaler @ 00000215d46ff480] deprecated pixel format used, make sure you did set range correctly&#xA;    Last message repeated 3 times&#xA;[Parsed_amerge_6 @ 00000215d470d2c0] No channel layout for input 1&#xA;Output #0, mp3, to &#x27;output_test.mp3&#x27;:&#xA;  Metadata:&#xA;    TPE1            : Outwild x She Is Jules&#xA;    TPE2            : Outwild x She Is Jules&#xA;    TCM             : Outwild, She Is Jules&#xA;    TALB            : Golden [Single]&#xA;    TIT2            : Golden&#xA;    TCON            : Electronic&#xA;    TDRC            : 2021&#xA;    TSSE            : Lavf60.18.100&#xA;  Stream #0:0: Audio: mp3, 48000 Hz, stereo, fltp\r\rame=    0 fps=0.0 q=0.0 size=       0kB time=-00:00:00.02 bitrate=N/A speed=N/A    \rframe=    0 fps=0.0 q=0.0 size=       0kB time=-00:00:00.02 bitrate=N/A speed=N/A    \r[out#0/mp3 @ 00000215d2537400] video:3696kB audio:2kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.011831%&#xA;frame=    1 fps=0.8 q=-0.0 Lsize=    3698kB time=00:00:00.07 bitrate=415140.5kbits/s speed=0.0601x&#xA;

    &#xA;