Opened 19 years ago
Closed 19 years ago
#4177 closed defect (fixed)
Streaming in mythweb doesn't work for files with special characters
| Reported by: | anonymous | Owned by: | xris |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.21 |
| Component: | mythweb | Version: | head |
| Severity: | medium | Keywords: | |
| Cc: | Ticket locked: | no |
Description
I use contrib/mythrename.pl to rename recordings, this breaks streaming in mythweb if the resultant filename has spaces or other special characters. This is because the invocation of ffmpeg is a simple call to open() which invokes ffmpeg in a shell. Using the 'list form' of open fixes this by invoking ffmpeg direct.
The attached 1-line patch fixes this. This will not affect streaming for people not using mythrename.pl.
Note: my perl (v5.8.8) claims that this list form of perl isn't supported on all platforms, but is supported on all platforms supporting fork and that if you're running a Unix variant you'll be OK. I've only tested this on Linux.
Attachments (1)
Change History (8)
by , 19 years ago
| Attachment: | stream-handler-open.patch added |
|---|
comment:1 by , 19 years ago
| Milestone: | → 0.21 |
|---|
comment:2 by , 19 years ago
| Status: | new → infoneeded_new |
|---|
What happens if we quote the filename, will that work? (escaping the quote char of course...)
comment:3 by , 19 years ago
| Resolution: | → fixed |
|---|---|
| Status: | infoneeded_new → closed |
comment:4 by , 19 years ago
comment:5 by , 19 years ago
| Resolution: | fixed |
|---|---|
| Status: | closed → new |
This commit doesn't work because of the unrecognized shell filehandle redirect.

patch to make handler.pl use list form of open to invoke ffmpeg