
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (53)
-
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...) -
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
Automated installation script of MediaSPIP
25 avril 2011, parTo overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
The documentation of the use of this installation script is available here.
The code of this (...)
Sur d’autres sites (7948)
-
Correct two errors in patch for Trac #1486 :
18 juin 2014, par MontyCorrect two errors in patch for Trac #1486 :
1) vf->offset should not have been overridden in new front-of-stream case
2) missing status output in seeking_example.cgit-svn-id : http://svn.xiph.org/trunk/vorbis@19164 0101bb08-14d6-0310-b084-bc0e0c8e3800
-
Python subprocess will not run command [duplicate]
15 février 2024, par confusedFor some reason I have a subprocess command line that is not running the subprocess command line underneath it and doing the processing it should be.


import subprocess
 import os

 os.chdir('/home/linux/Trial/')
 a = open('Attempts.txt', 'r')
 b = a.readlines()
 a.close()
 for c in range(0, len(b)-1):
 words = list(b[c].split(" "))
 d = len(words)
 e = words[d-1]
 f = b[c].replace(e, 'Hiccup' + str(c) + '.mp4')
 words[d-1] = 'Hiccup' + str(c) + '.mp4'
 print(f)
 command = 'ffmpeg', '-i', words[2], '-ss', words[4], '-to', words[6], '-c:v copy -a copy', words[11]
 print(command)
 subprocess.run(['ffmpeg', '-i', words[2], '-ss', words[4], '-to', words[6], '-c:v copy -a copy', words[11]]) 



When I run the following code I get the following output :


ffmpeg -i test.mp4 -ss 00:00:00 -to 00:02:34 -c:v copy -a copy Hiccup0.mp4
 ('ffmpeg', '-i', 'test.mp4', '-ss', '00:00:00', '-to', '00:02:34', '-c:v copy -a copy', 'Hiccup0.mp4')



I get nothing else. When I check no new file has been created called Hiccup0. I have ffmpeg-python installed and updated(made sure of that this morning).


What gives. I see this should work but it doesn't.


Edit :


I decided to try running the subprocess statement in interpretter instead of through the program only. When I run :


subprocess.run('ffmpeg', '-i', 'SR0.mp4', '-ss', '0', '-to', '82', '-c:v', 'copy' ,'-a', 'copy', 'help.mp4')



I get the error, bufsize must be an integer. I still ask the same question, what gives ? I tried changing everything over to seconds from minutes and hours to make it a digit, as can be seen from the above line, but it still won't work correctly. At least I'm getting an error now, much than just not having it run at all.


I also just tried to put an f into front of 'ffmpeg ; and it still gave the same error.


-
avformat/matroskaenc : Don't write \0 unnecessarily
8 août 2023, par Andreas Rheinhardtavformat/matroskaenc : Don't write \0 unnecessarily
Writing the duration SimpleTag is special : It's size is
reserved in advance via an EBML Void element (if seekable)
and this reserved space is overwritten when writing the trailer ;
it does not use put_ebml_string().The string to write is created via snprintf on a buffer
of size 20 ; this buffer is then written via put_ebml_binary()
with a size of 20.EBML strings need not be zero-terminated ; if not, they
are implicitly terminated by the element's length field.
snprintf() always zero-terminates the buffer, i.e.
the last byte can be discarded when using an EBML string.
This patch does this.The FATE changes are as expected : One byte saved for every
track ; the only exception is the matroska-qt-mode test :
An additional byte is saved because an additional byte
could be saved from the enclosing Tags length field.Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
- [DH] libavformat/matroskaenc.c
- [DH] tests/ref/fate/aac-autobsf-adtstoasc
- [DH] tests/ref/fate/matroska-alac-remux
- [DH] tests/ref/fate/matroska-avoid-negative-ts
- [DH] tests/ref/fate/matroska-dovi-write-config7
- [DH] tests/ref/fate/matroska-dovi-write-config8
- [DH] tests/ref/fate/matroska-dvbsub-remux
- [DH] tests/ref/fate/matroska-encoding-delay
- [DH] tests/ref/fate/matroska-flac-extradata-update
- [DH] tests/ref/fate/matroska-h264-remux
- [DH] tests/ref/fate/matroska-hdr10-plus-remux
- [DH] tests/ref/fate/matroska-mastering-display-metadata
- [DH] tests/ref/fate/matroska-move-cues-to-front
- [DH] tests/ref/fate/matroska-mpegts-remux
- [DH] tests/ref/fate/matroska-ms-mode
- [DH] tests/ref/fate/matroska-ogg-opus-remux
- [DH] tests/ref/fate/matroska-opus-remux
- [DH] tests/ref/fate/matroska-pgs-remux
- [DH] tests/ref/fate/matroska-pgs-remux-durations
- [DH] tests/ref/fate/matroska-qt-mode
- [DH] tests/ref/fate/matroska-spherical-mono-remux
- [DH] tests/ref/fate/matroska-vp8-alpha-remux
- [DH] tests/ref/fate/matroska-zero-length-block
- [DH] tests/ref/fate/rgb24-mkv
- [DH] tests/ref/fate/shortest-sub
- [DH] tests/ref/fate/webm-av1-extradata-update
- [DH] tests/ref/fate/webm-dash-chapters
- [DH] tests/ref/fate/webm-hdr10-plus-remux
- [DH] tests/ref/fate/webm-webvtt-remux
- [DH] tests/ref/lavf-fate/av1.mkv
- [DH] tests/ref/lavf/mka
- [DH] tests/ref/lavf/mkv
- [DH] tests/ref/lavf/mkv_attachment
- [DH] tests/ref/seek/lavf-mkv