Recherche avancée

Médias (2)

Mot : - Tags -/kml

Autres articles (78)

  • L’espace de configuration de MediaSPIP

    29 novembre 2010, par

    L’espace de configuration de MediaSPIP est réservé aux administrateurs. Un lien de menu "administrer" est généralement affiché en haut de la page [1].
    Il permet de configurer finement votre site.
    La navigation de cet espace de configuration est divisé en trois parties : la configuration générale du site qui permet notamment de modifier : les informations principales concernant le site (...)

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

  • stop ffmpeg gently (to allow it to finish writing mp4 file) when streaming from udp

    22 juillet 2015, par user1913115

    i’m trying to receive a udp stream on a server and write it to an mp4 file. this works fine :

     ffmpeg -i udp://127.0.0.1:12345 -codec copy out.mp4

    if i press CTRL+C (or send SIGINT to the process) the ffmpeg quits and i have a working mp4 file.

    however, if the data stops coming in on the udp port (e.g. after 10 minutes of streaming) and i try to stop ffmpeg it requires 2 interrupt signals at which point ffmpeg exits abruptly and results in an unplayable mp4 file.

    does anyone know how to prevent ffmpeg from hanging when there’s no input data or to force it to write out the mp4 header ?

    i know i can specify a url option

    udp://127.0.0.1:12345?timeout=<microseconds>
    </microseconds>

    however, i need to be able to ignore occasional (5-10 minute long) pauses during the process of recording and only quit at the end.
    so even if i set timeout=60000000 it will cause my app to wait for 10 minutes when i want to stop the stream (e.g. if there’s no data) and i need it to quit immediately when i send a SIGINT to it

  • How I can keep the camera preview fps same as that in CamcorderProfile.videoFrameRate

    30 janvier 2015, par suitianshi

    Say I have a video recording app. The user press down a start button to start recording and lifts finger up to stop. For some reason I am using Camera.onPreviewCallback to receive byte data from preview and output it as a mp4 file(with ffmpeg libs). Suppose the user long presses start button for 10s, and I get 100 frames totally.How can I let my video last for exactly 10 seconds ?

    There are some problems :

    1. The fps of camera preview is not stable, so I can only get total number of frames as well as the desired duration when the recording stops.
    2. ffmpeg requires a fps field to be set when encoding(). I don’t know if I could set the fps value at the last time(that is, when I get all frames). The documents says it should be set when calling avformat_write_header(), so I guess not.
  • Error : No such filter : '"movie', what's the isssue ?

    16 mars 2019, par uno

    I am using the code to add watermarks to videos on upload for carrierwave-video :

    process encode_video: [:mp4, resolution: "640x480", watermark: {
       path: "app/assets/images/logo-nike.jpg",
       position: :bottom_right,
       pixels_from_edge: 10
     }]

    When i use this code, i get error :

    (in short)

    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
     Stream #0:1 -> #0:1 (aac (native) -> aac (native))
    Press [q] to stop, [?] for help
    [AVFilterGraph @ 0x55c8909bf180] No such filter: '"movie'
    Error reinitializing filters!
    Failed to inject frame into filter network: Invalid argument
    Error while processing the decoded data for stream #0:0
    Conversion failed!
    ):

    my ffmpeg version is 4.1.1

    Is there something missing from ffmpeg i need to install ? I have looked around and found no issues with others using this code (most posts are years old though)

    I found this : No such filter : ’drawtext’

    but isn’t the same thing ?