
Recherche avancée
Autres articles (72)
-
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
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 ;
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
Sur d’autres sites (14212)
-
Sync video and audio stream from VLC to loopback devices using ffmpeg and pulseaudio
27 mars 2023, par jimangel2001I am trying to redirect a VLC stream to be used as a virtual camera and audio source for voip applications.


What i have till now :


- 

- Create a network stream over rtsp using vlc :
vlc {path} --sout="#rtp{{sdp=rtsp://:{port}/}}"
- Create a video loopback device using v4l2loopback :
sudo modprobe -r v4l2loopback && sudo modprobe v4l2loopback devices=1 video_nr={video_nr} card_label={label} exclusive_caps=1
- Redirect network stream using ffmpeg to said loopback device and applying some filters to make it compatible with voip apps :
ffmpeg -i rtsp://localhost:{port}/ -f v4l2 -vf "hflip,format=yuv420p,scale=-1:{width}" /dev/video{video_nr}








And now I am trying to handle the audio part. I can create sinks and redirect them to sources using pulseaudio and pactl. The way I am testing it right now is just redirect whatever audio source to my speakers using ffmpeg. I have tried many things,


- 

- used the same ffmpeg instance as before to redirect audio
- created a separate ffmpeg instance that grabs from the rtsp source






Something like this :


PULSE_SINK=@DEFAULT_SINK@ ffmpeg -i rtsp://:/8554/ -f pulse "ShareFlix-audio


But the audio is always out of synk with /dev/video (I am testing with ffplay)


Do you have any ideas or recommendations ? Thanks in advance.


- Create a network stream over rtsp using vlc :
-
How to generate SDP file from FFMPEG
29 octobre 2017, par MobilityLabSo, I have been working with FFMPEG on a project that involves streaming video from one computer to another across the internet with RTP. I want to take that into ffmpeg and use ffserver to display it on a local network.
As I understand it, you need to have a SDP information so that the receiving ffmpeg instance can interpret the RTP stream. Despite what webpages say, I can not find the SDP information in the information printed to the console.
How can I force the transmitting ffmpeg instance to output the SDP information so that I can use it to configure my receiving end ?
Right now, I am testing on Windows 7, but the final solution will be on linux.
The command I’m running for testing is
ffmpeg -fflags +genpts -i files\2005-SFSD-sample-mpeg1.mpg -threads 0 -r 10 -g 45
-s 352x240 -deinterlace -y 2005.mp4 -an -threads 0 -r 10 -g 45 -s 352x240
-deinterlace -f rtp rtp://192.168.200.198:9008My ffmpeg information is...
ffmpeg version 0.8, Copyright (c) 2000-2011 the FFmpeg developers built on Jun 23 2011 14:22:23 with gcc 4.5.3
configuration:
--disable-static
--enable-shared
--enable-gpl
--enable-version3
--enable-memalign-hack
--enable-runtime-cpudetect
--enable-avisynth
--enable-bzlib
--enable-frei0r
--enable-libopencore-amrnb
--enable-libopencore-amrwb
--enable-libfreetype
--enable-libgsm
--enable-libmp3lame
--enable-libopenjpeg
--enable-librtmp
--enable-libschroedinger
--enable-libspeex
--enable-libtheora
--enable-libvorbis
--enable-libvpx
--enable-libx264
--enable-libxavs
--enable-libxvid
--enable-zlib
--disable-outdev=sdl
libavutil 51. 9. 1 / 51. 9. 1
libavcodec 53. 7. 0 / 53. 7. 0
libavformat 53. 4. 0 / 53. 4. 0
libavdevice 53. 1. 1 / 53. 1. 1
libavfilter 2. 23. 0 / 2. 23. 0
libswscale 2. 0. 0 / 2. 0. 0
libpostproc 51. 2. 0 / 51. 2. 0 -
How to generate SDP file from FFMPEG
20 novembre 2016, par MobilityLabSo, I have been working with FFMPEG on a project that involves streaming video from one computer to another across the internet with RTP. I want to take that into ffmpeg and use ffserver to display it on a local network.
As I understand it, you need to have a SDP information so that the receiving ffmpeg instance can interpret the RTP stream. Despite what webpages say, I can not find the SDP information in the information printed to the console.
How can I force the transmitting ffmpeg instance to output the SDP information so that I can use it to configure my receiving end ?
Right now, I am testing on Windows 7, but the final solution will be on linux.
The command I’m running for testing is
ffmpeg -fflags +genpts -i files\2005-SFSD-sample-mpeg1.mpg -threads 0 -r 10 -g 45
-s 352x240 -deinterlace -y 2005.mp4 -an -threads 0 -r 10 -g 45 -s 352x240
-deinterlace -f rtp rtp://192.168.200.198:9008My ffmpeg information is...
ffmpeg version 0.8, Copyright (c) 2000-2011 the FFmpeg developers built on Jun 23 2011 14:22:23 with gcc 4.5.3
configuration:
--disable-static
--enable-shared
--enable-gpl
--enable-version3
--enable-memalign-hack
--enable-runtime-cpudetect
--enable-avisynth
--enable-bzlib
--enable-frei0r
--enable-libopencore-amrnb
--enable-libopencore-amrwb
--enable-libfreetype
--enable-libgsm
--enable-libmp3lame
--enable-libopenjpeg
--enable-librtmp
--enable-libschroedinger
--enable-libspeex
--enable-libtheora
--enable-libvorbis
--enable-libvpx
--enable-libx264
--enable-libxavs
--enable-libxvid
--enable-zlib
--disable-outdev=sdl
libavutil 51. 9. 1 / 51. 9. 1
libavcodec 53. 7. 0 / 53. 7. 0
libavformat 53. 4. 0 / 53. 4. 0
libavdevice 53. 1. 1 / 53. 1. 1
libavfilter 2. 23. 0 / 2. 23. 0
libswscale 2. 0. 0 / 2. 0. 0
libpostproc 51. 2. 0 / 51. 2. 0