
Recherche avancée
Médias (2)
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (47)
-
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...) -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
-
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 (8006)
-
FFmpeg video is very distorted after a pixel-perfect start
7 septembre 2022, par AlvinfromDiasparI am using the following FFMpeg command to convert a H.264 UDP streamed video from a Tello drone to another address.



ffmpeg -i udp://0.0.0.0:11111 -preset ultrafast -vcodec libx264 -tune zerolatency -b 900k -f h264 udp://127.0.0.1:5000




Then I simply use the following OpenCv to read from that new address :



this.Capture = new OpenCvSharp.VideoCapture("udp://127.0.0.1:5000", OpenCvSharp.VideoCaptureAPIs.FFMPEG);




From this Capture reference, i obtain the next frame by calling this.Capture.Read(mat).
When i assigned the convert image to the UI, the image is pixel perfect !



However, after the initial rendering, i am not seeing immediate updates. But i do see very laggy video updates that is very distorted. It looks like each consecutive frame is just the delta/difference drawn on top of the previous frame.



Is there anything i can tweak/modify in my FFMpeg command to resolve this distorted video rendering ?



Update 1
I was able to make some progress. The video updates, still with distortion, but overall distortion is a bit less. And the frames update more responsively.



To get to this point, i simply added this parameter to my FFMpeg command :



-g 100




I also tried :



-g 300



-
Using GStreamer to receive and send h264 video (from OBS)
16 mars 2020, par IvoriusI’ve been trying to set up using GStreamer to get support for some input I can output from OBS.
OBS : rtp_mpegts to udp ://localhost:5000
http-launch 8080 webmmux streamable=true name=stream udpsrc uri=udp://localhost:5000 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)MP2T-ES, payload=(int)
33" ! gstrtpjitterbuffer latency=200 ! application/x-rtp ! rtpmp2tdepay ! video/mpegts ! mpegtsdemux ! video/x-h264 ! queue ! decodebin ! vp8enc ! stream. audiotestsrc ! vorbisenc ! stream.However, using this it seems to accept connections, but just closes them again after a while. Any clues on what I am doing wrong ? I am open to any format changes as long as they’re supported by OBS / ffmpeg.
As a bonus, how do I add support for audio as well ?
Background
I’ve found https://github.com/sdroege/http-launch, which works well in displaying a GStreamer video over http:
<video autoplay="autoplay" controls="">
<source src="https://localhost:8080" type="video/mp4" codecs="avc1.4D401E, mp4a.40.2">
You browser doesn't support element <code>video.
I’ve managed to set up a pipeline where I can use a GStreamer source to pipe into a http-launch
pipeline and display it on video :http-launch 8080 webmmux streamable=true name=stream udpsrc port=5000 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" ! mpegtsdemu
x ! h264parse ! TIViddec2 ! videoconvert ! vp8enc ! stream. audiotestsrc ! vorbisenc ! stream.
gst-launch-1.0 -v videotestsrc ! videoconvert ! x264enc tune=zerolatency bitrate=500 speed-preset=superfast ! rtph264pay ! udpsink host=127.0.0.1 port=5000However, I don’t think OBS supports rpt over UDP. It uses ffmpeg to send these packets, which can stream rtp_mpegts. I’ve found some code snippets which claim to support the format, and stitch together the above pipeline.
-
Creating Thumbnail Image from Video using FFMPEG is not working in ASP.NET Core
17 août 2020, par TanvirArjelI am trying to create thumbnail image for uploaded video with FFMPEG in ASP.NET Core as follows :



private void GetThumbnail(IFormFile file)
{
 var fileName = CreateEmployeeViewModel.Video.FileName;
 var webRootPath = _webHostEnvironment.WebRootPath;
 var filePath = Path.Combine(webRootPath, "videos", fileName);

 var fileExtension = Path.GetExtension(filePath);
 var thumbnailImageName = fileName.Replace(fileExtension, ".jpg");
 var thumbnailImagePath = Path.Combine(webRootPath, "thumbnails", thumbnailImageName);

 ProcessStartInfo startInfo = new ProcessStartInfo();

 string arguments = $"-i {filePath} -ss 00:00:14.435 -vframes 1 {thumbnailImagePath}";

 startInfo.FileName = Path.Combine(Directory.GetCurrentDirectory(), "Ffmpeg\\ffmpeg.exe");
 startInfo.CreateNoWindow = false;
 startInfo.UseShellExecute = false;
 startInfo.RedirectStandardError = true;
 startInfo.RedirectStandardOutput = true;
 startInfo.WindowStyle = ProcessWindowStyle.Hidden;
 startInfo.Arguments = arguments;

 try
 {
 Process process = Process.Start(startInfo);
 process.WaitForExit(5000);
 process.Close();
 }
 catch
 {
 // Log error.
 }

}




It's not showing any error but it's also not generating the thumbnail image. am I missing anything please ?



Note : if I execute the above configuration from command line its works !