Recherche avancée

Médias (0)

Mot : - Tags -/auteurs

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

Autres articles (44)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

Sur d’autres sites (7152)

  • how to make the script re-ask for the input again after failure ?

    6 avril 2022, par Rami Magdi

    this some script for ffmpeg that i added to windows context menu
so i just copy paste what i want done
when this .bat fails [wrong argument for instance ] it closes and i have to restart it
how to make the script re-ask for the input again after failure ?

    


    @echo off
echo    -------------------------------------------------------------
echo                             FILTERS
echo    -------------------------------------------------------------
echo,
echo   VERTICAL FLIP=    -lavfi vflip
echo   HORIZONTAL FLIP=  -lavfi hflip
echo   NEGAT COLORS=     -lavfi Enegate
echo   NEGATE LUMINANCE= -lavfi lutyuv=y=negval
echo   GRAYSCALE=        -lavfi hue=s=0
echo   ISOLATE COLOR=    -lavfi colorhold=color="orange":similarity=0.29:blend=0
echo   PS CURVES PRESET= -lavfi curves=psfile='MyCurvesPresets/purple.acv'
echo   VIGNETTE EFFECT=  -lavfi vignette=PI/4
echo   LOOKUP TABLE=     -lavfi lut3d=c\\:/nnn/ggg.cube
echo   SPEED UP OR SLOW DOWN=    -lavfi setpts=PTS/2
echo   SPEED UP VIDEOS, AUDIOS=  -lavfi "[0:v]setpts=PTS/2[v];[0:a]atempo=2.0[a]" -map "[v]" -map "[a]"
echo   REVERSE=     -lavfi reverse
echo   POSTERIZE=   -lavfi elbg=l=8:n=1
echo   MOTION BLUR= -lavfi tmix=frames=20:weights="10 1 1"
echo   HARD SUB=    -lavfi subtitles=s.ass
echo   SOFT SUB=    -scodec mov_text -metadata:s:s:0 language=eng
echo   ONE IMAGE=   -lavfi -frames 1
echo   AN IMAGE EVERY 60 SEC= -lavfi fps=1/60
echo   ONLY IFRAMES= -skip_frame nokey
echo   GIF=    -lavfi "fps=10,scale=320:-2:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0
echo   STACKS= -lavfi "[0:v][1:v][2:v][3:v]xstack=inputs=4:layout=0_0|w0_0|0_h0|w0_h0[v]" -map "[v]"
echo   EMBED THUMBNAIL = -i 1.jpg -map 0:0 -map 0:1 -map 1 -c:0 copy -c:v:1 png -disposition:v:1 attached_pic
ECHO,
echo    -------------------------------------------------------------
echo                             CODEC OPTIONS
echo    -------------------------------------------------------------
echo,
echo   -lavfi "[0:v]scale=-2:720,setpts=PTS/1.5[v];[0:a]atempo=1.5[a]" -map "[v]" -map "[a]" -crf 40 -preset ultrafast
echo   -map 0 -codec copy
echo   -acodec copy -vcodec libx264 -vsync cfr -crf 20 -pix_fmt yuv420p -tune film -preset veryfast -movflags +faststart
echo   -acodec aac -ac 2 -ab 128k -ar 44100 / -acodec libmp3lame -ab 320k -ar 44100 -id3v2_version 3 
echo   -qscale:v 2
echo,


    


    the main part :

    


    set /P extra="ENTER CODEC OPTIONS="

echo,
echo Processing "%~nx1"
echo Output will be "%~n1"_output.mp4"
ffmpeg -v error -stats -y -i "%~1"  %extra%  "%~n1"_output.mp4
pause


    


  • How to mix audio description track into stereo mix in FFMPEG or SOX

    4 mai 2022, par Overlook Motel

    I have a video file with a stereo mix. I have also been provided with an additional audio description track (a narration which describes what's happening on screen for visually-impaired audiences) as a mono WAV.

    


    I am trying to mix the two together, however the tricky part is adjusting the levels. The levels of the main mix should be dipped before and raised back again after each line of speech in the AD track.

    


    The company who produced the AD track have offered to do this for a fee, however I noticed that their fee is static regardless of the length of the film, so I assume it must be an automated process (if it involved a sound mixer in a studio, it'd be charged at a per minute rate).

    


    I'm wondering if it's possible to do this myself in FFMPEG.

    


    The AD track is cleanly recorded at a consistent level and is entirely silent in between the lines of narration. So imagine it would be in principle possible to determine where the main mix needs to go up and down.

    


    Would probably need to :

    


      

    1. Analyse the levels of the AD track and convert to a list of "fade down here", "fade up here" instructions.
    2. 


    3. Apply that list of instructions to the main mix to create an intermediate.
    4. 


    5. Mix together the intermediate with the AD track.
    6. 


    


    The final step could be achieved with the amix filter, but I have little idea how to approach the first 2 steps.

    


    Does anyone know if this is achievable with FFMPEG ? I'd also be open to using other programs such as SOX.

    


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