
Recherche avancée
Médias (3)
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Podcasting Legal guide
16 mai 2011, par
Mis à jour : Mai 2011
Langue : English
Type : Texte
-
Creativecommons informational flyer
16 mai 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (68)
-
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...) -
XMP PHP
13 mai 2011, parDixit Wikipedia, XMP signifie :
Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)
Sur d’autres sites (8236)
-
FFmpeg error code 254
17 septembre 2013, par AkerusI try to get file informations via ffprobe in a java-application.
I am using the following command :
/usr/bin/ffprobe -v quiet -print_format json -show_format -show_streams TESTVIDEOPATH
Running that command in bash, it works like a charm : It returns the JSON-String and error code is "0".
Running that command in Java results in error code "254" and result is :\n\n
When I modify the command, so that ffprobe accepts a stream as input :
/usr/bin/ffprobe -v quiet -i - -print_format json -show_format -show_streams
it works in both bash and Java.
In Java the following is used :
ProcessBuilder processBuilder = new ProcessBuilder(command.split(" "));
this.process = processBuilder.start();
this.process.waitFor();
int exitCode = this.process.exitValue();
this.outputOfProcess = this.process.getInputStream();Can anyone tell me what the error code 254 means ? I couldn't find anything about it.
Edit : ffmpeg version 0.10.7-6:0.10.7-0jon1 quantal is used
-
How to run a python code via Django templates ?
18 novembre 2018, par Iskender BerdievI want to execute code below when the is submitted (project on Django) :
from os import system, listdir, remove
link = 'https://www.youtube.com/watch?v=ME9yO1KEVoo'
def download(): ## Downloading a video from YouTube using youtube-dl
system("youtube-dl -o download {}".format(link))
def convert(): ## Converting downloaded video to mp3 format via ffmpeg.exe(same directory)
listOfFiles = listdir('.')
for i in listOfFiles:
if i.startswith("download"):
name = i
system("ffmpeg -i {} download.mp3".format(name))
def main():
download()
convert()
main()I have tried to put this code into views.py :
class download(TemplateView):
def main(request):
if request.method == 'POST':
link = 'https://www.youtube.com/watch?v=ME9yO1KEVoo'
system("youtube-dl -o download {}".format(link))
listOfFiles = listdir('.')
for i in listOfFiles:
if i.startswith("download"):
name = i
system("ffmpeg -i {} download.mp3".format(name))
return redirect ('loader/wait.html')urls.py :
path('wait/', views.download.as_view(), name='wait')
and the html form which is submitted to run views.download.as_view() :
<form action="{% url " method="POST">{% csrf_token %}
<input type="submit" value="Yes" />
</form> -
FFMpeg Commands definition in library source code
25 janvier 2013, par SKCI tried running the
ffmpeg
commands from Android activity using an emulator in Windows OS, but i get errors.
I tried keeping both my resource files in/mnt/sdcard
as well the application package within/data/data
, but none of the options worked out for running the ffmpeg commands.These are the following approach i had taken while running the command through an android activity.
(Command to convert a series if images into a video)
Approach 1 :String[] cmd =new String[4];
cmd[0]="/data/data/com.example.commandlineffmpeg/files/ffmpeg";
cmd[1]="-i";
cmd[2]="/data/data/com.example.commandlineffmpeg/images/bpc_%03d.png";
cmd[3]="/data/data/com.example.commandlineffmpeg/out/out.avi";
Process p = Runtime.getRuntime().exec(cmd, null, new File("/data/data/com.example.ffmpegnew/out"));I have solved this, basically there was system permission issues and hence we were not allowed to access the system properties required to run the FFMpeg commands.
Thus we need to sign the apps with the system certificates and hence we can use FFMpeg commands directly from any android activity.