Recherche avancée

Médias (91)

Autres articles (112)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

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

  • FFmpeg Batch Merge From Input Folder

    4 septembre 2022, par Parham.8

    I have this command that works perfectly fine :

    


    echo off
mkdir inputs
mkdir outputs
set "InputFolder=%~dp0inputs"
for /R "%InputFolder%" %%i in (*.mp4) do ffmpeg -i "%%i" -c copy "outputs\%%~ni.mkv"


    


    I'm trying to make this command work as well with no success :

    


    echo off
mkdir inputs
mkdir outputs
set "InputFolder=%~dp0inputs"
for /R "%InputFolder%" %%i in (*.mp4) do (ffmpeg -n -i "%%~ni.mp4" -i "%%~ni-eng.srt" -c copy -max_interleave_delta 0 -map 0 -map -0:v:1? -map -0:v:2? -map 1 -fflags +bitexact -map_metadata:g -1 -map_metadata -1 -metadata title="" -metadata comment="" -metadata:s:v title="" -metadata:s:v language="und" -metadata:s:v VENDOR_ID="" -metadata:s:a title="" -metadata:s:a:0 language="eng" -metadata:s:a:0 handler_name="English" -metadata:s:a VENDOR_ID="" -metadata:s:s:0 language="eng" "outputs\%%~ni.mkv")


    


    Any suggestions to make it work ?

    


  • Batch file to add separate audio file to MP4 file [closed]

    30 janvier 2021, par MrRoso

    I have a couple of video files (MP4) with audio in France.
Video1.mp4, Video2.mp4, Video3.mp4, ……
In the same directory, I have the same couple of audio files in English (m4a).
Audio1.m4a, Audio2.m4a, Audio3.m4a, ……

    


    The command

    


    ffmpeg -i "Video1.mp4" -i "Audio1m4a" -map 0 -map 1:a -c copy "Out.mp4"


    


    to add the audio file to the Video file works fine, but I need to do this for each video and audio file manually.

    


    I want to do this in a batch file, like this :

    


    @Echo off
for %%i in (*.MP4) %%j in (*.m4a) do ffmpeg -i "%%i" -i "%%j" -map 0 -map 1:a -codec copy "/new/%%~nI.mp4"


    


    But I get the follow error message :
"% j" cannot be processed syntactically at this point.

    


    Also the new batch file ends in an error :

    


    @Echo off
for /F tokens=i,j %%i in (*.MP4) %%j in (*.m4a) do ffmpeg -i "%%i" -i "%%j" -map 0 -map 1:a -codec  copy "/new/%%~nI.mp4"


    


    Error Message :
"i" cannot be processed syntactically at this point.

    


    Has someone a batch file for me, which is working ?

    


    Best regards

    


  • I want FFMPEG generate the m3u8 file with the oldest segments instead of the newest

    4 juin 2021, par Sandi

    I have an FFmpeg command like this :

    


     ffmpeg -i test.mp4 -f hls -hls_time 2 -hls_wrap 10 -hls_list_size 5 test.m3u8


    


    Afaik, hls_wrap is the number of segments we want to store locally and hls_list_size is the segment listed in the m3u8 output file. The command above will generate 10 files of the video segment.

    


    [seg 0][seg 1][seg 2][seg 3][seg 4][seg 5][seg 6][seg 7][seg 8][seg 9]


    


    And inside the test.m3u8, of course, there are 5 newest segments listed.

    


    [seg 5][seg 6][seg 7][seg 8][seg 9]


    


    I want the test.m3u8 lists the oldest available segment instead of the newest. So it should contain :

    


    [seg 0][seg 1][seg 2][seg 3][seg 4]


    


    In another word, I want to preload the segments before it listed in test.m3u8.

    


    The idea is I want to rsync the output of that FFmpeg command to a different folder on the network. I want to avoid test.m3u8 contains a segment that not completely copied because of the large segment size.

    


    Please help me and pardon my English. Thank you very much !