Recherche avancée

Médias (0)

Mot : - Tags -/auteurs

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

Autres articles (97)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

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

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

Sur d’autres sites (4420)

  • lavc/vvc : Check slice structure

    10 janvier, par Frank Plowman
    lavc/vvc : Check slice structure
    

    The criteria for slice structure validity is similar to that of
    subpicture structure validity that we saw not too long ago [1].
    The relationship between tiles and slices must satisfy the following
    properties :

    * Exhaustivity. All tiles in a picture must belong to a slice. The
    tiles cover the picture, so this implies the slices must cover the
    picture.
    * Mutual exclusivity. No tile may belong to more than one slice, i.e.
    slices may not overlap.

    In most cases these properties are guaranteed by the syntax. There is
    one noticable exception however : when pps_tile_idx_delta_present_flag is
    equal to one, each slice is associated with a syntax element
    pps_tile_idx_delta_val[i] which "specifies the difference between the
    tile index of the tile containing the first CTU in the ( i + 1 )-th
    rectangular slice and the tile index of the tile containing the first
    CTU in the i-th rectangular slice" [2]. When these syntax elements are
    present, the i-th slice can begin anywhere and the usual guarantees
    provided by the syntax are lost.

    The patch detects slice structures which violate either of the two
    properties above, and are therefore invalid, while building the
    slice map. Should the slice map be determined to be invalid, an
    AVERROR_INVALIDDATA is returned. This prevents issues including
    segmentation faults when trying to decode, invalid bitstreams.

    [1] : https://ffmpeg.org//pipermail/ffmpeg-devel/2024-October/334470.html
    [2] : H.266 (V3) Section 7.4.3.5, Picture parameter set RBSP semantics

    Signed-off-by : Frank Plowman <post@frankplowman.com>

    • [DH] libavcodec/vvc/ps.c
  • ffmpeg remote url not working in lambda function

    9 septembre 2024, par Komal

    I have created lambda function to trim video.

    &#xA;

    I run this command :

    &#xA;

    /opt/bin/ffmpeg -protocol_whitelist file,http,https,tcp,tls -i &#x27;https://source-bucket.s3.amazonaws.com/1.mp4&#x27; -ss 5 -t 10 -loglevel 48 -y -avoid_negative_ts 1 -acodec copy /tmp/output.mp4&#xA;

    &#xA;

    It gives following output :

    &#xA;

    "ffmpeg version 7.0.2-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2024 the FFmpeg developers\n  built with gcc 8 (Debian 8.3.0-6)\n  configuration: --enable-gpl --enable-version3&#xA;--enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg\n  libavutil      59.  8.100 / 59.  8.100\n  libavcodec     61.  3.100 / 61.  3.100\n  libavformat    61.  1.100 / 61.  1.100\n  libavdevice    61.  1.100 /&#xA;61.  1.100\n  libavfilter    10.  1.100 / 10.  1.100\n  libswscale      8.  1.100 /  8.  1.100\n  libswresample   5.  1.100 /  5.  1.100\n  libpostproc    58.  1.100 / 58.  1.100\nSplitting the commandline.\nReading option &#x27;-protocol_whitelist&#x27; ... matched as AVOption &#x27;protocol_whitelist&#x27; with argument &#x27;file,http,https,tcp,tls&#x27;.\nReading option &#x27;-i&#x27; ... matched as input url with argument &#x27;https://source-bucket.s3.amazonaws.com/1.mp4&#x27;.\nReading option &#x27;-ss&#x27; ... matched as option &#x27;ss&#x27; (start transcoding at specified time) with argument &#x27;50&#x27;.\nReading option &#x27;-t&#x27; ... matched as option &#x27;t&#x27; (stop transcoding after specified duration) with argument &#x27;100&#x27;.\nReading option &#x27;-loglevel&#x27; ... matched as option &#x27;loglevel&#x27; (set logging level) with argument &#x27;48&#x27;.\nReading option &#x27;-y&#x27; ... matched as option &#x27;y&#x27; (overwrite output files) with argument &#x27;1&#x27;.\nReading option &#x27;-avoid_negative_ts&#x27; ... matched as AVOption &#x27;avoid_negative_ts&#x27; with argument &#x27;1&#x27;.\nReading option &#x27;-acodec&#x27; ... matched as option &#x27;acodec&#x27; (alias for -c:a (select encoder/decoder for audio streams)) with argument &#x27;copy&#x27;.\nReading option &#x27;/tmp/output.mp4&#x27; ... matched as output url.\nFinished splitting the commandline.\nParsing a group of options: global .\nApplying option loglevel (set logging level) with argument 48.\nApplying option y (overwrite output files) with argument&#xA;1.\nSuccessfully parsed a group of options.\nParsing a group of options: input url https://source-bucket.s3.amazonaws.com/1.mp4.\nSuccessfully parsed a group of options.\nOpening an input file: https://source-bucket.s3.amazonaws.com/1.mp4.\n[AVFormatContext @ 0x70ea0c0] Opening &#x27;https://source-bucket.s3.amazonaws.com/1.mp4&#x27; for reading\n"&#xA;

    &#xA;

    So, its not going beyond this : 'Opening 'https://source-bucket.s3.amazonaws.com/1.mp4' ; for reading\n'

    &#xA;

    And after this, it immediately gets out. Need suggestions, where its going wrong. Same command working fine on local computer.

    &#xA;

    I tried cloudfront and signed url as well, as mentioned in this post : How to read remote video on Amazon S3 using ffmpeg. But it doesnt work with url. Only working when downloaded into tmp folder.

    &#xA;

    Following is the final log, which you can see is no timeout. It actually finish function execution within 2-3 seconds. I have timeout set for 15 mins to the function which is maximum :&#xA;enter image description here

    &#xA;

    REPORT RequestId: 4acd7b38-017c-4dce-bb65-8f6fd3cf37e0  Duration: 1297.93 ms    Billed Duration: 1298 ms    Memory Size: 1024 MB    Max Memory Used: 103 MB Init Duration: 328.76 ms    &#xA;

    &#xA;

  • Correct syntax for using ffmpeg CUDA to crop and scale videos [closed]

    9 septembre 2024, par Stuart

    My NVIDIA and FFMPEG configuration is as follows :

    &#xA;

    Linux TestBox1 6.8.0-41-generic #41-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 2 20:41:06 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

    &#xA;

    NVIDIA-Linux-x86_64-560.31.02

    &#xA;

    ffmpeg version git-2024-08-19-507c2a577&#xA;encoders:&#xA; V....D av1_nvenc            NVIDIA NVENC av1 encoder (codec av1)&#xA; V....D h264_nvenc           NVIDIA NVENC H.264 encoder (codec h264)&#xA; V....D hevc_nvenc           NVIDIA NVENC hevc encoder (codec hevc)&#xA;decoders:&#xA; V..... av1_cuvid            Nvidia CUVID AV1 decoder (codec av1)&#xA; V..... h264_cuvid           Nvidia CUVID H264 decoder (codec h264)&#xA; V..... hevc_cuvid           Nvidia CUVID HEVC decoder (codec hevc)&#xA; V..... mjpeg_cuvid          Nvidia CUVID MJPEG decoder (codec mjpeg)&#xA; V..... mpeg1_cuvid          Nvidia CUVID MPEG1VIDEO decoder (codec mpeg1video)&#xA; V..... mpeg2_cuvid          Nvidia CUVID MPEG2VIDEO decoder (codec mpeg2video)&#xA; V..... mpeg4_cuvid          Nvidia CUVID MPEG4 decoder (codec mpeg4)&#xA; V..... vc1_cuvid            Nvidia CUVID VC1 decoder (codec vc1)&#xA; V..... vp8_cuvid            Nvidia CUVID VP8 decoder (codec vp8)&#xA; V..... vp9_cuvid            Nvidia CUVID VP9 decoder (codec vp9)&#xA;filters:&#xA; ... bilateral_cuda    V->V       GPU accelerated bilateral filter&#xA; T.. bwdif_cuda        V->V       Deinterlace CUDA frames&#xA; ... chromakey_cuda    V->V       GPU accelerated chromakey filter&#xA; ... colorspace_cuda   V->V       CUDA accelerated video color converter&#xA; ..C crop              V->V       Crop the input video.&#xA; T.C cropdetect        V->V       Auto-detect crop size.&#xA; ... hwupload_cuda     V->V       Upload a system memory frame to a CUDA device.&#xA; ... overlay_cuda      VV->V      Overlay one video on top of another using CUDA&#xA; ... scale_cuda        V->V       GPU accelerated video resizer&#xA; ... scale_npp         V->V       NVIDIA Performance Primitives video scaling and format conversion&#xA; ... scale2ref_npp     VV->VV     NVIDIA Performance Primitives video scaling and format conversion to the given reference.&#xA; ... sharpen_npp       V->V       NVIDIA Performance Primitives video sharpening filter.&#xA; ... thumbnail_cuda    V->V       Select the most representative frame in a given sequence of consecutive frames.&#xA; ... transpose_npp     V->V       NVIDIA Performance Primitives video transpose&#xA; T.. yadif_cuda        V->V       Deinterlace CUDA frames&#xA;

    &#xA;

    I would like to be able to use CUDA to crop and scale videos but I cannot find the correct syntax.&#xA;My efforts usually work in terms of the scale but not the crop, here is an example of the type of problems I have been having :

    &#xA;

    The source file in this example is a short mpeg2 video (960x540 with black bars top and bottom). The command is currently run from a bash script.

    &#xA;

    ffmpeg -y -hwaccel cuda -hwaccel_output_format cuda -c:v mpeg2_cuvid -crop 960x408x0x66 -i $1 -vf scale_npp=1280x544 -c:a copy -c:v h264_nvenc -b:v 2M -preset slow $2&#xA;

    &#xA;

    This is throwing the following error :

    &#xA;

    [mpeg2_cuvid @ 0x5e6d9deb56c0] cuvid decode callback error&#xA;[vist#0:0/mpeg2video @ 0x5e6d9de85b40] [dec:mpeg2_cuvid @ 0x5e6d9de7b7c0] Decoding error:        Generic error in an external library&#xA;

    &#xA;

    Have I a problem with my ffmpeg build, should the list of filters include something like crop_cuda or crop_npp or have I just got the wrong syntax to perform everything on the GPU (is it even possible).

    &#xA;