Recherche avancée

Médias (0)

Mot : - Tags -/acrobat

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

Autres articles (93)

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

  • Taille des images et des logos définissables

    9 février 2011, par

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

Sur d’autres sites (7281)

  • Stream OpenCV frames to http using ffmpeg

    15 mars 2023, par Christoph Meyer

    I have a small Python OpenCV project and would like to stream my processed frames to HTTP using ffmpeg.

    


    For this I used the following sources :
Pipe and OpenCV to FFmpeg with audio streaming RTMP in Python
and
https://github.com/kkroening/ffmpeg-python/blob/master/examples/README.md#stream-from-a-local-video-to-http-server

    


    To make things more readable I used the ffmpeg-python library but as far as I understand, it doesn't matter if I open a pipe using subprocess or use the library.

    


    The problem that I have is, that I always get a broken pipe or "Connection refused" when I open the stream with ffplay.

    


    import ffmpeg
import cv2

video_format = "flv"
server_url = "http://localhost:8080"

cap = cv2.VideoCapture(1)
width = int(cap.get(cv2.CAP_PROP_FRAME_WIDTH))
height = int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT))


process = (
    ffmpeg
    .input('pipe:', format='rawvideo',codec="rawvideo", pix_fmt='bgr24', s='{}x{}'.format(width, height))
    .output(
        server_url,
        #codec = "copy", # use same codecs of the original video
        listen=1, # enables HTTP server
        codec="libx264",
        pix_fmt="yuv420p",
        preset="ultrafast",
        f=video_format)
    .overwrite_output()
    .run()
)

while True:
    ret, frame = cap.read()
    if not ret:
        break
    print("Sending frame")
    process.stdin.write(frame.tobytes())


    


    I also tried to stream using only ffmpeg and FaceTime and that works as i expected.

    


    My operation system is MacOS 12.3

    


    Maybe someone knows how to fix this.

    


    Thanks for your help

    


    Chris

    


  • libavformat/http: add support for headers option in listen mode

    11 août 2016, par Moritz Barsnick
    libavformat/http: add support for headers option in listen mode
    

    Instead of silently ignoring the headers option in listen mode, use
    the provided headers.

    Signed-off-by : Moritz Barsnick <barsnick@gmx.net>
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavformat/http.c
  • mpeg-2 ts video audio skipping - HTTP Live Streaming

    15 août 2012, par Kami Shangool

    I have multiple mp4 streams that I take and convert into mpeg-2 ts format using ffmpeg

    ffmpeg -i 0.mp4 -vcodec libx264 -sameq -acodec libfaac -fflags +genpts -coder 0 -f mpegts 0.ts

    The mp4s range from 1 to n. After converting all of them, I create a manifest file similar to :

    #EXTM3U
    #EXT-X-TARGETDURATION:4
    #EXT-X-VERSION:4
    #EXT-X-MEDIA-SEQUENCE:0
    #EXT-X-PLAYLIST-TYPE:EVENT
    #EXTINF:4.000,
    http://localhost/Nick2/0.ts
    #EXT-X-DISCONTINUITY
    #EXTINF:3.97,
    http://localhost/Nick2/1.ts
    #EXT-X-DISCONTINUITY
    #EXTINF:3.97,
    http://localhost/Nick2/2.ts
    #EXT-X-DISCONTINUITY
    #EXTINF:3.97,
    http://localhost/Nick2/3.ts
    #EXT-X-DISCONTINUITY
    #EXTINF:3.97,
    http://localhost/Nick2/4.ts
    #EXT-X-ENDLIST

    I've added the #EXT-X-DISCONTINUITY since the I'm trying to get back to back playback of the converted mp4's. The problem is that if I try to use HTTP live streaming, there is a noticeable pop in the audio between files. But that isn't apparent if playing the segments in QT.
    Any thoughts on how I can fix this ?