Recherche avancée

Médias (1)

Mot : - Tags -/wave

Autres articles (24)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (2094)

  • How to convert FFmpeg command to FFmpeg-Python code ?

    11 mars 2024, par Валентин Арно

    I have this command-line code :

    


    ffmpeg -hide_banner -hwaccel_device auto -hwaccel auto -thread_queue_size 2048 -f dshow -rtbufsize 2048M -pixel_format bgr24 -i video="screen-capture-recorder"  -thread_queue_size 2048 -f dshow -rtbufsize 2048M -channel_layout stereo -i audio="CABLE Output (VB-Audio Virtual Cable)" -filter_complex "[0:v]crop=1920:1040:0:0,scale=in_range=full:out_range=full:eval=init:interl=false:flags=bitexact+accurate_rnd+full_chroma_int,fps=fps=30.000,pp=fa[v1];[1:a]volume=volume=1.2[a1]" -map "[v1]" -map "[a1]" -c:a copy -c:v libx264 -preset ultrafast -tune film  -crf 17 -r 30 -force_key_frames expr:gte(t,n_forced*1) -sc_threshold 0 -pix_fmt yuvj422p -max_muxing_queue_size 2048 -copyts -start_at_zero -y -t 5 "Y:\test\ output_1".mkv


    


    Error : Stream specifier ':a' in filtergraph description ...matches no streams.

    


    And I want to convert it to ffmpeg-python code in Python.

    


    But how can I do it ?

    


    This is what I have done so far :

    


    video_ = ffmpeg.input('video=screen-capture-recorder',
                     thread_queue_size=2048,
                     rtbufsize='2048M',
                     pixel_format='bgr24',
                     framerate=30,
                     f='dshow'
                     )

audio_ = ffmpeg.input('audio=virtual-audio-capturer',
                     thread_queue_size=2048,
                     rtbufsize='2048M',
                     channel_layout='stereo',
                     f='dshow'
                     )
print(' '.join(  
      ffmpeg
      .filter(video_,'fps', fps=30.000)
      .filter(video_,'crop', 1920,1040,0,0)
      .filter(video_,'pp','fa')
      .filter(video_,'scale', in_range='full', out_range ='full', eval='init', interl='false', flags='bitexact+accurate_rnd+full_chroma_int')
      .filter(audio_,'volume',volume=1.2)

      .output('Y:\\test\\output_1.mkv', acodec='copy', vcodec="libx264", preset='ultrafast',
              tune='film', crf=17, r=30, force_key_frames='expr:gte(t,n_forced*1)',
              sc_threshold=0, pix_fmt='yuv420p', max_muxing_queue_size=2048,
              start_at_zero=None, t=15)
      
      .global_args('-hide_banner')
      .global_args('-hwaccel_device', 'auto')
      .global_args('-hwaccel', 'auto')
      .global_args('-report')
      .overwrite_output()
      .compile()
))


    


    Thanks.

    


  • avcodec/h264dec : fix possible out-of-bounds array access

    25 août 2021, par Niklas Haas
    avcodec/h264dec : fix possible out-of-bounds array access
    

    If slice_type is > 9, the access to ff_h264_golomb_to_pict_type is
    out-of-bounds. Fix this by simply setting the slice_type to 0 in this
    case.

    This is completely inconsequential because the value is only being used
    to being used as an offset in the calculation of the film grain seed
    value, a corruption of which is practically invisible.

    Fixes coverity ticket #1490802

    Signed-off-by : James Almer <jamrial@gmail.com>

    • [DH] libavcodec/h264dec.c
  • FFmpeg batch convert multiple files

    11 mars 2019, par John

    This command works great :

    ffmpeg \
    -i /mnt/share/Movies2/"nameofmovie.mkv" \
    -map 0:0 \
    -map 0:1 \
    -map 0:2 \
    -c:v libx264 \
    -preset veryfast \
    -tune film \
    -crf 18 \
    -c:a:0 copy \
    -c:a:1 copy \
    /mnt/share/Converted/"nameofmovie".mkv

    But i want to either be able to read the input file from a text file or to run this command one after another for each file i want to convert. Is there a script i can set up to do this ? Not all the files are in the same folder or the same format so something where i could just change the file name and format would be great. I used to have a bash script that could do this for an entire folder but that’s not what i am trying to do here. I am using Ubuntu server 18.04
    Also i’m pretty new to this i’ve found this for a whole folder :

    for i in *.avi;
    do name=`echo $i | cut -d'.' -f1`;
    echo $name;
    ffmpeg -i "$i" "${name}.mov";
    done

    But i dont know how to adapt this for individual files