Recherche avancée

Médias (3)

Mot : - Tags -/collection

Autres articles (103)

Sur d’autres sites (19095)

  • Errno32 during MoviePy-FFMPEG write_videofile

    5 mars 2023, par Krest

    During write_videofile i get Errno32 inside Errno32

    


    def creating_video(files, title):
    fragments = []
    for file in files:
        print(file)
        clip = VideoFileClip(file).subclip()
        fragments.append(clip)
    video = moviepy.editor.concatenate_videoclips(fragments)
    video.write_videofile(f"{title}.mp4")
    return None


video_fragments = preparing_videos(title)
creating_video(video_fragments[0], video_fragments[1])


    


    files is list containing paths to mp4 files making up final video

    


    Current FFMPEG version - 5.1.2

    


    Current MoviePy version - 1.0.3

    


    I added FFMPEG to Path instead of using ImageIO-FFMPEG bundled with moviepy.
Checked different versions of FFMPEG
Checked app at linux system which generated .mp3 and mp.4 files but at the end after merging them the final file was broken.
Tried installing moviepy with pipx
On windows app doesnt even render chunks error :

    


    chunk:   0%|          | 0/11098 [00:00<?, ?it/s, now=None]Traceback (most recent call last):
    self.proc.stdin.write(frames_array.tobytes())
BrokenPipeError: [Errno 32] Broken pipe

During handling of the above exception, another exception occurred:

OSError: [Errno 32] Broken pipe

MoviePy error: FFMPEG encountered the following error while writing file titleTEMP_MPY_wvf_snd.mp3:
b'titleTEMP_MPY_wvf_snd.mp3: Invalid argument\r\n'


    


  • Streaming a video to /dev/video0 using gstreamer and v4l2 shows a black screen [on hold]

    24 septembre 2019, par Lawliet

    I’ve been trying to use a video as a webcam for quite a while now. The command

    gst-launch-1.0 filesrc location=newflag.webm ! decodebin ! videoconvert ! v4l2sink device=/dev/video0

    Using this command, i’m able to watch the stream using VLC but Discord and Firefox display a black screen when using /dev/video0 as a webcam.

    I got it working using ffmpeg to stream the video in yuv420p so I suspect videoconvert converts the stream to YUY2 which is I guess not supported by Discord nor Firefox.

    Any idea on how to get this to work ?

  • ffmpeg - Live stream to web browser [on hold]

    21 octobre 2016, par Sreejith C M

    I was looking for a solution to stream my desktop live on my Windows system and found out ffmpeg is a good solution using dshow and everything is working fine and well. I’m using a C# wrapper for ffmpeg to record my desktop and I can save it in a local file.

    The problem I have is that, I have to watch the stream on my Web browser ( Chrome / Firefox ). I can’t use Media Server’s like wowza, red5 and also can’t use ffserver.

    I tried the ffmpeg wiki https://trac.ffmpeg.org/wiki and documentation but couldn’t figure out how to do this.

    Please help me to figure out this, how I can do this.