
Recherche avancée
Autres articles (67)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;
Sur d’autres sites (5222)
-
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


-
The Ultimate YouTube-DL script [on hold]
30 juillet 2018, par G. L.I need help creating/finishing a bash script. What I’m trying to do is to create the perfect YouTube-DL archiving script.
As of now, the only thing I can do is download all of a Users’ videos, embed subtitles, add metadata but I want to also autosub the files (with script number 2) and convert the downloaded files with ffmpeg or AVConv or handbrake-cli and then remove the video files when I have a successful conversion.Script 1 (downloads videos skipping already downloaded ones)
youtube-dl -i -o "%(title)s-%(id)s.%(ext)s" --all-subs --embed-subs --embed-thumbnail --add-metadata --sleep-interval=20 --rate-limit=1M --exec 'youtube-dl2kodi.py -t tvshow -f {}' --download-archive .archive $(cat url.txt)
Note : youtube-dl2kodi.py creates Kodi compatible nfo files so I can view them properly on Kodi with metadata.
Script 2 (subtitles videos automatically using autosub)
for file in *I WANT TO AUTOSUB files in this directory and subdirectories*
do
autosub -S de -D de "$file" >> results.out
doneI want to merge script 1 and 2 and then encode the files and remove original video files (mp4, mkv and webm) if successful.
My encoding preference is HEVC with CRF 23 and I don’t want to encode the audio. I want to copy the audio. The final video would be a MKV file. -
How to Live Stream YouTube without Audio [on hold]
23 septembre 2016, par arsenalistI have two IP cam and a computer with
ffmpeg
to re-stream them to YouTube.First Cam
It has Video and Audio. I can re-stream to YouTube successfully with this command.
ffmpeg -re -rtsp_transport tcp -i rtsp://192.168.aaa.bbb:554/ch0_1.h264 -acodec libmp3lame -ar 44100 -b:a 128k -pix_fmt yuv420p -profile:v baseline -s 426x240 -bufsize 2048k -vb 400k -maxrate 800k -deinterlace -vcodec libx264 -preset medium -g 30 -r 30 -f flv rtmp://a.rtmp.youtube.com/live2/
Second Cam
It has Video only. However, with both commands below, I can’t stream to YouTube. (although the
ffmpeg
process is running well)ffmpeg -re -rtsp_transport tcp -i rtsp://192.168.aaa.ccc/Streaming/Channels/102 -an -pix_fmt yuv420p -profile:v baseline -s 426x240 -bufsize 2048k -vb 400k -maxrate 800k -deinterlace -vcodec libx264 -preset medium -g 30 -r 30 -f flv rtmp://a.rtmp.youtube.com/live2/
or
ffmpeg -re -rtsp_transport tcp -i rtsp://192.168.aaa.ccc/Streaming/Channels/102 -acodec libmp3lame -ar 44100 -b:a 128k -pix_fmt yuv420p -profile:v baseline -s 426x240 -bufsize 2048k -vb 400k -maxrate 800k -deinterlace -vcodec libx264 -preset medium -g 30 -r 30 -f flv rtmp://a.rtmp.youtube.com/live2/
I’ve test both camera’s stream first using FLV, and they work well. So, the issue is not the URL of IP camera.
From what I understand, YouTube define stream as audio-video content. However, what if the source only has Video.
So, my question :
How to live stream YouTube without audio, specially from an IP cam ?
Thanks