Recherche avancée

Médias (0)

Mot : - Tags -/upload

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

Autres articles (108)

Sur d’autres sites (14979)

  • How to stream all videos in a folder ?

    30 mai 2015, par Krishnendu

    Hi i want to stream videos over web using ffserver. i got this link as reference.

    Now what i am not able to figure out is how to pass a folder(which content all videos i want to stream) as input to stream all videos. I also want add more videos dynamically to this folder in time to time and streaming should happen(like how it works in Darwin). now i can’t use Darwin because it doesn’t support for iOS.

    please give me a suggestion.

    is there any other open source tool by which i can do this ?

  • Mix 2 videos with FFmpeg (overlay one on top of other)

    10 août 2016, par iSun

    I using ffmpeg through Android-NDK. I’ve 2 pieces of the videos , The first one is my main video and the second one is my effect video.

    Now I wanna mix this 2 videos together, Is it possible ?

    Note : Both videos decoding through MP4 format.

  • OSError : [WinError 6] Checking Video Duration of Clips moviepy ffmpeg

    28 juin 2017, par Frikkie Maritz

    Any help will do
    my script used too run 100% without any problems but since yesterday keep getting this error

    Traceback (most recent call last):
     File "C:\Users\renushas\Desktop\videoCompuser Temp.py", line 19, in <module>
       video1 = VideoFileClip(clipspath)
     File "C:\Program Files\Python36\lib\site-packages\moviepy\video\io\VideoFileClip.py", line 81, in __init__
       fps_source=fps_source)
     File "C:\Program Files\Python36\lib\site-packages\moviepy\video\io\ffmpeg_reader.py", line 32, in __init__
       fps_source)
     File "C:\Program Files\Python36\lib\site-packages\moviepy\video\io\ffmpeg_reader.py", line 256, in ffmpeg_parse_infos
       proc = sp.Popen(cmd, **popen_params)
     File "C:\Program Files\Python36\lib\subprocess.py", line 842, in __init__
       _cleanup()
     File "C:\Program Files\Python36\lib\subprocess.py", line 505, in _cleanup
       res = inst._internal_poll(_deadstate=sys.maxsize)
     File "C:\Program Files\Python36\lib\subprocess.py", line 1259, in _internal_poll
       if _WaitForSingleObject(self._handle, 0) == _WAIT_OBJECT_0:
    OSError: [WinError 6] The handle is invalid
    </module>

    This is the code i am using

    import os
    from moviepy.editor import VideoFileClip

    path = 'C:/Renusha/'

    for folders in os.listdir(path):
       print(folders)
       if "." in folders:
           print("this is a file")
       else:
           infolders = path + folders + "/"
           print(infolders)
           for clips in os.listdir(infolders):
               print(clips)

               if ".mp4" in clips:

                   clipspath = infolders + "\\" + clips
                   video1 = VideoFileClip(clipspath)
                   print(video1.duration)
                   del video1.reader
                   del video1

    It reads and prints a lot of the clips duration and then randomly gives this error