Recherche avancée

Médias (0)

Mot : - Tags -/objet éditorial

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (43)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

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

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

Sur d’autres sites (7014)

  • Checking for files in a directory with bash script ? what is wrong with this code ?

    4 décembre 2016, par A Sahra

    I have written this code to check for video files in a directory and convert them with ffmpeg.
    while running this script i get out put as "[ERROR] File Not Found" which i have it in else block.what is wrong with the script that i don’t get the files.

    #!/bin/bash
    # set PATH to check existance of video file in this directory
    checkfiles='/home/webuser/public_html/shareportal/convertedUp_videos/'
    #format of output video file
    webm='webm'
    for f in checkfiles
    do
    fullfilename="$f"
    filenamewithpath=$(basename "$fullfilename")
    filewithoutext="${filename%.*}"
    fileextention="${filename##*.}"
    changeextension=mv --"$f" "${f%.$fileextention}.$webm"
    outputfilename="/home/webuser/public_html/shareportal/converted_videos/$changeextension"
    echo "File FUll NAME : $fullfilename"
    echo "File name with full path : $filenamewithpath"
    echo "File name without extention : $filewithoutext"
    echo "File extention : $fileextention"
    echo '1 File Converted'
    if (ffmpeg -i "$f" "$outputfilename")
    then
    confullfilename="$outputfilename"
    confilenamewithpath=$(basename "$confullfilename")
    confilewithoutext="${filename%.*}"
    confileextention="${filename##*.}"
    echo "File FUll NAME : $confullfilename"
    echo "File name with full path : $confilenamewithpath"
    echo "File name without extention : $confilewithoutext"
    echo "File extention : $confileextention"
    echo '1 File Converted'
    else
    echo "Could Not Convert File"
    fi
    #get Image of video file on provided time stamp
    image_path='/home/webuser/public_html/shareportal/video_images/$filewithoutext.png'
    if (ffmpeg -ss 00:00:03 -i "$f" -vframes:v 1 "$image_path")
    then
    echo "Image Extracted"
    else
    echo "Could not Extract Image"
    fi
    done
    rm -r f
  • Web page with script

    28 avril 2017, par Peter

    please be patient with me, I have never been very much into the coding (only at the university just a little) but here is one thing I would love to have. I havent done any research before asking before I dont even know what to search for :) but here is what I would like to do :

    I have synology device with multicast TV stream connected to it. I have installed ffmpeg and everytime I want to record a TV show I have to do it from CLI so I was thinking it would be nice to run this ffmpeg from the web page. I mean I would click the TV channel from the drop down menu, set the name of a file, set the time and click RUN and then the command (ffmpeg -i http://MULTICAST_STREAM-variable -acodec copy -vcodec copy /var/services/homes/xxx/NAME_OF_TV_SHOW.mpg) will execute on my synology...Is something like this possible ? (I hope it is)...What exactly should I search for ?

    Thank you very much

  • Batch-file script to automatically add an mp3 track to the same mp4 video in ffmpeg [closed]

    15 janvier, par Poro

    I have several video and audio files :

    


      

    • file 01.mp3
    • 


    • file 01.mkv
    • 


    • file 02.mp3
    • 


    • file 02.mkv
    • 


    • file 03.mp3
    • 


    • file 03.mkv
    • 


    


    what should be the script for ffmpeg to take each video file and add an additional second audio track with the same name (file 01.mkv + file 01.mp3) ?

    


    it's a main question

    


    But ultimately I need to get each video (let's say it's mp4) with 3 audio streams :

    


      

    1. mixed stream from mp3 (100%) + mkv (10% volume) - by default
    2. 


    3. stream from mp3 file (100%)
    4. 


    5. and last stream from mkv (100% volume)
    6. 


    


    I would like to write all these commands in one batch-file

    


    I already use .bat files to automatically convert to another format (for example) :

    


    for %%i in (*.mkv) do (
ffmpeg -y -i "%%i" -c copy "%%~ni.mp4"
)


    


    As far as I understand, for the audio track task I need to set a variable for .mp3 (besides %%i ) and make it compare to the .mkv name, but I don't understand how to do it correctly.

    


    to manually add a track, I use (for example) :

    


    ffmpeg -i video.mkv -i audio.mp3 -map 0 -map 1:a -c:v copy -shortest output.mkv


    


    to change the track order and set the default track, I use (for example) :

    


    ffmpeg -i input.mkv -map 0:v:0
-map 0:a:2 -map 0:a:0 -map 0:a:1 -map 0:a:3
-map 0:s -c copy
-disposition:a:0 default
reordered.mp4


    


    It takes a lot of time to do all this work with a lot of files. it would be great to delegate it to a machine.