
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (101)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (13597)
-
Adding trimming option to Youtube-dl audio script
22 septembre 2020, par Jim JamilThis is the current script, it's a Windows batch file that prompts for a Youtube url and then downloads the best audio in m4a. It's basically cobbled together and uses aria2 to manage the download.


@echo off
SETLOCAL ENABLEDELAYEDEXPANSION
(set /p var1="Url? " && youtube-dl -f bestaudio[ext=m4a] --external-downloader aria2c --external-downloader-args "-j 16 -s 16 -x 16 -k 5M" --restrict-filenames -o "%%(title)s.%%(ext)s" --add-metadata --embed-thumbnail !Var1!)
ENDLOCAL
pause



After asking for the url, I want to also prompt the user to input the start and end times to trim the audio, which would be done by ffmpeg post download.


Something like :


ffmpeg -i file.m4a -ss 00:00:20 -to 00:00:40 -c copy file-2.m4a



Based on this : https://unix.stackexchange.com/questions/182602/trim-audio-file-using-start-and-stop-times/302469#302469


The beginning and end times would need to be variables set by user input in
00:00:00
format, but not sure how to add the ffmpeg post-processing at the end or how it would all fit together. I want to add this trimming feature to remove some of the preamble on podcasts and get straight to the guest part of the show.

The
--embed-thumbnail
is optional, and won't work anyway unless Atomic Parsley is present. FFmpeg often has trouble with Album Art anyway so I usually just use-vn
on the final output file.

-
FFmpeg output stopping early when piping through stdin
6 juillet 2022, par Null UserI am receiving audio data encoded using Ogg Vorbis through a stream, and piping that data to FFmpeg's stdin in order to convert it into Opus. Here is the command I'm using :


ffmpeg -hide_banner -i pipe: -acodec libopus -f opus -ar 48000 -ac 2 -b:a 64000 -filter_complex volume=0.2 pipe:1



Unfortunately, the output audio stops a few seconds before the end of the file.


Looking at the FFmpeg logs, I can see this warning appear many times during the conversion :


[libopus @ 0000025190d06a00] Queue input is backward in time
 Last message repeated 9 times
size= 728kB time=00:00:45.05 bitrate= 132.4kbits/s speed=1.26x 
[libopus @ 0000025190d06a00] Queue input is backward in time
 Last message repeated 11 times
size= 793kB time=00:00:49.07 bitrate= 132.4kbits/s speed=1.24x 
[libopus @ 0000025190d06a00] Queue input is backward in time
 Last message repeated 8 times



My guess is that for some reason the inputs I'm receiving are reversed, and on the last chunk of data the "end of stream" vorbis packet comes first, therefore FFmpeg stops processing the rest of the data.


Saving the stream to a file and encoding the file instead of the stream doesn't cause this to happen. This seems to be exclusive to stdin streams.


Is there a way to tell FFmpeg to ignore the "end of stream" signal ?


-
ffmpeg downloading parts of Youtube videos but for some of them they have a black screen for a few seconds
29 septembre 2021, par user14702793So im using ffmpeg to download some youtube videos with specific start and stop times. My code looks like
os.system("ffmpeg -i $(youtube-dl --no-check-certificate -f 18 --get-url %s) -ss %s -to %s -c:v copy -c:a copy %s"% (l, y, z, w))
where the variables would all be the name of the file, the url, and the start and stop times. Some of the vidoes come out just fine, others have a black screen and only a portion of the video, and a very few amount have just audio files. My time is formated as x.y where x would be the seconds and y would be the milliseconds. Is this the issue so I need to transform it to 00:00:00.0 format ? Any help is appreciated