Recherche avancée

Médias (1)

Mot : - Tags -/swfupload

Autres articles (85)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

Sur d’autres sites (8425)

  • Encode HEVC/H.265/HDR Video for YouTube from 10bit Pro-Res using FFmpeg

    30 janvier 2018, par Rodrigo Polo

    I want to have an HDR YouTube video published, my source file is either an Apple ProRes or DNxHR using a chroma subsamplig 4:4:4 or full RGB, both 10bit, so the original source file has all what is needed in order to be encoded into a 10bit 4:2:0 H.265/HEVC (HDR).

    I have followed some answers listed here, reviewed lots of different approaches, tried out many different commands without success, colors aren’t right when using only FFmpeg, to much red, when using only Adobe to encode into H.264 with the recommended settings on their support page, the results is darker, here are the commands I’ve using :

    I have tried this :

    ffmpeg \
    -i input.mov \
    -c:v libx265 \
    -tag:v hvc1 \
    -crf 21 \
    -preset fast \
    -pix_fmt yuv420p10le \
    -x265-params "colorprim=bt2020:transfer=smpte2084:colormatrix=bt2020nc:master-display=G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(10000000,10):max-cll=1000,400" \
    -c:a libfdk_aac \
    -b:a 128k \
    -ac 2 \
    -ar 44100 \
    -movflags +faststart \
    output.mp4

    And this :

    ffmpeg \
    -y \
    -hide_banner \
    -i input.mov \
    -pix_fmt yuv420p10le \
    -vf "scale=out_color_matrix=bt2020:out_h_chr_pos=0:out_v_chr_pos=0,format=yuv420p10" \
    -c:v libx265 \
    -tag:v hvc1 \
    -crf 21 \
    -preset fast \
    -x265-params 'crf=12:colorprim=bt2020:transfer=smpte-st-2084:colormatrix=bt2020nc:master-display="G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(10000000,1)":max-cll="1000,400"' \
    -c:a libfdk_aac \
    -b:a 128k \
    -ac 2 \
    -ar 44100 \
    -movflags +faststart \
    output.mp4

    I have also tried using MKVToolNix in order to insert the metadata into the encoded HEVC/H.265 file with the following command :

    /Applications/MKVToolNix-9.7.1.app/Contents/MacOS/mkvmerge \
    -o output.mkv \
    --colour-matrix 0:9 \
    --colour-range 0:1 \
    --colour-transfer-characteristics 0:16 \
    --colour-primaries 0:9 \
    --max-content-light 0:1000 \
    --max-frame-light 0:300 \
    --max-luminance 0:1000 \
    --min-luminance 0:0.01 \
    --chromaticity-coordinates 0:0.68,0.32,0.265,0.690,0.15,0.06 \
    --white-colour-coordinates 0:0.3127,0.3290 \
    input.mp4

    But the result is the same and YouTube don’t recognize the file as an HDR file, it does only with the first FFmpeg command and with the file encoded with Adobe Premiere, but the colors don’t look well, so, maybe I’m getting some concept wrong, thanks for your help.

  • Title : FFmpeg and yt-dlp not working on Render.com deployment - Node.js YouTube video processing app

    23 mai, par minhquan lavo

    I'm building a video processing application that :

    


      

    1. Downloads YouTube videos using yt-dlp
    2. 


    3. Processes these videos with FFmpeg for :

        

      • Cutting clips from the original video
      • 


      • Adding captions/subtitles to the clips
      • 


      


    4. 


    


    I'm struggling with getting both tools to work on Render.com deployment. Here's my setup :

    


    Backend Stack :

    


      

    • Node.js
    • 


    • Express
    • 


    • FFmpeg-related packages :

        

      • @ffmpeg-installer/ffmpeg : ^1.1.0
      • 


      • @ffprobe-installer/ffprobe : ^2.1.2
      • 


      • ffmpeg-static : ^5.2.0
      • 


      • fluent-ffmpeg : ^2.1.2
      • 


      


    • 


    • yt-dlp (installed via pip in postinstall)
    • 


    


    What I've tried :

    


      

    1. Added FFmpeg installation in render.yaml :
    2. 


    


    services:
  - type: web
    name: clipthat-backend
    env: node
    buildCommand: |
      apt-get update && apt-get install -y ffmpeg
      npm install
    startCommand: npm start


    


      

    1. Installing yt-dlp through npm postinstall :
    2. 


    


    "scripts": {
    "postinstall": "pip install yt-dlp"
}


    


    The issues :

    


      

    1. FFmpeg commands fail on Render deployment :

        

      • Can't process video editing tasks (cutting clips)
      • 


      • Can't add captions to videos
      • 


      


    2. 


    3. yt-dlp fails to download YouTube videos on deployment
Both tools work perfectly in my local development environment, but fail after deployment to Render.
    4. 


    


    Questions :

    


      

    1. Has anyone successfully deployed a Node.js application using both FFmpeg and yt-dlp on Render.com for video processing ?
    2. 


    3. Are there specific configurations needed for Python-based tools (like yt-dlp) on Render with Node.js apps ?
    4. 


    5. Do I need to modify the build process to properly install Python and pip before the yt-dlp installation ?
    6. 


    7. Is Render.com suitable for this kind of video processing application, or should I consider alternatives like DigitalOcean, AWS, etc.?
    8. 


    


    Any help or guidance would be greatly appreciated ! Let me know if you need any additional information.

    


  • Streaming to YouTube using FFmpeg Problems

    9 mai 2016, par jason

    I am trying to stream to a live event I have created inside of YouTube. I am trying to stream a already created video. The command I am using is noted below.

    The problem I have is that YouTube is showing the Streaming status as good (picture attached) and it seems to be receiving the data. But there is no sound and no picture in the live event. I’m not sure what the issue could be.

    ffmpeg -re -y -i input.mp4 -vcodec libx264 -b:v 600k -r 25 -s 640x360 -filter:v yadif -ab 64k -ac 1 -ar 44100 -f flv "rtmp://a.rtmp.youtube.com/live2/KEY"

    Image showing YouTube streaming status :

    Image showing youtube streaming status

    Console output :

    ffmpeg version N-60321-g4d7d9a5 Copyright (c) 2000-2014 the FFmpeg developers
     built on Feb  2 2014 22:01:03 with gcc 4.8.2 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
    isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
    le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
    e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena
    ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-l
    ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp
    eex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aa
    cenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavp
    ack --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
     libavutil      52. 63.100 / 52. 63.100
     libavcodec     55. 49.101 / 55. 49.101
     libavformat    55. 29.101 / 55. 29.101
     libavdevice    55.  7.100 / 55.  7.100
     libavfilter     4.  1.102 /  4.  1.102
     libswscale      2.  5.101 /  2.  5.101
     libswresample   0. 17.104 /  0. 17.104
     libpostproc    52.  3.100 / 52.  3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       creation_time   : 2013-10-24 05:44:23
     Duration: 00:41:52.93, start: 0.000000, bitrate: 187 kb/s
       Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yu
    v420p, 480x360, 89 kb/s, 15 fps, 15 tbr, 30 tbn, 30 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 96
    kb/s (default)
       Metadata:
         creation_time   : 2013-10-24 05:44:39
         handler_name    : IsoMedia File Produced by Google, 5-11-2011
    [libx264 @ 040fdc40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2
    FMA3 LZCNT BMI2
    [libx264 @ 040fdc40] profile High, level 3.0
    [libx264 @ 040fdc40] 264 - core 142 r2389 956c8d8 - H.264/MPEG-4 AVC codec - Cop
    yleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deb
    lock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 m
    e_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chro
    ma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1
    interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1
    b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=75 keyint_min=38 scenec
    ut=0 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=1200 ratetol=1.0 qc
    omp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, flv, to 'rtmp://a.rtmp.youtube.com/live2/keyname':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       encoder         : Lavf55.29.101
       Stream #0:0(und): Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p, 85
    4x480, q=-1--1, 1200 kb/s, 1k tbn, 25 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: mp3 (libmp3lame) ([2][0][0][0] / 0x0002), 44100 Hz,
    mono, fltp, 64 kb/s (default)
       Metadata:
         creation_time   : 2013-10-24 05:44:39
         handler_name    : IsoMedia File Produced by Google, 5-11-2011
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 -> libx264)
     Stream #0:1 -> #0:1 (aac -> libmp3lame)
    Press [q] to stop, [?] for help
    frame=    1 fps=0.0 q=0.0 size=       0kB time=00:00:00.39 bitrate=   9.2kbits/s
    ...
    frame=  463 fps=7.8 q=0.0 size=    1534kB time=00:00:31.66 bitrate= 396.8kbits/s
    [flv @ 040fd6e0] Failed to update header with correct duration.
    [flv @ 040fd6e0] Failed to update header with correct filesize.
    frame=  463 fps=6.8 q=-1.0 Lsize=    2055kB time=00:00:31.79 bitrate= 529.6kbits
    /s
    video:1778kB audio:249kB subtitle:0 data:0 global headers:0kB muxing overhead 1.
    405947%
    [libx264 @ 040fdc40] frame I:7     Avg QP: 2.24  size: 44703
    [libx264 @ 040fdc40] frame P:153   Avg QP: 0.65  size:  8418
    [libx264 @ 040fdc40] frame B:303   Avg QP: 5.74  size:   724
    [libx264 @ 040fdc40] consecutive B-frames: 11.9%  2.6%  0.0% 85.5%
    [libx264 @ 040fdc40] mb I  I16..4: 66.0% 12.4% 21.6%
    [libx264 @ 040fdc40] mb P  I16..4:  4.7%  0.8%  1.5%  P16..4:  6.6%  1.1%  1.1%
    0.0%  0.0%    skip:84.2%
    [libx264 @ 040fdc40] mb B  I16..4:  0.2%  0.0%  0.1%  B16..8:  3.0%  0.2%  0.1%
    direct: 0.6%  skip:95.8%  L0:47.7% L1:49.2% BI: 3.0%
    [libx264 @ 040fdc40] final ratefactor: -9.42
    [libx264 @ 040fdc40] 8x8 transform intra:11.8% inter:35.4%
    [libx264 @ 040fdc40] coded y,uvDC,uvAC intra: 33.7% 11.2% 11.1% inter: 2.6% 1.6%
    1.6%
    [libx264 @ 040fdc40] i16 v,h,dc,p: 13% 86%  0%  0%
    [libx264 @ 040fdc40] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  9% 74% 11%  0%  1%  1%  1%
    1%  2%
    [libx264 @ 040fdc40] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 61%  6%  1%  3%  2%  4%
    2%  4%
    [libx264 @ 040fdc40] i8c dc,h,v,p: 88% 10%  2%  0%
    [libx264 @ 040fdc40] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 040fdc40] ref P L0: 81.7%  9.4%  8.0%  0.9%
    [libx264 @ 040fdc40] ref B L0: 78.9% 20.9%  0.2%
    [libx264 @ 040fdc40] ref B L1: 99.1%  0.9%
    [libx264 @ 040fdc40] kb/s:471.59
    Received signal 2: terminating.

    Edit -

    I have now tested the following codes but I still dotn get any picture or sound.. but the health status in youtube still shows good

    I ran this command first

    ffmpeg -i input.mp4 -vcodec libx264 -preset medium -maxrate 3000k -bufsize 6000k -vf "scale=1280:-1,format=yuv420p" -g 50 -acodec libmp3lame -b:a 128k -ac 2 -ar 44100 file.flv

    and then I ran this

    ffmpeg -re -i file.flv -codec copy -f flv rtmp://a.rtmp.youtube.com/live2/<key>
    </key>

    I still didnt get any picture

    I also tried the full command in 1

    ffmpeg -re -i input.mp4 -vcodec libx264 -preset veryfast -maxrate 3000k -bufsize 6000k -pix_fmt yuv420p -g 50 -c:a aac -b:a 160k -ac 2 -ar 44100 -f flv rtmp://a.rtmp.youtube.com/live2/<key>  
    </key>

    still no joy