Recherche avancée

Médias (91)

Autres articles (51)

  • Qu’est ce qu’un éditorial

    21 juin 2013, par

    Ecrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
    Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
    Vous pouvez personnaliser le formulaire de création d’un éditorial.
    Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

Sur d’autres sites (5664)

  • Bash : sort find results using part of a filename

    13 novembre 2015, par utt50

    I have 3 webcams set up in a building, uploading still images to a webserver. I’m using ffmpeg to encode the jpgs to mp4 video.

    The directories are set up like this :

    Cam1/201504
    Cam1/201505
    Cam2/201504
    Cam2/201505
    Cam3/201504
    Cam3/201505

    I’m using the following bash loop/ffmpeg parameters to make one video per camera, per year. This works well so far (well... except that my SSD is rapidly degrading in performance - too many simultaneous read/write operations ?) :

    find Cam2/2013* -name "*.jpg" -print0 | xargs -0 cat | ffmpeg -f image2pipe -framerate 30 -vcodec mjpeg -i - -vcodec libx264 -profile:v baseline -level 3.0 -movflags +faststart -crf 19 -pix_fmt yuv420p -r 30 "Cam2-2013-30fps-19crf.mp4"

    The individual files are named like this (confusing ffmpeg’s built-in file sequencer) :

    Cam1_2015052413543201.jpg
    Cam1_2015052413544601.jpg
    Cam2_2015052413032601.jpg
    Cam2_2015052413544901.jpg

    I now need to create one video for an entire year across all 3 cameras, ordered by timestamp. To accomplish this, I need to sort the find results by the segment of the filename after the underscore.

    What do I pipe the find output to to accomplish this ? For example, the files above would be ordered like this :

    Cam2_2015052413032601.jpg
    Cam1_2015052413543201.jpg
    Cam1_2015052413544601.jpg
    Cam2_2015052413544901.jpg

    Any help is very much appreciated !

  • ffmpeg is not executing clip.run() when compiled with pyinstaller

    24 septembre 2018, par Thriskel

    When executing the .exe file in another machine that doens’t have it’s requeriments installed, running the programs gives the error :

    Exception in thread Thread-1:
    Traceback (most recent call last):
     File "threading.py", line 916, in _bootstrap_inner
     File "threading.py", line 864, in run
     File "y2m.py", line 80, in workit
     File "site-packages\ffmpeg\_run.py", line 202, in run
     File "subprocess.py", line 707, in __init__
     File "subprocess.py", line 992, in _execute_child
    FileNotFoundError: [WinError 2] The system cannot find the file specified

    I’m compiling the exe file using the command :

    pyinstaller y2m.py

    I’ve been reading every other post in this and others forums refered to this kind of problem but I don’t seem to find or understand the way of fixing this.

    The source code is in here

    and the warny2m.txt file is in here

    Things that I have tried :

    • using —paths=pathToLibFolder
    • using -w
    • using an older pyinstaller version
    • adding python3 to path
    • using -p DIR to add C :\Python3\Lib location then sub locations, also individual scripts. (those 3 ways to see if it would work)

    EDIT :

    When using ffmpeg_run.py the code fails. line is clip.run() where clip presents the input and output file.

  • Issue with creating Video files from Binary files

    22 septembre 2022, par user20057686

    We have a bunch of binary files that represent Video data.
This is how the binary files were created :

    


      

    1. Used MediaRecorder from a React application to capture the browser window.
To capture the screen stream we used (Navigator.)MediaDevices.getDisplayMedia() API
    2. 


    3. Each video is recorded for 1-second duration
    4. 


    5. This data is then encoded with base64 and sent through a websocket. The server decodes the base64 string and stores the binary data in a file (without any extension)
    6. 


    


    So we now have a bunch of binary files each containing 1 second worth of video data.

    


    The issue is, we are not able to convert all the binary files back to a single video.

    


      

    1. We tried using ffmpeg

      


      copy /b * merged.

      


      ffmpeg -i merged merged.mp4

      


    2. 


    


    Basically first merging all the binary files and converting to mp4. It didn't work. The resulting video duration is not equal to the (number_of_files) in seconds.

    


      

    1. We also tried converting individual chunks with ffmpeg but we get the below error :

      


      [h264 @ 000001522dc74b80] [error] non-existing PPS 0 referenced
[h264 @ 000001522dc74b80] [error] non-existing PPS 0 referenced
[h264 @ 000001522dc74b80] [error] decode_slice_header error
[h264 @ 000001522dc74b80] [error] no frame !
I can provide the complete logs if needed.

      


    2. 


    3. Next thing we tried was to use MoviePy library in Python. We programmatically concatenated the files and saved them as WebM and imported it into MoviePy as a Video.

      


    4. 


    


    In all the above approaches, we couldn't get the full video.