
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (113)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)
Sur d’autres sites (12299)
-
Merge commit ’eeaf4f3b87815cbae4c12856cfaafb3a2dae8e0c’
5 mars 2014, par Michael Niedermayer -
Failed to load resource : the server responded with a status of 404 (Not Found)
28 août 2013, par KaushikThis problem is quite unsolvable for me.. I have a
Fileupload
control and I upload only Video files. Then I useffmpeg
to obtain a frame [image] from that video to display it as a preview. But I am unable to load that image into Image control. The Image will be saving in the specified folder but not able to load it and gives the error which I mentioned in topic.This is my aspx code..
<div class="transbox" runat="server">
<fieldset style="width:50%; margin-left:300px">
<legend style="color:white;font-family:&#39;Palatino Linotype&#39;">Upload Video Files</legend>
</fieldset>
<div class="head" runat="server"><label>Write Description</label>
</div>
<div runat="server" style="margin-top:22px;">
</div>
</div>and this my aspx.cs code..
protected void uploadedFile_Click(object sender, EventArgs e)
{
if (Page.IsPostBack)
{
if (UploadImages.HasFiles)
{
string fileExt = Path.GetExtension(UploadImages.FileName).ToLower();
if (fileExt == ".flv" || fileExt == ".avi" || fileExt == ".mp4" || fileExt == ".3gp" || fileExt == ".mov" || fileExt == ".wmv" || fileExt == ".mpg" || fileExt == ".asf" || fileExt == ".swf")
{
foreach (HttpPostedFile uploadedFile in UploadImages.PostedFiles)
{
count += 1;
filepath = Server.MapPath("~/Videos/" + uploadedFile.FileName);
uploadedFile.SaveAs(filepath);
vurl.Add(uploadedFile.FileName.ToString());
newpath = createvidImage(filepath);
try
{
createImgPanel();
Image nimg = Page.FindControl("img" + count) as Image;
nimg.ImageUrl = "../Images/Video_Thumbs/" + newpath.ToString();
al.Add(newpath.ToString());
}
catch (Exception ex)
{
Page.ClientScript.RegisterStartupScript(GetType(), "msgbox", "alert('" + ex.Message.ToString() + "!!');", true);
}
}
Session["name2"] = al;
Session["vurl"] = vurl;
}
else
{
lblerror2.Text = "Please select only Image Files";
}
}
else
{
lblerror2.Text = "Please select File/s";
}
}
}
public void createImgPanel()
{
StringBuilder sb = new StringBuilder();
tid = tid + 1;
textid = "txt" + tid;
ta = new TextBox();
img = new Image();
ta.TextMode = TextBoxMode.MultiLine;
dload = new HtmlGenericControl("div");
updtpanel.Visible = true;
dload.Attributes.Add("class", "dataload");
dload.ID = "ind" + tid;
img.CssClass = "loadimg";
img.ID = "img" + tid;
img.Attributes.Add("runat", "server");
ta.Attributes.Add("class", "txtdes");
ta.ID = textid;
dload.Controls.Add(img);
dload.Controls.Add(ta);
dback.Controls.Add(dload);
}
public string createvidImage(string fpath)
{
string thumbname = "";
string newthumb = "";
string newpath1 = "";
if (Page.IsPostBack)
{
string link = "";
link = fpath.ToString();
Guid nid = Guid.NewGuid();
thumbname = Server.MapPath("..//Images//Video_Thumbs//") + nid + ".jpg";
newthumb = nid + ".jpg";
string param = String.Format("-ss {0} -i \"" + link + "\" -s 150*120 -vframes 1 -f image2 -vcodec mjpeg \"" + thumbname + "\"", 20);
Process p = new Process();
p.StartInfo.Arguments = param;
p.StartInfo.FileName = Server.MapPath("..//ffmpeg//ffmpeg.exe");
p.StartInfo.CreateNoWindow = false;
p.StartInfo.UseShellExecute = false;
p.Start();
newpath1 = newthumb.ToString();
}
return newpath1;
} -
flac demuxer : parse the WAVEFORMATEXTENSIBLE_CHANNEL_MASK tag
25 mai 2014, par Anton Khirnov