Recherche avancée

Médias (1)

Mot : - Tags -/bug

Autres articles (97)

  • Qu’est ce qu’un éditorial

    21 juin 2013, par

    Ecrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
    Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
    Vous pouvez personnaliser le formulaire de création d’un éditorial.
    Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...)

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

Sur d’autres sites (7077)

  • Can't record full screen using FFMEG Video File Writer - C#

    2 avril 2019, par nsds

    My app need to record entire screen as video. For that I have installed

    AForge.Video.FFMPEG

    and did like below. Now I can record the screen. But some bottom area and right end area of screen is missing. Can anyone suggest what causes the issue ? I want to record the entire screen.

    SystemInformation.VirtualScreen

    is used to calculate screen size. it is getting as 1536*864

     private ScreenCaptureStream _streamVideo;
     private VideoFileWriter _Screenwriter;
     private Rectangle _screenArea;
     private bool _isScreenRecording;
     private int _Screenwidth;
     private int _Screenheight;
     public RecordVideo()
       {
           InitializeComponent();
           this._Screenwriter = new VideoFileWriter();
           this._Screenwidth = SystemInformation.VirtualScreen.Width;
           this._Screenheight = SystemInformation.VirtualScreen.Height;
           this._isScreenRecording = false;
           this._screenArea = Rectangle.Empty;
         }
    private void btn_startRecord_Click(object sender, EventArgs e)
       {
           try
           {        
           if (btn_screenRecord.Text == "Record")
           {
               FolderBrowserDialog fbd = new FolderBrowserDialog();
               if (fbd.ShowDialog() == DialogResult.OK)
               {
                   _isScreenRecording = true;
                   this.StartRecScreen(fbd.SelectedPath);
               }
           }
           else
           {
               _isScreenRecording = false;
               btn_screenRecord.Text = "Record";
               MessageBox.Show(@"Recorded !");
           }
           }
           catch (Exception EX)
           { MessageBox.Show(EX.Message); }
       }

    private void StartRecScreen(string path)
       {
          btn_screenRecord.Text = "Stop";
          this.SetScreenArea();
         _isRecording = true;
          string fullName = string.Format(@"{0}\{1}_{2}.mp4", path, "Record_", DateTime.Now.ToString("d_MMM_yyyy_HH_mm_ssff"));

               // Save File option
               _Screenwriter.Open(
                   fullName,
                   this._Screenwidth,
                   this._Screenheight,
                   10, VideoCodec.MPEG4, 1000000);
               // create screen capture video source
               this._streamVideo = new ScreenCaptureStream(this._screenArea);

               // set NewFrame event handler
               this._streamVideo.NewFrame += new NewFrameEventHandler(this.video_NewScreenFrame);

               // start the video source
               this._streamVideo.Start();

       }
       private void video_NewScreenFrame(object sender, NewFrameEventArgs eventArgs)
       {
           if (this._isScreenRecording)
           {              
               this._Screenwriter.WriteVideoFrame(eventArgs.Frame);            
           }
           else
           {            
               _streamVideo.SignalToStop();            
               _Screenwriter.Close();
           }
       }

       private void SetScreenArea()
       {
           // get entire desktop area size
           foreach (Screen screen in Screen.AllScreens)
           {
               this._screenArea = Rectangle.Union(_screenArea, screen.Bounds);
           }
       }
  • Discord.py music bot doesn't play next song in queue

    10 mai 2019, par Lewis H

    This is my code for the bot I’m trying to create, it plays the music fine.

    ytdl_options = {
       'format': 'bestaudio/best',
       'restrictfilenames': True,
       'noplaylist': True,
       'nocheckcertificate': True,
       'quiet':True,
       'ignoreerrors': False,
       'logtostderr': False,
       'no_warnings': True,
       'default_search': 'auto',
       'source_address': '0.0.0.0' # using ipv4 since ipv6 addresses causes issues sometimes
       }


           # ffmpeg options
    ffmpeg_options= {
       'options': '-vn'
       }



    @bot.command()
    async def play(ctx, url:str = None):
       queue = {}

       channel = ctx.author.voice.channel    
       if ctx.voice_client is not None:  
           await ctx.voice_client.move_to(channel)
       elif ctx.author.voice and ctx.author.voice.channel:      
           await channel.connect()

       if not url:
           await ctx.send("Try adding a URL. e.g. !play https://youtube.com/watch?v=XXXXXXXXX")

       if ctx.voice_client is not None:
           vc = ctx.voice_client #vc = voice client, retrieving it
           ytdl = youtube_dl.YoutubeDL(ytdl_options)


           loop = asyncio.get_event_loop()
           data = await loop.run_in_executor(None, lambda: ytdl.extract_info(url))

           if 'entries' in data:
               data = data['entries'][0]
           svr_id = ctx.guild.id
           if svr_id in queue:
               queue[svr_id].append(data)

           else:
               queue[svr_id] = [data]
           await ctx.send(data.get('title') + " added to queue")

           source = ytdl.prepare_filename(queue[svr_id][0])
           def pop_queue():
               if queue[svr_id] != []:
                   queue[svr_id].pop(0)
                   data = queue[svr_id][0]
               else:
                   vc.stop()

           if not vc.is_playing():
               vc.play(discord.FFmpegPCMAudio(source, **ffmpeg_options), after=lambda: pop_queue())

    The next song downloads and queues it fine, but once the first song finishes, it doesn’t play the next one. I can’t figure out how to make it play after the first song has commenced. I have the after= set to remove the top item of the queue, but how do I get it to play again ? Thanks

  • Format ffmpeg command to extract the full klv for an mpg/ts file

    24 décembre 2020, par Andrew Marquez

    I am extracting the KLV data from an mpg file using klvdata and ffmpeg.

    



    Following the readme, I have downloaded the sample "Day Flight.mpg" video file that contains KLV data. Running the quick start command works (I get the exact same result as the readme example for the first 6 frames.)

    



    However, for the life of me I don't know how I can extract the KLV data for the entire video file.

    



    As an experiment, I tried creating the KLV data file from an offset start :

    



    ffmpeg -ss 5 -i Day\ Flight.mpg -map data-re -codec copy -f data - > out.klv


    



    and when I run it through my code with different start times (5, 25, etc.) I do get different results.

    



    This (to me) would suggest that the mpg file does contain KLV data throughout, but I can only access 6 frames at a time.

    



    I would expect to be able to run an ffmpeg command to output the full KLV data. I need help formatting my ffmpeg command to properly provide all the data.

    



    To replicate, download the "Day Flight.mpg" file from the klvdata project page and run the command I posted above. You will note it is less than a page long. It should be many, many pages long. Thank you for your help !