Recherche avancée

Médias (1)

Mot : - Tags -/publier

Autres articles (41)

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (5448)

  • Convert from opus to ogg file using ffmpeg [python soundfile]

    27 septembre 2021, par Zabir Al Nazi

    I'm using python soundfile to audio files in one of my projects. I have a dataset that contains opus files.

    


    python soundfile can not read opus files directly but can read ogg files. (https://github.com/bastibe/python-soundfile/issues/252)

    


    How can I convert all the opus files to ogg files with ffmpeg ?

    


    I have tried the following command,

    


     ffmpeg -i test_file_2.opus -c:a libvorbis -b:a 16k test_file_2.ogg



    


    But I get an error,

    


    ffmpeg version 4.3 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 7.3.0 (crosstool-NG 1.23.0.449-a04d0)
  configuration: --prefix=/opt/conda --cc=/opt/conda/conda-bld/ffmpeg_1597178665428/_build_env/bin/x86_64-conda_cos6-linux-gnu-cc --disable-doc --disable-openssl --enable-avresample --enable-gnutls --enable-hardcoded-tables --enable-libfreetype --enable-libopenh264 --enable-pic --enable-pthreads --enable-shared --disable-static --enable-version3 --enable-zlib --enable-libmp3lame
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
[ogg @ 0x55bad6b9cbc0] 543 bytes of comment header remain
Input #0, ogg, from 'test_file_2.opus':
  Duration: 00:00:14.10, start: 0.000000, bitrate: 34 kb/s
    Stream #0:0: Audio: opus, 48000 Hz, mono, fltp
    Metadata:
      album           : Onder Moeders Vleugels
      ENCODER_OPTIONS : --quiet
      artist          : Louisa May Alcott
      title           : 02 - Een vroolijk kerstfeest
      encoder         : opusenc from opus-tools 0.1.10;Lavf57.83.100
Unknown encoder 'libvorbis'



    


  • avformat/mxfdec : Read Mastering Display Colour Volume from MXF

    9 septembre 2020, par Harry Mallon
    avformat/mxfdec : Read Mastering Display Colour Volume from MXF
    

    Described in Annex B SMPTE ST 2067-21:2020

    Signed-off-by : Harry Mallon <harry.mallon@codex.online>

    • [DH] libavformat/mxf.c
    • [DH] libavformat/mxf.h
    • [DH] libavformat/mxfdec.c
    • [DH] libavformat/mxfenc.c
  • Wrong video information after encoding [closed]

    22 mars 2024, par Constadinos Chatzis

    Using FFMPEG for encoding videos from HDR to SDR with 3DLuts, i recently came to my attention that after the encoding the video has wrong information.

    &#xA;

    The code i use is :&#xA;-vf lut3d="example.cube" -c:v libx265 -crf 16 -c:a copy -preset fast

    &#xA;

    Original HDR video infos :

    &#xA;

    General&#xA;Unique ID                      : 235922119201670445249046242281848857470 (0xB17CF2883DCE2BDE00E192235198637E)&#xA;Complete name                  : example.mkv&#xA;Format                         : Matroska&#xA;Format version                 : Version 4&#xA;File size                      : 201 MiB&#xA;Duration                       : 20 s 96 ms&#xA;Overall bit rate mode          : Variable&#xA;Overall bit rate               : 83.8 Mb/s&#xA;Frame rate                     : 16 343.153 FPS&#xA;Movie name                     : example&#xA;Writing application            : Lavf60.16.100&#xA;Writing library                : Lavf60.16.100&#xA;ErrorDetectionType             : Per level 1&#xA;&#xA;Video&#xA;ID                             : 1&#xA;ID in the original source medi : 4113 (0x1011)&#xA;Format                         : HEVC&#xA;Format/Info                    : High Efficiency Video Coding&#xA;Format profile                 : Main 10@L5.1@High&#xA;HDR format                     : Dolby Vision, Version 1.0, Profile 7.6, dvhe.07.06, BL&#x2B;EL&#x2B;RPU, Blu-ray compatible / SMPTE ST 2086, Version HDR10, HDR10 compatible&#xA;Codec ID                       : V_MPEGH/ISO/HEVC&#xA;Duration                       : 20 s 96 ms&#xA;Bit rate                       : 66.3 Mb/s&#xA;Width                          : 3 840 pixels&#xA;Height                         : 2 160 pixels&#xA;Display aspect ratio           : 16:9&#xA;Frame rate mode                : Constant&#xA;Frame rate                     : 16 343.153 FPS&#xA;Original frame rate            : 23.976 (24000/1001) FPS&#xA;Color space                    : YUV&#xA;Chroma subsampling             : 4:2:0 (Type 2)&#xA;Bit depth                      : 10 bits&#xA;Bits/(Pixel*Frame)             : 0.000&#xA;Stream size                    : 106 GiB&#xA;Language                       : English&#xA;Default                        : No&#xA;Forced                         : No&#xA;Color range                    : Limited&#xA;Color primaries                : BT.2020&#xA;Transfer characteristics       : PQ&#xA;Matrix coefficients            : BT.2020 non-constant&#xA;Mastering display color primar : Display P3&#xA;Mastering display luminance    : min: 0.0050 cd/m2, max: 4000 cd/m2&#xA;Maximum Content Light Level    : 602 cd/m2&#xA;Maximum Frame-Average Light Le : 184 cd/m2&#xA;Original source medium         : Blu-ray&#xA;

    &#xA;

    After encoding to SDR the infos are :

    &#xA;

    General&#xA;Unique ID                      : 197829821108483109262455008881990159019 (0x94D4A33C264AF154BCA17241DA23CAAB)&#xA;Complete name                  : example.mkv&#xA;Format                         : Matroska&#xA;Format version                 : Version 4&#xA;File size                      : 182 MiB&#xA;Duration                       : 20 s 62 ms&#xA;Overall bit rate mode          : Variable&#xA;Overall bit rate               : 76.1 Mb/s&#xA;Frame rate                     : 16 370.850 FPS&#xA;Movie name                     : example&#xA;Writing application            : Lavf60.16.100&#xA;Writing library                : Lavf60.16.100&#xA;ErrorDetectionType             : Per level 1&#xA;&#xA;Video&#xA;ID                             : 1&#xA;ID in the original source medi : 4113 (0x1011)&#xA;Format                         : HEVC&#xA;Format/Info                    : High Efficiency Video Coding&#xA;Format profile                 : Format Range@L5@Main&#xA;HDR format                     : Dolby Vision, Version 1.0, Profile 7.6, dvhe.07.06, BL&#x2B;EL&#x2B;RPU, Blu-ray compatible&#xA;Codec ID                       : V_MPEGH/ISO/HEVC&#xA;Duration                       : 20 s 62 ms&#xA;Bit rate                       : 66.3 Mb/s&#xA;Width                          : 3 840 pixels&#xA;Height                         : 2 160 pixels&#xA;Display aspect ratio           : 16:9&#xA;Frame rate mode                : Constant&#xA;Frame rate                     : 16 370.850 FPS&#xA;Original frame rate            : 23.976 (24000/1001) FPS&#xA;Color space                    : RGB&#xA;Bit depth                      : 10 bits&#xA;Bits/(Pixel*Frame)             : 0.000&#xA;Stream size                    : 106 GiB&#xA;Writing library                : x265 3.5&#x2B;113-8787af124:[Windows][GCC 13.2.0][64 bit] 10bit&#xA;Encoding settings              : cpuid=1111039 / frame-threads=4 / numa-pools=16 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=3 / input-res=3840x2160 / interlace=0 / total-frames=0 / level-idc=0 / high-tier=1 / uhd-bd=0 / ref=3 / no-allow-non-conformance / no-repeat-headers / annexb / no-aud / no-eob / no-eos / no-hrd / info / hash=0 / temporal-layers=0 / open-gop / min-keyint=23 / keyint=250 / gop-lookahead=0 / bframes=4 / b-adapt=0 / b-pyramid / bframe-bias=0 / rc-lookahead=15 / lookahead-slices=8 / scenecut=40 / no-hist-scenecut / radl=0 / no-splice / no-intra-refresh / ctu=64 / min-cu-size=8 / no-rect / no-amp / max-tu-size=32 / tu-inter-depth=1 / tu-intra-depth=1 / limit-tu=0 / rdoq-level=0 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / strong-intra-smoothing / max-merge=2 / limit-refs=3 / no-limit-modes / me=1 / subme=2 / merange=57 / temporal-mvp / no-frame-dup / no-hme / weightp / no-weightb / no-analyze-src-pics / deblock=0:0 / sao / no-sao-non-deblock / rd=2 / selective-sao=4 / no-early-skip / rskip / fast-intra / no-tskip-fast / no-cu-lossless / no-b-intra / no-splitrd-skip / rdpenalty=0 / psy-rd=2.00 / psy-rdoq=0.00 / no-rd-refine / no-lossless / cbqpoffs=6 / crqpoffs=6 / rc=crf / crf=16.0 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=0 / ipratio=1.40 / pbratio=1.30 / aq-mode=2 / aq-strength=1.00 / cutree / zone-count=0 / no-strict-cbr / qg-size=32 / no-rc-grain / qpmax=69 / qpmin=0 / no-const-vbv / sar=1 / overscan=0 / videoformat=5 / range=1 / colorprim=9 / transfer=16 / colormatrix=0 / chromaloc=0 / display-window=0 / cll=0,0 / min-luma=0 / max-luma=1023 / log2-max-poc-lsb=8 / vui-timing-info / vui-hrd-info / slices=1 / no-opt-qp-pps / no-opt-ref-list-length-pps / no-multi-pass-opt-rps / scenecut-bias=0.05 / no-opt-cu-delta-qp / no-aq-motion / no-hdr10 / no-hdr10-opt / no-dhdr10-opt / no-idr-recovery-sei / analysis-reuse-level=0 / analysis-save-reuse-level=0 / analysis-load-reuse-level=0 / scale-factor=0 / refine-intra=0 / refine-inter=0 / refine-mv=1 / refine-ctu-distortion=0 / no-limit-sao / ctu-info=0 / no-lowpass-dct / refine-analysis-type=0 / copy-pic=1 / max-ausize-factor=1.0 / no-dynamic-refine / no-single-sei / no-hevc-aq / no-svt / no-field / qp-adaptation-range=1.00 / scenecut-aware-qp=0conformance-window-offsets / right=0 / bottom=0 / decoder-max-rate=0 / no-vbv-live-multi-pass / no-mcstf / no-sbrc&#xA;Language                       : English&#xA;Default                        : No&#xA;Forced                         : No&#xA;Color range                    : Full&#xA;Color primaries                : BT.2020&#xA;Transfer characteristics       : PQ&#xA;Matrix coefficients            : Identity&#xA;Original source medium         : Blu-ray&#xA;

    &#xA;

    Is this normal ? Shouldn't the encoding file had different info's about color primaries, transfer characteristics etc ?

    &#xA;

    Encoding video files i expected more accurate file informations.

    &#xA;