You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have recently started to update my codebase in PyAV instead of batch-controlled FFMPEG, and encountered an issue:
I run a UDP+MPEG-TS video-only stream between two processes on my computer, and use it to transmit video between them. Unfortunately, this fails on PyAV:
My install
FFMPEG source build info
From the initialization of FFMPEG on the minimum example
importav, subprocess, timeffmpeg_command: list[str] = [
"ffmpeg",
"-re", # Wait until the next frame should occur, rather than when it's ready"-stream_loop", "-1", # loop the gif file infinitely"-i", str(race_horse),
"-f", "mpegts", stream_addr# stream as rtp stream
]
stream_src=subprocess.Popen(ffmpeg_command)
time.sleep(0.1)
withav.open(
addr, 'r', timeout=10., metadata_errors="ignore", container_options={"video_size": "184x135"}
) asvideo:
forpacketinvideo.demux():
...
PyAV returns the error message [mpeg2video] Invalid frame dimensions 0x0, which is fine: ffmplay raises the same error (and does so a couple of times), but, while ffmplay gets unstuck in less than 3 seconds, PyAV get stuck seemingly permanently (I have yet to have the ... code executed
Would you know how I could get the stream to work ?
The text was updated successfully, but these errors were encountered:
I have recently started to update my codebase in PyAV instead of batch-controlled FFMPEG, and encountered an issue:
I run a UDP+MPEG-TS video-only stream between two processes on my computer, and use it to transmit video between them. Unfortunately, this fails on PyAV:
My install
FFMPEG source build info
From the initialization of FFMPEG on the minimum example
I run on Windows 11, on Python 3.12.3, and I use PyAV 14.3.0
Minimum reproducible example
This example is on this gif file
When running the following code
PyAV returns the error message
[mpeg2video] Invalid frame dimensions 0x0
, which is fine:ffmplay
raises the same error (and does so a couple of times), but, whileffmplay
gets unstuck in less than 3 seconds, PyAV get stuck seemingly permanently (I have yet to have the...
code executedWould you know how I could get the stream to work ?
The text was updated successfully, but these errors were encountered: