Recherche avancée

Médias (0)

Mot : - Tags -/protocoles

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

Autres articles (91)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

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

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

Sur d’autres sites (8409)

  • How can I run FFPROBE in a Python script without triggering the Windows Command window ?

    1er mars, par fnord12

    I am using ffmeg/ffprobe to get video durations (in an addon for Kodi). The code :

    


    result = subprocess.run(["ffprobe", "-hide_banner", "-v", "quiet", "-show_entries",
                                 "format=duration", "-of",
                                 "default=noprint_wrappers=1:nokey=1", filename], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)


    


    The above code and the file importing that code both have a .pyw extension (after first trying regular .py).

    


    This works fine but in Windows 11 it causes the black Windows Command window to briefly flash for each video, despite the -hide_banner flag and loglevel being set to quiet. In Linux Mint it runs without any such window popping up.

    


    Found the answer : subprocess.run just needed a final shell=True as the last argument.

    


  • Getting "Unrecognized option '1'" when using "-map_metadata -1" to erase metadata with ffmpeg [closed]

    20 novembre 2024, par Nautilus Era

    Edit :
    
As said in the header, this question is not about programing and I will ask it on the appropriate Stack.
    
My confusion came from the fact that I am using Python to make my calls to the shell, however, it has nothing to do with the problem I am trying to solve.
    
Thank you for your time and sorry for the bother.

    



    


    I was trying to erase metadata from a file using ffmpeg using the
following command :

    


    ffmpeg –i $file_path –map_metadata -1 –c copy $stripped_video_output


    


    Where $file_path and $stripped_video_output are variables containing
their respective path.

    


    ffmpeg gave the answer :

    


    Unrecognized option '1'. 
Error splitting the argument list: Option not found


    


    I am using Debian 12.

    


    I tried with both the repository's version as well as a compiled version
of ffmpeg and I tried on two different computers.

    


    If anyone can help with that, I would appreciate it.

    


    Thank you in advance and have a good one.

    


  • variable length of segments in HLS

    12 août 2019, par shubham vashisht

    I am using FFmpeg to create a hls streaming manifest from a audio file.
    So far i can break the audio file into several segments based on the duration. Let’s say 10. But the requirement is to break audio file in such way that first few segments are of lesser size say 4 seconds and following segments of 10 seconds long.
    I am calling ffmpeg from a python script like this

       result = subprocess.Popen(['ffmpeg -y -i {}  -acodec copy -f segment -segment_time {} -segment_list {}.m3u8 {}%03d.ts'.format(pathToDownloadedMediaFile, 10, mediaFileName,mediaFileName)],stdout=subprocess.PIPE,stderr=subprocess.STDOUT, shell=True)

    is there any way to create first few segments of different duration than the rest ?