
Recherche avancée
Médias (3)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
-
GetID3 - Boutons supplémentaires
9 avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (100)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)
Sur d’autres sites (15117)
-
Record stream from camera to file / live stream
8 juillet 2015, par sandmanI’m trying to stream my camera feed to a webpage. For this I’m trying to use FFmpeg to encode the data from the camera preview and output to a file. (I’m new to this, so I’m only trying to write to a file now)
The camera feed is captured and it starts writing to a flv file but, it freezes my app after a few seconds and the resulting flv is about half a second long.
bos is a BufferedOutputStream which servers as an input stream for the Ffmpeg ProcessBuilder.
When a button is clicked, the Ffmpeg process is executed and the writing begins.
But as I said, it freezes the app after a while. I tried running the Ffmpeg process in an AsyncTask, but it keeps saying FileDescriptor closed, but the app does not freeze when I do it this way, and there is no output as well.Here is my onPreviewFrame() :
public void onPreviewFrame(byte[] b, Camera c) {
if (recording) {
int previewFormat = p.getPreviewFormat();
Log.v(LOGTAG, "Started Writing Frame");
im = new YuvImage(b, previewFormat, p.getPreviewSize().width, p.getPreviewSize().height, null);
Rect r = new Rect(0, 0, p.getPreviewSize().width, p.getPreviewSize().height);
if (bos != null)
im.compressToJpeg(r, 40, bos);
im = null;
Log.v(LOGTAG, "Finished Writing Frame");
}
}If I can get this fixed, I can probably move on to live streaming.
-
rv34 : use ff_mpeg_update_thread_context only when decoder is fully initialized
21 août 2014, par Janne Grunaurv34 : use ff_mpeg_update_thread_context only when decoder is fully initialized
MpegEncContext based decoders are only fully initialized after the first
ff_thread_get_buffer() call. The RV30/40 decoders may fail before a frame
buffer was requested. ff_mpeg_update_thread_context() fails on half
initialized MpegEncContexts. Since this can only happen before a the
first frame was decoded there is no need to call
ff_mpeg_update_thread_context().Based on patches by John Stebbins and tested by John Stebbins.
CC : libav-stable@libav.org
-
Systemd service (python loop -> ffmpeg stream)
7 janvier 2019, par KevittoI am currently running a stream with ffmpeg, through icecast2 through a python snippet (Fig1). I have created a systemd service to run said python script on boot (Fig2) and use a custom target (Fig3) to make sure it loads once every other service is loaded, mostly for icecast2.
I’ve conducted multiple tests, and the stream works fine if launched either from the python code or if I restart the service attached to it.
My problem is, on a (re)boot of the system, the service runs for approximately 15 seconds, then the stream dies. I’ve read so much on python and systemd, but I can’t for the life of me figure out where the problem lies. I’ve tried changing my python code, the unit load order and anything else I found online that could help, but found nothing.
Fig1 (dxstream.py)
import sys
import time
import subprocess
def start():
return subprocess.Popen(r’ffpmeg -re -f alsa -ac2 -i hw:1,0 -acodec mp3 -ab 320k -f mp3 icecast://sourcehackme@localhost:8000/stream', shell=True)
testProcess = start()
while True:
res = testProcess.poll()
if res is not None:
testProcess = start()
time.sleep(1)Fig2 (dxstream.service)
[Unit]
Description=ffmpeg stream starter
After=multi-user.target
[Service]
Type=idle
Execstart=/usr/bin/python /usr/local/bin/dxstream.py
Restart=on-failure
[Install]
WantedBy=custom.targetFig3 (custom.target)
[Unit]
Description=Custom Target
Requires=multi-user.target
After=multi-user.target
AllowIsolate=yes