
Recherche avancée
Autres articles (111)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
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 (...)
Sur d’autres sites (9079)
-
Simple Question About Subprocess popen + screen +ffmpeg + youtube-dl
2 juin 2021, par El_Barto_404ffmpeg -i "$(youtube-dl -x -g "https://youtu.be/xhXq9BNndhw")" -f s16le -ac 2 -ar 48000 -acodec pcm_s16le input.raw



can anyone put this inside a popen process after a screen -S Convert ?


I tried already with ' ', with commas.. but nothing


I built a bot on telegram which if you send :


.mandala youtubelink



it takes the link and converts the video from YouTube into a uncompressed file, I need it for a music bot which streams those uncompressed files.


if I run in console :


ffmpeg -i "$(youtube-dl -x -g "https://youtu.be/xhXq9BNndhw")" -f s16le -ac 2 -ar 48000 -acodec pcm_s16le input.raw 



it works but when I try with screen and popen it doesn't.. why ?


@helper.register(pattern=r'.mandala (.+)')
async def mu2342sicbfffffffot(e):
 cheater = e.pattern_match.group(1)
 cheat = cheater
 myorder2224 = ''' "$(youtube-dl -x -g "{}")" '''
 doit = (myorder2224.format(cheater))

 ### I already try to format the variable 
 ### and put doit after -i and 
 ### everything was in '' and commas 
 ### like 'ffmpeg', 'i*, doit, '-f'...
 ### and so on but nothing.. but nope doesn't work.

 p = subprocess.call(['screen','-S','onveter',' ffmpeg -i "$(youtube-dl -x -g "https://www.youtube.com/watch?v=Sw5HQbYGoCA")" -f s16le -ac 1 -acodec pcm_s16le -ar 96k input.pcm'],shell=True)
 await helper.control_panel.send_message(config.chat, "La sto a manna")
 time.sleep(14)
 



I REPEAT ONE MORE TIME :
HOW CAN I USE THAT FFMPEG COMMAND INSIDE A POPEN SUBPROCESS AFTER A Screen -S Convert ?


IF SOMEONE WANT TO KNOW WHY :
Because I want to convert youTube videos to file .raw / .pcm


-
How to convert messed-up .vtt sub file from youtube-dl —write-auto-sub download ?
27 septembre 2023, par perry_the_pythonMy goal is to download a YouTube video with auto-generated subtitles in a separate file like
.vtt
,.srt
, etc.

I am currently trying to achieve this with
youtube-dl
but I am open to other solutions if needed.

When I run the following command, it downloads the video as
.mp4
(which is fine) and a separate.vtt
file, but the.vtt
seems to be messed-up somehow and displays all the text for the whole clip at once instead of the specified times.

Command I am running :


youtube-dl --write-auto-sub https://www.youtube.com/watch?v=Roc89oOZOF4&list=PLJBo3iyb1U0eNNN4Dij3N-d0rCJpMyAKQ&index=45



Downloads this .vtt :


WEBVTT
Kind: captions
Language: en

00:00:05.960 --> 00:00:08.290 align:start position:0%
 
thank <00:00:06.003><c>you </c><00:00:06.046><c>ah </c><00:00:06.089><c>crap </c><00:00:06.132><c>well </c><00:00:06.175><c>looks </c><00:00:06.218><c>like </c><00:00:06.261><c>the </c><00:00:06.304><c>good </c><00:00:06.347><c>Lord </c><00:00:06.390><c>just </c><00:00:06.433><c>sent </c><00:00:06.476><c>me </c><00:00:06.519><c>a </c><00:00:06.562><c>conversation </c><00:00:06.605><c>starter </c><00:00:06.648><c>come </c><00:00:06.691><c>here </c><00:00:06.734><c>Jesse </c><00:00:06.777><c>come </c><00:00:06.820><c>get </c><00:00:06.863><c>the </c><00:00:06.906><c>ball </c><00:00:06.949><c>hmm</c>

00:00:08.290 --> 00:00:10.549 align:start position:0%
thank you ah crap well looks like the good Lord just sent me a conversation starter come here Jesse come get the ball hmm
 

00:00:10.549 --> 00:00:13.070 align:start position:0%
 
 

00:00:13.070 --> 00:00:15.470 align:start position:0%
 
 

00:00:15.470 --> 00:00:23.750 align:start position:0%
 
 

00:00:23.750 --> 00:00:23.760 align:start position:0%
 
 

00:00:23.760 --> 00:00:26.480 align:start position:0%
 






I have read that this may be done on purpose by YouTube.


Even if this is true, is there any way to convert this
.vtt
to a usable format or simply download correctly-formatted auto-generated subtitles from YouTube ?

Python, FFMPEG, cmd-line preferred, but anything is helpful !


Thanks ! Any and all assistance is greatly appreciated !


-
Get Youtube video original mp4 URL in Googlevideo.com [on hold]
28 février 2015, par Matan YedayevI want to get the Youtube video original URL in Googlevideo.com
I want to show you example
This is Youtube video URL : https://www.youtube.com/watch?v=hzixp8s4pyg
How could I develop program that would give me this mp4 URL ?
Programs that succes to get this URL : jeckman/Youtube-Downloader at git.
One more example is : http://ytapi.com/?format=direct&vid=hzixp8s4pyg&itag=18