
Recherche avancée
Autres articles (54)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
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 (...) -
Pas question de marché, de cloud etc...
10 avril 2011Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
sur le web 2.0 et dans les entreprises qui en vivent.
Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)
Sur d’autres sites (9632)
-
Title : FFmpeg and yt-dlp not working on Render.com deployment - Node.js YouTube video processing app
23 mai, par minhquan lavoI'm building a video processing application that :


- 

- Downloads YouTube videos using yt-dlp
- Processes these videos with FFmpeg for :

- 

- Cutting clips from the original video
- Adding captions/subtitles to the clips












I'm struggling with getting both tools to work on Render.com deployment. Here's my setup :


Backend Stack :


- 

- Node.js
- Express
- FFmpeg-related packages :

- 

- @ffmpeg-installer/ffmpeg : ^1.1.0
- @ffprobe-installer/ffprobe : ^2.1.2
- ffmpeg-static : ^5.2.0
- fluent-ffmpeg : ^2.1.2










- yt-dlp (installed via pip in postinstall)










What I've tried :


- 

- Added FFmpeg installation in render.yaml :




services:
 - type: web
 name: clipthat-backend
 env: node
 buildCommand: |
 apt-get update && apt-get install -y ffmpeg
 npm install
 startCommand: npm start



- 

- Installing yt-dlp through npm postinstall :




"scripts": {
 "postinstall": "pip install yt-dlp"
}



The issues :


- 

- FFmpeg commands fail on Render deployment :

- 

- Can't process video editing tasks (cutting clips)
- Can't add captions to videos






- yt-dlp fails to download YouTube videos on deployment
Both tools work perfectly in my local development environment, but fail after deployment to Render.






Questions :


- 

- Has anyone successfully deployed a Node.js application using both FFmpeg and yt-dlp on Render.com for video processing ?
- Are there specific configurations needed for Python-based tools (like yt-dlp) on Render with Node.js apps ?
- Do I need to modify the build process to properly install Python and pip before the yt-dlp installation ?
- Is Render.com suitable for this kind of video processing application, or should I consider alternatives like DigitalOcean, AWS, etc.?










Any help or guidance would be greatly appreciated ! Let me know if you need any additional information.


-
ffmpeg : capture two screens simultaneously, save as two separate files
9 janvier 2017, par wetjoshIs this possible ? Here is my working single file solution. How can I modify it to save two separate files instead ?
ffmpeg \
-f avfoundation -pix_fmt uyvy422 -s 1440x900 -i 1 \
-f avfoundation -pix_fmt uyvy422 -s 1440x900 -i 2 \
-pix_fmt yuv420p -r 30 -preset ultrafast -b:v 5000k -t 15 \
-filter_complex \
"nullsrc=size=2880x900 [background]; \
[0:v] setpts=PTS-STARTPTS, scale=1440x900 [left]; \
[1:v] setpts=PTS-STARTPTS, scale=1440x900 [right]; \
[background][left] overlay=shortest=1 [background+left]; \
[background+left][right] overlay=shortest=1:x=1440 [left+right]" \
-map [left+right] out.movI’ve tried removing the filter complex. I’ve tried adding two output files. I’ve tried various combinations of mapping. The following is the closest I’ve gotten to making it work. It creates two files, but both contain only the second stream (-i 2).
ffmpeg \
-f avfoundation -pix_fmt uyvy422 -s 1440x900 -i 1 \
-f avfoundation -pix_fmt uyvy422 -s 1440x900 -i 2 \
-pix_fmt yuv420p -r 30 -preset ultrafast -b:v 5000k -t 15 out1.mov \
-pix_fmt yuv420p -r 30 -preset ultrafast -b:v 5000k -t 15 out2.mov -
How can I save the downloaded and converted audios to a specific folder
19 décembre 2022, par Retire YoungI'm trying to download Videos from a specific playlist and converting it to a m4a file for further downloading. The process works perfectly but the files are being saved in the same folder where my Phyton script is located. I choose a specific Output Folder but the files don't appear there.
Any ways to save the files in the desired folder ?


An error message reads as follows :
"input.mp4: No such file or directory"

In my Code block, I censored the playlist link and the user name on the path. Just imagine a working playlist link instead. Thanks in advance !

import os
import subprocess



Replace
with the URL of the YouTube playlist


playlist_url = "PLAYLISTLINK"


Set the output directory for the downloaded files


output_dir = "/Users/USER/Documents/VideoBot/Output"


Use
youtube-dl
to download the latest video in the playlist

subprocess.run(["youtube-dl", "-f", "bestaudio[ext=m4a]", "--playlist-start", "1", "--playlist-end", "1", playlist_url])


Extract the audio from the downloaded video using
ffmpeg


subprocess.run(["ffmpeg", "-i", "input.mp4", "-vn", "-acodec", "copy", "output.m4a"])


Move the extracted audio file to the output directory


os.rename("output.m4a", os.path.join(output_dir, "output.m4a"))