Bug#785690: libav-tools: avprobe fail on file with colon in the name

Petter Reinholdtsen pere at hungry.com
Tue May 19 11:46:16 UTC 2015


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.

And I am happy to report that my problem indeed is solved by adding
file: in front of the file name:

  % avprobe file:makercon-2014-10-18T16:49:26.dv
  avprobe version 11.3-6:11.3-1, Copyright (c) 2007-2014 the Libav developers
    built on Mar 13 2015 23:08:20 with gcc 4.9.2 (Debian 4.9.2-10)
  [dv @ 0x17abd20] Estimating duration from bitrate, this may be inaccurate
  Input #0, dv, from 'file:makercon-2014-10-18T16:49:26.dv':
    Duration: 00:01:00.84, start: 0.000000, bitrate: 28800 kb/s
      Stream #0.0: Video: dvvideo, yuv420p, 720x576, 28800 kb/s, PAR 64:45 DAR 16:9, 25 fps, 25 tbn
      Stream #0.1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
  # avprobe output


  %

-- 
Happy hacking
Petter Reinholdtsen



More information about the pkg-multimedia-maintainers mailing list