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 (11733)

  • Controlling end time in video player via AVPacket information / setting pts/dts properly

    26 janvier 2017, par SyntheticGio

    I’m currently working in C/C++ using the FFMPEG core (libavcodec, etc.). I’m capturing a stream and writing it in chunks to different files. So imagine the stream is 5 minutes in length and I’m writing five files of one minute in length each. I’m able to do this successfully.

    Currently, each file after the first file has a start time equal to the time it would have been in the un-chunked stream. So the second video file starts at 1 minute, the third starts at 2 minutes, etc. This was inadvertent but as it turns out is beneficial in my particular use case.

    VLC or other video players that I’ve tried report this start time ’properly’, but the end time shows as the duration (not start time + duration). My gut feeling is that the player simply is making the assumption all videos start at 0 and it shows the length as the ’end time’ but I don’t actually know this so I’d like to know if there is anyway to set the AVPacket information so the player for the third video would start at 2 minutes and end at 3 minutes (for a 1 minute length video) - as an example ?

    As an alternative, if I wanted to do this the traditional way (reset each chunk to starting at time 0), I assume I’d normalize the AVPacket.pts and AVPacket.dts by subtracting the values of the final packet in the previous chunk ? This seems like this strategy would work for pts but I’m less sure about it working for dts. I feel like it would generally work for dts but there might be times when this fails, so I’d like to know if this is a safe method (or if there is a better method I should use in this case).

  • ffmpeg time-lapse from raw .NEF photos

    14 juin 2020, par Emil Terman

    I have about 3000 .NEF photos on the server, each weighting about 80MB.
I need to make a time-lapse out of them. Since it's just for a demo, it's fine if I reduce the quality, so compressing is fine.

    



    I've tried different things, but I couldn't really find a way to make a time-lapse out of .nef files.
But I did find a way to make time-lapse out of .jpg files :

    



    ffmpeg -r 24 -f concat -i ordered_list_of_photos.txt -s hd1080 -vcodec libx264 out.mp4


    



    This works perfectly, but it only works with .jpgs it seems.

    



    -f concat -i ordered_list_of_photos.txt - means : read the files from ordered_list_of_photos.txt. That file contains lines like :

    



    file 'jpgs/file1.jpg'
file 'jpgs/file2.jpg'
...


    



    Do you have any suggestions on how to do this ? I'm pretty sure it has something to do with rawvideo demuxer, but I can't figure it out on my own.

    



    Converting the .nef files to .jpg seems like an option, but I can't get ufraw-batch to work, as it throws segmentation faults after the first conversion. And I also don't have Desktop access to the computer, I'm using ssh to do all of this (so GUI apps won't work I think).

    


  • Cut videos and stack them with hstack in ffmpeg at the same time

    18 juillet 2018, par ekuusi

    I have two videos that I want to stack with hstack. The videos are not perfectly in sync so I would like to cut a bit from the beginning of one of the videos to get them to sync perfectly. Everything works fine using two concurrent commands :

    ffmpeg -ss 00:00:18 -i video1.mp4 -ss 00:00:02.000 -c:v libx264 left.mp4

    followed by

    ffmpeg -i left.mp4 -i right.mp4 -filter_complex hstack output.mp4

    I’m wondering however if it is possible to do the trimming at the same time as stacking so that ffmpeg doesn’t have to encode the cut video twice. This would save a lot of time for me as I will be doing this cutting & merging multiple times.

    I tried various ways to achieve this in one single command, but to no avail so I have to turn to the community. Thank you for helping !