
Recherche avancée
Autres articles (111)
-
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 (...) -
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 (...) -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
Sur d’autres sites (14771)
-
writting mp4 file from binary string python
25 avril 2016, par Irakli MchedlishviliI have a Binary string of mp4 video file and want to convert it back to mp4 file, to get single frame out of there with openCV library
import cv2
import tempfile
temp_path = tempfile.gettempdir()
video_binary_string = 'AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAAAIZnJlZQAQC0ttZGF0AQIUGRQmM...'
with open(temp_path+'/video.mp4', 'wb') as wfile:
wfile.write(video_binary_string)
cap = cv2.VideoCapture(temp_path+'/video.mp4')
success, frame = cap.read()
print success
>>> FalseIf frame was read correctly, it would be True
I understand that this is not the correct way of writing video file. I tried to do it with FFMPEG but I can’t understand it’s documentation.
Please give an example with simple explanations how to convert binary string back to video, with this or other way.
-
checkasm : arm : Don’t start new const blocks for each string
16 juillet 2016, par Martin Storsjöcheckasm : arm : Don’t start new const blocks for each string
Each const block needs to be terminated by one endconst
invocation so either call endconst after each, or just
declare plain labels to the later strings.This fixes errors such as this, on some binutils versions :
checkasm.S:38 : Error : Macro `endconst’ was already defined
Signed-off-by : Martin Storsjö <martin@martin.st>
-
bash scripting : pass string containing multiple parameters and filenames with spaces to ffmpeg
2 septembre 2016, par Mia LonI have a script that generates a text file with entries like :
-ss 5.5 -i "/path/vid 1.mp4" -t 3 "/path/vid out1.mp4"
But when I call ffmpeg with this string attached it fails.
If I quote the variable then ffmpeg considers the entire string as a single option, error "Option not found".
If I don’t quote, then for some reason ffmpeg ignores the double quotes and reports "/path/vid :No such file or directory.Even though it prints the input correctly as -i "/path/vid 1.mp4".
Replacing the double quotes around the filenames with single quotes doesn’t help.
But when I pass the string to zenity and then manually copy it into the terminal, it works :zenity --entry --entry-text "ffmpeg -nostdin $line2"
So I tried assigning the entire command to a var and then running
bash $var or exec $var, but no luck. Assigning it to an alias doesn’t work either : "command not found"Solution by Joan Estaban :
echo $stringvar | xargs ffmpeg
A short full script demonstrating the problem :
#!/bin/bash
fffile="/home/vume5/Desktop/dwhelper/bud grafting animation.mp4"
line="-ss 4.920000 -i \"$fffile\" -t 60.000000 -map 0 -c:v copy -c:a copy \"$fffile.cut.mkv\""
zenity --entry --entry-text "$line"
ffmpeg $line
read dummy