Recherche avancée

Médias (91)

Autres articles (29)

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

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

Sur d’autres sites (5437)

  • avutil : remove deprecated FF_API_FRAME_KEY

    19 février, par James Almer
    avutil : remove deprecated FF_API_FRAME_KEY
    

    Deprecated since 2023-05-04.

    Signed-off-by : James Almer <jamrial@gmail.com>

    • [DH] libavcodec/decode.c
    • [DH] libavcodec/encode.c
    • [DH] libavfilter/buffersrc.c
    • [DH] libavfilter/vf_coreimage.m
    • [DH] libavfilter/vsrc_gradients.c
    • [DH] libavutil/frame.c
    • [DH] libavutil/frame.h
    • [DH] libavutil/version.h
  • ffmpeg use gpu to encode mpeg4 to ts/m3u8 [closed]

    14 novembre 2024, par danielRICADO

    using ffmpeg I want to trim and transcode a mpeg4 from ts / m3u8

    &#xA;

    std::string ffmpeg_command = "ffmpeg -hwaccel drm -i " &#x2B; output_dir &#x2B; input_file &#x2B;&#xA;                         " -ss 00:00:00.00 -t 31 -c:v " &#x2B; codec &#x2B; " -b:v " &#x2B; std::to_string(bitrate) &#x2B;&#xA;                         " -vf scale=" &#x2B; std::to_string(width) &#x2B; "x" &#x2B; std::to_string(height) &#x2B;&#xA;                         " -hls_time " &#x2B; std::to_string(30) &#x2B; " -hls_list_size 0 -hls_segment_filename " &#x2B;&#xA;                         ts_file_pattern &#x2B; " -f hls " &#x2B; m3u8_file;&#xA;

    &#xA;

    I wanted to choose between codecs based on the system, if gpu is avaiable I'd like to opt to use it, right now I just check if the codec is available

    &#xA;

    bool is_h264_v4l2m2m_available() {&#xA;    std::string result = exec_command("ffmpeg -encoders 2>&amp;1");&#xA;    return result.find("h264_v4l2m2m") != std::string::npos;&#xA;}&#xA;

    &#xA;

    if it is a I wanted to move that process over to the gpu, not just use libx264. Here is the error log. Studying hard on the solution but wold super apperciate any expert advice.

    &#xA;

    other considerations are - runs in a docker container on a pi5, pibian on the host apline on in the container, container runs in privledged mode

    &#xA;

    2024-11-14 15:18:41 [INFO]: assigned codec: h264_v4l2m2m&#xA;2024-11-14 15:18:41 ffmpeg version 6.1.1 Copyright (c) 2000-2023 the FFmpeg developers&#xA;2024-11-14 15:18:41   built with gcc 13.2.1 (Alpine 13.2.1_git20240309) 20240309&#xA;2024-11-14 15:18:41   configuration: --prefix=/usr --disable-librtmp --disable-lzma --disable-static --disable-stripping --enable-avfilter --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-libmp3lame --enable-libopenmpt --enable-libopus --enable-libplacebo --enable-libpulse --enable-librav1e --enable-librist --enable-libsoxr --enable-libsrt --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-lto=auto --enable-lv2 --enable-openssl --enable-pic --enable-postproc --enable-pthreads --enable-shared --enable-vaapi --enable-vdpau --enable-version3 --enable-vulkan --optflags=-O3 --enable-libjxl --enable-libsvtav1 --enable-libvpl&#xA;2024-11-14 15:18:41   libavutil      58. 29.100 / 58. 29.100&#xA;2024-11-14 15:18:41   libavcodec     60. 31.102 / 60. 31.102&#xA;2024-11-14 15:18:41   libavformat    60. 16.100 / 60. 16.100&#xA;2024-11-14 15:18:41   libavdevice    60.  3.100 / 60.  3.100&#xA;2024-11-14 15:18:41   libavfilter     9. 12.100 /  9. 12.100&#xA;2024-11-14 15:18:41   libswscale      7.  5.100 /  7.  5.100&#xA;2024-11-14 15:18:41   libswresample   4. 12.100 /  4. 12.100&#xA;2024-11-14 15:18:41   libpostproc    57.  3.100 / 57.  3.100&#xA;2024-11-14 15:18:42 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;/app/client-data/camera-output/7ea3cbef-4da0-11ed-bdcc-baf70a43c072/1731550687270.mp4&#x27;:&#xA;2024-11-14 15:18:42   Metadata:&#xA;2024-11-14 15:18:42     major_brand     : isom&#xA;2024-11-14 15:18:42     minor_version   : 512&#xA;2024-11-14 15:18:42     compatible_brands: isomiso2avc1mp41&#xA;2024-11-14 15:18:42     encoder         : Lavf60.16.100&#xA;2024-11-14 15:18:42   Duration: 00:00:31.33, start: 0.000000, bitrate: 678 kb/s&#xA;2024-11-14 15:18:42   Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 1024x1024, 677 kb/s, 15 fps, 15 tbr, 15360 tbn (default)&#xA;2024-11-14 15:18:42     Metadata:&#xA;2024-11-14 15:18:42       handler_name    : VideoHandler&#xA;2024-11-14 15:18:42       vendor_id       : [0][0][0][0]&#xA;2024-11-14 15:18:42 [AVFormatContext @ 0x7f9254dcb4c0] Unable to choose an output format for &#x27;678000&#x27;; use a standard extension for the filename or specify the format manually.&#xA;2024-11-14 15:18:42 [out#0 @ 0x7f9254d70700] Error initializing the muxer for 678000: Invalid argument&#xA;2024-11-14 15:18:42 Error opening output file 678000.&#xA;2024-11-14 15:18:42 Error opening output files: Invalid argument&#xA;2024-11-14 15:18:42 [ERROR]: Failed to generate .ts file for: 1731550687270.mp4&#xA;

    &#xA;

  • How do I download the image with metadata in Python ? [closed]

    19 octobre 2024, par Temp Account

    I am downloading some images in Python from the Airtable API and am trying to make a slideshow with them using ffmpeg. I download the images :

    &#xA;

    urllib2.urlretrieve(img[&#x27;url&#x27;], "output/images/image_"&#x2B;str(i)&#x2B;".jpeg")&#xA;

    &#xA;

    However, when I run the following ffmpeg command

    &#xA;

    ffmpeg -framerate 4/60 -i output/images/image_%d.jpeg output/out.mp4&#xA;

    &#xA;

    I get the following error :

    &#xA;

    ffmpeg version 6.1.1-3ubuntu5 Copyright (c) 2000-2023 the FFmpeg developers&#xA;  built with gcc 13 (Ubuntu 13.2.0-23ubuntu3)&#xA;  configuration: --prefix=/usr --extra-version=3ubuntu5 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-l&#xA;inux-gnu --arch=amd64 --enable-gpl --disable-stripping --disable-omx --enable-gnutls --enable-libaom --enable-libass --enable-libbs2b --enable&#xA;-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribi&#xA;di --enable-libglslang --enable-libgme --enable-libgsm --enable-libharfbuzz --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enab&#xA;le-libopenmpt --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheo&#xA;ra --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libx&#xA;vid --enable-libzimg --enable-openal --enable-opencl --enable-opengl --disable-sndio --enable-libvpl --disable-libmfx --enable-libdc1394 --ena&#xA;ble-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-ladspa --enable-libbluray --enable-libjack --enable-libpulse --enable-librabbitmq --enable-librist --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libx264 --enable-libzmq --enable-libzvbi --enab&#xA;le-lv2 --enable-sdl2 --enable-libplacebo --enable-librav1e --enable-pocketsphinx --enable-librsvg --enable-libjxl --enable-shared&#xA;  libavutil      58. 29.100 / 58. 29.100&#xA;  libavcodec     60. 31.102 / 60. 31.102&#xA;  libavformat    60. 16.100 / 60. 16.100&#xA;  libavdevice    60.  3.100 / 60.  3.100&#xA;  libavfilter     9. 12.100 /  9. 12.100&#xA;  libswscale      7.  5.100 /  7.  5.100&#xA;  libswresample   4. 12.100 /  4. 12.100&#xA;  libpostproc    57.  3.100 / 57.  3.100&#xA;[mjpeg @ 0x593283e5e3c0] bits 150 is invalid&#xA;[mjpeg @ 0x593283e5e3c0] bits 28 is invalid&#xA;[image2 @ 0x593283e5d380] Could not find codec parameters for stream 0 (Video: mjpeg (Lossless), none(bt470bg/unknown/unknown), lossless): uns&#xA;pecified size&#xA;Consider increasing the value for the &#x27;analyzeduration&#x27; (0) and &#x27;probesize&#x27; (5000000) options&#xA;Input #0, image2, from &#x27;output/images/image_%d.jpeg&#x27;:&#xA;  Duration: 00:01:00.00, start: 0.000000, bitrate: N/A&#xA;  Stream #0:0: Video: mjpeg (Lossless), none(bt470bg/unknown/unknown), lossless, 0.07 fps, 0.07 tbr, 0.07 tbn&#xA;File &#x27;output/out.mp4&#x27; already exists. Overwrite? [y/N] y&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))&#xA;Press [q] to stop, [?] for help&#xA;[mjpeg @ 0x593283e5f180] mjpeg: unsupported coding type (cf)&#xA;[mjpeg @ 0x593283e5f180] mjpeg: unsupported coding type (c8)&#xA;[mjpeg @ 0x593283e5f180] bits 150 is invalid&#xA;[vist#0:0/mjpeg @ 0x593283e5f000] Error submitting packet to decoder: Invalid data found when processing input&#xA;[mjpeg @ 0x593283e5f180] bits 28 is invalid&#xA;[vist#0:0/mjpeg @ 0x593283e5f000] Error submitting packet to decoder: Invalid data found when processing input&#xA;[mjpeg @ 0x593283e5f180] mjpeg: unsupported coding type (ce)&#xA;[mjpeg @ 0x593283e5f180] mjpeg: unsupported coding type (c6)&#xA;[mjpeg @ 0x593283e5f180] unable to decode APP fields: Invalid data found when processing input&#xA;    Last message repeated 1 times&#xA;[vist#0:0/mjpeg @ 0x593283e5f000] Error submitting packet to decoder: Invalid data found when processing input&#xA;[mjpeg @ 0x593283e5f180] unable to decode APP fields: Invalid data found when processing input&#xA;[mjpeg @ 0x593283e5f180] invalid id 255&#xA;[vist#0:0/mjpeg @ 0x593283e5f000] Error submitting packet to decoder: Invalid data found when processing input&#xA;Cannot determine format of input stream 0:0 after EOF&#xA;Error marking filters as finished&#xA;Error while filtering: Invalid data found when processing input&#xA;[vist#0:0/mjpeg @ 0x593283e5f000] Decode error rate 1 exceeds maximum 0.666667&#xA;[out#0/mp4 @ 0x593283e603c0] Nothing was written into output file, because at least one of its streams received no packets.&#xA;frame=    0 fps=0.0 q=0.0 Lsize=       0kB time=N/A bitrate=N/A speed=N/A    &#xA;Conversion failed!&#xA;&#xA;

    &#xA;

    However, downloading the images in Chrome then creating the slideshow is successful. The images from Chrome have metadata of the filetype (JPEG), width and height. The images downloaded with Python have no metadata. How do I download that information so that my ffmpeg command will succeed ?

    &#xA;

    Thanks !

    &#xA;