Recherche avancée

Médias (1)

Mot : - Tags -/wave

Autres articles (59)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

Sur d’autres sites (10324)

  • How to get success info from ffmpeg on C# ?

    13 mars 2014, par user2989391

    I using ffmpeg on C#, my argument worked fine but i don't know get success handle..
    Sorry for my bad English.
    Thank you for help.

       ProcessStartInfo psi = new ProcessStartInfo("bin\\ffmpeg.exe");
       Process proc = Process.Start(psi);
       psi.UseShellExecute = false;
       psi.CreateNoWindow = true;
       psi.Arguments = " My argument ";
       psi.RedirectStandardError = true;
       psi.WindowStyle = ProcessWindowStyle.Hidden;
       proc = Process.Start(psi);
       StringBuilder sb = new StringBuilder();
       StreamReader outputReader = proc.StandardOutput;
       while (!(proc.StandardOutput.EndOfStream)) {
           sb.AppendLine(proc.StandardOutput.ReadLine());
       }
       proc.WaitForExit();
       proc.Close();
       psi = null;
  • ffmpeg OSError : [WinError 6] The handle is invalid when converted to exe

    13 septembre 2021, par thewayman

    I am trying to merge a video file with an audio file, using FFmpeg. It work fine when I am testing it but when I make an exe file via pyinstaller and including the FFmpeg.exe inside there is a peculiar error I am getting.

    


    


    OSError : [WinError 6] The handle is invalid

    


    


    This only happens when I set the FFmpeg run(quiet=True) but when I set the quiet=False everything works fine. The only problem is it shows the output window of FFmpeg.

    


    if getattr(sys, 'frozen', False):
   application_path = sys._MEIPASS
elif __file__:
   application_path = os.path.dirname(__file__)
ffmpegName = 'ffmpeg.exe'
ffmpegPath = os.path.join(application_path, ffmpegName)
video_stream = ffmpeg.input(file[0])
audio_stream = ffmpeg.input(file[1])
ffmpeg.output(audio_stream, video_stream, path).run(overwrite_output=True,
              cmd=ffmpegPath, quiet=True) #setting quiet=false everything works fine.


    


    Can anyone explain what's happening here ?
(Note the code is running in a different thread.)

    


  • pyav / ffmpeg / libav select number of P-frames and B-frames

    27 mai 2021, par user1315621

    I am streaming from an rtsp source. It looks like half of the frames received are key frames. Is there a way to reduce this percentage and have an higher number of P-frames and B-frames ? If possible, I would like to increase the number of P-frames (not the one of B-frames).
I am using pyav which is a Python wrapper for libav (ffmpeg)

    


    Code :

    


    container = av.open(
    url, 'r',
    options={
        'rtsp_transport': 'tcp',
        'stimeout': '5000000',
        'max_delay': '5000000',
    }
)
stream = container.streams.video[0]
codec_context = stream.codec_context
codec_context.export_mvs = True
codec_context.gop_size = 25  

for packet in self.container.demux(video=0):
    for video_frame in packet.decode():
        print(video_frame.is_key_frame)


    


    Output :

    


    True
False
True
False
...


    


    Note 1 : I can't edit the source. I can just edit the code used to stream the video.

    


    Note 2 : same solution should apply to pyav, libavi and ffmpeg.

    


    Edit : it seems that B-frames are disabled : codec_context.has_b_frames is False