
Recherche avancée
Autres articles (77)
-
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 (4397)
-
FFMPEG Subtitle Burning - Make Them Look Like Youtube Captions
21 septembre 2016, par SpencerI want to burn subtitles into videos and make them look as close to the YouTube captions as possible. I’ve gotten pretty close with the following :
ffmpeg -i VIDEOFILE.mkv -vf subtitles="f=SUBSFILE.vtt:force_style='FontName=Arial,FontSize=14,OutlineColour=&H55000000,BorderStyle=3,WrapStyle=2'" -y ENCODED-WITH-SUBS.mp4
1. The major thing I want to fix in the above command is that when there are multiple lines, the backgrounds overlap.
If you look at captions on YouTube there is always a nice small amount of space between the backgrounds.
2. The second thing I’d like to do is make the corners of the backgrounds rounded if possible.
I’ve looked through the documentation but I’m hoping I missed something. Thanks for any suggestions !
-
I can no longer convert an mp4 video that is downloaded from YouTube to .wav file using ffmpeg [closed]
25 juillet 2024, par user3288051I can no longer convert an mp4 video that is downloaded from YouTube to .wav file using ffmpeg.


Here is the command I am using :


video_name = "my_video_file"
dir_name = "experiment/john_doe/"

command = f'ffmpeg -i {dir_name}{video_name}.mp4 -ab 160k -ar 44100 -vn {dir_name}{video_name}.wav'

try:
 subprocess.check_call(command, shell=True)
except Exception as ex:
 print("Error: " + str(ex))



Unfortunately, I get the following error :




Output #0, wav, to 'experiment/john_doe/my_video_file.wav' : [out#0/wav
@ 0x1526131c0] Output file does not contain any stream Error opening
output file experiment/john_doe/James_Murphy2.wav. Error opening
output files : Invalid argument Error : Command 'ffmpeg -i
experiment/john_doe/my_video_file.mp4 -ab 192k -ac 2
experiment/john_doe/my_video_file.wav' returned non-zero exit status
234.




Did YouTube change its codec ?


Here is my video file in case you would like to give it a try. I downloaded it from my own YouTube channel (my own video).


I would appreciate your help.


-
Powershell : Start-Job a script, cannot connect to youtube
16 mai 2016, par Kostas GeorgokitsosI am a bit new to PS, so please bear with me. I have written a script that starts an
ffmpeg
proccess, and in an endless loop waits for the process, and restarts it asffmpeg
is a bit shaky.ffmpeg
is taking an rtsp stream from a camera and forwards it to youtube.# initialization
$buffer_size = "30720k" # 60 sec * 512kbps
$ffm = "C:\Users\kostas\Downloads\_software\ffmpeg-20160308-git-5061579-win32-static\bin\ffmpeg.exe"
$params = "-f lavfi -i aevalsrc=0 -thread_queue_size 512 -i rtsp://$($usr):$($pw)@$($cam_ip):554/mpeg-4/ch1/main//av_stream/ -f flv -vcodec copy -acodec aac -bufsize $($buffer_size) rtmp://a.rtmp.youtube.com/live2/$($youtube_key)"
$params_bak = $params.Replace('/live2/','/live2/?backup=1/')
# start stream(s)
while (1 -eq 1) {
$err_log = "C:\Users\kostas\Documents\logs\Stream_Error-$(Get-Date -Format dd-MM-yyyy_HH-mm-ss).log"
$out_log = "C:\Users\kostas\Documents\logs\Stream-$(Get-Date -Format dd-MM-yyyy_HH-mm-ss).log"
$strm_app = Start-Process $ffm $params -PassThru -WindowStyle Minimized -RedirectStandardError $err_log -RedirectStandardOutput $out_log
Wait-Process $strm_app.Id
}When I call the script from the powershell prompt directly like
.\youtube_cam_1.ps1
all is well, but the powershell prompt locks, obviously.When I start like
Start-Job -FilePath C:\Users\kostas\Documents\youtube_cam_1.ps1
the job starts allright and I also see the ffmpeg process starting and running, but the youtube channel stays offline. Now to the funny bit : doingStop-Job
does not kill theffmpeg
process, and suddenlyffmpeg
can connect to youtube.I want to start and run several camera streams (i.e.
ffmpeg
instances) in the end and need the looping script to somehow go into the background. IsStart-Job
the wrong way to do it ?What is happening ?