
Recherche avancée
Médias (91)
-
Spoon - Revenge !
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
My Morning Jacket - One Big Holiday
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Zap Mama - Wadidyusay ?
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
David Byrne - My Fair Lady
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Beastie Boys - Now Get Busy
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Granite de l’Aber Ildut
9 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
Autres articles (15)
-
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 -
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 (...) -
Les thèmes de MediaSpip
4 juin 20133 thèmes sont proposés à l’origine par MédiaSPIP. L’utilisateur MédiaSPIP peut rajouter des thèmes selon ses besoins.
Thèmes MediaSPIP
3 thèmes ont été développés au départ pour MediaSPIP : * SPIPeo : thème par défaut de MédiaSPIP. Il met en avant la présentation du site et les documents média les plus récents ( le type de tri peut être modifié - titre, popularité, date) . * Arscenic : il s’agit du thème utilisé sur le site officiel du projet, constitué notamment d’un bandeau rouge en début de page. La structure (...)
Sur d’autres sites (5171)
-
OpenCV is able to read the stream but VLC not
25 avril 2023, par Ahmet ÇavdarI'm trying to stream my webcam frames to an UDP address. Here is my sender code.


cmd = ['ffmpeg', '-y', '-f', 'rawvideo', '-pixel_format', 'bgr24', '-video_size', f'{width}x{height}', 
 '-i', '-', '-c:v', 'mpeg4','-preset', 'ultrafast', '-tune', 'zerolatency','-b:v', '1.5M',
 '-f', 'mpegts', f'udp://@{ip_address}:{port}']
p = subprocess.Popen(cmd, stdin=subprocess.PIPE)
camera = cv2.VideoCapture(0)
while True:
 ret, frame = camera.read()
 cv2.imshow("Sender",frame)
 if not ret:
 break
 p.stdin.write(frame.tobytes())
 p.stdin.flush()
 if cv2.waitKey(1) & 0xFF == ord('q'):
 break



This Python code can make stream successfully. I can read the stream with this receiver code.


q = queue.Queue()
def receive():
 cap = cv2.VideoCapture('udp://@xxx.x.xxx.xxx:5000')
 ret, frame = cap.read()
 q.put(frame)
 while ret:
 ret, frame = cap.read()
 q.put(frame)
def display():
 while True:
 if q.empty() != True:
 frame = q.get()
 cv2.imshow('Receiver', frame)
 k = cv2.waitKey(1) & 0xff
 if k == 27: # press 'ESC' to quit
 break
tr = threading.Thread(target=receive, daemon=True)
td = threading.Thread(target=display)
tr.start()
td.start()
td.join()



But I can not watch the stream from VLC. I'm going to Media->Open Network Stream->
udp ://@xxx.x.xxx.xxx:5000 to watch stream. After some seconds, the timer that located bottom left of VLC starts to increase but there are no frames in screen, just VLC icon.


I checked firewall rules, opened all ports to UDP connections. I am using my IP address to send frames and watch them.
Also, I tried other video codecs like h264, hvec, mpeg4, rawvideo.
Additionally, I tried to watch stream by using Windows Media Player but it didn't work.


What should I do to fix this issue ?


-
Unable to get a frame using ffmpeg [closed]
24 mars 2023, par PrakharI have an SRT stream, which I am listening on an Ubuntu server. I want to be able to take a frame as a PNG at any given time, so that I can analyze that image. Given that it's a live stream, I should not be defining time of when do I want to download the frame, it should be instantaneous.


I tried following but in vain


ffmpeg -i 'srt://10.174.190.221:5000?streamid=ABCDE' %04d.png



This just starts the streaming, and does not produce the PNG files. Output which I get on screen


Last message repeated 1 times
[h264 @ 0x7317c80] decode_slice_header error
[h264 @ 0x7317c80] non-existing PPS 0 referenced
[h264 @ 0x7317c80] decode_slice_header error
[h264 @ 0x7317c80] non-existing PPS 0 referenced
[h264 @ 0x7317c80] decode_slice_header error
[h264 @ 0x7317c80] non-existing PPS 0 referenced
[h264 @ 0x7317c80] decode_slice_header error
[h264 @ 0x7317c80] no frame!
[h264 @ 0x7317c80] non-existing PPS 0 referenced
 Last message repeated 1 times
[h264 @ 0x7317c80] decode_slice_header error
[h264 @ 0x7317c80] non-existing PPS 0 referenced
[h264 @ 0x7317c80] decode_slice_header error
[h264 @ 0x7317c80] non-existing PPS 0 referenced
[h264 @ 0x7317c80] decode_slice_header error
[h264 @ 0x7317c80] non-existing PPS 0 referenced
[h264 @ 0x7317c80] decode_slice_header error
[h264 @ 0x7317c80] no frame!
[h264 @ 0x7317c80] non-existing PPS 0 referenced
 Last message repeated 1 times
[h264 @ 0x7317c80] decode_slice_header error
[h264 @ 0x7317c80] non-existing PPS 0 referenced
[h264 @ 0x7317c80] decode_slice_header error
[h264 @ 0x7317c80] non-existing PPS 0 referenced
[h264 @ 0x7317c80] decode_slice_header error
[h264 @ 0x7317c80] non-existing PPS 0 referenced
[h264 @ 0x7317c80] decode_slice_header error
[h264 @ 0x7317c80] no frame!
[h264 @ 0x7317c80] non-existing PPS 0 referenced
 Last message repeated 1 times
[h264 @ 0x7317c80] decode_slice_header error
[h264 @ 0x7317c80] non-existing PPS 0 referenced
[h264 @ 0x7317c80] decode_slice_header error
[h264 @ 0x7317c80] non-existing PPS 0 referenced
[h264 @ 0x7317c80] decode_slice_header error
[h264 @ 0x7317c80] non-existing PPS 0 referenced
[h264 @ 0x7317c80] decode_slice_header error
[h264 @ 0x7317c80] no frame!
[h264 @ 0x7317c80] non-existing PPS 0 referenced
 Last message repeated 1 times
[h264 @ 0x7317c80] decode_slice_header error
[h264 @ 0x7317c80] non-existing PPS 0 referenced
[h264 @ 0x7317c80] decode_slice_header error
[h264 @ 0x7317c80] non-existing PPS 0 referenced
[h264 @ 0x7317c80] decode_slice_header error
[h264 @ 0x7317c80] non-existing PPS 0 referenced
[h264 @ 0x7317c80] decode_slice_header error
[h264 @ 0x7317c80] no frame!
[h264 @ 0x7317c80] non-existing PPS 0 referenced
 Last message repeated 1 times
[h264 @ 0x7317c80] decode_slice_header error
[h264 @ 0x7317c80] non-existing PPS 0 referenced
[h264 @ 0x7317c80] decode_slice_header error
[h264 @ 0x7317c80] non-existing PPS 0 referenced
[h264 @ 0x7317c80] decode_slice_header error
[h264 @ 0x7317c80] non-existing PPS 0 referenced
[h264 @ 0x7317c80] decode_slice_header error
[h264 @ 0x7317c80] no frame!

Input #0, mpegts, from 'srt://10.174.190.221:5000?streamid=ABCDE':
 Duration: N/A, start: 61221.726022, bitrate: N/A
 Program 1 
 Metadata:
 service_name : ABCDE
 service_provider: VITEC
 Stream #0:0[0x4da]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 59.94 fps, 59.94 tbr, 90k tbn
 Stream #0:1[0x2d](eng): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 128 kb/s
Stream mapping:
 Stream #0:0 -> #0:0 (h264 (native) -> png (native))
Press [q] to stop, [?] for help
Finishing stream 0:0 without any data written to it.
Output #0, image2, to '%04d.png':
 Metadata:
 encoder : Lavf59.27.100
 Stream #0:0: Video: png, rgb24, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 59.94 fps, 59.94 tbn
 Metadata:
 encoder : Lavc59.37.100 png
frame= 0 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.00 bitrate=N/A speed= 0x 
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown



Would appreciate any help


-
Gstreamer convert and display video v4l2 - tee problems in rust
27 mars 2023, par d3imI have USB grabber v4l2 source and I want to tee stream to autovideosink and x264enc to file (now as fake black hole)


When I disable one or another branch it works but together Pipeline goes :


Pipeline state changed from Null to Ready
Pipeline state changed from Ready to Paused



and stays there never switches to Playing


gst-launch-1.0 with similar functionality works well.


gst::Element::link_many(&[&pw_video, &v_caps, &vid_queuey, &vid_tee]).unwrap();
 gst::Element::link_many(&[&vid_queue1, &autovideoconvert, &vid_queuex, &autovideosink]).unwrap();
 gst::Element::link_many(&[&vid_queue2, &autovideoconvert_x264, &vid_queue3, &x264, &vid_queue4, &fake]).unwrap();

 let tee_display_pad = vid_tee.request_pad_simple("src_10").unwrap();
 let vid_queue1_pad = vid_queue1.static_pad("sink").unwrap();

 tee_display_pad.link(&vid_queue1_pad).unwrap();

 let tee_convert_pad = vid_tee.request_pad_simple("src_20").unwrap();
 let vid_queue2_pad = vid_queue2.static_pad("sink").unwrap();

 tee_convert_pad.link(&vid_queue2_pad).unwrap();



How can I use tee in rust properly to have playable pipeline with two branches ?


Update : I read some posts about increasing queue size, so I tried for this and then all queues :


let vid_queue1 = gst::ElementFactory::make("queue")
 .name("queue1")
 .property("max-size-buffers", 5000 as u32)
 .property("max-size-bytes", 1048576000 as u32)
 .property("max-size-time", 60000000000 as u64)
 .build()
 .expect("queue1");



but it didn't help so I tried set zero latency :


let x264 = gst::ElementFactory::make("x264enc")
 .name("x264")
 .property_from_str("speed-preset", "ultrafast")
 .property_from_str("pass", "qual")
 .property_from_str("tune", "zerolatency")
 .property("quantizer", 0 as u32)
 .property("threads", 8 as u32)
 .build()
 .expect("!x264");



and it works now. But comparable gst-launch-1.0 settings didn't had such option - only queues sizes increased.


Is there any other option than setting zerolatency ?