
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (79)
-
Librairies et logiciels spécifiques aux médias
10 décembre 2010, parPour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...) -
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 (...) -
Récupération d’informations sur le site maître à l’installation d’une instance
26 novembre 2010, parUtilité
Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)
Sur d’autres sites (6179)
-
Is it possible to capture audio from an ASIO device with ffmpeg ?
26 mai 2016, par AmfasisWe have a setup with a Windows 7 machine where we installed Dante Virtual Soundcard and start that soundcard with ASIO capabilities. The soundcard will receive audio over the network from a Tesira server. We want to capture the audio to files (highly preferring each channel to a separate file). The files will be played back on a later moment. There will likely be 6 channels or more.
In the same setup we use ffmpeg to capture some video which is working fine, with Direct Show. So for audio we wanted to use the same setup, since ffmpeg is able to record audio as well. However, there seems to be no option to select the ASIO devices which the virtual soundcard probably creates. So the question is what command line to use for ffmpeg, or what to install ? Or which other program can record ASIO from command line ?
I already tried installing :
- Asio4all (actually wrong way around)
- sox (don’t know why actually)
- HiFi Cable Asio Bridge (from VB-audio, not enough channels even with donate version)
- Voicemeeter (from VB-Audio, not enough channels and actually mixes down)
- O Deus Asio link, this might be an interesting option but it did not let me configure any route, any suggestions ?
One thing I noticed is that the virtual soundcard can also be set to use WDM. Then I can see the devices with
ffmpeg -list_devices true -f dshow -i duymmy
, but recording does not yield any result, I have toctrl-c
to make it stop instead ofq
, and the file is zero bytes. Supposedly this is because the data over the network is all ASIO formatted and the Tesira Server cannot send "WDM data". FFmpeg stops at selecting the capture pin for audio onlyEDIT :
I ran ffmpeg with high verbosity and when selecting the WDM soundcard it stops at
Selecting pin Capture on audio only
. Also when requesting the options it gives the same line for 22 times :min ch=1 bits=8 rate= 11025 max ch=2 bits=16 rate= 44100
-
Docker alpine : ffprobe not found in $PATH
5 mars 2023, par Harun SasmazI have a Go program that executes
ffmpeg
andffprobe
commands, so I need to install them in my Docker container.

Here is my Dockerfile :


FROM golang:1.17.7-alpine

WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go build -o ./server cmd/service/main.go

RUN apk update
RUN apk upgrade
RUN apk add --no-cache ffmpeg

FROM alpine
COPY --from=0 /src/server /usr/bin/server
CMD ["server"]



However, when I run container, it says :


exec: "ffprobe": executable file not found in $PATH



How can I fix it ?


-
How do I enable ffmpeg python inside a docker ?
4 mars 2024, par Noam ZadokI have a problem with enabling ffmpeg streaming inside my Docker container, and specifically, inside a Python service running inside the Docker.
I need to stream my screen view, and I'm using the 'x11grab' source, and the destination is an RTSP server (AWS IVS). This is my code for the stream :


bit_rate = f"{self.config_service.thermal_stream_bit_rate}k" # 150k
vsync_param = self.config_service.stream_vsync_param # 'cfr'
frame_rate = self.config_service.stream_frame_rate # 5
stream_command = ffmpeg.input(
 os.getenv('DISPLAY'), # env var passed into the container
 s=f"{self.config_service.display_width}x{self.config_service.display_height}",
 f="x11grab",
 r=frame_rate,
 fflags="nobuffer+discardcorrupt+shortest",
 loglevel="level+debug",
 )..output(
 self.dest_path, # My rstp url
 vcodec='nvenc_h264',
 preset='hp',
 pix_fmt=pix_format_param,
 tune="zerolatency",
 b=bit_rate,
 g=keyframe_interval_seconds,
 r=frame_rate,
 format="flv",
 )
streaming_process = await stream_command.run_asyncio(pipe_stderr=True)



When I run the code, I receive this error :
x11grab: No such file or directory
.

When I enter the Docker container, and run Python, and then the script :


import ffmpeg

>>> x11_display = ':0'
>>> format = "x11grab"
>>> screen_width = f"1920x1080"
>>> bit_rate = "150k"
>>> pix_format_param = "yuv420p"
>>> keyframe_interval_seconds = 2
>>> frame_rate = 5
>>> dest_path = 'rtmps://XXXX.global-contribute.live-video.net:443/app/YYYY'
>>> command = ffmpeg.input(x11_display, s=screen_width, f="x11grab", r=frame_rate, fflags="nobuffer+discardcorrupt+shortest", loglevel="level+debug",).output(dest_path, vcodec='nvenc_h264', preset='hp', pix_fmt=pix_format_param, tune="zerolatency", b=bit_rate, g=keyframe_interval_seconds, r=frame_rate, format="flv",)
>>> command.run()



The stream is starting. I took the exact command by printing inside my service script (print the ffmpeg.input, and the ffmpeg.output).
Also, when I tried async running the command (as in my script) inside the Python console, it also succeeded, so it's not related to that. Basically there are no functional differences between the commands.
I've tried comparing the Python version, the ffmpeg version, the file system permissions - they are the same in the script run and in the python console.
I don't understand what configuration am I missing.
Thank you in advance.