
Recherche avancée
Médias (1)
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (104)
-
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 (...) -
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...) -
Gestion de la ferme
2 mars 2010, parLa ferme est gérée dans son ensemble par des "super admins".
Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
Dans un premier temps il utilise le plugin "Gestion de mutualisation"
Sur d’autres sites (6564)
-
Android : Recording and Streaming at the same time
29 mars 2016, par Bruno SiqueiraThis is not really a question as much as it is a presentation of all my attempts to solve one of the most challenging functionalities I was faced with.
I use libstreaming library to stream realtime videos to Wowza Server and I need to record it at the same time inside the SD card. I am presenting below all my attempts in order to collect new ideias from the community.
Copy bytes from libstreaming stream to a mp4 file
Development
We created an interception in libstreaming library to copy all the sent bytes to a mp4 file. Libstreaming sends the bytes to Wowza server through a LocalSocket. It users MediaRecorder to access the camera and the mic of the device and sets the output file as the LocalSocket’s input stream. What we do is create a wrapper around this input stream extending from InputStream and create a File output stream inside it. So, every time libstreaming executes a reading over the LocaSocket’s input stream, we copy all the data to the output stream, trying to create a valid MP4 file.
Impediment
When we tried to read the file, it is corrupted. We realized that there are meta information missing from the MP4 file. Specifically the moov atom. We tried to delay the closing of the streaming in order to give time to send this header (this was still a guessing) but it didn’t work. To test the coherence of this data, we used a paid software to try to recover the video, including the header. It became playable, but it was mostly green screen. So this became an not trustable solution. We also tried using "untrunc", a free open source command line program and it couldn’t even start the recovery, since there was no moov atom.
Use ffmpeg compiled to android to access the camera
Development
FFMPEG has a gradle plugin with a java interface to use it inside Android apps. We thought we could access the camera via command line (it is probably in "/dev/video0") and sent it to the media server.
Impediment
We got the error "Permission Denied" when trying to access the camera. The workaround would be to root the device to have access to it, but it make the phones loose their warranty and could brick them.
Use ffmpeg compiled to android combined with MediaRecorder
Development
We tried to make FFMPEG stream a mp4 file being recorded inside the phone via MediaRecorder
Impediment
FFMPEG can not stream MP4 files that are not yet done with the recording.
Use ffmpeg compiled to android with libstreaming
Development
Libstreaming uses LocalServerSocket as the connection between the app and the server, so we thought that we could use ffmpeg connected with LocalServerSocket local address to copy the streaming directly to a local file inside the SD card. Right after the streaming started, we also ran the ffmpeg command to start recording the data to a file. Using ffmpeg, we believed that it would create a MP4 file in the proper way, which means with the moov atom header included.
Impediment
The "address" created is not readable via command line, as a local address inside the phone. So the copy is not possible.
Use OpenCV
Development
OpenCV is an open-source, cross-platform library that provides building blocks for computer vision experiments and applications. It offers high-level interfaces for capturing, processing, and presenting image data. It has their own APIs to connect with the device camera so we started studding it to see if it had the necessary functionalities to stream and record at the same time.
Impediment
We found out that the library is not really defined to do this, but more as image mathematical manipulation. We got even the recommendation to use libstreaming (which we do already).
Use Kickflip SDK
Development
Kickflip is a media streaming service that provides their own SDK for development in android and IOS. It also uses HLS instead of RTMP, which is a newer protocol.
Impediment
Their SDK requires that we create a Activity with camera view that occupies the entire screen of the device, breaking the usability of our app.
Use Adobe Air
Development
We started consulting other developers of app’s already available in the Play Store, that stream to servers already.
Impediment
Getting in touch with those developers, they reassured that would not be possible to record and stream at the same time using this technology. What’s more, we would have to redo the entire app from scratch using Adobe Air.
UPDATE
Webrtc
Development
We started using WebRTC following this great project. We included the signaling server in our NODEJS server and started doing the standard handshake via socket. We were still toggling between local recording and streaming via webrtc.
Impediment
Webrtc does not work in every network configuration. Other than that, the camera acquirement is all native code, which makes a lot harder to try to copy the bytes or intercept it.
-
Anomalie #3418 : Les tables des plugins ne s’installent pas
6 avril 2015, par Franck DalotYop
Jluc ma fait une remarque judicieuse sur l’IRC, comme quoi, je devais être plus précis concernant la méthodologie que j’ai utilisé pour mes tests :-)Alors les tests (spip 2.1 / 3.0 / 3.1) ont été fait chez ovh sur un mutualisé
Pour chaque test, j’ai supprimer les fichiers et les tables, pour repartir à zéro (c’est pour cela qu’il me fallait du temps pour les tests... :-( )
Si bien que systématiquement le préfix des tables était toujours spip_xxx (faudrait voir avec un prefix "particulier"
J’ai toujours installer via l’interface privé de spip le plugin "agenda" et donc le necessite qui va avec (calendriermini dans le cas de spip 3)Concernant les tests fait pour une instal en MySQL
Pour voir si les tables du plugin étaient bien présente après l’installation d’agenda, j’ai utiliser http://phpmyadmin.ovh.netPour les tests fait pour une instal en SQLite 3 ou 2
J’ai télécharger le fichier sur mon ordi qui était dans "config/base/
Et j’ai regarder ce qu’il contenait via firefox et l’extension "SQLite Manager" https://addons.mozilla.org/fr/firefox/addon/sqlite-managerConcernant les sauvegardes, elles ont toutes été faite via exec=sauvegarder
Pour vérifier ce que contenait cette sauvegarde, je me suis servi de firefox et du l’extension https://addons.mozilla.org/fr/firefox/addon/sqlite-managerConcernant le fait qu’un sauvegarde contient plus de tables, que la bdd elle même pierretux a émis l’hypothèse comme quoi, exec=sauvegarder ne lis pas la base mais le pipelines des tables principales
-
How to add text to video using FFMPEG with Fast speed rotation ?
8 avril 2015, par vijay shegokarI am using the FFMPEG library in my project to work on video encoding.
I am using the below command to add text to video at bottom of video, which is working fine. The only problem is that text moves very slow here in video. I want to speed up the text rotation in video.
Add Text to Video FFMPEG Command
D:/video/res/ffmpeg -y -i "D:/video/input.mp4" -filter_complex "drawtext=text='Cricket, Football, Tennis, Hockey, Chess, Carrom, Polo, Table Tennis':fontfile=\'D:/video/res/arial.ttf\':y=h-line_h:x=h-(2*lh)-n:fontcolor=white:fontsize=24:box=0" -codec:v libx264 -codec:a copy "D:/video/text_added_video.mp4"
Please help me on this topic.
Above code is useful for those who just want to add text to video at bottom of video with rotation from right to left. And doesn’t bother about the speed of text rotation.