
Recherche avancée
Autres articles (106)
-
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 -
MediaSPIP Core : La Configuration
9 novembre 2010, parMediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...) -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...)
Sur d’autres sites (10830)
-
PhpVideoToolKit permission denied
21 septembre 2016, par nikoz84I’m try to execute this PHP code
exec("/root/bin/ffmpeg -version 2>&1", $output);
print_r($output);But always the output return permission denied
Array ( [0] => sh: /root/bin/ffmpeg: Permission denied )
and the output from library PhpVideoToolKit
sh: /root/bin/ffmpeg: Permission denied
how can i give permission for execute to my apache service ? i’m used CENTOS
-
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.


-
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