Recherche avancée

Médias (0)

Mot : - Tags -/page unique

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (80)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

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

Sur d’autres sites (4273)

  • ffmpeg : Unrecognized option 'alpha_quality'

    16 avril 2024, par László Monda

    I want to make transparent videos work in Safari, which doesn't support WebM for this purpose but only H265 with alpha transparency.

    &#xA;

    According to this post, I used Shutter Encoder, but only some of its versions work for this purpose on Mac.

    &#xA;

    Instead of using Shutter Encoder on Mac, I want to use ffmpeg on my Linux PC. Shutter Encoder uses the following command in the background :

    &#xA;

    ffmpeg -threads 0 -hwaccel none -i input.mov -c:v hevc_videotoolbox -alpha_quality 1 -b:v 1000k -profile:v main -level 5.2 -map v:0 -an -pix_fmt yuva420p -sws_flags bicubic -tag:v hvc1 -metadata creation_time=2024-04-14T14:53:08.734684Z -y output.mp4

    &#xA;

    which yields the following output on my PC :

    &#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;Unrecognized option &#x27;alpha_quality&#x27;.&#xA;Error splitting the argument list: Option not found&#xA;

    &#xA;

    When googling for "Unrecognized option 'alpha_quality'.", there are no results, which I find very odd.

    &#xA;

    What's going on, and how can I make ffmpeg work for this purpose without Shutter Encoder ?

    &#xA;

  • HLS. FFmpeg : error when loading first segment [closed]

    30 avril 2024, par rus_99_pk

    I'm trying to download a streaming video using ffmpeg. There is a file in the format *.m3u8. BUT, if everything was so simple, I would not have come here.

    &#xA;

    There are a number of nuances :

    &#xA;

      &#xA;
    1. It cannot be downloaded by specifying a link to the file
    2. &#xA;

    3. If you upload the file and look at its contents, there will be : #EXT-X-KEY:METHOD=AES-128,URI="[KEY],IV=[IV]
    4. &#xA;

    &#xA;

    With a URI, the task is easy to solve ; just specify the value list.m3u8.

    &#xA;

    I end up getting :

    &#xA;

    Error when loading first segment &#x27;https://cdnv-m12.boomstream.com/vod/hash:21596def3216ed982660d609751b8078/id:35105.29443.1039983.85853232.150106.hls/time:0/data:eyJ2ZXJzaW9uIjoiMS4yLjk3IiwidXNlX2RpcmVjdF9saW5rcyI6InllcyIsImlzX2VuY3J5cHQiOiJ5ZXMifQ==/m61/2024/04/27/1Q0idCxb.mp4/media-1.ts&#x27;&#xA;

    &#xA;

    But with IV it’s more difficult, because file processing is performed on the server side. Please help.

    &#xA;

    I tried to get JS with similar variable names and monitor network traffic using Wireshark, in the hope of catching a response from the server with IV.

    &#xA;

    But it didn't help me.

    &#xA;

    My script for download :

    &#xA;

    #!/bin/bash&#xA;clear&#xA;&#xA;link="/home/user/Download/chunklist.m3u8"&#xA;filename="testfile"&#xA;&#xA;ffmpeg \&#xA;-headers $&#x27;User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0\r\nAccept: */*\r\nAccept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3\r\nAccept-Encoding: gzip, deflate, br\r\nOrigin: https://example.com\r\nConn>&#xA;-protocol_whitelist "file,http,https,tcp,tls,crypto" \&#xA;-allowed_extensions ALL \&#xA;-f hls \&#xA;-i "$link" \&#xA;-map p:2 \&#xA;-bsf:a aac_adtstoasc  -vcodec copy  -c copy -crf 50 /tmp/$filename.mp4 -v trace&#xA;

    &#xA;

    Trace log

    &#xA;

  • ffmpeg output with label 'v' does not exist in any defined filtler graph

    15 avril 2024, par David Royale

    Been trying to make this Python code work but it fails up until rendering the final part :

    &#xA;

    import subprocess&#xA;import re&#xA;import os&#xA;&#xA;def detect_idle_sections(video_path):&#xA;    command = [&#x27;ffmpeg&#x27;, &#x27;-i&#x27;, video_path, &#x27;-vf&#x27;, &#x27;select=\&#x27;gt(scene,0.1)\&#x27;&#x27;, &#x27;-vsync&#x27;, &#x27;vfr&#x27;, &#x27;-f&#x27;, &#x27;null&#x27;, &#x27;-&#x27;]&#xA;    output = subprocess.check_output(command, stderr=subprocess.STDOUT).decode(&#x27;utf-8&#x27;)&#xA;    &#xA;    idle_sections = []&#xA;    duration = 0.0&#xA;    for line in output.split(&#x27;\n&#x27;):&#xA;        match = re.search(r&#x27;scene:(\d&#x2B;)&#x27;, line)&#xA;        if match:&#xA;            scene = int(match.group(1))&#xA;            if scene == 0:&#xA;                duration &#x2B;= 1.0 / 30  # Assuming 30 fps&#xA;            else:&#xA;                if duration > 0:&#xA;                    idle_sections.append((duration, duration - (1.0 / 30)))  # Duration and start time&#xA;                    duration = 0.0&#xA;    &#xA;    return idle_sections&#xA;&#xA;def cut_idle_sections(video_path, idle_sections, output_path, total_duration):&#xA;    print("starting to cut things")&#xA;    filters = []&#xA;    start_time = 0.0&#xA;    for duration, _ in idle_sections:&#xA;        filters.append(f&#x27;[0:v]trim=start={start_time}:end={start_time &#x2B; duration},setpts=PTS-STARTPTS[v{len(filters)}]&#x27;)&#xA;        start_time &#x2B;= duration&#xA;    &#xA;    if start_time &lt; total_duration:&#xA;        filters.append(f&#x27;[0:v]trim=start={start_time},setpts=PTS-STARTPTS[v{len(filters)}]&#x27;)&#xA;&#xA;    filter_str = &#x27;;&#x27;.join(filters)&#xA;    print("finished chopping")&#xA;    command = [&#x27;ffmpeg&#x27;, &#x27;-i&#x27;, video_path, &#x27;-filter_complex&#x27;, filter_str, &#x27;-map&#x27;, &#x27;[v]&#x27;, output_path]&#xA;    subprocess.call(command)&#xA;&#xA;def get_total_duration(video_path):&#xA;    print("prior getting time")&#xA;    command = [&#x27;ffprobe&#x27;, &#x27;-v&#x27;, &#x27;error&#x27;, &#x27;-show_entries&#x27;, &#x27;format=duration&#x27;, &#x27;-of&#x27;, &#x27;default=noprint_wrappers=1:nokey=1&#x27;, video_path]&#xA;    output = subprocess.check_output(command).decode(&#x27;utf-8&#x27;).strip()&#xA;    print("after getting time")&#xA;    return float(output)&#xA;&#xA;input_file = r"C:\Users\D\Videos\2024-04-15 08-42-53.mkv"&#xA;output_file = r"C:\Users\D\Videos\output_video.mp4"&#xA;&#xA;# Get full paths&#xA;input_path = os.path.abspath(input_file)&#xA;output_path = os.path.abspath(output_file)&#xA;&#xA;total_duration = get_total_duration(input_path)&#xA;idle_sections = detect_idle_sections(input_path)&#xA;cut_idle_sections(input_path, idle_sections, output_path, total_duration)&#xA;

    &#xA;

    The error I am getting is :

    &#xA;

    [out#0/mp4 @ 000001af60f9d3c0] Output with label &#x27;v&#x27; does not exist in any defined filter graph, or was already used elsewhere.&#xA;Error opening output file C:\Users\D_era\Videos\output_video.mp4.&#xA;Error opening output files: Invalid argument&#xA;

    &#xA;

    The code is intended to cut "iddle" frames where frame a = frame b. I want to point out that I don't really care about audio, so it's just comparing if frames "A" through "H" are the same and keeping a and continuing with the rest of the video.

    &#xA;

    Putting some comments to determine which part was successful and which broke, I found that the line failig is this :

    &#xA;

    command = [&#x27;ffmpeg&#x27;, &#x27;-i&#x27;, video_path, &#x27;-filter_complex&#x27;, filter_str, &#x27;-map&#x27;, &#x27;[v]&#x27;, output_path]&#xA;

    &#xA;

    and apparently is the -map part.

    &#xA;