gpac / gpac

GPAC Ultramedia OSS for Video Streaming & Next-Gen Multimedia Transcoding, Packaging & Delivery
https://gpac.io
GNU Lesser General Public License v2.1
2.61k stars 511 forks source link

Subtitles provided using stdin pipes or http/https does not work correctly #2835

Closed gregkoganvmm closed 2 days ago

gregkoganvmm commented 3 weeks ago

Platform: linux/amd64 (Ubuntu 22.04) or macOS Sonoma 14.4.1

Hello,

Subtitles provided using stdin pipes or http/https does not work correctly - the output is either empty or corrupted.

gpac -i "https://download.blender.org/demo/movies/ToS/subtitles/TOS-en.srt" -o stdout:ext=vtt

[TXTIn] Corrupted SRT frame 12 after frame 1
WEBVTT

00:23.000 --> 00:24.500
etty freaky.

cat TOS-en.srt|gpac -no-block=all -i stdin -o stdout:ext=vtt produces nothing

There is a workaround to make it work (hope this helps someone) - adding the -no-block=all parameter helps in both cases, but this is hardly obvious. See the full command below: cat TOS-en.srt|gpac -no-block=all -i stdin -o stdout:ext=vtt

gpac -no-block=all -i "https://download.blender.org/demo/movies/ToS/subtitles/TOS-en.srt" -o stdout:ext=vtt

rbouqueau commented 3 weeks ago

Thanks for reporting and documenting the issue. We're a bit slower than usual to process issues, thanks for your patience.

jeanlf commented 2 days ago

Yes this was not fully supported and on my todo - now in master, thanks for the reminder :)