
Recherche avancée
Médias (1)
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
Autres articles (71)
-
Installation en mode ferme
4 février 2011, parLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...) -
Récupération d’informations sur le site maître à l’installation d’une instance
26 novembre 2010, parUtilité
Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...) -
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 is the first MediaSPIP stable release.
Its official release date is June 21, 2013 and is announced here.
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 (...)
Sur d’autres sites (3993)
-
Continuous YouTube live stream via ffmpeg keeps failing after a while [closed]
23 octobre 2024, par dooleyoI am trying to stream a simple MP4 file as a 24/7 YouTube radio station on repeat from a virtual machine using ffmpeg. It's only a 23 minute ( 1GB) file, and runs fine for hours or even days, then hangs up. I've tried on a small Digital Ocean droplet and detaching the ssh session with
screen
. I am using-c copy
so I don't need to process or re-encode anything (even on the smallest droplet, the memory/cpu utilization is negligible, so I know that's not the issue). I have even tried some of ffmpeg's auto-restart options to no avail. Here is the command I'm currently running :

ffmpeg -stream_loop -1 -re -i file.mp4 -c copy -drop_pkts_on_overflow 1 -attempt_recovery 1 -recover_any_error 1 -recovery_wait_time 1 -f flv "rtmp://x.rtmp.youtube.com/live2/{STREAM_KEY}"


This works perfectly, for a time, then hangs up with :


aost#0:1/copy @ 0x623b201c5fc0] Error submitting a packet to the muxer: Broken pipe 
[out#0/flv @ 0x623b201a1780] Error muxing a packet
[flv @ 0x623b201c3940] Failed to update header with correct duration.
[flv @ 0x623b201c3940] Failed to update header with correct filesize.
[out#0/flv @ 0x623b201a1780] Error writing trailer: Broken pipe
[out#0/flv @ 0x623b201a1780] Error closing file: Broken pipe
[out#0/flv @ 0x623b201a1780] video:9310695kB audio:571706kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.153029%
size= 9897524kB time=03:24:40.66 bitrate=6602.3kbits/s speed= 1x



There are not many articles I've found covering the broken pipe issue, but those that do seem to involve either A) streams that won't start, or B) streams where the broken pipe occurs the first time the input tries to loop (neither of which are my problem, since it streams and loops fine for quite a while).


Thanks in advance !


-
Converting a large number of MP3 files to videos for YouTube, each using same the JPEG image
25 juin 2020, par DavidI am looking for a way to convert large number of MP3 files to videos, each using the same image. Efficient processing time is important.


I tried the following :


ffmpeg -i image.jpg -i audio.mp3 -vcodec libx264 video.mp4



VLC media player played the resulting video file with the correct sound, but a blank screen.


Microsoft Media Player played the sound and showed the intended image. I uploaded the video to YouTube and received the message :




"The video has failed to process. Please make sure you are uploading a supported file type."




How can I make this work ?


-
YouTube-DL Python output file format not mp4
16 septembre 2020, par SushilI have written a small piece of code in python to extract either the audio or the video from a YouTube video. Here is the code :


from __future__ import unicode_literals
import youtube_dl

link = input("Enter the video link:")

while True:
 choice = input("Enter a for audio file, v for video file:")
 if choice == "a" or choice == "v":
 break

ydl_opts = {}

if choice == "a":
 ydl_opts = {
 'format': 'bestaudio/best',
 'postprocessors': [{
 'key': 'FFmpegExtractAudio',
 'preferredcodec': 'mp3',
 'preferredquality': '192',
 }],
 }
 
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
 info_dict = ydl.extract_info(link, download=False)
 video_title = info_dict.get('title', None)

if choice == "a":
 path = f'D:\\DwnldsYT\\{video_title}.mp3'
if choice == "v":
 path = f'D:\\DwnldsYT\\{video_title}.mp4'

ydl_opts.update({'outtmpl':path})

with youtube_dl.YoutubeDL(ydl_opts) as ydl:
 ydl.download([link])



The audio extraction works fine, but the problem is with the video extraction. When I extract the video, I am getting the output as an mkv file, not an mp4 file. Any idea about how to save the video file as mp4 ?