Bug#785690: libav-tools: avprobe fail on file with colon in the name
Jonas Smedegaard
dr at jones.dk
Tue May 19 12:18:41 UTC 2015
Quoting Petter Reinholdtsen (2015-05-19 13:46:16)
>
> Control: severity -1 wishlist
>
> [Jonas Smedegaard]
>> Hi Petter,
>
> Hi, Jonas. Thank you for the quick reply.
>
>> Deep down in the manpage for avprobe is mentioned that input isn't
>> really bare filename but a URL, defaulting to file: protocol.
>>
>> Therefore a filename foo:bar is treated as resource bar via protocol
>> foo. To use filenames with colon you can explicitly state protocol
>> as file:foo:bar.
>
> Right. I did not know that. Then I guess what I am asking for is a
> nicer fallback when the protocol is unknown and the string matches an
> existing file name. In that case, I believe it make more sense to
> open the file instead of giving an error about an unknown protocol.
> It would for me be more according to the principle of least surprise.
Such changed logic is too invasive in my opinion: It would mean that a
local file "hw:0" in current dir would break documented way of reading
ALSA hardware device #0.
Seems better to me to treat this as a documentation issue: More
consistently use the term URL instead of FILE, and move the note about
default file: protocol closer to the top of the document.
> And I am happy to report that my problem indeed is solved by adding
> file: in front of the file name:
Good to hear that :-)
- Jonas
--
* Jonas Smedegaard - idealist & Internet-arkitekt
* Tlf.: +45 40843136 Website: http://dr.jones.dk/
[x] quote me freely [ ] ask before reusing [ ] keep private
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20150519/6afec43e/attachment.sig>
More information about the pkg-multimedia-maintainers
mailing list