Recherche avancée

Médias (91)

Autres articles (49)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • 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 (12756)

  • Video is cut after adding 2 watermarks with FFMPEG-KIT [closed]

    7 août 2023, par dfjick

    I made a FFMPEG-KIT command to add 2 PNG watermarks to the video and everything went smoothly.

    


    String ffmpegCommand = "-y -i " + videoPath +
            " -i " + watermarkImagePath +
            " -i " + userID +
            " -filter_complex " +
            "\"[0:v][1:v]overlay=x='if(lt(mod(t,10),5),10,W-w-10)':y='if(lt(mod(t,10),5),10,H-h-35)',\"" +
            "\"overlay=x='if(lt(mod(t,10),5),7,W-w-7)':y='if(lt(mod(t,10),5),165,H-h-15)'[out]\"" +
            " -map [out] -map 0:a -c:v libx264 -crf 18 -preset slow -c:a aac " + outputPath;


    


    But for videos that are longer than 20 seconds, the results don't match the original video, sometimes the videos are only <20 seconds and at random times.

    &#xA;

    I get this error, how do I fix it ?

    &#xA;

    W/ffmpeg-kit: [mov,mp4,m4a,3gp,3g2,mj2 @ 0xb400007c5c1243f0] Packet corrupt (stream = 1, dts = 366976)&#xA;W/ffmpeg-kit: [mov,mp4,m4a,3gp,3g2,mj2 @ 0xb400007c5c1243f0] .&#xA;E/ffmpeg-kit: [NULL @ 0xb400007c6c179400] Invalid NAL unit size (63547 > 20190).&#xA;E/ffmpeg-kit: [NULL @ 0xb400007c6c179400] missing picture in access unit with size 20194&#xA;W/ffmpeg-kit: /storage/emulated/0/DCIM/android_100394_20230807_162805_5465009.mp4: corrupt input packet in stream 1&#xA;E/ffmpeg-kit: [h264 @ 0xb400007c6c210750] Invalid NAL unit size (63547 > 20190).&#xA;E/ffmpeg-kit: [h264 @ 0xb400007c6c210750] Error splitting the input into NAL units.&#xA;E/ffmpeg-kit: Error while decoding stream #0:1: Invalid data found when processing input&#xA;

    &#xA;

    I've tried to use this -fflags &#x2B;discardcorrupt, but the result is still the same. The duration of the video that has been watermarked does not match the original video.

    &#xA;

  • FFMPEG-KIT - Video is cut after adding 2 watermarks

    7 août 2023, par dfjick

    I made a FFMPEG-KIT command to add 2 PNG watermarks to the video and everything went smoothly.

    &#xA;

    String ffmpegCommand = "-y -i " &#x2B; videoPath &#x2B;&#xA;            " -i " &#x2B; watermarkImagePath &#x2B;&#xA;            " -i " &#x2B; userID &#x2B;&#xA;            " -filter_complex " &#x2B;&#xA;            "\"[0:v][1:v]overlay=x=&#x27;if(lt(mod(t,10),5),10,W-w-10)&#x27;:y=&#x27;if(lt(mod(t,10),5),10,H-h-35)&#x27;,\"" &#x2B;&#xA;            "\"overlay=x=&#x27;if(lt(mod(t,10),5),7,W-w-7)&#x27;:y=&#x27;if(lt(mod(t,10),5),165,H-h-15)&#x27;[out]\"" &#x2B;&#xA;            " -map [out] -map 0:a -c:v libx264 -crf 18 -preset slow -c:a aac " &#x2B; outputPath;&#xA;

    &#xA;

    But for videos that are longer than 20 seconds, the results don't match the original video, sometimes the videos are only <20 seconds and at random times.

    &#xA;

    but i got this error, do you guys know how to fix it ?

    &#xA;

    W/ffmpeg-kit: [mov,mp4,m4a,3gp,3g2,mj2 @ 0xb400007c5c1243f0] Packet corrupt (stream = 1, dts = 366976)&#xA;W/ffmpeg-kit: [mov,mp4,m4a,3gp,3g2,mj2 @ 0xb400007c5c1243f0] .&#xA;E/ffmpeg-kit: [NULL @ 0xb400007c6c179400] Invalid NAL unit size (63547 > 20190).&#xA;E/ffmpeg-kit: [NULL @ 0xb400007c6c179400] missing picture in access unit with size 20194&#xA;W/ffmpeg-kit: /storage/emulated/0/DCIM/android_100394_20230807_162805_5465009.mp4: corrupt input packet in stream 1&#xA;E/ffmpeg-kit: [h264 @ 0xb400007c6c210750] Invalid NAL unit size (63547 > 20190).&#xA;E/ffmpeg-kit: [h264 @ 0xb400007c6c210750] Error splitting the input into NAL units.&#xA;E/ffmpeg-kit: Error while decoding stream #0:1: Invalid data found when processing input&#xA;

    &#xA;

    I've tried to use this -fflags &#x2B;discardcorrupt, but the result is still the same. the duration of the video that has been watermarked does not match the original video

    &#xA;

  • FFmpeg av_read_frame returns packets from audio stream

    1er août 2018, par yultan

    I am currently trying to learn the FFmpeg API, following this tutorial. However, I already have issues with the first lesson on video decoding. My code is basically the same as the one from the tutorial except I am using C++. My issue is that the video stream does not match the one from the packet returned by av_read_frame.

    The video stream is obtained looping on the available streams until the video stream is found.

    for(int i = 0; i &lt; pFormatCtx->nb_streams; i++) { // nb_streams == 2

       if(pFormatCtx->streams[i]->codec->codec_type==AVMEDIA_TYPE_VIDEO) {
           videoStream = i;
           break; // videoStream == 0
       }
    }

    Then when retrieving the frame data, it seams grabbing the audio channel.

    while(av_read_frame(pFormatCtx, &amp;packet) >= 0) { // read returns 0

       // Is this a packet from the video stream?
       if(packet.stream_index == videoStream) {
           //packet.stream_index == 1, which correspond to the audio stream
       }
    }

    I have not found examples online where this test is actually failing. Have I miss some way to specify the stream_index that is not in the tutorial ? Maybe the tutorial is not up to date and is doing something wrong ? If so, what is the correct way to extract the frame data ? In case that matters, I am using the latest FFmpeg 4.0.2 build, on Windows 64-bits, compiling with Visual Studio 2017.

    On videos with no sound, the two streams match and I am able to decode and display the frames correctly.