Recherche avancée

Médias (3)

Mot : - Tags -/spip

Autres articles (75)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

Sur d’autres sites (9629)

  • Using FFMPEG and PHP to encode HLS video on the fly

    21 avril 2024, par mrsmith

    I'm re-encoding a MP4 video to HLS using FFMPEG with PHP. I'm trying to then directly serve to the output to a HTML page's <video></video> tag. The following script (encode.php) encodes the video as I require and it works if I use the script url directly in VLC player for example but I'm struggling to get the gtml page to play it. The resulting video file should be compatible with most browsers. I use video.src = &#x27;encode.php&#x27; on my player html page.

    &#xA;

    Any help appreciated.

    &#xA;

    &lt;?php&#xA;&#xA;$input_video = &#x27;whatever.mp4&#x27;;&#xA;&#xA;// video passthrough&#xA;// hls format&#xA;// audio (english strems only) to aac (6 channel)&#xA;// output to stdout&#xA;&#xA;$ffmpeg_command = &#x27;ffmpeg -i &#x27; . escapeshellarg($input_video) . &#x27; -map 0:v -c:v copy -map 0:a:m:language:eng -c:a aac -ac 6 -b:a 320k -f hls -hls_time 30 -hls_list_size 120 -start_number 0 -&#x27;;&#xA;&#xA;$handle = popen($ffmpeg_command, &#x27;rb&#x27;);&#xA;&#xA;header(&#x27;Content-Type: application/vnd.apple.mpegurl&#x27;);&#xA;header(&#x27;Content-Disposition: inline; filename="output.m3u8"&#x27;);&#xA;&#xA;// stream the output to the browser&#xA;fpassthru($handle);&#xA;pclose($handle);&#xA;?>&#xA;

    &#xA;

  • 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;

  • How to get a 7.1 PCMle encode in an MOV container to stay a single track while also rendering as 8 mono tracks in an NLE like an MXF container

    26 février 2024, par varys_da_spidah

    I've been trying to convert Blu-Ray footage to the most efficient, yet least time consuming format for editing footage from them. For a while, I would make an MXF container and encode the h264 to DNxHD and the lossless compressed audio to pcm_s24le. I really liked how convenient it was to have my audio linked to my video, how it could be played as a single track in a media player, but then be inserted into my NLE as 6-8 separate mono tracks.

    &#xA;

    However, I found the DNxHD encodes to be unnecessary as they took up too much storage space and my NLE could perfectly handle the original h264 files in an MOV or MP4 container. But I noticed that switching from MXF to an MOV container meant that things that were jettisoned from the former were in the latter. Some of this was actually welcome, like the chapter markers, but I noticed that 7.1 audio (but not 5.1 for some reason) would now render in my NLE as a single 7.1 track.

    &#xA;

    I looked in MediaInfo and think I figured out that the issue is that the MOV container formats the channel layout while the MXF one doesn't. I'll paste the info to show what I mean

    &#xA;

    MOV FILE

    &#xA;

    &#xA;
      &#xA;
    • ID : 2
    • &#xA;

    • Format : PCM
    • &#xA;

    • Format settings : Little / Signed
    • &#xA;

    • Codec ID : in24
    • &#xA;

    • Duration : 1 min 41 s
    • &#xA;

    • Bit rate mode : Constant
    • &#xA;

    • Bit rate : 9 216 kb/s
    • &#xA;

    • Channel(s) : 8 channels
    • &#xA;

    • Channel layout : L R C LFE Ls Rs Lb Rb
    • &#xA;

    • Sampling rate : 48.0 kHz
    • &#xA;

    • Bit depth : 24 bits
    • &#xA;

    • Stream size : 111 MiB (34%)
    • &#xA;

    • Title : English
    • &#xA;

    • Language : English
    • &#xA;

    • Default : Yes
    • &#xA;

    • Alternate group : 1
    • &#xA;

    • Menus : 3
    • &#xA;

    &#xA;

    &#xA;

    MXF FILE

    &#xA;

    &#xA;
      &#xA;
    • ID : 3
    • &#xA;

    • Format : PCM
    • &#xA;

    • Format settings : Little
    • &#xA;

    • Format settings, wrapping mode : Frame (AES)
    • &#xA;

    • Codec ID : 0D01030102060300
    • &#xA;

    • Duration : 1 min 13 s
    • &#xA;

    • Bit rate mode : Constant
    • &#xA;

    • Bit rate : 9 216 kb/s
    • &#xA;

    • Channel(s) : 8 channels
    • &#xA;

    • Sampling rate : 48.0 kHz
    • &#xA;

    • Frame rate : 23.976 FPS (2002 SPF)
    • &#xA;

    • Bit depth : 24 bits
    • &#xA;

    • Stream size : 81.1 MiB (5%)
    • &#xA;

    • Delay_SDTI : 0
    • &#xA;

    • Locked : Yes
    • &#xA;

    &#xA;

    &#xA;

    Any ideas ?

    &#xA;

    I tried this code :

    &#xA;

    ffmpeg -i "INPUT.mkv" -c:v copy -r 23.976 -c:a pcm_s24le -filter_complex "[0:a:0]pan=mono|c0=c0[a0]; [0:a:1]pan=mono|c0=c0[a1]; [0:a:2]pan=mono|c0=c0[a2]; [0:a:3]pan=mono|c0=c0[a3]; [0:a:4]pan=mono|c0=c0[a4]; [0:a:5]pan=mono|c0=c0[a5]; [0:a:6]pan=mono|c0=c0[a6]; [0:a:7]pan=mono|c0=c0[a7]; [a0][a1][a2][a3][a4][a5][a6][a7]amerge=inputs=8" "OUTPUT.mov”

    &#xA;

    And got this error message :

    &#xA;

    Stream specifier &#x27;:a:4&#x27; in filtergraph description [0:a:0]pan=mono|c0=c0[a0]; [0:a:1]pan=mono|c0=c0[a1]; [0:a:2]pan=mono|c0=c0[a2]; [0:a:3]pan=mono|c0=c0[a3]; [0:a:4]pan=mono|c0=c0[a4]; [0:a:5]pan=mono|c0=c0[a5]; [0:a:6]pan=mono|c0=c0[a6]; [0:a:7]pan=mono|c0=c0[a7]; [a0][a1][a2][a3][a4][a5][a6][a7]amerge=inputs=8 matches no streams.

    &#xA;