Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (51)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • MediaSPIP Init et Diogène : types de publications de MediaSPIP

    11 novembre 2010, par

    À l’installation d’un site MediaSPIP, le plugin MediaSPIP Init réalise certaines opérations dont la principale consiste à créer quatre rubriques principales dans le site et de créer cinq templates de formulaire pour Diogène.
    Ces quatre rubriques principales (aussi appelées secteurs) sont : Medias ; Sites ; Editos ; Actualités ;
    Pour chacune de ces rubriques est créé un template de formulaire spécifique éponyme. Pour la rubrique "Medias" un second template "catégorie" est créé permettant d’ajouter (...)

  • Changer son thème graphique

    22 février 2011, par

    Le thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
    Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
    Modifier le thème graphique utilisé
    Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
    Il suffit ensuite de se rendre dans l’espace de configuration du (...)

Sur d’autres sites (5444)

  • cocoa pods minimum version error ffmpeg kit flutter

    4 février 2024, par Rubén

    So, I recently started working on Mac and I wanted to build my Flutter App, so I installed CocoaPods and started searching for a solution, but I couldn't find any that solved my problem, any help appreciated.

    


    Tried to manage my dependencies version on my pubspec.yaml but didn't solve my problem.

    


    My final thought is to replace the ffmpeg dependency version on the pod file (because its being set automatically) but I don't know how to do it.

    


    This is my log output :

    


    CocoaPods&#x27; output:&#xA;↳&#xA;      Preparing&#xA;&#xA;    Analyzing dependencies&#xA;&#xA;    Inspecting targets to integrate&#xA;      Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)&#xA;      Using `ARCHS` setting to build architectures of target `Pods-RunnerTests`: (``)&#xA;&#xA;    Fetching external sources&#xA;    -> Fetching podspec for `FlutterMacOS` from `Flutter/ephemeral`&#xA;    -> Fetching podspec for `ffmpeg_kit_flutter` from `Flutter/ephemeral/.symlinks/plugins/ffmpeg_kit_flutter/macos`&#xA;    -> Fetching podspec for `path_provider_foundation` from `Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin`&#xA;&#xA;    Resolving dependencies of `Podfile`&#xA;      CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only performed in repo update&#xA;      CDN: trunk Relative path: all_pods_versions_c_0_4.txt exists! Returning local because checking is only performed in repo update&#xA;      CDN: trunk Relative path: Specs/c/0/4/Flutter/3.13.0/Flutter.podspec.json exists! Returning local because checking is only performed in repo update&#xA;    [!] CocoaPods could not find compatible versions for pod "ffmpeg_kit_flutter/https":&#xA;      In Podfile:&#xA;        ffmpeg_kit_flutter (from `Flutter/ephemeral/.symlinks/plugins/ffmpeg_kit_flutter/macos`) was resolved to 6.0.3, which depends on&#xA;          ffmpeg_kit_flutter/https (= 6.0.3)&#xA;&#xA;    Specs satisfying the `ffmpeg_kit_flutter/https (= 6.0.3)` dependency were found, but they required a higher minimum deployment target.&#xA;&#xA;    /opt/homebrew/Cellar/cocoapods/1.14.3_1/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:317:in `raise_error_unless_state&#x27;&#xA;    /opt/homebrew/Cellar/cocoapods/1.14.3_1/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:299:in `block in unwind_for_conflict&#x27;&#xA;    :90:in `tap&#x27;&#xA;    /opt/homebrew/Cellar/cocoapods/1.14.3_1/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:297:in `unwind_for_conflict&#x27;&#xA;    /opt/homebrew/Cellar/cocoapods/1.14.3_1/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:682:in `attempt_to_activate&#x27;&#xA;    /opt/homebrew/Cellar/cocoapods/1.14.3_1/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:254:in `process_topmost_state&#x27;&#xA;    /opt/homebrew/Cellar/cocoapods/1.14.3_1/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:182:in `resolve&#x27;&#xA;    /opt/homebrew/Cellar/cocoapods/1.14.3_1/libexec/gems/molinillo-0.8.0/lib/molinillo/resolver.rb:43:in `resolve&#x27;&#xA;    /opt/homebrew/Cellar/cocoapods/1.14.3_1/libexec/gems/cocoapods-1.14.3/lib/cocoapods/resolver.rb:94:in `resolve&#x27;&#xA;    /opt/homebrew/Cellar/cocoapods/1.14.3_1/libexec/gems/cocoapods-1.14.3/lib/cocoapods/installer/analyzer.rb:1082:in `block in resolve_dependencies&#x27;&#xA;    /opt/homebrew/Cellar/cocoapods/1.14.3_1/libexec/gems/cocoapods-1.14.3/lib/cocoapods/user_interface.rb:64:in `section&#x27;&#xA;    /opt/homebrew/Cellar/cocoapods/1.14.3_1/libexec/gems/cocoapods-1.14.3/lib/cocoapods/installer/analyzer.rb:1080:in `resolve_dependencies&#x27;&#xA;    /opt/homebrew/Cellar/cocoapods/1.14.3_1/libexec/gems/cocoapods-1.14.3/lib/cocoapods/installer/analyzer.rb:125:in `analyze&#x27;&#xA;    /opt/homebrew/Cellar/cocoapods/1.14.3_1/libexec/gems/cocoapods-1.14.3/lib/cocoapods/installer.rb:422:in `analyze&#x27;&#xA;    /opt/homebrew/Cellar/cocoapods/1.14.3_1/libexec/gems/cocoapods-1.14.3/lib/cocoapods/installer.rb:244:in `block in resolve_dependencies&#x27;&#xA;    /opt/homebrew/Cellar/cocoapods/1.14.3_1/libexec/gems/cocoapods-1.14.3/lib/cocoapods/user_interface.rb:64:in `section&#x27;&#xA;    /opt/homebrew/Cellar/cocoapods/1.14.3_1/libexec/gems/cocoapods-1.14.3/lib/cocoapods/installer.rb:243:in `resolve_dependencies&#x27;&#xA;    /opt/homebrew/Cellar/cocoapods/1.14.3_1/libexec/gems/cocoapods-1.14.3/lib/cocoapods/installer.rb:162:in `install!&#x27;&#xA;    /opt/homebrew/Cellar/cocoapods/1.14.3_1/libexec/gems/cocoapods-1.14.3/lib/cocoapods/command/install.rb:52:in `run&#x27;&#xA;    /opt/homebrew/Cellar/cocoapods/1.14.3_1/libexec/gems/claide-1.1.0/lib/claide/command.rb:334:in `run&#x27;&#xA;    /opt/homebrew/Cellar/cocoapods/1.14.3_1/libexec/gems/cocoapods-1.14.3/lib/cocoapods/command.rb:52:in `run&#x27;&#xA;    /opt/homebrew/Cellar/cocoapods/1.14.3_1/libexec/gems/cocoapods-1.14.3/bin/pod:55:in `<top>&#x27;&#xA;    /opt/homebrew/Cellar/cocoapods/1.14.3_1/libexec/bin/pod:25:in `load&#x27;&#xA;    /opt/homebrew/Cellar/cocoapods/1.14.3_1/libexec/bin/pod:25:in `<main>&#x27;&#xA;&#xA;Exception: Error running pod install&#xA;</main></top>

    &#xA;

    This is My Mac Podfile :

    &#xA;

    ENV[&#x27;COCOAPODS_DISABLE_STATS&#x27;] = &#x27;true&#x27;&#xA;&#xA;project &#x27;Runner&#x27;, {&#xA;  &#x27;Debug&#x27; => :debug,&#xA;  &#x27;Profile&#x27; => :release,&#xA;  &#x27;Release&#x27; => :release,&#xA;}&#xA;&#xA;def flutter_root&#xA;  generated_xcode_build_settings_path = File.expand_path(File.join(&#x27;..&#x27;, &#x27;Flutter&#x27;, &#x27;Generated.xcconfig&#x27;), __FILE__)&#xA;  unless File.exist?(generated_xcode_build_settings_path)&#xA;    raise "#{generated_xcode_build_settings_path} must exist. If you&#x27;re running pod install manually, make sure flutter pub get is executed first"&#xA;  end&#xA;&#xA;  File.foreach(generated_xcode_build_settings_path) do |line|&#xA;    matches = line.match(/FLUTTER_ROOT\=(.*)/)&#xA;    return matches[1].strip if matches&#xA;  end&#xA;  raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"&#xA;end&#xA;&#xA;require File.expand_path(File.join(&#x27;packages&#x27;, &#x27;flutter_tools&#x27;, &#x27;bin&#x27;, &#x27;podhelper&#x27;), flutter_root)&#xA;&#xA;flutter_ios_podfile_setup&#xA;&#xA;target &#x27;Runner&#x27; do&#xA;  use_frameworks!&#xA;  use_modular_headers!&#xA;&#xA;  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))&#xA;  target &#x27;RunnerTests&#x27; do&#xA;    inherit! :search_paths&#xA;  end&#xA;end&#xA;&#xA;post_install do |installer|&#xA;  installer.pods_project.targets.each do |target|&#xA;    flutter_additional_ios_build_settings(target)&#xA;  end&#xA;end&#xA;

    &#xA;

  • python [WinError 2] the System Cannot Find the File Specified

    15 août 2024, par user26831166

    Code cant create a certain file&#xA;The thing is code isn't mine a took it from a friend and my friend get it from another person&#xA;and this 2 person can run code without any problem&#xA;but i have.

    &#xA;

    import os&#xA;import random&#xA;import shutil&#xA;import subprocess&#xA;&#xA;# Путь к папке с видео&#xA;video_folder = r&#x27;D:\bots\ttvidads\VID\Videorez&#x27;&#xA;&#xA;# Путь к папке для сохранения результатов&#xA;output_folder = r&#x27;D:\bots\ttvidads\VID\ZAGOTOVKI\Videopod1&#x27;&#xA;&#xA;# Очищаем содержимое конечной папки перед сохранением&#xA;for file in os.listdir(output_folder):&#xA;    file_path = os.path.join(output_folder, file)&#xA;    try:&#xA;        if os.path.isfile(file_path):&#xA;            os.unlink(file_path)&#xA;    except Exception as e:&#xA;        print(f"Failed to delete {file_path}. Reason: {e}")&#xA;&#xA;# Получаем список видеофайлов&#xA;video_files = [os.path.join(video_folder, file) for file in os.listdir(video_folder) if file.endswith((&#x27;.mp4&#x27;, &#x27;.avi&#x27;))]&#xA;&#xA;# Выбираем случайное видео&#xA;random_video = random.choice(video_files)&#xA;&#xA;# Получаем длительность видео в секундах&#xA;video_duration_command = f&#x27;ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 "{random_video}"&#x27;&#xA;video_duration_process = subprocess.Popen(video_duration_command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)&#xA;video_duration_output, _ = video_duration_process.communicate()&#xA;video_duration = float(video_duration_output)&#xA;&#xA;# Выбираем случайное начальное время для вырезания&#xA;random_start = random.randrange(0, int(video_duration) - 19, 8)&#xA;&#xA;# Получаем ширину и высоту исходного видео&#xA;video_info_command = f&#x27;ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=s=x:p=0 "{random_video}"&#x27;&#xA;video_info_process = subprocess.Popen(video_info_command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)&#xA;video_info_output, _ = video_info_process.communicate()&#xA;video_width, video_height = map(int, video_info_output.strip().split(b&#x27;x&#x27;))&#xA;&#xA;# Вычисляем новые координаты x1 и x2 для обрезки&#xA;max_x1 = video_width - int(video_height * 9 / 16)&#xA;random_x1 = random.randint(0, max_x1)&#xA;random_x2 = random_x1 &#x2B; int(video_height * 9 / 16)&#xA;&#xA;# Формируем команду для FFmpeg для выборки случайного отрезка видео с соотношением 9:16&#xA;ffmpeg_command = f&#x27;ffmpeg -hwaccel cuda -ss {random_start} -i "{random_video}" -t 19 -vf "crop={random_x2-random_x1}:{video_height}:{random_x1}:0" -c:v h264_nvenc -preset default -an -c:a aac -b:a 128k "{output_folder}\\temp.mp4"&#x27;&#xA;&#xA;# Выполняем команду с помощью subprocess&#xA;subprocess.run(ffmpeg_command, shell=True)&#xA;&#xA;# Изменяем яркость, контрастность и размываем видео&#xA;brightness_factor = random.uniform(-0.18, -0.12)  # Случайный коэффициент яркости&#xA;contrast_factor = random.uniform(0.95, 1.05)  # Случайный коэффициент контрастности&#xA;blur_factor = random.uniform(4, 5)  # Случайный коэффициент размытия&#xA;&#xA;# Формируем команду для FFmpeg для изменения яркости, контрастности и размытия видео&#xA;ffmpeg_modify_command = f&#x27;ffmpeg -hwaccel cuda -i "{output_folder}\\temp.mp4" -vf "eq=brightness={brightness_factor}:contrast={contrast_factor},boxblur={blur_factor}:{blur_factor}" -c:v h264_nvenc -preset default -an -c:a aac -b:a 128k "{output_folder}\\temp_modify.mp4"&#x27;&#xA;&#xA;# Выполняем команду с помощью subprocess&#xA;subprocess.run(ffmpeg_modify_command, shell=True)&#xA;&#xA;# Растягиваем видео до нужного разрешения (1080x1920)&#xA;ffmpeg_stretch_command = f&#x27;ffmpeg -hwaccel cuda -i "{output_folder}\\temp_modify.mp4" -vf "scale=1080:1920" -c:v h264_nvenc -preset default -an -c:a aac -b:a 128k -r 30 "{output_folder}\\final_output.mp4"&#x27;&#xA;&#xA;# Выполняем команду с помощью subprocess&#xA;subprocess.run(ffmpeg_stretch_command, shell=True)&#xA;&#xA;# Удаляем временные файлы&#xA;os.remove(os.path.join(output_folder, &#x27;temp.mp4&#x27;))&#xA;os.remove(os.path.join(output_folder, &#x27;temp_modify.mp4&#x27;))&#xA;&#xA;print("Видеофайл успешно обработан и сохранен.")&#xA;

    &#xA;

    Error i got after run the code

    &#xA;

    = RESTART: D:\Bots\2vidpod.py&#xA;Traceback (most recent call last):&#xA;  File "D:\Bots\2vidpod.py", line 71, in <module>&#xA;    os.remove(os.path.join(output_folder, &#x27;temp.mp4&#x27;))&#xA;FileNotFoundError: [WinError 2] Не удается найти указанный файл: &#x27;D:\\bots\\ttvidads\\VID\\ZAGOTOVKI\\Videopod1\\temp.mp4&#x27;&#xA;</module>

    &#xA;

    so things i checked is&#xA;path is right&#xA;programs is installed FFMPEG and PYTHON all additional libraries downloaded&#xA;i pretty sure error caused by regular path and i wanna know if absolute path can do the thing

    &#xA;

  • Need help to compile FFmpeg with MSVC tools

    30 janvier 2018, par Antwane

    I need to compile FFmpeg on Windows 10 using MSVC 2017 compiler. I followed some guides from :

    I installed current stable version of MSYS, fixed link.exe and use of PATH environment, installed make diffutils gcc pkg-config and downloaded c99-to-c89, nasm, and inttypes.h

    I think my environment is now correctly set up, I ran MSYS shell from MSVC Command prompt and have everything reachable.

    $ which cl
    /c/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.12.25827/bin/HostX64/x64/cl

    $ which link
    /c/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.12.25827/bin/HostX64/x64/link

    $ which yasm
    /home/Antoine/bin/yasm

    $ which c99conv
    /home/Antoine/bin/c99conv

    $ which c99wrap
    /home/Antoine/bin/c99wrap

    Now I configure the build

    $ ./configure --toolchain=msvc
    install prefix            /usr/local
    source path               .
    C compiler                cl
    C library                 msvcrt
    ARCH                      x86 (generic)
    big-endian                no
    runtime cpu detection     yes
    standalone assembly       yes
    x86 assembler             nasm
    MMX enabled               yes
    MMXEXT enabled            yes
    3DNow! enabled            yes
    3DNow! extended enabled   yes
    SSE enabled               yes
    SSSE3 enabled             yes
    AESNI enabled             yes
    AVX enabled               yes
    AVX2 enabled              yes
    XOP enabled               yes
    FMA3 enabled              yes
    FMA4 enabled              yes
    i686 features enabled     yes
    CMOV is fast              yes
    EBX available             no
    EBP available             no
    debug symbols             yes
    strip symbols             no
    optimize for size         no
    optimizations             yes
    static                    yes
    shared                    no
    postprocessing support    no
    network support           yes
    threading support         w32threads
    safe bitstream reader     yes
    texi2html enabled         no
    perl enabled              no
    pod2man enabled           no
    makeinfo enabled          no
    makeinfo supports HTML    no

    External libraries:
    schannel                 xlib

    External libraries providing hardware acceleration:
    cuda                     cuvid                    d3d11va                  dxva2                    nvenc

    Libraries:
    avcodec                  avdevice                 avfilter                 avformat                 avutil                   swresample               swscale

    Programs:
    ffmpeg                   ffprobe

    [...]
    Hundreds of modules, library, etc.
    [...]

    License: LGPL version 2.1 or later
    Creating configuration files ...
    config.h is unchanged
    config.asm is unchanged
    libavutil/avconfig.h is unchanged
    libavcodec/bsf_list.c is unchanged
    libavformat/protocol_list.c is unchanged

    But when I run make it stops very quickly

    $ make
    Makefile:47: la cible « qt-faststart » ne correspond pas au motif de cible
    Makefile:47: la cible « trasher » ne correspond pas au motif de cible
    Makefile:47: la cible « uncoded_frame » ne correspond pas au motif de cible
    Makefile:91: ffbuild/library.mak: No such file or directory
    make: *** Aucune règle pour fabriquer la cible « ffbuild/library.mak ». Arrêt.

    Sorry for the french wording, I don’t know how to tell MSVC print its output in english. Basically, the error means :

    Makefile:47: target « qt-faststart » doesn't match the target pattern
    make: *** No rule to make target « ffbuild/library.mak ». Stopped.

    Side notes :

    $ tree ffbuild
    ffbuild
    ├── config.fate
    ├── config.log
    ├── config.mak
    └── config.sh

    That’s right, library.mak were not generated into ffbuild, but I don’t know why, and configure script didn’t output any error message...

    Does anybody can help me to find out what am I doing wrong ?

    Edit :

    make distclean doesn’t help

    $ make distclean
    Makefile:47: la cible « qt-faststart » ne correspond pas au motif de cible
    Makefile:47: la cible « trasher » ne correspond pas au motif de cible
    Makefile:47: la cible « uncoded_frame » ne correspond pas au motif de cible
    Makefile:91: ffbuild/library.mak: No such file or directory
    make: *** Aucune règle pour fabriquer la cible « ffbuild/library.mak ». Arrêt.