
Recherche avancée
Médias (91)
-
Spitfire Parade - Crisis
15 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Wired NextMusic
14 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
-
Sintel MP4 Surround 5.1 Full
13 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (37)
-
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 (...) -
(Dés)Activation de fonctionnalités (plugins)
18 février 2011, parPour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...) -
Le plugin : Podcasts.
14 juillet 2010, parLe problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
Types de fichiers supportés dans les flux
Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)
Sur d’autres sites (4563)
-
What causes an this error when using FFMPEG in Python ?
30 mai 2022, par VeseroI'm trying to convert MP3 to OGG but it doesn't work. What's the problem ?
The paths to the audio files are correct. "ffmpeg.exe" is in the script directory.


Code snippet from the program :


def ProcessAudio(audioPath, destPath):
 inp = ffmpeg.input(audioPath)
 au = inp.audio
 stream = ffmpeg.output(au, destPath)
 ffmpeg.run(stream)

def Convert(listofmusic, pathofmsc, pathofdest, append):
 count = 0
 if len(listofmusic) >= 100:
 for i in range(100):
 count += 1
 out = mscPath + "/" + pathofdest + "/" + "track" + str(count) + ".ogg"
 print(out)
 ProcessAudio(audioFolder + "/" + listofmusic[i], out)
 break
 count = 0
 elif len(listofmusic) < 100:
 for i in range(len(listofmusic)):
 count += 1
 mscP = mscPath.replace("/", "\\")
 out = mscP + "\\" + pathofdest + "\\" + "track" + str(count) + ".ogg"
 print(out)
 audioProc = audioFolder + "\\" + listofmusic[i]
 print(audioProc)
 ProcessAudio(audioProc, out)
 break
 count = 0



However, this code works fine :


import ffmpeg

inputfile = ffmpeg.input("example.mp3")
iAudio = inputfile.audio
stream = ffmpeg.output(iAudio, "example.ogg")
ffmpeg.run(stream)



Error :


Exception in Tkinter callback
Traceback (most recent call last):
 File "C:\Users\Santila\AppData\Local\Programs\Python\Python310\lib\tkinter\__init__.py", line 1921, in __call__
 return self.func(*args)
 File "C:\Users\Santila\Desktop\MSC_Audio_Converter.py", line 75, in pressed
 Convert(musicList, mscPath, oggFolder, cbVar.get())
 File "C:\Users\Santila\Desktop\MSC_Audio_Converter.py", line 52, in Convert
 ProcessAudio(audioProc, out)
 File "C:\Users\Santila\Desktop\MSC_Audio_Converter.py", line 32, in ProcessAudio
 ffmpeg.run(stream)
 File "C:\Users\Santila\AppData\Local\Programs\Python\Python310\lib\site-packages\ffmpeg\_run.py", line 325, in run
 raise Error('ffmpeg', out, err)
ffmpeg._run.Error: ffmpeg error (see stderr output for detail)



-
Set video's metadata by Python
17 février 2023, par Anton BohatovI need to upload the video to Google Photos. There is no way to set a date in request, only by metadata. I made a test by setting the date manually (windows, file options) and it works in Google Photos. So, I don't understand how to set it by Python. I found the needed value, but I can't set it.


import ffmpeg

file_path = r"test.MP4"
vid = ffmpeg.probe(file_path)

vid['streams'][0]['tags']['creation_time']



Result
'2020-11-01T20:07:09.000000Z'


I tried
vid['streams'][0]['tags']['creation_time'] = '2015-11-01T20:07:09.000000Z'


But nothing changes. Please help.


Note that this is about the video file's metadata, NOT WINDOWS DATA


-
Python FFmpeg query rtsp too slow
6 février 2020, par CDYCurrently, I am trying to use python with FFmpeg to query rtsp data which the original format is h264.
The information of the live stream video is, fps:29 ; resolution : 1280*720.
I wish that I can query the data as the same format "h264" and put into a python queue in order to the future use.
Here is my code :
class CCTVReader(threading.Thread):
def __init__(self, queue, URL, fps=29):
super().__init__()
self.queue = queue
self.command = ["ffmpeg", "-y",
"-hwaccel", "nvdec",
"-c:v", "h264_cuvid",
"-vsync", "0",
"-max_delay", "500000",
"-reorder_queue_size", "10000",
"-i", "rtsp://xxx.xxx.xxx.xxx:xxx/Streaming/Channels/101?transportmode=multicast",
"-pix_fmt", "yuv420p",
"-preset", "slow",
"-an", "-sn",
"-vf", "fps=29",
"-"]
def run(self):
pipe = sp.Popen(self.command, stdout = sp.PIPE, bufsize=1024**3, shell=True)
timer = time.time()
counter = 0
while True:
self.queue.put(pipe.stdout.read(int(1280*720*6//4)))However, after I run this program about 10 second, my console shows the warning message :
[rtsp @ 0000020be0fbb9c0] max delay reached. need to consume packet
[rtsp @ 0000020be0fbb9c0] RTP: missed 127 packetsIt seems like my command doesn’t type appropriately.
Could you kindly give me some suggestion about how to deal with this problem ?
Thank you very much