Recherche avancée

Médias (1)

Mot : - Tags -/getid3

Autres articles (74)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

Sur d’autres sites (5658)

  • Recursively convert images in each subfolder into individual videos using FFmpeg

    17 décembre 2024, par arutan edram

    I am using this script to convert all images in a folder into a video. Each image is shown for 4 seconds and the script runs from a bat file.

    


    `ffmpeg -framerate 1/4 -i %%03d.jpg -pix_fmt yuv420p video.mp4`


    


    I have hundreds of subfolders each containing images with the same resolution and I want to convert them into one moive per subfolder.

    


    I might be close to a solution but it still does not do the job

    


    @echo off
setlocal enabledelayedexpansion

:: Set the frame rate and file format
set "framerate=1/4"
set "image_format=%%03d.jpg"
set "output_video=video.mp4"

:: Traverse all subfolders
for /d /r %%F in (*) do (
    echo Processing folder: %%F
    cd "%%F"
    :: Check if images exist
    if exist "%image_format%" (
        echo Converting images in %%F to video...
        ffmpeg -framerate %framerate% -i "%image_format%" -pix_fmt yuv420p "%%~nxF.mp4"
    ) else (
        echo No images found in %%F, skipping...
    )
    cd ..
)


    


    Any help is appreciated

    


  • Enter individual folder(s) and execute PowerShell command

    5 octobre 2020, par WorldTeacher

    I have many folders with even more subfolders, and as posted in my first question

    


    


    How to create a powershell script / or windows .bat file for ffmpeg

    


    


    I want to encode all video files in the folders.
The Script I got from mklement0 works fine but lazy as I am, I was wondering if there was a way to tell the PowerShell to enter folder 1, go to subfolder_1, and execute the ps1 script (would be perfect if it executed in a new powershell instance), wait a certain time and go into subfolder_2

    


    Repeat until no more subfolders available.

    


    Is this possible ?

    


    Edit :
The Script I got :

    


    Get-ChildItem *.mkv | where BaseName -notlike '*`[encoded]' | foreach {
ffmpeg -i $_ -c:v libx265 -c:a copy -x265-params crf=25 "$($_.BaseName)[encoded].mkv"
pause
}


    


    


    What is the reason for the desire to process each subfolder in a separate instance of powershell.exe ? by Mathias R. Jessen

    


    


    Because I want to encode multiple folders at once to save some time.
If there is a way to execute the script in the same PowerShell (as far as my understanding goes, I can only encode one folder at one time if I use the same PowerShell instance)

    


  • Conversion of individual mp4 files to ts yields unexpected playback

    3 août 2021, par MorenoGentili

    I'm converting three mp4 files (h264, no audio, each with a duration of three seconds) to the mpeg-ts format like so.

    


    ffmpeg -i 1.mp4 -c copy 1.ts
ffmpeg -i 2.mp4 -c copy 2.ts
ffmpeg -i 3.mp4 -c copy 3.ts


    


    Please note : I can't combine the mp4 files beforehand. Each one has to be converted individually as shown above since they're being generated by a live recorder.

    


    Then, I manually created a .m3u8 manifest like this one, so I could play those 3 ts files in sequence :

    


    #EXTM3U
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-TARGETDURATION:3
#EXTINF:3,
1.ts
#EXTINF:3,
2.ts
#EXTINF:3,
3.ts
#EXT-X-ENDLIST


    


    When I run the ffplay index.m3u8 command :

    


      

    • 1.ts is played for three seconds as expected ;
    • 


    • 2.ts is played "for a split second" (maybe just a frame) ;
    • 


    • 3.ts is played for three seconds as expected.
    • 


    


    Can someone explain why 2.ts is shown for such a brief time ? When I run ffmpeg -i 2.ts, the output is correctly displaying a duration of three seconds.

    


    Input #0, mpegts, from '2.ts':
  Duration: 00:00:03.00, start: 1.480000, bitrate: 49 kb/s


    


    How can I change my mp4 -> ts conversion commands so that each file can play for their whole duration (i.e. three seconds each) ? I'd like to avoid reencoding if possible.

    


    Thank you, I'm adding a link to the three files and the manifest for completeness.