Recherche avancée

Médias (1)

Mot : - Tags -/belgique

Autres articles (71)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (13332)

  • On Heroku I got FFMPEG::Error (Failed encoding.Errors : encoded file is invalid. Full output : )

    8 octobre 2020, par Ruslan Valeev

    The code is :

    


    tempfile = Tempfile.open('content')
tempfile.write(content)
movie = FFMPEG::Movie.new(tempfile.path)
screenshot_temp_file = Tempfile.open('screenshot')
movie.screenshot(screenshot_temp_file.path)


    


    everything works fine locally, but when I try this on Heroku I got error at last row :

    


    irb(main):013:0> movie.screenshot(screenshot_temp_file.path)&#xA;I, [2020-10-07T15:48:27.132114 #7]  INFO -- : Running transcoding...&#xA;["/app/vendor/ffmpeg/ffmpeg", "-y", "-i", "/tmp/content20201007-7-1g1955b", "-vframes", "1", "-f", "image2", "/tmp/screenshot20201007-7-1mmts7s"]&#xA;&#xA;E, [2020-10-07T15:48:27.190572 #7] ERROR -- : Failed encoding...&#xA;["/app/vendor/ffmpeg/ffmpeg", "-y", "-i", "/tmp/content20201007-7-1g1955b", "-vframes", "1", "-f", "image2", "/tmp/screenshot20201007-7-1mmts7s"]&#xA;&#xA;&#xA;Errors: encoded file is invalid. &#xA;&#xA;Traceback (most recent call last):&#xA;        7: from /app/bin/irb:30:in `<main>&#x27;&#xA;        6: from /app/bin/irb:30:in `load&#x27;&#xA;        5: from /app/vendor/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/irb-1.0.0/exe/irb:11:in `<top>&#x27;&#xA;        4: from (irb):13&#xA;        3: from /app/vendor/bundle/ruby/2.6.0/gems/streamio-ffmpeg-3.0.2/lib/ffmpeg/movie.rb:204:in `screenshot&#x27;&#xA;        2: from /app/vendor/bundle/ruby/2.6.0/gems/streamio-ffmpeg-3.0.2/lib/ffmpeg/transcoder.rb:45:in `run&#x27;&#xA;        1: from /app/vendor/bundle/ruby/2.6.0/gems/streamio-ffmpeg-3.0.2/lib/ffmpeg/transcoder.rb:112:in `validate_output_file&#x27;&#xA;FFMPEG::Error (Failed encoding.Errors: encoded file is invalid. Full output: )&#xA;</top></main>

    &#xA;

    I've try to pass some options, like :seek_time and validate: false but nothing changed. What am I doing wrong ? Thank you so much !

    &#xA;

    EDIT :&#xA;After Full output: ) there is nothing.&#xA;I've install FFMPEG buildpack on Heroku, and can see it in ui :

    &#xA;

    enter image description here

    &#xA;

  • FFmpeg psycho-visual options - psy-rdoq

    7 avril 2020, par SLVR

    I'm new to encoding and I like to do my encodings in x265 10bit. Currently, I'm facing a little issue with ffmpeg. I noticed when I'm using libx265 encoder output file looks a little bit blurred or small detail loss. Code I used to do my encodes is

    &#xA;&#xA;

    ffmpeg -i input.mp4 -c:v libx265 -preset medium -crf 22 -pix_fmt yuv420p10le -c:a copy -y output-x26510bit.mkv&#xA;

    &#xA;&#xA;

    I've found out psycho-visual options might help in this case. I modified my code in to

    &#xA;&#xA;

    ffmpeg -i input.mp4 -c:v libx265 -preset medium -crf 22 -pix_fmt yuv420p10le -psy-rd 2 -psy-rdoq 4 --rdoq-level 1 -c:a copy -y output-x26510bit.mkv&#xA;

    &#xA;&#xA;

    When I issue the above command, I get an error code

    &#xA;&#xA;

    C:\Users\abc\Desktop\1>ffmpeg -i input.mp4 -c:v libx265 -preset medium -crf 22 -pix_fmt yuv420p10le -psy-rd 2 -psy-rdoq&#xA; 4 -rdoq-level 1 -c:a copy -y output-x26510bit.mkv&#xA;ffmpeg version git-2020-04-03-52523b6 Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with gcc 9.3.1 (GCC) 20200328&#xA;  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enabl&#xA;e-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enab&#xA;le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enabl&#xA;e-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --&#xA;enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-l&#xA;ibvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom&#xA;--enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --en&#xA;able-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf&#xA;  libavutil      56. 42.102 / 56. 42.102&#xA;  libavcodec     58. 77.101 / 58. 77.101&#xA;  libavformat    58. 42.100 / 58. 42.100&#xA;  libavdevice    58.  9.103 / 58.  9.103&#xA;  libavfilter     7. 77.101 /  7. 77.101&#xA;  libswscale      5.  6.101 /  5.  6.101&#xA;  libswresample   3.  6.100 /  3.  6.100&#xA;  libpostproc    55.  6.100 / 55.  6.100&#xA;Unrecognized option &#x27;psy-rdoq&#x27;.&#xA;Error splitting the argument list: Option not found&#xA;

    &#xA;&#xA;

    How do I solve this issue

    &#xA;

  • FFmpeg return 'invalid argument' only for some runs, even though it is the same code

    20 septembre 2021, par Gustavo Marinho

    I have code in Python where I need to use FFmpeg to merge an audio and a video downloaded using pytube together :

    &#xA;

    for video in p.videos:&#xA;    video.streams.filter(file_extension=&#x27;mp4&#x27;,resolution=&#x27;480p&#x27;)[0].download(parent_dir&#x2B;&#x27;/mp4/processing/video&#x27;)&#xA;    print(video.streams.filter(only_audio=True)[1].download(parent_dir&#x2B;&#x27;/mp4/processing/audio&#x27;))&#xA;&#xA;    subprocess.run([&#xA;&#xA;        r&#x27;c:\FFmpeg\bin\ffmpeg&#x27;, &#x27;-i&#x27;,&#xA;        os.path.join(parent_dir&#x2B;&#x27;/mp4/processing/video&#x27;,video.streams.filter(file_extension=&#x27;mp4&#x27;,resolution=&#x27;480p&#x27;)[0].default_filename)&#xA;        ,&#x27;-i&#x27;,&#xA;        os.path.join(parent_dir&#x2B;&#x27;/mp4/processing/audio&#x27;,video.streams.filter(only_audio=True)[1].default_filename),&#xA;        &#x27;-c:v&#x27;,&#x27;copy&#x27;,&#x27;-c:a&#x27;,&#x27;copy&#x27;,&#xA;        os.path.join(parent_dir&#x2B;&#x27;/mp4&#x27;,video.streams.filter(file_extension=&#x27;mp4&#x27;,resolution=&#x27;480p&#x27;)[0].title&#x2B;&#x27;.mp4&#x27;)&#xA;&#xA;    ])&#xA;

    &#xA;

    I thought the code was working perfectly, but in some cases, the FFmpeg returns "invalid argument", like this example :

    &#xA;

    ffmpeg version 4.4-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers&#xA;  built with gcc 10.2.0 (Rev6, 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-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --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-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      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;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;D:/videos/mp4/processing/video\Dropkick Murphys - Rose Tattoo (Video).mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : dash&#xA;    minor_version   : 0&#xA;    compatible_brands: iso6avc1mp41&#xA;    creation_time   : 2020-04-04T10:16:52.000000Z&#xA;  Duration: 00:05:26.08, start: 0.000000, bitrate: 557 kb/s&#xA;  Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 854x480 [SAR 1:1 DAR 427:240], 7 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)&#xA;    Metadata:&#xA;      creation_time   : 2020-04-04T10:16:52.000000Z&#xA;      handler_name    : ISO Media file produced by Google Inc.&#xA;      vendor_id       : [0][0][0][0]&#xA;Input #1, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;D:/videos/mp4/processing/audio\Dropkick Murphys - Rose Tattoo (Video).mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : dash&#xA;    minor_version   : 0&#xA;    compatible_brands: iso6mp41&#xA;    creation_time   : 2020-04-04T10:16:00.000000Z&#xA;  Duration: 00:05:26.12, start: 0.000000, bitrate: 129 kb/s&#xA;  Stream #1:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 3 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2020-04-04T10:16:00.000000Z&#xA;      handler_name    : ISO Media file produced by Google Inc.&#xA;      vendor_id       : [0][0][0][0]&#xA;D:/videos/mp4\Dropkick Murphys - "Rose Tattoo" (Video).mp4: Invalid argument&#xA;

    &#xA;

    For some reason, the FFmpeg say that my output name is invalid, but I don't understand why, given that I ran the code multiple times before and it worked perfectly.

    &#xA;