
Recherche avancée
Autres articles (96)
-
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
Use, discuss, criticize
13 avril 2011, parTalk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
A discussion list is available for all exchanges between users. -
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 (...)
Sur d’autres sites (6342)
-
Downloading a Few Seconds of Audio from a Youtube Video with ffmpeg and youtube-dl Results in [youtube] : No such file or directory error
20 décembre 2018, par DrJessopBelow is the program that I wrote :
ffmpeg -ss 60 -t 10 -i $(youtube-dl -f 140 https://www.youtube.com/watch?v=kDCk3hLIVXo) output.mp3
This is supposed to get 10 seconds of audio starting at the one minute mark of the video and write it to output.mp3. If I run the youtube-dl command separately, and then the ffmpeg command with the entire video audio as input, it works. But, I do not want to download the entire video as well as create a new file with only a few seconds of audio.
In its current state, I am getting [youtube] : No such file or directory errors. Does anyone know how I can fix this and keep it in one line ?
-
How to correctly close a console application using the youtube-dl process to download Twitch stream whenever I want
24 juin 2023, par ElPavlilloThe test program has the following code :


string url = "https://www.twitch.tv/ricoy";
string outputPath = @"D:\ruta_del_archivo_salida.mp4";

ProcessStartInfo startInfo = new ProcessStartInfo
{
 FileName = "youtube-dl",
 Arguments = $"-f best -o \"{outputPath}\" \"{url}\"",
 //RedirectStandardOutput = true,
 UseShellExecute = false,
 CreateNoWindow = true
};

using (Process process = new Process())
{
 process.StartInfo = startInfo;
 process.Start();

 //var output = process.StandardOutput.ReadToEnd();
 //process.WaitForExit();

 Console.Read();
 KillProcessAndChildren(process.Id);
}

static void KillProcessAndChildren(int pid)
{
 // Cannot close 'system idle process'.
 if (pid == 0)
 {
 return;
 }
 ManagementObjectSearcher searcher = new ManagementObjectSearcher
 ("Select * From Win32_Process Where ParentProcessID=" + pid);
 ManagementObjectCollection moc = searcher.Get();
 foreach (ManagementObject mo in moc)
 {
 KillProcessAndChildren(Convert.ToInt32(mo["ProcessID"]));
 }
 try
 {
 Process proc = Process.GetProcessById(pid);
 proc.Kill();
 }
 catch (ArgumentException)
 {
 // Process already exited.
 }
}



The problem is that when I press de key in the console the youtube-dl process gets kill and also de ffmpeg but the file is left with .part extension and does not work.


I was expecting the code to left a .mp4 file but for reason it does not.


-
How to get a list of libraries ffmpeg has linked to (static ffmpeg libraries) ?
6 octobre 2018, par myWallJSONI have compiled Ffmpeg (1.0) with newt configuration :
./configure --disable-doc --disable-ffplay --disable-ffprobe --disable-ffserver --disable-avdevice --disable-avfilter --disable-pthreads --disable-everything --enable-muxer=flv --enable-encoder=flv --enable-encoder=h263 --disable-mmx --disable-shared --prefix=bin/ --disable-protocols --disable-network --disable-debug --disable-asm --disable-stripping
It compiled - no errors - headers and libs (static
.a
) are in place. (special experimental cigwin, experimental gcc, with no asm options, and no known by ffmpeg platform defines) (yet I have compiled and tested boost on it)Now I try to compile my app. I get next exceptions :
../ffmpeg-1.0/bin/lib/libavcodec.a: error: undefined reference to 'exp'
../ffmpeg-1.0/bin/lib/libavcodec.a: error: undefined reference to 'log'My compiler build line looks like this :
g++ -static -emit-swf -o CloudClient.swf -I../boost/boost_libraries/install-dir/include -I../ffmpeg-1.0/bin/include -L../boost/boost_libraries/install-dir/lib -L../ffmpeg-1.0/bin/lib \
timer.o \
audio_encoder.o \
audio_generator.o \
video_encoder.o \
video_generator_rainbow.o \
simple_synchronizer.o \
multiplexer.o \
transmitter.o \
graph_runner.o \
cloud_client.o \
-pthread \
-lswscale \
-lavutil \
-lavformat \
-lavcodec \
-lboost_system \
-lboost_date_time \
-lboost_threadSo as you see quite complex and I already have all object files compiled and ready... Only one thing left - link it all to ffmpeg (striped from ffmpeg version compiled with boost)
Tried adding
-lm
- no help...Well here my question is - how to get list of libraries ffmpeg linked to (like
-lm
etc) ?