
Recherche avancée
Médias (1)
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (3)
-
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;
Sur d’autres sites (2967)
-
How to overlay images sequence from pipe over a video stream with ffmpeg ?
7 juin 2018, par Dotan SimhaI’m trying to figure out an issue with ffmpeg.
I have the following installation :DeckLink Mini Recorder Card (for HDMI input)
DeckLink Mini Monitor Card (for HDMI output)
I’ve successfully managed to take the HDMI input from the Decklink card and output is as-is to the output card with the following command :
ffmpeg -f decklink -video_input hdmi -raw_format yuv422p10 -i "DeckLink Mini Recorder" -f decklink -pix_fmt uyvy422 "DeckLink Mini Monitor"
I tried to add a complex-filter to add an overlay of an image, with the following command, and it works :
ffmpeg -f decklink -video_input hdmi -raw_format yuv422p10 -i "DeckLink Mini Recorder" -i ./tools/bin/windows/2.png -y -filter_complex "[0:1][1:0]overlay=10:10" -f decklink -pix_fmt uyvy422 "DeckLink Mini Monitor"
I’m getting a realtime feed from the decklink recorder, the image is added to the stream, and it outputs it to the output HDMI card. Everything seems to work.
Now I tried to change the static image path to use stdin (
pipe:0
), and I have a tool that constantly streaming PNG images to stdout :ffmpeg -f decklink -video_input hdmi -raw_format yuv422p10 -i "DeckLink Mini Recorder" -i pipe:0 -y -filter_complex "[0:1][1:0]overlay=10:10" -f decklink -pix_fmt uyvy422 "DeckLink Mini Monitor"
The result that i’m getting on the output HDMI card is a static image, of the first frame.
The output of ffmpeg also changes now, and it looks like it stuck of the first-second of the stream :```
frame= 30 fps=7.4 q=-0.0 size=N/A time=00:00:01.00 bitrate=N/A speed=0.247xframes : 30,
currentFps : 7,
currentKbps : NaN,
targetSize : NaN,
timemark : ’00:00:01.00’
```It just remains on
00:00:01.00
and never changes.I tried to find the issue, and did the following :
-
Tried to stream Decklink Recorder -> static png file overlay -> Decklink Monitor = IS WORKS
-
Tried to stream static png file -> Decklink Monitor = IS WORKS
-
Tried to stream pipe:0 (PNG files) -> Decklink Monitor = IS WORKS
-
Tried to stream Decklink Recorder -> pipe:0 (PNG files overlay) -> RAW AVI file IS WORKS
The only issue is with :
Tried to stream Decklink Recorder -> pipe:0 (PNG files) overlay -> Decklink Monitor DOES NOT WORK
I suspect that Decklink output is more strict, and my
pipe:0
with the PNG images is not stable, and the combination of both causes it to freeze.Any idea how to solve it ? :(
Thanks !
-
-
Python : mp3 to wave.open(f,'r') through ffmpeg pipe
7 avril 2015, par user2754098I’m trying to decode mp3 to wav using ffmpeg :
import alsaaudio
import wave
from subprocess import Popen, PIPE
with open('filename.mp3', 'rb') as infile:
p=Popen(['ffmpeg', '-i', '-', '-f', 'wav', '-'], stdin=infile, stdout=PIPE)
...Next i want redirect data from p.stdout.read() to wave.open(file, r) to use readframes(n) and other methods. But i cannot because ’file’ in wave.open(file,’r’) can be only name of file or an open file pointer.
...
file = wave.open(p.stdout.read(),'r')
card='default'
device=alsaaudio.PCM(card=card)
device.setchannels(file.getnchannels())
device.setrate(file.getframerate())
device.setformat(alsaaudio.PCM_FORMAT_S16_LE)
device.setsetperiodsize(320)
data = file.readframes(320)
while data:
device.write(data)
data = file.readframes(320)I got :
TypeError: file() argument 1 must be encoded string without NULL bytes, not str
So is it possible to handle data from p.stdout.read() by wave.open() ?
Making temporary .wav file isn’t solution.Sorry for my english.
Thanks. -
How to setup FFMPEGInterop to Use DRM playready
1er novembre 2019, par marinamovies32I am using FFMPEGInterop class to play UWP video. I need to play it with playready setup but am running into issues.
I can play playready with just mediaplayerelement and creating the protection manager, but when I create a FFMPEGMSS to stream it, than it fails. Says value is out of range when adding the protection manager to the MediaStreamSource.
var StreamSource = FFmpegMSS.GetMediaStreamSource();
var protectionManager = new Windows.Media.Protection.MediaProtectionManager();
Windows.Foundation.Collections.PropertySet cpSystems = new Windows.Foundation.Collections.PropertySet();
cpSystems.Add("{F4637010-03C3-42CD-B932-B48ADF3A6A54}", "Microsoft.Media.PlayReadyClient.PlayReadyWinRTTrustedInput"); //Playready
protectionManager.Properties.Add("Windows.Media.Protection.MediaProtectionSystemIdMapping", cpSystems);
protectionManager.Properties.Add("Windows.Media.Protection.MediaProtectionSystemId", "{F4637010-03C3-42CD-B932-B48ADF3A6A54}");
protectionManager.ServiceRequested += ProtectionManager_ServiceRequested;
protectionManager.ComponentLoadFailed += ProtectionManager_ComponentLoadFailed;
protectionManager.Properties.Add("Windows.Media.Protection.MediaProtectionContainerGuid", "{9A04F079-9840-4286-AB92-E65BE0885F95}");
var supportsHardwareDrm = PlayReadyStatics.CheckSupportedHardware(PlayReadyHardwareDRMFeatures.HardwareDRM);
if (!supportsHardwareDrm)
{
protectionManager.Properties["Windows.Media.Protection.UseSoftwareProtectionLayer"] = true;
}
Windows.Storage.ApplicationDataContainer localSettings = Windows.Storage.ApplicationData.Current.LocalSettings;
Header.Text = supportsHardwareDrm ? "SUPPORTED" : "NOT SUPPRTED";
StreamSource.MediaProtectionManager = protectionManager;
mediaElement.Source = MediaSource.CreateFromMediaStreamSource(StreamSource);I should be able to play playready DRM with a setup protection manager to start but down get any info on it so confused on the next step for it.