Recherche avancée

Médias (0)

Mot : - Tags -/diogene

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (52)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Librairies et logiciels spécifiques aux médias

    10 décembre 2010, par

    Pour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
    Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

Sur d’autres sites (6283)

  • Error finding watermark path using ffmpeg in asp.net application

    27 août 2013, par irfanmcsd

    I am using .net ffmpeg wrapper to post watermark on videos. Posting watermark works fine if i execute ffmpeg command directly but failed to find suitable watermark png file location if command executed via asp.net application.

    here is sample ffmpeg command

    string RootPath = HttpContext.Current.Server.MapPath(HttpContext.Current.Request.ApplicationPath);
    _mhandler.FFMPEGPath = RootPath + "/ffmpeg_aug_2013/bin/ffmpeg.exe";
    _mhandler.InputPath = RootPath + "/contents/original";
    _mhandler.OutputPath = RootPath + "/contents/mp4";
    _mhandler.BackgroundProcessing = false;
    _mhandler.FileName = "wildlife.wmv";
    _mhandler.OutputFileName = "wildlife_ddd";
    string presetpath = RootPath + "/ffmpeg_aug_2013/presets/libx264-ipod640.ffpreset";
    _mhandler.OutputExtension = ".mp4";
    _mhandler.Parameters = "-s 640x380 -b:v 500k -bufsize 500k -b:a 128k -ar 44100 -c:v libx264 -vf \"movie = watermark.png [watermark]; [in][watermark] overlay=main_w-overlay_w-10:main_h-overlay_h-10 [out]\"";
    _mhandler.Parameters = _mhandler.Parameters + " -fpre \"" + presetpath + "\"";
    VideoInfo info =  _mhandler.Process();

    i tried direct code too

    string _out = "";
    Process _process = new Process();
    _process.StartInfo.UseShellExecute = false;
    _process.StartInfo.RedirectStandardInput = true;
    //_process.StartInfo.RedirectStandardOutput = true;
    _process.StartInfo.RedirectStandardError = true;
    _process.StartInfo.CreateNoWindow = true;
    _process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
    _process.StartInfo.FileName = _ffmpegpath;
    _process.StartInfo.Arguments = cmd;
    if (_process.Start())
    {            
       _process.WaitForExit(ExitProcess);
       _out = _process.StandardError.ReadToEnd();
       if (!_process.HasExited)
         _process.Kill();

       return _out;
    }

    ffmpeg error output as

    FFMPEG Output:ffmpeg version N-55753-g88909be Copyright (c) 2000-2013
    the FFmpeg developers built on Aug 24 2013 21:40:51 with gcc 4.7.3
    (GCC) configuration : —enable-gpl —enable-version3
    —disable-w32threads —enable-avisynth —enable-bzlib —enable-fontconfig —enable-frei0r —enable-gnutls —enable-iconv —enable-libass —enable-libbluray —enable-libcaca —enable-libfreetype —enable-libgsm —enable-libilbc —enable-libmodplug —enable-libmp3lame —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-libopenjpeg —enable-libopus —enable-librtmp —enable-libschroedinger —enable-libsoxr —enable-libspeex —enable-libtheora —enable-libtwolame —enable-libvo-aacenc —enable-libvo-amrwbenc —enable-libvorbis —enable-libvpx —enable-libx264 —enable-libxavs —enable-libxvid —enable-zlib libavutil 52. 42.100 / 52. 42.100 libavcodec 55. 29.100 / 55. 29.100 libavformat 55. 14.102 / 55. 14.102 libavdevice 55. 3.100
    / 55. 3.100 libavfilter 3. 82.102 / 3. 82.102 libswscale 2. 5.100 / 2.
    5.100 libswresample 0. 17.103 / 0. 17.103 libpostproc 52. 3.100 / 52. 3.100 [asf @ 024c9960] Stream #0 : not enough frames to estimate rate ; consider increasing probesize Guessed Channel Layout for Input Stream

    0.0 : stereo Input #0, asf, from 'F :\own\mhp_new/contents/original\wildlife.wmv' : Metadata :

    SfOriginalFPS : 299700 WMFSDKVersion : 11.0.6001.7000 WMFSDKNeeded :
    0.0.0.0000 comment : Footage : Small World Productions, Inc ; Tourism New Zealand | Producer : Gary F. Spradling | Music : Steve Ball title :
    Wildlife in HD copyright : © 2008 Microsoft Corporation IsVBR : 0
    DeviceConformanceTemplate : AP@L3 Duration : 00:00:30.09, start :
    0.000000, bitrate : 6977 kb/s Stream #0:0(eng) : Audio : wmav2 (a1[0][0] / 0x0161), 44100 Hz, stereo, fltp, 192 kb/s Stream

    0:1(eng) : Video : vc1 (Advanced) (WVC1 / 0x31435657), yuv420p, 1280x720, 5942 kb/s, 29.97 tbr, 1k tbn, 1k tbc [image2 @ 024c76e0]

    Could find no file with path 'watermark.png' and index in the range
    0-4 [Parsed_movie_0 @ 024c0540] Failed to avformat_open_input
    'watermark.png' [AVFilterGraph @ 024ca100] Error initializing filter
    'movie' with args 'watermark.png' Error opening filters ! Error Code= 0

    Error on point ( Could find no file with path 'watermark.png' ) shows watermark.png file not found.
    I place watermark.png file in the following locations but still can't found

    i : application root

    ii : root where actual aspx page located

    iii : ffmpeg root

    iv : ffmpeg/bin/

    I also used complete path but still can't detected.

    Note : if i use same ffmpeg command in php and place watermark.png on location where actual php page exist watermark properly detected and command executed properly, but same approach not working in asp.net

    Can any one help me where should i place watermark.png file so that script can access it.

  • Acess to path is denied in ffmpeg conversion

    17 décembre 2013, par user1830062

    I have Windows 2008 R2 server, and am trying to convert my videos from any type to mp4 format. Everything is fine when running locally.

    However, when I try to do the same on the live web server, I am able to upload the file, but then when I try to convert the file, it says the file access is denied.

    Steps that I tried to sort but no clue pops the same server.

    1. changed the identity to network service /localhost
    2. gave full permission to the folder
    3. created virtual directory.
    4. impersonation is true.

    I have done all these things, but no response. One thing which I found was for eg :

    c:\inetpub\vhosts\mydomainname\httpdocs\myfolder_to save_uploaded_file

    which is readonly by default, I couldn't change them to all permission. Please advice how to change them to read/write.

    By the way, I am trying to save the converted file to

    c:\inetpub\vhosts\mydomainname\httpdocs\test_folder

  • trying to figure out what's wrong in the code using ffmpeg.exe

    5 octobre 2013, par timmack

    I'm trying to upload videos and convert it to flv format as well as capturing image as thumbnails.I'm using visual web developer 2008 express edition.I've done so many research online and found something using ffmpeg.exe so I've downloaded an ffmpeg.exe and has tried so many codes but unfortunately I'm still unable to make it work.I want to save the converted video file to a certain folder in my server as well as the captured image as for its thumbnails after uploading the video.I'm not sure if the ffmpeg.exe has the problem or my codes but I suspect it's in my codes.I need somebody to help me find out what's something missing on my codes to make it work. Here's my codes below for your reference. Thanks

    protected void Button1_Click(object sender, EventArgs e)
       {
           //Convert the Video to flv format with FFMPEG
         string  ffmpegPath = Server.MapPath("~/ffmpeg/ffmpeg.exe");
         string tempLocation = Server.MapPath("~/tempVideos/");
         string mediaOutPath = Server.MapPath("~/Videos/");
         string thumbOutPath = Server.MapPath("~/Thumbs/");
         string currentFile = System.IO.Path.GetFileName(FileUpload1.PostedFile.FileName);



    //Upload the video    

    string vidPath = "Videos/" + outputfile;

    if (FileUpload1.PostedFile != null && FileUpload1.PostedFile.FileName != "")
    {
       try
    {
       // 10240 KB means 10MB, You can change the value based on your requirement
       if (FileUpload1.PostedFile.ContentLength > 1024000000)
       {
           Page.ClientScript.RegisterClientScriptBlock(typeof(Page), "Alert", "alert('File is too big.')", true);
       }
       else
       {
           //then save it to the Folder


           Convert(tempLocation + currentFile, mediaOutPath + currentFile, thumbOutPath + currentFile);

          FileUpload1.PostedFile.SaveAs(tempLocation + currentFile);


       }
            }
    catch (Exception ex)
    {
    Response.Write("Error: " + ex.Message);
    }
    }

    Page.ClientScript.RegisterClientScriptBlock(typeof(Page), "Alert", "alert('Video file has been uploaded!')", true);
    FlashVideo1.VideoURL = "tempVideos/" + currentFile;
    }

    protected void Convert(string fileIn, string fileOut, string thumbOut)
    {
    try
    {

       string mediaOutPath = Server.MapPath("~/Videos/");
       string thumbOutPath = Server.MapPath("~/Thumbs/");
       string inputfile = FileUpload1.PostedFile.FileName;

       string infile = Path.GetFileNameWithoutExtension(inputfile);

       fileIn = Path.GetFullPath( inputfile);

       fileOut = mediaOutPath + inputfile;
       thumbOut = inputfile;

    string ffmpegPath = Server.MapPath("~/ffmpeg/ffmpeg.exe");
    System.Diagnostics.Process proc = new System.Diagnostics.Process();
    proc.EnableRaisingEvents = true;
    proc.StartInfo.FileName = ffmpegPath;


    //converting video to flv format
    proc.StartInfo.Arguments = "-i " + fileIn + "-ar 22050 -ab 32 -f flv -s 320×240 -aspect 4:3 -y" + fileOut.Split('.')[0] + ".flv";
    proc.StartInfo.UseShellExecute = false;
    proc.StartInfo.CreateNoWindow = false;
    proc.StartInfo.RedirectStandardError = true;
    proc.StartInfo.RedirectStandardOutput = true;
    proc.Start();
    proc.WaitForExit();

    //capturing thumbnail image of the video
    proc.StartInfo.Arguments = "-i \"{0}\" -an -y -s 320x240 -ss {1} -vframes 1 -f image2 \"{2}\"" + fileIn + thumbOut.Split('.')[0] + ".jpg";
    proc.StartInfo.UseShellExecute = false;
    proc.StartInfo.CreateNoWindow = false;
    proc.StartInfo.RedirectStandardError = true;
    proc.StartInfo.RedirectStandardOutput = true;
    proc.Start();
    proc.WaitForExit();
    proc.Close();
    }
    catch (Exception ex)
    {
    Response.Write("Error: " + ex.Message);
    }
    }