Recherche avancée

Médias (2)

Mot : - Tags -/documentation

Autres articles (92)

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP 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 (12227)

  • error converting .caf to .mp3 in mvc 4

    17 avril 2014, par Jennifer

    I used to convert caf to mp3 using Wscript.shell and ffmpeg.exe when i was using asp.net
    but now i'm using a web api restful method in mvc 4, so i don't have a .aspx page
    i'm getting the following error :

      Description:System.Web.HttpException (0x80004005): The component 'Wscript.Shell' cannot be created.  Apartment threaded components can only be created on pages with an <%@ Page aspcompat=true %> page directive.

    but i don't have an aspx page to add this tag...

    the code i was using in aspx is :

      Dim wshShell As Object
      wshShell = Server.CreateObject("Wscript.Shell")
      cmd = "cmd.exe /k """"" & szCAF_PATH & """ -i """ & szPhysicalPath & """ " & Arguments & " """ & szEncodedPath & """"""
      wshShell.Run(cmd)
      Dim strCommand As String = "taskkill /F /IM cmd.exe"
      wshShell.Run(strCommand, 0, True)
      szDownloadLink = szDownloadLink.Replace(".caf", ".mp3")

    and the code in mvc4 is :

      wshShell = HttpContext.Current.Server.CreateObject("Wscript.Shell")
      cmd = "cmd.exe /k """"" & File.CAF_PATH & """ -i """ & File.PhysicalPath & """ " & File.Arguments & " """ & File.EncodedPath & """"""
      wshShell.Run(File.cmd)
      strCommand = "taskkill /F /IM cmd.exe"
      wshShell.Run(strCommand, 0, True)
      File.DownloadLink = File.DownloadLink.Replace(".caf", ".mp3")

    does anyone know how can i fix this ?

  • Is it possible to use MediaTransportControls with FFmpegInterop in UWP ?

    1er janvier 2020, par Agredo

    Is it possible to use the MediaTransportControls ? Currently getting the error "Could not decode video" using any MediaTransportControl.

    XAML

    <mediaplayerelement source="{Binding VideoSource}" autoplay="True" aretransportcontrolsenabled="True"></mediaplayerelement>

    ViewModel

           FileOpenPicker picker = new FileOpenPicker();
           picker.FileTypeFilter.Add("*");

           var file = await picker.PickSingleFileAsync();

           var stream = await file.OpenReadAsync();

           var mediaStreamsource = FFmpegInteropMSS.CreateFFmpegInteropMSSFromStream(stream, false, false).GetMediaStreamSource();

           VideoSource = MediaSource.CreateFromMediaStreamSource(mediaStreamsource);

    Thanks
    Agredo

  • C# redirect ffmpeg output to textbox in realtime

    21 mars 2018, par adrifcastr

    So I’ve been reading a lot through stackoverflow, and I found a lot of questions trying to deal with a similar problem as mine, but none of the solutions worked for me. So here is what I have :

    I have a WPF GUI application which launches ffmpeg by the following code :

           private void convertbutton_Click(object sender, RoutedEventArgs e)
       {
           string resdir = AppDomain.CurrentDomain.BaseDirectory + "\\res";
           Extract("ADC", AppDomain.CurrentDomain.BaseDirectory + "\\res", "res", "ffmpeg.exe");

           string ffdir = AppDomain.CurrentDomain.BaseDirectory + "\\res\\ffmpeg.exe";
           string arg = @"-progress progresslog.txt -y -activation_bytes ";
           string arg1 = @" -i ";
           string arg2 = @" -ab 80k -vn ";
           string abytes = bytebox.Text;
           string arguments = arg + abytes + arg1 + openFileDialog1.FileName + arg2 + saveFileDialog1.FileName;

           Process ffm = new Process();
           ffm.StartInfo.FileName = ffdir;
           ffm.StartInfo.Arguments = arguments;
           ffm.StartInfo.CreateNoWindow = true;
           ffm.StartInfo.RedirectStandardOutput = true;
           ffm.StartInfo.RedirectStandardError = true;
           ffm.StartInfo.UseShellExecute = false;
           ffm.StartInfo.WorkingDirectory = Directory.GetCurrentDirectory();
           ffm.Start();
           ffm.WaitForExit();

           ffm.Close();

           MessageBox.Show("Conversion Complete!");

           File.Delete("progresslog.txt");
           Directory.Delete(resdir, true);
       }

    So on this application I do also have other processes, which display their output to the textbox after finishing what they are doing, so but since ffmpeg outputs it’s conversion progress in the cmd output, I need to get exactly that being displayed in the textbox in realtime.

    And I am pretty sure that ffmpeg outputs into stderr same w/ ffprobe.

    I’d appreciate any help, since days of googleing didn’t help me with anything so far.
    Thanks in advance.