← Back to team overview

desktop-packages team mailing list archive

[Bug 1436728] [NEW] Cannot open file: avprobe mis-interprets some file names.

 

Public bug reported:

Hello,
I am using audio-recorder to produce some audio files of types .ogg, .flac and .mp3.

I just discovered that avprobe command cannot open the file names produced by the recorder.  Avprobe mis-interprets the file given as argument.  
An example.

$ avprobe -show_format -show_streams -pretty "2015-03-24-21:11:13.mp3"

avprobe version 11.2-6:11.2-1, Copyright (c) 2007-2014 the Libav developers
  built on Jan 18 2015 05:12:33 with gcc 4.9.2 (Ubuntu 4.9.2-10ubuntu2)
2015-03-24-21:11:13.mp3: Protocol not found
# avprobe output
---

Let's rename 2015-03-24-21:11:13.mp3 to test1.mp3.
$ cp 2015-03-24-21:11:13.mp3  test1.mp3

$ avprobe -show_format -show_streams -pretty "test1.mp3"
avprobe version 11.2-6:11.2-1, Copyright (c) 2007-2014 the Libav developers
  built on Jan 18 2015 05:12:33 with gcc 4.9.2 (Ubuntu 4.9.2-10ubuntu2)
[mp3 @ 0x146ad20] max_analyze_duration 5000000 reached
Input #0, mp3, from 'test1.mp3':
  Duration: 00:04:41.86, start: 0.000000, bitrate: 92 kb/s
    Stream #0.0: Audio: mp3, 44100 Hz, 2 channels, s16p, 92 kb/s
# avprobe output

[format]
filename=test1.mp3
nb_streams=1
format_name=mp3
format_long_name=MP2/3 (MPEG audio layer 2/3)
start_time=0\:00\:00.000000
duration=0\:04\:41.861224
size=3.109Mibyte
bit_rate=92.536Kbit/s
...
start_time=0\:00\:00.000000
duration=0\:04\:41.861224

And avprobe opens  test1.mp3 fine.
-----------------------------------------------------

Example 2:
$ avprobe -show_format -show_streams -pretty "2015-02-20-22:21:25.ogg"

avprobe version 11.2-6:11.2-1, Copyright (c) 2007-2014 the Libav developers
  built on Jan 18 2015 05:12:33 with gcc 4.9.2 (Ubuntu 4.9.2-10ubuntu2)
2015-02-20-22:21:25.ogg: Protocol not found
# avprobe output

Rename it.
$ cp 2015-02-20-22:21:25.ogg test1.ogg

And now it works.
$ avprobe -show_format -show_streams -pretty "test1.ogg"

avprobe version 11.2-6:11.2-1, Copyright (c) 2007-2014 the Libav developers
  built on Jan 18 2015 05:12:33 with gcc 4.9.2 (Ubuntu 4.9.2-10ubuntu2)
Input #0, ogg, from 'test1.ogg':
  Duration: 00:00:55.18, start: 0.000000, bitrate: 162 kb/s
    Stream #0.0: Audio: vorbis, 44100 Hz, stereo, fltp, 160 kb/s
# avprobe output

[format]
filename=test1.ogg
nb_streams=1
...
time_base=1/44100
start_time=0\:00\:00.000000
duration=0\:00\:55.183673
-----------------------------------------------

Ref: The audio-recorder program.
https://launchpad.net/~audio-recorder

Version of avprobe:

$  avprobe --version
avprobe version 11.2-6:11.2-1, Copyright (c) 2007-2014 the Libav developers
  built on Jan 18 2015 05:12:33 with gcc 4.9.2 (Ubuntu 4.9.2-10ubuntu2)


Linux system:

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu Vivid Vervet (development branch)
Release:	15.04
Codename:	vivid

EOL.

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: libav-tools 6:11.2-1
Uname: Linux 3.19.0-999-generic x86_64
ApportVersion: 2.16.1-0ubuntu2
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Mar 26 07:59:16 2015
InstallationDate: Installed on 2015-01-28 (56 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Alpha amd64 (20150128)
SourcePackage: libav
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: libav (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug vivid

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libav in Ubuntu.
https://bugs.launchpad.net/bugs/1436728

Title:
  Cannot open file: avprobe mis-interprets some file names.

Status in libav package in Ubuntu:
  New

Bug description:
  Hello,
  I am using audio-recorder to produce some audio files of types .ogg, .flac and .mp3.

  I just discovered that avprobe command cannot open the file names produced by the recorder.  Avprobe mis-interprets the file given as argument.  
  An example.

  $ avprobe -show_format -show_streams -pretty "2015-03-24-21:11:13.mp3"

  avprobe version 11.2-6:11.2-1, Copyright (c) 2007-2014 the Libav developers
    built on Jan 18 2015 05:12:33 with gcc 4.9.2 (Ubuntu 4.9.2-10ubuntu2)
  2015-03-24-21:11:13.mp3: Protocol not found
  # avprobe output
  ---

  Let's rename 2015-03-24-21:11:13.mp3 to test1.mp3.
  $ cp 2015-03-24-21:11:13.mp3  test1.mp3

  $ avprobe -show_format -show_streams -pretty "test1.mp3"
  avprobe version 11.2-6:11.2-1, Copyright (c) 2007-2014 the Libav developers
    built on Jan 18 2015 05:12:33 with gcc 4.9.2 (Ubuntu 4.9.2-10ubuntu2)
  [mp3 @ 0x146ad20] max_analyze_duration 5000000 reached
  Input #0, mp3, from 'test1.mp3':
    Duration: 00:04:41.86, start: 0.000000, bitrate: 92 kb/s
      Stream #0.0: Audio: mp3, 44100 Hz, 2 channels, s16p, 92 kb/s
  # avprobe output

  [format]
  filename=test1.mp3
  nb_streams=1
  format_name=mp3
  format_long_name=MP2/3 (MPEG audio layer 2/3)
  start_time=0\:00\:00.000000
  duration=0\:04\:41.861224
  size=3.109Mibyte
  bit_rate=92.536Kbit/s
  ...
  start_time=0\:00\:00.000000
  duration=0\:04\:41.861224

  And avprobe opens  test1.mp3 fine.
  -----------------------------------------------------

  Example 2:
  $ avprobe -show_format -show_streams -pretty "2015-02-20-22:21:25.ogg"

  avprobe version 11.2-6:11.2-1, Copyright (c) 2007-2014 the Libav developers
    built on Jan 18 2015 05:12:33 with gcc 4.9.2 (Ubuntu 4.9.2-10ubuntu2)
  2015-02-20-22:21:25.ogg: Protocol not found
  # avprobe output

  Rename it.
  $ cp 2015-02-20-22:21:25.ogg test1.ogg

  And now it works.
  $ avprobe -show_format -show_streams -pretty "test1.ogg"

  avprobe version 11.2-6:11.2-1, Copyright (c) 2007-2014 the Libav developers
    built on Jan 18 2015 05:12:33 with gcc 4.9.2 (Ubuntu 4.9.2-10ubuntu2)
  Input #0, ogg, from 'test1.ogg':
    Duration: 00:00:55.18, start: 0.000000, bitrate: 162 kb/s
      Stream #0.0: Audio: vorbis, 44100 Hz, stereo, fltp, 160 kb/s
  # avprobe output

  [format]
  filename=test1.ogg
  nb_streams=1
  ...
  time_base=1/44100
  start_time=0\:00\:00.000000
  duration=0\:00\:55.183673
  -----------------------------------------------

  Ref: The audio-recorder program.
  https://launchpad.net/~audio-recorder

  Version of avprobe:

  $  avprobe --version
  avprobe version 11.2-6:11.2-1, Copyright (c) 2007-2014 the Libav developers
    built on Jan 18 2015 05:12:33 with gcc 4.9.2 (Ubuntu 4.9.2-10ubuntu2)

  
  Linux system:

  $ lsb_release -a
  No LSB modules are available.
  Distributor ID:	Ubuntu
  Description:	Ubuntu Vivid Vervet (development branch)
  Release:	15.04
  Codename:	vivid

  EOL.

  ProblemType: Bug
  DistroRelease: Ubuntu 15.04
  Package: libav-tools 6:11.2-1
  Uname: Linux 3.19.0-999-generic x86_64
  ApportVersion: 2.16.1-0ubuntu2
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Thu Mar 26 07:59:16 2015
  InstallationDate: Installed on 2015-01-28 (56 days ago)
  InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Alpha amd64 (20150128)
  SourcePackage: libav
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libav/+bug/1436728/+subscriptions


Follow ups

References