Recherche avancée

Médias (91)

Autres articles (67)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Création définitive du canal

    12 mars 2010, par

    Lorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
    A la validation, vous recevez un email vous invitant donc à créer votre canal.
    Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
    A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...)

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

Sur d’autres sites (5393)

  • FFMPEG Script Produces video of 1 second

    17 septembre 2019, par Tim J

    I am trying to work the script found here

    #########################
    ## START CONFIGURATION ##
    #########################

    # path to video playlist.txt
    playlist="playlist.txt";

    # output frame size
    outsize="1920x1080";

    # frames per second
    fps="60";

    # video bitrate
    bv="20M";

    # audio bitrate
    ba="256k";

    # video codec
    cv="h264";

    # audio codec
    ca="libfdk_aac";

    # output container format
    fmt="flv";

    # base frequency (Hz)
    bfreq="20";

    # end frequency (Hz)
    efreq="1420";

    #######################
    ## END CONFIGURATION ##
    #######################

    randfile="$(cat "$playlist" | rl | head -1)";
    duration="$(mediainfo --Inform="Video;%Duration/String3%" $randfile)";
    viz="volume=2,showcqt=s=1920x144:text=0:r=$fps:axis=0:basefreq=$bfreq:endfreq=$efreq:count=15:sono_g=4:bar_g=4:bar_v=35:sono_h=144:sono_v=bar_v*a_weighting(f):tc=0.1,rotate=1200*sin(200*PI/200*t):ow=24:oh=24:c=none,scale=$outsize,setsar=1/1[viz];[1:v]scale=$outsize,setsar=1/1[vid1];[viz][vid1]blend=all_mode=heat:shortest=1:repeatlast=0,hue="H="2*PI*t/420""";
    enc="-s $outsize -c:a $ca -b:a $ba -c:v $cv -preset ultrafast -b:v $bv -profile:v high -level 4.2 -g "$(bc <<< $fps*2)" -bf 2 -x264opts keyint="$(bc <<< $fps*2)":min-keyint="$(bc <<< $fps*2)":8x8dct=1 -pix_fmt yuv420p -r $fps";
    ffmpeg -hide_banner -i "$1" -r $fps -i "$randfile" -filter_complex $viz $enc -t $duration -shortest -f $fmt "$2";

    When running however I am only getting a video output of 1 second, there is no exit message the process just ends.

    The command I am running is ./ffviz.sh http://50.7.77.114:8277 output.mp4

    The 1 second clip does contain the correct mp4 and and audio, so I believe the process is working, I am not able however to make it run it for longer than 1 second.

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

    


  • 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