Recherche avancée

Médias (1)

Mot : - Tags -/belgique

Autres articles (78)

  • Problèmes fréquents

    10 mars 2010, par

    PHP et safe_mode activé
    Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
    La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site

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

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

Sur d’autres sites (12980)

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

    


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

    


  • 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