Recherche avancée

Médias (91)

Autres articles (72)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

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

Sur d’autres sites (9964)

  • Evolution #2269 : Prise en compte des variantes d’une langue

    31 août 2011, par cedric -

    il est deja possible de gérer des langues dérivées : dans ton exemple ce serait fr_ca. Il y a le cas existant du pt_br (portugais du brésil). Mais il est un fait qu’actuellement, si la lange n’existe pas en pt_br on se rabat sur la langue du site ou le fr au final, sans forcément chercher dans pt (...)

  • need to loop and convert the files

    24 décembre 2020, par AUDICOM

    My script should work as follows :
Check whether or not there are DAV files in the folder, if there are NO elements for a 1 minute loop until the next check, and if there are any DAV files, it should trigger DAV to JPEG conversion and move JPEGs to the SNAPSHOT folder, and DAV for PROCESSED folder. Until it works, the problem is finishing the conversion to JPEG and moving the files to folders, it closes the script, and it goes back to the loop and waits for a new file, this is not happening.

    


    Another problem is also that the files are generated every 30 minutes in bulk, but they already appear in bulk and therefore end when the 30 minutes are over, or the problem is when the script ends or the script just moves to one. PROCESSED folder, and does not convert.

    


    Script :

    


    REM -  - Checks for New Files (*.DAV).

:LOOP01    
     IF EXIST "C:\Users\AudicomRede\Documents\SNAPSHOT FINAL\TESTE VERIFICAÇÃO\*.*" GOTO SKIP01


:LOOP02
     IF NOT EXIST "C:\Users\AudicomRede\Documents\SNAPSHOT FINAL\TESTE VERIFICAÇÃO" GOTO SKIP02

     REM - ALL THIS WILL BE DONE IF THE DAV FILE EXISTS
:
:
:SKIP01
    REM Crafty 1 minute delay...
       PING 1.1.1.1 -n 10 -w 6000 >NUL
           GOTO LOOP01
:
:
:SKIP02
    REM START CONVERT
       for %%A IN (*.dav) do (

            ffmpeg -i "%%A" -r 0.2 -bt 20M -s 480x300 "%%~nA"%%03d.jpg

                  Move "%%A" PROCESSED
                      Move "*.*" SNAPSHOT 
                          
)

 GOTO SKIP01


    


    I use FFMPEG to convert all files.

    


  • ffmpeg concat of .ts files where issues in one file causes all audio/video after to be out of sync [closed]

    23 juillet, par The Shoe Shiner

    I'll start by saying I need a solution that can be automated in code, i.e. not one that requires me to manually select timestamps and trim files, and unfortuntely my media server (Jellyfin) only has access to ffmpeg, so I'm looking for an ffmpeg solution.

    


    I have a set of .ts files that were recorded from a live stream. The media server will immediately restart the recording if for some reason ffmpeg fails during the copy process. So I end up with multiple files that I can then concatenate. Most of the time this works fine.

    


    The current issue is that (as happens occasionally) one of these files, which is about 10 seconds long, has about 5 seconds of good data, and 5 seconds of what appears (in players) to be essentially nothing, video is still and no audio. The rest of the files, before and after, are are fine. The media server (which uses ffprobe) reports that the framerate for the problematic file is 15fps, however I suspect that this is a result of the gap causing bad math, because the first 5 seconds appear to be fine and running at 29.###fps, so maybe the missing data at the end is affecting the calculated framerate, but admittedly I don't know exactly what's happening under the hood.

    


    I need to concat these files, but after I run the concat, all video after that problematic 10s file is out of sync with the audio.

    


    I'm fine with gaps, pauses, missing audio, etc in that small portion of the final file, but what I need to avoid is having that single file cause all the remaining content to be out-of-sync or otherwise broken. So I think I need a way to "correct" that problematic file before the concat, and I need to do so in a way that does not require me to manually select timestamps, per my first comment.

    


    I have personally seen .ts have timestamp issues so my code already does a simple remux of all the ts files to mp4 prior to concat, and have also tried a remux of a final concatenated ts file, neither of which resolve this issue.

    


    Is there any other ffmpeg process I can run on the files, that might force ffmpeg to correct timestamps, which would allow me to concat successfully ? I'm not necessarily trying to recover data in the bad file, I'm just trying to ensure that I can concat a set of files and have the final file resemble what one would see when watching each file independently.

    


    Edit : More details about what I have tried (In addition to what was already mentioned).

    


      

    • During the remux I used the -shortest flag, assuming maybe the audio stream was a different length than the video.
    • 


    • Also tried the -reset_timestamps 1 flag in the remux.
    • 


    • The remux command looked like this : ffmpeg.exe -y -i "Invictus 2025_07_22_05_25_00_4_concat0.ts" -reset_timestamps 1 -vcodec copy -acodec copy -map 0:v -map 0:a -shortest "Invictus 2025_07_22_05_25_00_4_concat0.mp4"
    •