Recherche avancée

Médias (0)

Mot : - Tags -/navigation

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

Autres articles (66)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • Utilisation et configuration du script

    19 janvier 2011, par

    Informations spécifiques à la distribution Debian
    Si vous utilisez cette distribution, vous devrez activer les dépôts "debian-multimedia" comme expliqué ici :
    Depuis la version 0.3.1 du script, le dépôt peut être automatiquement activé à la suite d’une question.
    Récupération du script
    Le script d’installation peut être récupéré de deux manières différentes.
    Via svn en utilisant la commande pour récupérer le code source à jour :
    svn co (...)

Sur d’autres sites (6574)

  • Recording video & audio data from RTSP stream using ffmpeg

    11 mars 2012, par Kiran Thakkar

    I am trying to record video data using FFMPEG. I have used following commands

    ffmpeg -i 'rtsp ://..' -vcodec copy -acodec copy -t 3600 -y file.mp4

    I got the following error

    Seems stream 0 codec frame rate differs from container frame rate: 180000.00

    (180000/1) -> 90000.00 (180000/2)
    Input #0, rtsp, from 'rtsp://10.17.8.138:554/h264.sdp?res=half&x0=0&y0=0&x1=1280&  

    y1=1024&
    qp=20&doublescan=0&bitrate=65535&ssn=20':
    Duration: N/A, bitrate: N/A
    Stream #0.0: Video: h264, yuv420p, 640x512, 90k tbr, 90k tbn, 180k tbc
    Output #0, mp4, to 'file.mp4':
    Stream #0.0: Video: 0x0000, yuv420p, 640x512, q=2-31, 90k tbn, 90k tbc
    Stream mapping:
    Stream #0.0 -> #0.0
    Press [q] to stop encoding
    [NULL @ 0x84c16d0]error, non monotone timestamps 50 >= 50
    av_interleaved_write_frame(): Error while opening file

    Can any body help me on this ?

  • FFMPEG is not writing the correct video duration in the output playlist file for HLS

    15 mai 2021, par user2726634

    I have 5 cameras each having an RTSP stream. I am converting that rtsp stream to HLS. This is the command I am using :

    


    ffmpeg -rtsp_transport tcp -i rtsp://*:*@*:*/ -f hls -codec copy -strftime 1 -strftime_mkdir 1 -hls_time 10 -hls_list_size 360 -hls_segment_filename %Y%m%d/%H/%M%S.ts playlist.m3u8


    


    The command gives the right output for 2 of the cameras. For the rest, the playlist files always has the incorrect duration (It is supposed to be 10 seconds) :

    


    #EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:5
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:5.000000,
videos/0/2/20210513/13/2632.ts
#EXTINF:5.000000,
videos/0/2/20210513/13/2642.ts
#EXTINF:5.000000,


    


    For some reason the duration always gets written as half of the actual video duration in the playlist.

    


    When I set hls_time to 5 seconds, the playlists for those respective cameras shows duration as 2.5 seconds even though the '.ts' is 5 seconds long.

    


    What could be wrong ?

    


  • Ffmpeg sidechaincompress with different input audio lengths

    29 janvier 2023, par user19313832

    There are two input files :

    


      

    • First entry is a video with music - 6 min.
    • 


    • Second entry - voice - 3 min.
Here compr will contain the audio of video that is muted when start talking (second input).
    • 


    


    ffmpeg -y -i %pathToVideo% -i %pathToAudio% -filter_complex ^ ^"[0:a][1:a]sidechaincompress=threshold=0.015:ratio=19:level_sc=1:release=1400:attack=1[compr]^" ^ -c:v copy -map 0:v -map [compr]:a %out%

    


    Problem - sound of the video is completely turned off when the voice ends, at the 3rd minute.

    


    This works well for the first 3 minutes.
Then the sound of the video is turned off.

    


    Half of the video remains without sound.
It is necessary that the sound of the video remains, and not turned off.
It looks like it only works on audios of the same length, but here the audios are different lengths ???????????

    


    It is necessary that the sound of the video does not turn off after the 3rd minute. Because the voice file is only 3 minutes.