Recherche avancée

Médias (1)

Mot : - Tags -/publicité

Autres articles (50)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • 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

Sur d’autres sites (6962)

  • How to use ffmpeg on a stream input to extract frames

    21 juillet 2023, par Deepak Sharma

    I have tried piping the stream to a ffmpeg process for extracting the frames. It does process the small files and able to extract the frames successfully but for most of the files it throws error. The reference of the code I have used from this link- https://mathewsachin.github.io/blog/2017/07/28/ffmpeg-pipe-csharp.html
When I am running the below code

    


    `

    


        public static void RunFfmpeg()
    {
        
        //-framerate 20 -f rawvideo -pix_fmt rgb32 -video_size 1920x1080
        var inputArgs = "-i -";
        var outputArgs = "-ss 00:00 -t 20 -vf fps=5  $filename%03d.bmp";

        var process = new Process
        {
            StartInfo =
            {
                FileName = "ffmpeg",
                Arguments = $"{inputArgs} {outputArgs}",
                UseShellExecute = false,
                //CreateNoWindow = true,
                RedirectStandardInput = true,
                RedirectStandardOutput = true,
                WorkingDirectory = @"d:\ffmpegout"
            }
        };

        process.Start();

        var ffmpegIn = process.StandardInput.BaseStream;

        using (Stream contents = File.OpenRead("C:\\Desktop\\Videos\\B.mp4"))
        {
            contents.CopyTo(ffmpegIn);
        }

        // After you are done
        ffmpegIn.Flush();
        ffmpegIn.Close();

        // Make sure ffmpeg has finished the work
        process.WaitForExit();
    }`


    


    I am getting the below error

    


    ffmpeg version 2023-07-16-git-c541ecf0dc-full_build-www.gyan.dev Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
configuration : —enable-gpl —enable-version3 —enable-static —disable-w32threads —disable-autodetect —enable-fontconfig —enable-iconv —enable-gnutls —enable-libxml2 —enable-gmp —enable-bzlib —enable-lzma —enable-libsnappy —enable-zlib —enable-librist —enable-libsrt —enable-libssh —enable-libzmq —enable-avisynth —enable-libbluray —enable-libcaca —enable-sdl2 —enable-libaribb24 —enable-libaribcaption —enable-libdav1d —enable-libdavs2 —enable-libuavs3d —enable-libzvbi —enable-librav1e —enable-libsvtav1 —enable-libwebp —enable-libx264 —enable-libx265 —enable-libxavs2 —enable-libxvid —enable-libaom —enable-libjxl —enable-libopenjpeg —enable-libvpx —enable-mediafoundation —enable-libass —enable-frei0r —enable-libfreetype —enable-libfribidi —enable-libharfbuzz —enable-liblensfun —enable-libvidstab —enable-libvmaf —enable-libzimg —enable-amf —enable-cuda-llvm —enable-cuvid —enable-ffnvcodec —enable-nvdec —enable-nvenc —enable-d3d11va —enable-dxva2 —enable-libvpl —enable-libshaderc —enable-vulkan —enable-libplacebo —enable-opencl —enable-libcdio —enable-libgme —enable-libmodplug —enable-libopenmpt —enable-libopencore-amrwb —enable-libmp3lame —enable-libshine —enable-libtheora —enable-libtwolame —enable-libvo-amrwbenc —enable-libcodec2 —enable-libilbc —enable-libgsm —enable-libopencore-amrnb —enable-libopus —enable-libspeex —enable-libvorbis —enable-ladspa —enable-libbs2b —enable-libflite —enable-libmysofa —enable-librubberband —enable-libsoxr —enable-chromaprint
libavutil 58. 14.100 / 58. 14.100
libavcodec 60. 22.100 / 60. 22.100
libavformat 60. 10.100 / 60. 10.100
libavdevice 60. 2.101 / 60. 2.101
libavfilter 9. 8.102 / 9. 8.102
libswscale 7. 3.100 / 7. 3.100
libswresample 4. 11.100 / 4. 11.100
libpostproc 57. 2.100 / 57. 2.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000266a80179c0] Could not find codec parameters for stream 0 (Video : h264 (avc1 / 0x31637661), none(tv, bt709), 1280x720, 4023 kb/s) : unspecified pixel format
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fd :' :
Metadata :
major_brand : isom
minor_version : 512
compatible_brands : isomiso2avc1mp41
encoder : Lavf58.76.100
Duration : 00:00:21.22, start : 0.000000, bitrate : N/A
Stream #0:00x1 : Video : h264 (avc1 / 0x31637661), none(tv, bt709), 1280x720, 4023 kb/s, SAR 1:1 DAR 16:9, 29.97 fps, 29.97 tbr, 30k tbn (default)
Metadata :
handler_name : VideoHandler
vendor_id : [0][0][0][0]
Stream mapping :
Stream #0:0 -> #0:0 (h264 (native) -> bmp (native))
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000266a80179c0] stream 0, offset 0xbb3a : partial file
Cannot determine format of input stream 0:0 after EOF
Error marking filters as finished
Conversion failed !

    


    I did check the metadata of the video is present in the start of the file before the mdat box.

    


    Looking to get some help to resolve this issue.

    


  • Flutter ffmpeg kit : Invalid size error when trying to scale video

    27 juillet 2023, par veryepicdude

    I'm trying to resize a video to match instagram's video format requirements. I'm using the ffmpeg_kit_flutter_full_gpl: ^5.1.0 package to do so and this is the function I'm calling :

    


    Future<void> resizeVideo(String input, String output) async {&#xA;&#xA;  final command = &#x27;-i $input -c:v libx264 -aspect 16:9 -crf 18 -vf "scale=iw*min(1280/iw\,720/ih):ih*min(1280/iw\,720/ih),pad=1280:720:(1280-iw)/2:(720-ih)/2" -fpsmax 60 -preset ultrafast -c:a aac -b:a 128k -ac 1 -use_editlist false -ar 48000 -pix_fmt yuv420p -movflags &#x2B;faststart -t 59 -y $output&#x27;;&#xA;  final session = await FFmpegKit.execute(command);&#xA;  print("resize done with ${await session.getReturnCode()}");&#xA;}&#xA;</void>

    &#xA;

    However I get this error every time :

    &#xA;

     Stream #0:0[0x1](und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 60 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2023-07-27T15:30:28.000000Z&#xA;      handler_name    : Core Media Audio&#xA;      vendor_id       : [0][0][0][0]&#xA;  Stream #0:1[0x2](und): Video: hevc (hvc1 / 0x31637668), yuv420p(tv, smpte170m/bt709/bt709), 720x1280, 2085 kb/s, 30 fps, 30 tbr, 600 tbn (default)&#xA;    Metadata:&#xA;      creation_time   : 2023-07-27T15:30:28.000000Z&#xA;      handler_name    : Core Media Video&#xA;      vendor_id       : [0][0][0][0]&#xA;Stream mapping:&#xA;  Stream #0:1 -> #0:0 (hevc (native) -> h264 (libx264))&#xA;  Stream #0:0 -> #0:1 (aac (native) -> aac (native))&#xA;Press [q] to stop, [?] for help&#xA;[Parsed_scale_0 @ 0x2834a53f0] Invalid size &#x27;iw*min(1280/iw&#x27;&#xA;[AVFilterGraph @ 0x28278e3a0] Error initializing filter &#x27;scale&#x27;[AVFilterGraph @ 0x28278e3a0]  with args &#x27;iw*min(1280/iw&#x27;[AVFilterGraph @ 0x28278e3a0] &#xA;Error reinitializing filters!&#xA;Failed to inject frame into filter network: Invalid argument&#xA;Error while processing the decoded data for stream #0:1&#xA;[aac @ 0x105334290] Qavg: 461.613&#xA;[aac @ 0x105334290] 2 frames left in the queue on closing&#xA;

    &#xA;

    Removing the scale filter makes the function work fine, but it fails the instagram video requirements listed here.&#xA;Any help will be greatly appreciated.

    &#xA;

  • Invalid data found when processing input for mp3 file in ffmpeg

    15 juillet 2023, par Sai Chaithanya

    My custom compiled FFmpeg build is unable to read mp3 files, suddenly. Interestingly, the custom compiled FFmpeg build generated the mp3 file. For the past 1 year, it was successfully reading the file. I checked with the official FFmpeg build, and it works, so at least the file is not corrupted.

    &#xA;

    Official FFmpeg Build output :

    &#xA;

    ffmpeg version 6.0 Copyright (c) 2000-2023 the FFmpeg developers&#xA;built with gcc 11 (Ubuntu 11.3.0-1ubuntu1~22.04.1)&#xA;configuration: --arch=x86_64 --target-os=linux --disable-network --enable-small --disable-doc &#xA;               --disable-manpages --enable-static --disable-shared --disable-ffprobe &#xA;               --disable-ffplay --enable-lto --prefix=/home/greninja/Downloads/custom_build &#xA;               --extra-cflags=&#x27;-I/home/greninja/Downloads/custom_build/include -O3 -flto&#x27; &#xA;               --extra-ldflags=-L/home/greninja/Downloads/custom_build/lib&#xA;libavutil      58.  2.100 / 58.  2.100&#xA;libavcodec     60.  3.100 / 60.  3.100&#xA;libavformat    60.  3.100 / 60.  3.100&#xA;libavdevice    60.  1.100 / 60.  1.100&#xA;libavfilter     9.  3.100 /  9.  3.100&#xA;libswscale      7.  1.100 /  7.  1.100&#xA;libswresample   4. 10.100 /  4. 10.100&#xA;Input #0, mp3, from &#x27;./test.mp3&#x27;:&#xA;  Metadata:&#xA;    major_brand     : dash&#xA;    minor_version   : 0&#xA;    compatible_brands: iso6mp41&#xA;    encoder         : Lavf59.33.100&#xA;Duration: 00:03:07.09, start: 0.025057, bitrate: 192 kb/s&#xA;Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 192 kb/s&#xA;  Metadata:&#xA;    encoder         : Lavc59.46&#xA;At least one output file must be specified&#xA;

    &#xA;

    My Custom FFmpeg build output :

    &#xA;

    ffmpeg version N-108341-gb1a68127bb Copyright (c) 2000-2022 the FFmpeg developers&#xA;built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)&#xA;configuration: --arch=x86_64 --target-os=linux --disable-everything --disable-network &#xA;               --disable-autodetect --enable-small --disable-debug --disable-doc &#xA;               --disable-manpages --enable-static --disable-shared &#xA;               --enable-decoder=&#x27;aac*,ac3*,opus,vorbis,mjpeg&#x27; &#xA;               --enable-demuxer=&#x27;mov,m4v,matroska,image2&#x27; --enable-protocol=file &#xA;               --enable-muxer=&#x27;mp3,mp4,webm,null&#x27; --enable-libmp3lame &#xA;               --enable-encoder=libmp3lame --enable-filter=aresample --enable-logging &#xA;               --enable-pthreads --enable-parser=&#x27;vorbis,opus,vp9,vp8,mpegaudio,mpegvideo,mpeg4video,ac3*,aac*,mjpeg,h264&#x27; &#xA;               --disable-ffprobe --disable-ffplay --enable-lto &#xA;               --prefix=/home/wade/Downloads/custom_build &#xA;               --extra-cflags=&#x27;-I/home/wade/Downloads/custom_build/include -O3 -flto&#x27; &#xA;               --extra-ldflags=-L/home/wade/Downloads/custom_build/lib&#xA;libavutil      57. 36.102 / 57. 36.102&#xA;libavcodec     59. 46.100 / 59. 46.100&#xA;libavformat    59. 33.100 / 59. 33.100&#xA;libavdevice    59.  8.101 / 59.  8.101&#xA;libavfilter     8. 49.100 /  8. 49.100&#xA;libswscale      6.  8.112 /  6.  8.112&#xA;libswresample   4.  9.100 /  4.  9.100&#xA;./test.mp3: Invalid data found when processing input&#xA;

    &#xA;

    What configuration am I missing ?

    &#xA;