Recherche avancée

Médias (91)

Autres articles (105)

  • L’espace de configuration de MediaSPIP

    29 novembre 2010, par

    L’espace de configuration de MediaSPIP est réservé aux administrateurs. Un lien de menu "administrer" est généralement affiché en haut de la page [1].
    Il permet de configurer finement votre site.
    La navigation de cet espace de configuration est divisé en trois parties : la configuration générale du site qui permet notamment de modifier : les informations principales concernant le site (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les 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 : (...)

Sur d’autres sites (4256)

  • Making colour of MP4 video consistent in Chrome

    21 septembre 2021, par OneWorld

    I see a difference in the colour of a video between different machines using different browsers. I was wondering what the cause of the difference is ?

    


    I use FFMPEG to create the video. I sent the video to three different people with slightly different machines, and slightly different Chrome versions, to try and see where the differences are.

    


    The FFMPEG output from the video is as follows :-

    


    ffmpeg version 3.2.2-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.4.1 (Debian 5.4.1-4) 20161202
  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-5 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg
  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
  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 'red_and_yellow_uat.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.56.100
  Duration: 00:00:03.00, start: 0.000000, bitrate: 84 kb/s
    Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(tv, unknown/bt709/bt709), 1080x1080, 81 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
    Metadata:
      handler_name    : VideoHandler


    


    From the same UAT rendered Video, with screenshots taken in Chrome from person 1, person 2, person 3, and person 4, and using GIMP colour picker on my machine from the screenshots, the results for red, and yellow are as follows.

    


    Person 1:- #A83833  and  #FFCB2E  Chrome Version 92.0.4515.131 (Official Build) (64-bit)
Person 2:- #AB3334  and  #FFCA38  Chrome Version 92.0.4515.107


    


    (Note : these colours Match / are very close to the original).

    


    Both these machines above are 64 bit Ubuntu machines, using Ubuntu 18.04.5 LTS
We both use the gnome screenshot tool in Ubuntu to take the screenshot, which creates an 8bit PNG.

    


    Person 3:-    #B14039  and  #FED303  Chrome Version 93.0.4577.63 (Official Build) (x86_64)
Person 4:-    #B2403A  and  #FFD201  Chrome Version 92.0.4515.159 (Official Build) (x86_64)


    


    Mac screenshots are taken using cmd shift 4, and generate an 8bit PNG file.

    


    Person 3 Machine Spec :-
Machine :- Macbook Pro (2019)
OS : macOS Big Sur Version 11.5.2
Processor :- 2.6Ghz Intel Core i7 processor. 32bit architecture (typing arch in her tty terminal returns i386).
Graphics :- Intel UHD Graphics 630 1536

    


    Person 4 Machine Spec :-
Machine :- Macbook Pro (Retina, 2015)
OS :- MacOS Mojave, Version 10.14.6
Processor :- 2.5GHz, Intel Core i7
Graphics :- AMD Radeon R9, M370X 2 GB Intel Iris Pro 1536 MB

    


    Person 1 screenshot

    


    enter image description here

    


    Person 2 screenshot

    


    enter image description here

    


    Person 3 screenshot

    


    enter image description here

    


    Person 4 screenshot

    


    enter image description here

    


    Any suggestions anyone has to make these colours consistent would be much appreciated. Would love to know why it happens also ? If anyone can explain ?

    


  • Failed Concatenate after segmentation with time_timestamps 1

    30 juillet 2019, par user2190197

    I’m trying strip video file to segments, and concatenate some parts :
    code for strip video :

    -y -i $dirs[input] -c copy -map 0 -segment_time 0.001 -f segment -reset_timestamps 1 $dirs[process_dir]%d.mp4

    Concat :

    -y -safe 0 -f concat -i $temp_file -c copy \"$dirs[output]\"

    Where $temp_file is correct .txt file ;

    Sometimes ffmpeg ruins final video length. There’s log :

    ffmpeg version 3.3.4-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 6.4.0 (Debian 6.4.0-4) 20170820
     configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libfribidi --enable-libass --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg
     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
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x3fa57a0] Auto-inserting h264_mp4toannexb bitstream filter
    Input #0, concat, from '/var/www/vhost.d/ffmpeg/htdocs/output_videos/0/227/2019-07-30-09-29-36.txt':
     Duration: N/A, start: -0.046440, bitrate: 1822 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1370x720 [SAR 2056:2055 DAR 257:135], 1757 kb/s, 29.95 fps, 29.95 tbr, 19168 tbn, 59.90 tbc
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 64 kb/s
       Metadata:
         handler_name    : SoundHandler
    Output #0, mp4, to '/var/www/vhost.d/ffmpeg/htdocs/output_videos/0/227/227_45.mp4':
     Metadata:
       encoder         : Lavf57.71.100
       Stream #0:0(und): Video: h264 (High) ([33][0][0][0] / 0x0021), yuv420p, 1370x720 [SAR 2056:2055 DAR 257:135], q=2-31, 1757 kb/s, 29.95 fps, 29.95 tbr, 19168 tbn, 19168 tbc
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 64 kb/s
       Metadata:
         handler_name    : SoundHandler
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
     Stream #0:1 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x3fa57a0] Auto-inserting h264_mp4toannexb bitstream filter
       Last message repeated 19 times
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x3fae700] Auto-inserting h264_mp4toannexb bitstream filter
       Last message repeated 2 times
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x3fa57a0] Auto-inserting h264_mp4toannexb bitstream filter
       Last message repeated 15 times
    [mp4 @ 0x3fe61a0] Non-monotonous DTS in output stream 0:0; previous: 2156122, current: 2156089; changing to 2156123. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3fe61a0] Non-monotonous DTS in output stream 0:1; previous: 4961225, current: 4960677; changing to 4961226. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3fe61a0] Application provided duration: 189408058806 is invalid
    av_interleaved_write_frame(): Invalid argument
    frame= 3364 fps=0.0 q=-1.0 Lsize=   26195kB time=00:01:52.51 bitrate=1907.2kbits/s speed= 237x
    video:25192kB audio:884kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.457517%
    Conversion failed!

    If i remove reset_timestamps 1, video duration would be correct, but the video will have bugs, for example, some parts will slow down

  • Convert mp4/mov/... to mp4 with fluent-ffmpeg

    13 octobre 2023, par Sam Leurs

    I have a lambda function which reads a video from s3, converts it with fluent-ffmpeg and streams the video back to (another bucket in) s3.

    


    This is the code so far :

    


        ffmpeg()
        .input(readstream.Body)
        .format('mp4')
        .addOutputOption("-preset veryfast")
        .addOutputOption("-movflags frag_keyframe+empty_moov")
        .addOutputOption("-crf 28")
        .output(writestream, { end: true })
        .on('error', (err, stdout, stderr) => {
            console.log(err);
            console.log('Stdout: %o', stdout);
            console.log('Stderr: %o', stderr);
        })
        .run();


    


    With an input mp4 file, this code works, but with a mov-file it fails. I get the following error :

    


    Error: ffmpeg exited with code 1: Error demuxing input file 0: Invalid data found when processing input&#xA;pipe:0: Invalid data found when processing input&#xA;Cannot determine format of input stream 0:0 after EOF&#xA;Error marking filters as finished&#xA;Conversion failed!&#xA;&#xA;    at ChildProcess.<anonymous> (/opt/nodejs/node_modules/fluent-ffmpeg/lib/processor.js:182:22)&#xA;    at ChildProcess.emit (node:events:514:28)&#xA;    at ChildProcess._handle.onexit (node:internal/child_process:291:12)&#xA;2023-10-13T20:10:01.978Z    32c55766-476f-41e9-873a-038341f5630a    INFO    Stdout: &#x27;&#x27;&#xA;2023-10-13T20:10:01.978Z    32c55766-476f-41e9-873a-038341f5630a    INFO    Stderr: &#x27;ffmpeg version 6.0-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2023 the FFmpeg developers\n&#x27; &#x2B;&#xA;  &#x27;  built with gcc 8 (Debian 8.3.0-6)\n&#x27; &#x2B;&#xA;  &#x27;  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg\n&#x27; &#x2B;&#xA;  &#x27;  libavutil      58.  2.100 / 58.  2.100\n&#x27; &#x2B;&#xA;  &#x27;  libavcodec     60.  3.100 / 60.  3.100\n&#x27; &#x2B;&#xA;  &#x27;  libavformat    60.  3.100 / 60.  3.100\n&#x27; &#x2B;&#xA;  &#x27;  libavdevice    60.  1.100 / 60.  1.100\n&#x27; &#x2B;&#xA;  &#x27;  libavfilter     9.  3.100 /  9.  3.100\n&#x27; &#x2B;&#xA;  &#x27;  libswscale      7.  1.100 /  7.  1.100\n&#x27; &#x2B;&#xA;  &#x27;  libswresample   4. 10.100 /  4. 10.100\n&#x27; &#x2B;&#xA;  &#x27;  libpostproc    57.  1.100 / 57.  1.100\n&#x27; &#x2B;&#xA;  &#x27;[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5f71b00] stream 0, offset 0x24: partial file\n&#x27; &#x2B;&#xA;  &#x27;[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5f71b00] Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none, 1920x1080, 447 kb/s): unspecified pixel format\n&#x27; &#x2B;&#xA;  "Consider increasing the value for the &#x27;analyzeduration&#x27; (0) and &#x27;probesize&#x27; (5000000) options\n" &#x2B;&#xA;  "Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;pipe:0&#x27;:\n" &#x2B;&#xA;  &#x27;  Metadata:\n&#x27; &#x2B;&#xA;  &#x27;    major_brand     : qt  \n&#x27; &#x2B;&#xA;  &#x27;    minor_version   : 512\n&#x27; &#x2B;&#xA;  &#x27;    compatible_brands: qt  \n&#x27; &#x2B;&#xA;  &#x27;    encoder         : Lavf57.19.100\n&#x27; &#x2B;&#xA;  &#x27;  Duration: 00:00:30.53, start: 0.000000, bitrate: N/A\n&#x27; &#x2B;&#xA;  &#x27;  Stream #0:0[0x1](eng): Video: h264 (avc1 / 0x31637661), none, 1920x1080, 447 kb/s, 30 fps, 30 tbr, 15360 tbn (default)\n&#x27; &#x2B;&#xA;  &#x27;    Metadata:\n&#x27; &#x2B;&#xA;  &#x27;      handler_name    : VideoHandler\n&#x27; &#x2B;&#xA;  &#x27;      vendor_id       : FFMP\n&#x27; &#x2B;&#xA;  &#x27;      encoder         : Lavc57.16.101 libx264\n&#x27; &#x2B;&#xA;  &#x27;  Stream #0:1[0x2](eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 139 kb/s (default)\n&#x27; &#x2B;&#xA;  &#x27;    Metadata:\n&#x27; &#x2B;&#xA;  &#x27;      handler_name    : SoundHandler\n&#x27; &#x2B;&#xA;  &#x27;      vendor_id       : [0][0][0][0]\n&#x27; &#x2B;&#xA;  &#x27;Stream mapping:\n&#x27; &#x2B;&#xA;  &#x27;  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))\n&#x27; &#x2B;&#xA;  &#x27;  Stream #0:1 -> #0:1 (aac (native) -> aac (native))\n&#x27; &#x2B;&#xA;  &#x27;[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5f71b00] stream 0, offset 0x24: partial file\n&#x27; &#x2B;&#xA;  &#x27;Error demuxing input file 0: Invalid data found when processing input\n&#x27; &#x2B;&#xA;  &#x27;pipe:0: Invalid data found when processing input\n&#x27; &#x2B;&#xA;  &#x27;Cannot determine format of input stream 0:0 after EOF\n&#x27; &#x2B;&#xA;  &#x27;Error marking filters as finished\n&#x27; &#x2B;&#xA;  &#x27;Conversion failed!\n&#x27;&#xA;</anonymous>

    &#xA;

    Is it possible to convert multiple filetypes with one fluent-ffmpeg chain. If not, can someone help me to make a chain for mov ?

    &#xA;