Recherche avancée

Médias (91)

Autres articles (22)

  • 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

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

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

  • avformat : remove deprecated FF_API_GET_DUR_ESTIMATE_METHOD

    19 février, par James Almer
    avformat : remove deprecated FF_API_GET_DUR_ESTIMATE_METHOD
    

    Deprecated since 2024-03-06.

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

    • [DH] libavformat/avformat.h
    • [DH] libavformat/options.c
    • [DH] libavformat/version_major.h
  • "Error opening input" error when running ffmpeg via shell script

    15 octobre 2024, par Roni Yaniv

    I'm on a macbook running sonoma 14.7.

    &#xA;

    I have the following ffmpeg command which runs just fine by itself in the same folder of the files I need to modify :

    &#xA;

    ffmpeg -i "water-stream-90fps.mp4" -vf "drawtext=text=&#x27;Frame\: %{frame_num}&#x27;: start_number=1: x=(w-text_w): y=(h-text_h):fontsize=(h*10/100):fontcolor=yellow,drawtext=text=&#x27;%{pts\:hms}&#x27;:x=0:y=0:fontsize=(h*10/100):fontcolor=yellow" "water-stream-90fps-with-markers.mp4"

    &#xA;

    However, when I try to use it in a shell script by running ./add_markers.sh in the same folder, I get an error.

    &#xA;

    This is the add_markers.sh script :

    &#xA;

    #!/bin/bash&#xA;&#xA;# Replace &#x27;/path/to/your/folder&#x27; with the actual path to your folder&#xA;folder=$(pwd)&#xA;&#xA;# Replace &#x27;ffmpeg -i input.mp4 -vf scale=640:480 output.mp4&#x27; with your desired FFmpeg command&#xA;ffmpeg_command="ffmpeg -i input.mp4 -vf \"drawtext=text=&#x27;Frame\: %{frame_num}&#x27;: start_number=1: x=(w-text_w): y=(h-text_h):fontsize=(h*10/100):fontcolor=yellow,drawtext=text=&#x27;%{pts\:hms}&#x27;:x=0:y=0:fontsize=(h*10/100):fontcolor=yellow\" output.mp4"&#xA;&#xA;echo "$ffmpeg_command"&#xA;&#xA;# Loop through all files in the folder and execute the FFmpeg command&#xA;&#xA;for file in "$folder"/*; do&#xA;    filename=$(basename "${file%.*}") #get only the first part of the file name without path or extension&#xA;&#xA;    # Replace &#x27;input.mp4&#x27; with the current filename and &#x27;output.mp4&#x27; with the new filename. &#xA;    # Added double quotes to manage filenames with spaces.&#xA;    new_command="${ffmpeg_command//input.mp4/\"$filename.mp4\"}"&#xA;    new_command="${new_command//output.mp4/\"$filename-with-markers.mp4\"}"&#xA;&#xA;    echo "Running $new_command"&#xA;&#xA;    $new_command&#xA;&#xA;done&#xA;

    &#xA;

    This is the error I get (for one of the files, same error for all of them) :

    &#xA;

    Running ffmpeg -i "water-stream-90fps.mp4" -vf "drawtext=text=&#x27;Frame\: %{frame_num}&#x27;: start_number=1: x=(w-text_w): y=(h-text_h):fontsize=(h*10/100):fontcolor=yellow,drawtext=text=&#x27;%{pts\:hms}&#x27;:x=0:y=0:fontsize=(h*10/100):fontcolor=yellow" "water-stream-90fps-with-markers.mp4"&#xA;ffmpeg version 7.0 Copyright (c) 2000-2024 the FFmpeg developers&#xA;  built with Apple clang version 15.0.0 (clang-1500.3.9.4)&#xA;  configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/7.0 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags=&#x27;-Wl,-ld_classic&#x27; --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libharfbuzz --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopenvino --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-audiotoolbox --enable-neon&#xA;  libavutil      59.  8.100 / 59.  8.100&#xA;  libavcodec     61.  3.100 / 61.  3.100&#xA;  libavformat    61.  1.100 / 61.  1.100&#xA;  libavdevice    61.  1.100 / 61.  1.100&#xA;  libavfilter    10.  1.100 / 10.  1.100&#xA;  libswscale      8.  1.100 /  8.  1.100&#xA;  libswresample   5.  1.100 /  5.  1.100&#xA;  libpostproc    58.  1.100 / 58.  1.100&#xA;[in#0 @ 0x6000015bc300] Error opening input: No such file or directory&#xA;Error opening input file "water-stream-90fps.mp4".&#xA;Error opening input files: No such file or directory&#xA;

    &#xA;

    I tried all kinds of things but my brain is starting to swell. Any guidance/help would be appreciated.

    &#xA;

  • FFMpegCore.Exceptions.FFMpegException : 'ffmpeg exited with non-zero exit-code'

    15 octobre 2024, par secretply

    I am looking to retrieve the loudnorm data in JSON format from FFmpeg (using FFMpegCore 5.1.0). This is the code I currently have :

    &#xA;

    await FFMpegArguments&#xA;    .FromPipeInput(new StreamPipeSource(fileStream.OpenReadStream()))&#xA;    .OutputToPipe(new StreamPipeSink(outputStream), options => options.WithCustomArgument("-af loudnorm=print_format=json"))&#xA;    .ProcessAsynchronously();&#xA;

    &#xA;

    This is the exception I get, which is similar to this old GitHub issue.

    &#xA;

    System.IO.IOException: &#x27;Pipe is broken.&#x27;&#xA;&#xA;This exception was originally thrown at this call stack:&#xA;    System.IO.Pipes.PipeStream.PipeValueTaskSource.GetResult(short)&#xA;    System.IO.Pipes.PipeStream.PipeValueTaskSource.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(short)&#xA;    System.IO.Stream.CopyToAsync.__Core|27_0(System.IO.Stream, System.IO.Stream, int, System.Threading.CancellationToken) in Stream.cs&#xA;    FFMpegCore.Arguments.InputPipeArgument.ProcessDataAsync(System.Threading.CancellationToken)&#xA;    FFMpegCore.Arguments.PipeArgument.During(System.Threading.CancellationToken)&#xA;    FFMpegCore.FFMpegArguments.During(System.Threading.CancellationToken)&#xA;    FFMpegCore.FFMpegArgumentProcessor.Process(Instances.ProcessArguments, System.Threading.CancellationTokenSource)&#xA;    FFMpegCore.FFMpegArgumentProcessor.ProcessAsynchronously(bool, FFMpegCore.FFOptions)&#xA;

    &#xA;

    I am trying to replicate the following FFmpeg command and JSON output :

    &#xA;

    ffmpeg -i "file.flac" -af loudnorm=print_format=json -f null -&#xA;

    &#xA;

    {&#xA;        "input_i" : "-21.87",&#xA;        "input_tp" : "-7.13",&#xA;        "input_lra" : "5.00",&#xA;        "input_thresh" : "-32.04",&#xA;        "output_i" : "-24.76",&#xA;        "output_tp" : "-10.36",&#xA;        "output_lra" : "4.10",&#xA;        "output_thresh" : "-34.84",&#xA;        "normalization_type" : "dynamic",&#xA;        "target_offset" : "0.76"&#xA;}&#xA;

    &#xA;

    If I add .ForceFormat("null") to the OutputToPipe options, I do not get the exception but when I read the output stream, it returns an empty string. In the issue mentioned, I know they mentioned a way to get the FFMpegErrorOutput property but I do not know how that can be done. I could not find an example of outputting a stream as JSON. If anyone can point me in the right direction or can provide an alternative solution, I would greatly appreciate it.

    &#xA;

    Update

    &#xA;

    I made a change to the StreamPipeSource() method where I copied over the uploaded file to a MemoryStream. With this change, the following FFMpegException is thrown.

    &#xA;

    FFMpegCore.Exceptions.FFMpegException: &#x27;ffmpeg exited with non-zero exit-code (-22 - ffmpeg version 7.0.1-full_build-www.gyan.dev Copyright (c) 2000-2024 the FFmpeg developers&#xA;  built with gcc 13.2.0 (Rev5, Built by MSYS2 project)&#xA;  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-libxevd --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxeve --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-dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi --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&#xA;  libavutil      59.  8.100 / 59.  8.100&#xA;  libavcodec     61.  3.100 / 61.  3.100&#xA;  libavformat    61.  1.100 / 61.  1.100&#xA;  libavdevice    61.  1.100 / 61.  1.100&#xA;  libavfilter    10.  1.100 / 10.  1.100&#xA;  libswscale      8.  1.100 /  8.  1.100&#xA;  libswresample   5.  1.100 /  5.  1.100&#xA;  libpostproc    58.  1.100 / 58.  1.100&#xA;[in#0 @ 000001bda86c67c0] Error opening input: Invalid argument&#xA;Error opening input file \\.\pipe\FFMpegCore_c6e5c.&#xA;Error opening input files: Invalid argument)&#x27;&#xA;

    &#xA;