
Recherche avancée
Autres articles (67)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
-
Taille des images et des logos définissables
9 février 2011, parDans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)
Sur d’autres sites (11861)
-
Révision 74748 : un crawl-delay à 1s pour éviter de se faire plomber par les bots crawlers
14 août 2013, par brunobergot@gmail.com -
aac : Fix low delay windowing.
24 décembre 2013, par Alex Converse -
Play video files in a row without delay
13 février 2015, par Ara DeonasI am looking for a way to play 2 video in a row without any delay (or
very tiny delay) when changing files.
I had 1 mp4 file and with ffmpeg I split it into 2 file and now I want
to add them in playlist and play them but I don’t want user feel
changing video but when I test it because of loading file there is a
delay.
I think about stream second file into memory before first file end.
How can I do this ?
I tested LibVLC and read Play a Video from MemoryStream, Using FFMpeg but still no luck.
PS : Any library in any language is good for me.EDIT : I added a demo that play second file after first one but there is a delay beetwen changing.How can I minimize this ?(for example feeding VLC from memory and load second file into memory).
EDIT : Files are small (less than 5mb).unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, PasLibVlcPlayerUnit, Forms, Controls, Graphics,LCLIntf,LCLType,
Dialogs, ExtCtrls, StdCtrls, PasLibVlcPlayer, PasLibVlcUnit, PasLibVlcClassUnit;
type
{ TForm1 }
TForm1 = class(TForm)
Button2: TButton;
Panel2: TPanel;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
function GetVlcInstance(): TPasLibVlc;
procedure WmMediaPlayerEndReached(var m: TVlcMessage); message WM_MEDIA_PLAYER_END_REACHED;
public
FVLC: TPasLibVlc;
media_t_ptr:libvlc_media_t_ptr;
media_t_ptr2:libvlc_media_t_ptr;
FVideoOutput: TVideoOutput;
FAudioOutput: TAudioOutput;
p_mi: libvlc_media_player_t_ptr;
p_instance: libvlc_instance_t_ptr;
p_mi_ev_mgr: libvlc_event_manager_t_ptr;
property VLC: TPasLibVlc read GetVlcInstance;
end;
var
Form1: TForm1;
procedure lib_vlc_player_event_hdlr(p_event: libvlc_event_t_ptr; Data: Pointer); cdecl;
implementation
procedure lib_vlc_player_event_hdlr(p_event: libvlc_event_t_ptr; Data: Pointer); cdecl;
var
Form: TForm1;
begin
if (Data = nil) then
exit;
Form := TForm1(Data);
if not Assigned(Form) then
exit;
case p_event^.event_type of
libvlc_MediaPlayerEndReached:
PostMessage(Form.Handle, WM_MEDIA_PLAYER_END_REACHED, WPARAM(0), LPARAM(0));
end;
end;
{$R *.lfm}
{ TForm1 }
procedure TForm1.Button1Click(Sender: TObject);
begin
end;
procedure TForm1.Button2Click(Sender: TObject);
var
mrl: string;
begin
mrl := 'C:\ffmpeg\bin\tmp\OUTPUT0.mp4';
media_t_ptr:=libvlc_media_new_path(VLC.Handle, PAnsiChar(UTF8Encode(mrl)));
p_instance := VLC.Handle;
p_mi := libvlc_media_player_new(p_instance);
p_mi_ev_mgr := libvlc_media_player_event_manager(p_mi);
libvlc_event_attach(p_mi_ev_mgr, libvlc_MediaPlayerEndReached, @lib_vlc_player_event_hdlr, SELF);
libvlc_media_player_set_media(p_mi, media_t_ptr);
libvlc_media_release(media_t_ptr);
libvlc_media_player_set_display_window(p_mi, Panel2.Handle);
libvlc_media_player_play(p_mi);
mrl := 'C:\ffmpeg\bin\tmp\OUTPUT1.mp4';
media_t_ptr2:=libvlc_media_new_path(VLC.Handle, PAnsiChar(UTF8Encode(mrl)));
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
Button2.Click;
end;
function TForm1.GetVlcInstance: TPasLibVlc;
begin
if not Assigned(FVLC) then
begin
FVLC := TPasLibVlc.Create;
end;
Result := FVLC;
end;
procedure TForm1.WmMediaPlayerEndReached(var m: TVlcMessage);
begin
libvlc_media_player_set_media(p_mi, media_t_ptr2);
libvlc_media_player_play(p_mi);
end;
end.