
Recherche avancée
Autres articles (98)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...) -
Organiser par catégorie
17 mai 2013, parDans 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 (...)
Sur d’autres sites (6420)
-
mpeg-2 ts video audio skipping - HTTP Live Streaming
15 août 2012, par Kami ShangoolI 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-ENDLISTI'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 ? -
Stream OpenCV frames to http using ffmpeg
15 mars 2023, par Christoph MeyerI 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