
Recherche avancée
Médias (1)
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (67)
-
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 is the first MediaSPIP stable release.
Its official release date is June 21, 2013 and is announced here.
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
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 (...) -
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 (...)
Sur d’autres sites (11372)
-
Play MPEG-2 TS using MseStreamSource
27 novembre 2022, par Nicolas SévenoI need to display a live video stream in a UWP application.



The video stream comes from a GoPro. It is transported by UDP messages. It is a MPEG-2 TS stream. I can play it successfully using FFPlay with the following command line :



ffplay -fflags nobuffer -f:v mpegts udp://:8554




I would like to play it with MediaPlayerElement without using a third party library.



According to the following page :
https://learn.microsoft.com/en-us/windows/uwp/audio-video-camera/supported-codecs
UWP should be able to play it. (I installed the "Microsoft DVD" application in the Windows Store).



I receive the MPEG-2 TS stream with a UdpClient. It works well.
I receive in each UdpReceiveResult a 12 bytes header, followed by 4, 5, 6, or 7 MPEGTS packets (each packet is 188 bytes, beginning with 0x47).



I created a MseStreamSource :



_mseStreamSource = new MseStreamSource();
_mseStreamSource.Opened += (_, __) =>
{
 _mseSourceBuffer = _mseStreamSource.AddSourceBuffer("video/mp2t");
 _mseSourceBuffer.Mode = MseAppendMode.Sequence;
};
_mediaPlayerElement.MediaSource = MediaSource.CreateFromMseStreamSource(_mseStreamSource);




This is how I send the messages to the MseStreamSource :



UdpReceiveResult receiveResult = await _udpClient.ReceiveAsync();
 byte[] bytes = receiveResult.Buffer;
 mseSourceBuffer.AppendBuffer(bytes.AsBuffer());




The MediaPlayerElement displays the message "video not supported or incorrect file name". (not sure of the message, my Windows is in French).



Is it a good idea to use the MseAppendMode.Sequence mode ?
What should I pass to the AppendBuffer method ? The raw udp message including the 12 bytes header or each MPEGTS 188 bytes packet ?


-
extracting single frame from MediaElemet or FFmpegInterop
13 janvier 2016, par Jakub WisniewskiI am writing app (Windows Phone 8.1 Store App) that allows user to connect to IP Camera. I am using FFmpeg Interop library for ffmpeg which allows me to play eg. rtsp streams in media element. I need now a way to somehow extract a single frame from stream or from media element.
I have tested other application wchih allows connecting to IP cameras - IP Centcom, and they have working snapshots only for mjpeg streams as far as I now (they were not working for rtsp). Becouse of that I belive that it is impossible or at very least very hard to export frame from media element.
I have different question - if anyone has ever used FFmpeg Interop and would like to help/explain me how could I modify/extend FFmpegInteropMSS to add method called ’GetThumbnailForStream’ that would work similary to ’GetMediaStreamSource’ but would return single frame (bitmap or jpg) instead of MediaStreamSource ?
Every help would be appreciated
EDIT :
I have found something ;
in MediaSampleProvider in method WriteAVPacketToStream (line 123) there is line
auto aBuffer = ref new Platform::Array(avPacket->data, avPacket->size);
and I belive that this is the place that stores single frame data that is needed to convert into bitmap - now since I do not know c++ too much I have a question : how can I convert it into a form that I could return via public method ?
When returning :
Platform::Array^
I get
’FFmpegInterop::MediaSampleProvider’ : a non-value type cannot have any public data members
EDIT2 :
Ok I am doing approprate projection to byte according to this microsoft information, now I need to check if this is correct data.
-
How to implement a command line of ffmpeg with ffmpeg static lib ?
19 novembre 2014, par JackPearseI need a simple ffmpeg conversion task to be done inside an application :
ffmpeg -i input_file.m4v -vcodec copy -acodec copy -vbsf h264_mp4toannexb output_file.ts
This works well using the terminal. I’ve successfully compiled ffmpeg’s static lib. Some examples work perfectly, that means the lib is working. How do I implement the behaviour of the above command line with this library ?
I looked into ffmpeg.c. But there is so much code inside that it took me hours to get an idea on how it works. Finally I still don’t really understand the whole structure.
I would be very happy if someone could help me understanding how to use the library to do the very same what the example command line does. (At the end I just want to transmux mp4 files to ts files without reencoding)
Thanks in advance
Jack