
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 (56)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.
Sur d’autres sites (10167)
-
mjpegdec : parse JPS extension and save relevant stereo3d information
29 janvier 2014, par Kirill Gavrilov -
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"))


-
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