Attachment filenames restricted?

Found an issue with the phpBB system here at NESdev? Use this forum to report problems.

Moderator: Moderators

User avatar
Myask
Posts: 965
Joined: Sat Jul 12, 2014 3:04 pm

Attachment filenames restricted?

Post by Myask » Tue Jul 12, 2016 3:50 pm

"Screenshot from 2016-07-12 15:58:37.png is an invalid filename." That's, uh…inconvenient.

edit: colon seems to be the the culprit
Last edited by Myask on Tue Jul 12, 2016 3:53 pm, edited 1 time in total.

tepples
Posts: 21755
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Re: Attachment filenames restricted?

Post by tepples » Tue Jul 12, 2016 3:53 pm

Colons are not valid in filenames on Windows or on classic Mac OS.

User avatar
Zepper
Formerly Fx3
Posts: 3190
Joined: Fri Nov 12, 2004 4:59 pm
Location: Brazil
Contact:

Re: Attachment filenames restricted?

Post by Zepper » Tue Jul 12, 2016 6:19 pm

I wonder if you could allow .WAV files. :idea:

tepples
Posts: 21755
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Re: Attachment filenames restricted?

Post by tepples » Tue Jul 12, 2016 6:55 pm

What do you plan to use WAV files for, for which Ogg files aren't better? WAV files are most commonly uncompressed, and there's a size limit for attachments.

User avatar
koitsu
Posts: 4216
Joined: Sun Sep 19, 2004 9:28 pm
Location: A world gone mad

Re: Attachment filenames restricted?

Post by koitsu » Tue Jul 12, 2016 8:43 pm

tepples wrote:What do you plan to use WAV files for, for which Ogg files aren't better? WAV files are most commonly uncompressed, and there's a size limit for attachments.
Ogg, mp3, etc. are lossy. Now consider this thread -- you don't want to do that kind of analysis using a lossy format if it can be avoided. So, for that circumstance (i.e. it's subjective), WAV is a better choice. Plus it's a "convenient" format that most utilities can read. That's all.

tepples
Posts: 21755
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Re: Attachment filenames restricted?

Post by tepples » Tue Jul 12, 2016 8:57 pm

Zip is supported and lossless.

User avatar
rainwarrior
Posts: 7680
Joined: Sun Jan 22, 2012 12:03 pm
Location: Canada
Contact:

Re: Attachment filenames restricted?

Post by rainwarrior » Tue Jul 12, 2016 9:11 pm

FLAC provides better lossless compression of audio than ZIP, if you're looking for something that achieves that, but if there's a file size limit I don't really see what's unacceptable about WAVs either.

lidnariq
Posts: 8791
Joined: Sun Apr 13, 2008 11:12 am
Location: Seattle

Re: Attachment filenames restricted?

Post by lidnariq » Tue Jul 12, 2016 9:12 pm

Well, I suppose there might be a pedantic argument in favor of FLAC, then...

But that wouldn't solve Zepper's wish, which was not having to do an extra round of processing before uploading it.

(Whether the board should consider accommodating that laziness in its users is, I guess, the actual question. And factors include "just how cheap is disk and bandwidth and how much better is a ZIPed WAV vs in-line http gzip compression vs FLAC")

User avatar
koitsu
Posts: 4216
Joined: Sun Sep 19, 2004 9:28 pm
Location: A world gone mad

Re: Attachment filenames restricted?

Post by koitsu » Tue Jul 12, 2016 9:54 pm

Common audio editing utilities (ex. Audacity) cannot import FLAC. FLAC is intended mainly for audio CD archival purposes.

This is the last time I try to bring up some "semi-related but slightly off-topic" aspect of something in attempt to curb tepples from bringing it up.

User avatar
rainwarrior
Posts: 7680
Joined: Sun Jan 22, 2012 12:03 pm
Location: Canada
Contact:

Re: Attachment filenames restricted?

Post by rainwarrior » Tue Jul 12, 2016 10:31 pm

koitsu wrote:Common audio editing utilities (ex. Audacity) cannot import FLAC.
I frequently both import and export FLAC from Audacity. I think your experience is probably years out of date?

http://wiki.audacityteam.org/wiki/FLAC# ... rt_of_FLAC

User avatar
koitsu
Posts: 4216
Joined: Sun Sep 19, 2004 9:28 pm
Location: A world gone mad

Re: Attachment filenames restricted?

Post by koitsu » Tue Jul 12, 2016 10:37 pm

rainwarrior wrote:I frequently both import and export FLAC from Audacity. I think your experience is probably years out of date? http://wiki.audacityteam.org/wiki/FLAC# ... rt_of_FLAC
Yup, that was definitely it.

User avatar
Bregalad
Posts: 7768
Joined: Fri Nov 12, 2004 2:49 pm
Location: Chexbres, VD, Switzerland

Re: Attachment filenames restricted?

Post by Bregalad » Wed Jul 13, 2016 2:07 am

Common audio editing utilities (ex. Audacity) cannot import FLAC.
They can, but you have to download and install extra plugins, which is always an annoyance. Alternatively you can download flac, and uncompress the data to wav in the command line.

I can see that in some cases for small audio samples, uisng zip or 7z on a wav file can be more desirable than FLAC even if the compresison ration is much worse, because you just want to avoid people to download FLAC plugins for their audio software.

Also there exist a large number of formats providing typically better lossless compression than FLAC, but those are typically not GNU/Free.

User avatar
rainwarrior
Posts: 7680
Joined: Sun Jan 22, 2012 12:03 pm
Location: Canada
Contact:

Re: Attachment filenames restricted?

Post by rainwarrior » Wed Jul 13, 2016 8:26 am

Bregalad wrote:Also there exist a large number of formats providing typically better lossless compression than FLAC, but those are typically not GNU/Free.
I don't know about "large number" that are better than FLAC, but it's true there are a large number of lossless audio formats, and some of them do compress slightly more than FLAC. (There's a significant performance tradeoff as compression increases.)

Comparison: http://wiki.hydrogenaud.io/index.php?ti ... comparison

FLAC and Apple's format are the only two that I commonly encounter, though. Several commonly used utilities handle one or both of these formats at this point without having to download a separate plugin. Audacity, Winamp, VLC, SMPlayer, WMP 12, and many others do FLAC out of the box right now.

The other reason why I don't see a problem with WAV is that lossless audio compression is really only about ~50% compression. So... it makes a difference but it's not like WAV is insane by comparison. Even just ZIP is an reasonable in-between compromise here.

tepples
Posts: 21755
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Re: Attachment filenames restricted?

Post by tepples » Wed Jul 13, 2016 9:41 am

And for unfiltered chiptune rendering, such as raw NES APU output at 0.895 MHz, Zip actually compresses quite well because of long run lengths.

lidnariq
Posts: 8791
Joined: Sun Apr 13, 2008 11:12 am
Location: Seattle

Re: Attachment filenames restricted?

Post by lidnariq » Wed Jul 13, 2016 12:34 pm

FLAC also explicitly doesn't support sampling rates about 655350 Hz, so couldn't be used for raw 2A03 audio anyway.

Post Reply