Recherche avancée

Médias (91)

Autres articles (64)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (10479)

  • how to do rtsp live streaming in C program using ffmpeg [on hold]

    18 novembre 2015, par Priyesh Karatha

    i want to write a c program using ffmpeg which does same function of following command .

    ffmpeg -i "rtsp://localhost:8554/stream" -vcodec libx264 -vb 150000 -g 60 -vprofile baseline -level 2.1 -acodec aac -ab 64000 -ar 48000 -ac 2 -vbsf h264_mp4toannexb -strict experimental -f rtsp rtsp://user:password@host:1935/live/stream

    How can i start ? Please suggest some tutorials .
    I have gone through FFMPEG to send RTSP encoded stream C++ .But i am not aware of the functions and data structures used here .

  • FFMPEG : streaming two different videos using the same resource

    27 mai 2020, par Donmoear

    I'm trying to use FFMPEG to stream a video to a web-server, 
I'm using Local-host for now,It works like a charm Both on MacOs and Ubuntu, 
But I want to try streaming two videos, on the same resource (PC webcam), 
On macOS it works,

    



    On ubuntu I get : /dev/video0: Device or resource busy

    



    the used command is :

    



    ffmpeg -f v4l2 -framerate 30 -video_size 640x480 -i /dev/video0 -f alsa -ar 11025 -i hw:0 -f mpegts -codec:v mpeg1video -s 320x180 -b:v 160k -bf 0 -codec:a mp2 -b:a 64k -muxdelay 0.001 http://localhost:8081/stream/1Zd7atYxVTy27jbKfhGva9cKJan/one

    



    I want to understand what might be causing the issue on Linux. 
Thanks

    


  • FFMPEG, running through subprocess, getting error : "pipe: : Invalid data found when processing input"

    19 avril 2020, par mamba9999

    Im writing a program which getting the stream from ip camera, do with frame what i need and send to ffmpeg for transcoding. Then ffmpeg should convert video and send to output url.
But when i running script, i get the error : "pipe: : Invalid data found when processing input".
Im really newby in ffmpeg. Please help, what i doing wrong.

    



    
cap = cv2.VideoCapture("rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov")

command = [
    "ffmpeg",
    "-i", "-",
    "-f", "mpegts",
    "-vcodec", "mpeg1video",
    "-s", "960x540",
    "-b:v", "1000K",
    "-r", "30",
    "-bf", "0",
    "-codec:a", "mp2",

    "http://127.0.0.1:8888/yoursecret"
]

proc = subprocess.Popen(command, stderr=subprocess.PIPE, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
out, err = proc.communicate()


print(err)

while True:
    ret, frame = cap.read()
    # _, buf = cv2.imencode('.jpg', frame)
    # img_byte = io.BytesIO(buf.tobytes())
    try: 
        proc.stdin.write(frame.tostring())
        print("SENDED")
    except IOError as e:
        print(e) 
        proc.stdin.close()
        proc.wait() 

proc.stdin.close()
proc.wait()


    



    Traceback

    



    ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
built with Apple clang version 11.0.0 (clang-1100.0.33.17)
configuration: --prefix=/usr/local/Cellar/ffmpeg/4.2.2_2 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --disable-libjack --disable-indev=jack
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
pipe:: Invalid data found when processing input