
Recherche avancée
Autres articles (32)
-
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 (...) -
Librairies et logiciels spécifiques aux médias
10 décembre 2010, parPour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...) -
Dépôt de média et thèmes par FTP
31 mai 2013, parL’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)
Sur d’autres sites (4013)
-
ffmpeg video unable to play properly in most video players
7 septembre 2022, par LarsI'm trying to set up a node.js app that allows me to download files from a web interface.
I'm using
yt-dl
to get the video and audio stream andffmpeg
to pipe those streams into an mp4. This works and returns a mp4 file.

Now the only issue I have is that when I play the file through most video players, the video player is unable to seek, or skip through the song. I found somewhere deep down on a forum that means that that means the mp4 headers are not working but that is all I could find.
Here is my code, almost unchanged from this response on another thread.


Can anyone provide a solution for this issue.


ytdl.getInfo(link, options).then(info => {
 audioStream = ytdl.downloadFromInfo(info, { ...options, quality: 'highestaudio' });
 videoStream = ytdl.downloadFromInfo(info, { ...options, quality: 'highestvideo' });
 // create the ffmpeg process for muxing
 ffmpegProcess = cp.spawn(ffmpegPath, [
 // supress non-crucial messages
 '-loglevel', '8', '-hide_banner',
 // input audio and video by pipe
 '-i', 'pipe:3', '-i', 'pipe:4',
 // map audio and video correspondingly
 '-map', '0:a', '-map', '1:v',
 // no need to change the codec
 '-c', 'copy',
 // output mp4 and pipe
 '-f', 'matroska', 'pipe:5'
 ], {
 // no popup window for Windows users
 windowsHide: true,
 stdio: [
 // silence stdin/out, forward stderr,
 'inherit', 'inherit', 'inherit',
 // and pipe audio, video, output
 'pipe', 'pipe', 'pipe'
 ]
 });
 audioStream.pipe(ffmpegProcess.stdio[3]);
 videoStream.pipe(ffmpegProcess.stdio[4]);
 ffmpegProcess.stdio[5].pipe(result);
 });



-
How to pass a youtube video's audio url as ffmpeg source
8 janvier 2020, par CrystallVRIm trying to get my discord bot to play the audio from any youtube videos using the video’s url from youtube-dl (the audio url) as the ffmpeg path/source. I got it to work kind of but, while testing, the ffmpeg throws an error in the middle of the audio and the process ends. Here is the error :
https://i.imgur.com/uCy8SfK.pngI’ve tried to play the same exact song by downloading it and using the file’s path as ffmpeg source path and it worked fine.
Here is how i start the ffmpeg process :
return Process.Start(new ProcessStartInfo
{
FileName = "ffmpeg.exe",
Arguments = $"-xerror -i \"{path}\" -ac 2 -f s16le -ar 48000 pipe:1",
UseShellExecute = false,
RedirectStandardOutput = true
});path is the audio url from youtube-dl process. (can also see the url in the error screenshot)
And here is how i get the link from youtube-dl :
Process youtubedl;
ProcessStartInfo youtubedlGetTitle = new ProcessStartInfo()
{
FileName = "youtube-dl",
Arguments = $"--get-title --get-duration --get-url {url}",
CreateNoWindow = true,
RedirectStandardOutput = true,
UseShellExecute = false
};
youtubedl = Process.Start(youtubedlGetTitle);
youtubedl.WaitForExit();url is a normal youtube video link.
I just started working with ffmpeg and youtube-dl so there probably are some stupid rookie mistakes that i’m not aware of. I would appreciate any guidance and/or explanation of what I did wrong.
-
Extract just the audio link from a youtube video without converting
19 janvier 2017, par kamron shawI know there are hundreds of sites to convert youtube video to mp3. Most of them do it by first downloading the video and then converting it to mp3(or any other audio format) on their server using youtube-dl, ffmpeg or similar programs.
What I want to know is, is there any way I can just extract the audio link for any youtube video ? I don’t know if it’s possible but I saw a couple of websites doing it .
First Website : Openaisearch.com
This website simply gives a download link for the audio(getting it from youtube videos). I searched for a song and saw the download url, it looked something like this :https://redirector.googlevideo.com/videoplayback?source=youtube&requiressl=yes&clen=3814013&upn=dzwY9aUVYME&lmt=1469875393441562&expire=1484854959&mime=audio%2Fmp4&nh=IgpwcjAxLnNlYTA5Kg01Mi45NS4yMTYuMTAy&itag=140...........
I believe that this is not done by first downloading and converting the video to audio format(Correct me if I am wrong).
Although the file which gets downloaded after using this link is without any extension, but adding ".m4a" at the end of downloaded file does the work.Second Website : http://keepvid.com/ ?url=https ://www.youtube.com/watch?v=PT2_F-1esPk
Again similar website with similar audio link. You can check by visiting the URL and see link of audio files.
Any idea how these websites get that "googlevideo.com" link ? Do they scrap the youtube video links or something ?
Thanks.