TwitchDownloader icon indicating copy to clipboard operation
TwitchDownloader copied to clipboard

Chat Render: ERROR: The pipe has been ended.

Open Bozzeh opened this issue 4 years ago • 17 comments

image Hi, I am getting this error while rendering the chat, you can see in the logs that some have actually worked, and specifically i hope this helps in reproducing it too, but when i have the Width set to 225 it hits this error, doing 250 or above works fine. But would be cool to stay with 450x225 :)

Bozzeh avatar Jun 11 '21 13:06 Bozzeh

You need to have the width and height be even. Most codecs including H264 need to have an even resolution.

I'm supposed to have an error message show up when that's not the case but I used an AND in my logic instead of an OR. Dummy me.

lay295 avatar Jun 11 '21 15:06 lay295

Issue remain on v1.50.6 with a 128x1080 resolution

naworm avatar Nov 08 '22 02:11 naworm

Issue remain on v1.50.6 with a 128x1080 resolution

The pipe has been ended is just a generic message that something has went wrong with ffmpeg. Usually by modifying the arguments

lay295 avatar Nov 08 '22 02:11 lay295

200x1080 is OK for example

naworm avatar Nov 08 '22 02:11 naworm

image

128x1080 working fine here.

The original issue was because the width or height was not even which we do not allow anymore https://github.com/lay295/TwitchDownloader/blob/611ae6a7e448709df627af0ef0dad9dfadb11586/TwitchDownloaderWPF/PageChatRender.xaml.cs#L261-L265

You can encounter this error by modifying the arguments on this page incorrectly. This is how most people encounter the pipe ended error atleast. image

lay295 avatar Nov 08 '22 02:11 lay295

Right it work on libx264 and libx265 but not on h264_nvenc strangely.

-framerate {fps} -f rawvideo -analyzeduration {max_int} -probesize {max_int} -pix_fmt bgra -video_size {width}x{height} -i -
-c:v libx264 -preset veryfast -crf 18 -pix_fmt yuv420p "{save_path}"

-framerate {fps} -f rawvideo -analyzeduration {max_int} -probesize {max_int} -pix_fmt bgra -video_size {width}x{height} -i -
-c:v h264_nvenc -preset fast -cq 20 -pix_fmt yuv420p "{save_path}"

-framerate {fps} -f rawvideo -analyzeduration {max_int} -probesize {max_int} -pix_fmt bgra -video_size {width}x{height} -i -
-c:v libx265 -preset veryfast -crf 18 -pix_fmt yuv420p "{save_path}"

I can't see any configuration difference, whatever I will just render on CPU until AV1 is released. Thanks for your replies.

naworm avatar Nov 08 '22 02:11 naworm

Not sure, I know NVENC in consumer GPUs are limited to 2 sessions at once. Are you running multiple instances of the program trying to render multiple chats at once and hitting the 2 session limit? (I think showplay also counts as one) but I'm not really sure.

lay295 avatar Nov 08 '22 02:11 lay295

I had already disabled ShadowPlay by precaution. And no I was not rendering anything else.

naworm avatar Nov 08 '22 02:11 naworm

Ah, looks like it's a limit of the NVENC encoder.

https://forums.developer.nvidia.com/t/minimum-width-in-turing-gpus/155566

lay295 avatar Nov 08 '22 03:11 lay295

uh, trying to render chat 450x1080 and it progresses to like 60% to 80% before error pipelining me, is it a problem with the dimensions??, cleared cache and reinstalled still have the same problem idky. I have a 4 gigs mov of chat that i cant open. gonna try rendering with webm instead but that would take like thrice the amount of time and some change instead of just doing it with mov rle

Sadistic373 avatar Dec 11 '22 21:12 Sadistic373

uh, trying to render chat 450x1080 and it progresses to like 60% to 80% before error pipelining me, is it a problem with the dimensions??, cleared cache and reinstalled still have the same problem idky. I have a 4 gigs mov of chat that i cant open. gonna try rendering with webm instead but that would take like thrice the amount of time and some change instead of just doing it with mov rle

If you enable "Verbose Error Output" in the GUI there should be a popup that will help us diagnose why the pipe ended.

ScrubN avatar Jan 31 '23 04:01 ScrubN