
Recherche avancée
Médias (1)
-
Spitfire Parade - Crisis
15 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (81)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains 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, parPré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 ) (...) -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
Sur d’autres sites (12253)
-
Can't process RTP video stream from Firefox browser or Python based scripts by FFMPEG
3 avril 2023, par Gentelam.SAny time I want to process (forward, analyze, copy, ...) RTP video stream from FF browser or python based scripts by FFMPEG, it "chucks" and can't work with it. Seems to be stream encoding issue.
I have a Janus server where clients join from browsers or anothers services, like Python, then I forward the stream to the URL, where FFMPEG is listening on. There is no issue when I try to process any forwarded stream coming from Chrome based browsers, but the problem occurs when I join from FF or Python.


I run ffmpeg in Ubuntu container.
The command I use :

-loglevel trace -analyzeduration 300M -probesize 300M -protocol_whitelist file,udp,rtp -i port4000.sdp -vf scale=1280:720 -vcodec libx264 -profile:v baseline -preset:v ultrafast -acodec aac -f flv -flvflags no_duration_filesize {{rtmpUrl}}


I used also very simple commands like the following but the result is the same :

ffmpeg -protocol_whitelist file,udp,rtp -i ./SDP/port4000.sdp -c copy -t 10 -y test.mkv


The SDP file I use :


SDP:
v=0
o=- 0 0 IN IP4 127.0.0.1
s=No Name
c=IN IP4 127.0.0.1
t=0 0
a=tool:libavformat 58.29.100
m=video 4000 RTP/AVP 96
b=AS:200
a=rtpmap:96 VP8/90000



The screens below depicts how FFMPEG behaves in case of FF and Chrome (loglevel of ffmpeg set to trace).


Firefox :
enter image description here


Chrome :
enter image description here








It looks like it brokes after the following log :
Before avformat_find_stream_info() pos: xxx


(Same problem is if I try to run ffprobe)
Thank you for any suggestion.


As described above, I tried quite a lot of of arguments running ffmpeg, different SDP files but seems to be not enough. I want the stream to be procced properly by FFMEPG.


-
avfilter/af_biquads : add option for block based linear phase processing
8 mai 2022, par Paul B Mahol -
Use FFMPEG driver in opencv
9 janvier 2021, par user3313834I have a camera on my linuxbox it is working well :


# $ ls -al /dev/video*
# crw-rw----+ 1 root video 81, 0 janv. 8 16:13 /dev/video0
# crw-rw----+ 1 root video 81, 1 janv. 8 16:13 /dev/video1
# $ groups
# adm cdrom sudo dip video plugdev lpadmin lxd sambashare docker libvirt



From python with cv2 it work well with the default driver
CAP_V4L2


>>> from pathlib import Path
>>> import cv2
>>> print(cv2.VideoCapture(0, apiPreference=cv2.cv2.CAP_V4L2).isOpened())
True
>>>



I would like to access it with the FFMPEG driver (no success) :


>>> print(cv2.VideoCapture(0, apiPreference=cv2.CAP_FFMPEG).isOpened())
False
>>>



From Python side the opencv look like to have the FFMPEG Driver :


>>> cv2.__version__
 '4.4.0'
 >>> info = cv2.getBuildInformation()
 >>> video, parallel = info.index('Video'), info.index('Parallel')
 >>> print(info[video:parallel])
 Video I/O:
 DC1394: NO
 FFMPEG: YES
 avcodec: YES (58.109.100)
 avformat: YES (58.61.100)
 avutil: YES (56.60.100)
 swscale: YES (5.8.100)
 avresample: NO
 GStreamer: NO
 v4l/v4l2: YES (linux/videodev2.h)
 >>>



From Linux side look ok too :


$ dpkg -l |grep -i opencv
ii libopencv-core4.2:amd64 4.2.0+dfsg-5 amd64 computer vision core library
ii libopencv-imgcodecs4.2:amd64 4.2.0+dfsg-5 amd64 computer vision Image Codecs library
ii libopencv-imgproc4.2:amd64 4.2.0+dfsg-5 amd64 computer vision Image Processing library
ii libopencv-videoio4.2:amd64 4.2.0+dfsg-5 amd64 computer vision Video I/O library

$ dpkg -l |grep -i ffm
ii ffmpeg 7:4.2.4-1ubuntu0.1 amd64 Tools for transcoding, streaming and playing of multimedia files
ii gstreamer1.0-libav:amd64 1.16.2-2 amd64 ffmpeg plugin for GStreamer
ii libavcodec-extra:amd64 7:4.2.4-1ubuntu0.1 amd64 FFmpeg library with extra codecs (metapackage)
ii libavcodec-extra58:amd64 7:4.2.4-1ubuntu0.1 amd64 FFmpeg library with additional de/encoders for audio/video codecs
ii libavdevice58:amd64 7:4.2.4-1ubuntu0.1 amd64 FFmpeg library for handling input and output devices - runtime files
ii libavfilter7:amd64 7:4.2.4-1ubuntu0.1 amd64 FFmpeg library containing media filters - runtime files
ii libavformat58:amd64 7:4.2.4-1ubuntu0.1 amd64 FFmpeg library with (de)muxers for multimedia containers - runtime files
ii libavresample4:amd64 7:4.2.4-1ubuntu0.1 amd64 FFmpeg compatibility library for resampling - runtime files
ii libavutil56:amd64 7:4.2.4-1ubuntu0.1 amd64 FFmpeg library with functions for simplifying programming - runtime files
ii libffmpegthumbnailer4v5 2.1.1-0.2build2 amd64 shared library for ffmpegthumbnailer
ii libpostproc55:amd64 7:4.2.4-1ubuntu0.1 amd64 FFmpeg library for post processing - runtime files
ii libswresample3:amd64 7:4.2.4-1ubuntu0.1 amd64 FFmpeg library for audio resampling, rematrixing etc. - runtime files
ii libswscale5:amd64 7:4.2.4-1ubuntu0.1 amd64 FFmpeg library for image scaling and various conversions - runtime files
$