
Recherche avancée
Autres articles (41)
-
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...)
Sur d’autres sites (6561)
-
libswscale/x86/hscale_fast_bilinear_simd.c : There’s no need to save BX if it’s in...
13 mai 2015, par Nick Lewycky -
Read and Save rtsp stream using FFMPEG using python with less memory size
25 août 2022, par Vishak RajI am trying to read a rtsp stream and save in a file, for that I am using the
ffmpeg
in python

import ffmpeg

stream = ffmpeg.input(rtsp_link, t=10)
print(stream)

file = stream.output("test.mp4")
testfile = file.run()#capture_stdout=True, capture_stderr=True



but this save the video file in high space, for 10 second video, the file occupies around 3 Mb, how to reduce the file size


thanks


-
Can't save process's output stream to file
10 octobre 2018, par Wahid MasudI’m using
ffmpeg.exe
as a process and output the converted video to memory, then from memory I’m saving the data to a video file (this is the requirement I can’t directly save the converted video to a file). But the conversion is not working for some reason, Here is what I’ve tried,var ffmpeg = HttpContext.Current.Server.MapPath("~/FFMpeg/ffmpeg.exe");
var outputDir = HttpContext.Current.Server.MapPath("~/Uploads/converted.mp4");
var inputDir = "https://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_10mb.mp4";
var args = "-i " + inputDir + " -c:v libx264 -preset veryslow -crf 26 " +
"-ar 44100 -ac 2 -c:a aac -strict -2 -b:a 128k -";
var process = new Process();
process.StartInfo.UseShellExecute = false;
process.StartInfo.FileName = ffmpeg;
process.StartInfo.WorkingDirectory = ffmpeg.Replace("\\ffmpeg.exe", "");
process.StartInfo.Arguments = args;
process.StartInfo.RedirectStandardOutput = true;
process.Start();
process.EnableRaisingEvents = true;
//process.WaitForExit();
Stream output = process.StandardOutput.BaseStream;
process.Exited += (sender, e) =>
{
using (var fileStream = File.Create(outputDir))
{
output.Seek(0, SeekOrigin.Begin);
output.CopyTo(fileStream);
}
};The output file
converted.mp4
is created but its 0 kb.