Recherche avancée

Médias (10)

Mot : - Tags -/wav

Autres articles (52)

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

  • Selection of projects using MediaSPIP

    2 mai 2011, par

    The examples below are representative elements of MediaSPIP specific uses for specific projects.
    MediaSPIP farm @ Infini
    The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)

  • L’espace de configuration de MediaSPIP

    29 novembre 2010, par

    L’espace de configuration de MediaSPIP est réservé aux administrateurs. Un lien de menu "administrer" est généralement affiché en haut de la page [1].
    Il permet de configurer finement votre site.
    La navigation de cet espace de configuration est divisé en trois parties : la configuration générale du site qui permet notamment de modifier : les informations principales concernant le site (...)

Sur d’autres sites (9260)

  • Update server/php/upload.class.php

    25 octobre 2012, par sieppl

    m server/php/upload.class.php Update server/php/upload.class.php Changing options merge to array_merge in order to have full control when passing options array. https://github.com/blueimp/jQuery-File-Upload/issues/1807

  • Moved request method switch into class initialization code.

    14 octobre 2012, par Sebastian Tschan

    m server/php/index.php m server/php/upload.class.php Moved request method switch into class initialization code. Added option to return response of get, post and delete methods instead of printing it to the output stream. Added option (...)

  • how to pass ffmpeg output to other sub-class in C# ?

    11 septembre 2012, par Lynx

    i want to pass the thumbnail generated by ffmpeg to save_FTPUpload where the save_FTPUpload function is to upload the image file to ftp server. how can i do that ?
    here is my example code for thumbnail generation using ffmpeg and "fileupload" function for uploading files to ftp server :

    public partial class testtttt : System.Web.UI.Page
    {
       protected void Page_Load(object sender, EventArgs e)
       {
           generateThumbnail();
           string fi_attachment = @"C:\2.jpg";//source image file
           save_FTPUpload(fi_attachment);
       }

       private void generateThumbnail()
       {
           string thumbpath, thumbname, videofile;

           videofile = "http://www.xxxx.com/video.Avi";
           thumbpath = @"C:\";
           thumbname = thumbpath + Path.GetFileNameWithoutExtension(videofile) + ".jpg";

           string thumbargs = "-i \"" + videofile + "\" -vframes 1 -s 60*30 -ss 00:00:00 -f image2 \"" + thumbname + "\"";

           Process process = new Process();

           process.StartInfo.FileName = Server.MapPath("~\\ffmpeg\\bin\\ffmpeg.exe");
           process.StartInfo.Arguments = thumbargs;

           process.StartInfo.UseShellExecute = false;
           process.StartInfo.RedirectStandardOutput = true;
           process.StartInfo.RedirectStandardInput = false;
           process.StartInfo.RedirectStandardError = true;
           process.StartInfo.CreateNoWindow = false;
           process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;

           try
           {
               process.Start();
               string output2 = process.StandardError.ReadToEnd();
               string output3 = process.StandardOutput.ReadToEnd();

               if (process != null)
               {
                   process.Close();
               }
           }

           catch (Exception)
           {
               this.lblMessage.Text = "Thumbnail created successfuly";//ex.Message.ToString();
           }
       }

       public bool save_FTPUpload(string fi_attachment)
       {
           bool fileSaved = false;
           //string fi_attachment = @"C:\1.jpg";
           string filename = "3.jpg";//image name to be saved in ftp
           string ftp_user = "*****"; //username
           string ftp_pass = "*****"; //password
           string ftpURI = "ftp://www.xxxx.com/thumb/"; //ftp path where the image will be saved

           while (!fileSaved)
           {
               string file_ftpURI = string.Format("{0}/{1}", ftpURI, filename);
               FtpWebRequest file_exist_request = (FtpWebRequest)FtpWebRequest.Create(file_ftpURI);
               file_exist_request.Credentials = new NetworkCredential(ftp_user, ftp_pass);
               file_exist_request.Method = WebRequestMethods.Ftp.GetFileSize;
               try
               {
                   FtpWebResponse response = (FtpWebResponse)file_exist_request.GetResponse();
               }
               catch (WebException ex)
               {
                   FtpWebResponse response = (FtpWebResponse)ex.Response;
                   if (response.StatusCode ==
                       FtpStatusCode.ActionNotTakenFileUnavailable)
                   {
                       FtpWebRequest upload_request = (FtpWebRequest)FtpWebRequest.Create(file_ftpURI);
                       upload_request.Credentials = new NetworkCredential(ftp_user, ftp_pass);

                       upload_request.Method = WebRequestMethods.Ftp.UploadFile;
                       upload_request.UsePassive = true;
                       upload_request.UseBinary = true;
                       upload_request.KeepAlive = false;

                       using (var fs = File.OpenRead(fi_attachment))
                       using (Stream upload_request_stream = upload_request.GetRequestStream())
                       {
                           fs.CopyTo(upload_request_stream);
                       }
                       FtpWebResponse upload_response = (FtpWebResponse)upload_request.GetResponse();

                       fileSaved = true;
                       this.Label1.Text = "Upload Successful";
                   }
               }
           }
           return fileSaved;
       }