Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP

Autres articles (102)

Sur d’autres sites (16903)

  • batch FOR loop with FFMPEG

    27 décembre 2014, par user3604398

    I want to divide a .mp4 file into smaller .mp4 clips using ffmpeg.

    This is the code without a loop :

    ffmpeg -i source-file.mp4 -ss 0 -t 600 first-10-min.mp4
    ffmpeg -i source-file.mp4 -ss 600 -t 600 second-10-min.mp4
    ffmpeg -i source-file.mp4 -ss 1200 -t 600 third-10-min.mp4
    ...

    How do I make it into a loop in Microsoft DOS ? So far I have this :

    for /r $i in (*.mp4) do "C:\Program Files\FFMPEG\bin\ffmpeg.exe" -i "C:\Users\Name\Videos\2014-12-27-0926-45.mp4" -ss 0 -t 600

    Also someone said to put -codec copy in somewhere but I don’t know where.

  • How to add Overlay/Watermark Text opacity or transparency by FFmpeg ?

    28 novembre 2022, par ujjally

    I want to add overlay/watermark text into video with custom opacity or transparency like 50%(0.5) and 80%(0.8)

    


    I tried the below code but the opacity color automatically set to black.

    


    ffmpeg -i video.mp4 -vf drawtext="fontfile='C\:/Users/BRIGHT/AppData/Local/Microsoft/WINDOWS/fonts/RacingSansOne-Regular.ttf':text='YouTube.com':fontsize=h/15:fontcolor=yellow@0.5:bordercolor=white:borderw=1:y=(h-text_h*24):x=(mod(-0.5*n\,w+tw)-tw)" -codec:a copy output.mp4


    


  • How to initialize FFmpeg in .NET MAUI-Windows

    9 juillet 2024, par Hossam Fares

    I have installed the bin using winget install "FFmpeg (Shared)" on Windows 11 22631.3810. it installs successfully but when running FFmpegInit.Initialise() I get System.NotSupportedException: 'Specified method is not supported.' I have also tried setting the logLevel to FfmpegLogLevelEnum.AV_LOG_FATAL , and I got the same exception. I tried to set the libPath to C:\Users\UserName\AppData\Local\Microsoft\WinGet\Packages\Gyan.FFmpeg.Shared_Microsoft.Winget.Source_8wekyb3d8bbwe\ffmpeg-7.0.1-full_build-shared\bin and I got the same exeption