VLC doesn't work with g726 codec

Bug #995003 reported by Alexander on 2012-05-05
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
VLC media player
Fix Released
Unknown
vlc (Ubuntu)
Undecided
Unassigned

Bug Description

I have camera D-Link DCS-2103. When I connect vlc to it via rtsp:
vlc -vvv rtsp://192.168.24.5/live1.sdp
I got window with message: "No suitable decoder module:
VLC does not support the audio or video format "g726". Unfortunately there is no way for you to fix this."
I terminal I see:
"[g726 @ 0x7fbfb80983c0] Invalid number of bits 0
[0x7fbfb8030a88] avcodec decoder error: cannot open codec (G.726 ADPCM Audio)
[0x7fbfb8030a88] main decoder error: no suitable decoder module for fourcc `g726'. VLC probably does not support this sound or video format.
"
I see video, but not listen audio.

But avplay works fine:
$ avplay rtsp://192.168.24.5/live1.sdp
avplay version 0.8.1-4:0.8.1-0ubuntu1, Copyright (c) 2003-2011 the Libav developers
  built on Mar 22 2012 05:09:06 with gcc 4.6.3
[rtsp @ 0x7fb1bc0008c0] max_analyze_duration reached
[rtsp @ 0x7fb1bc0008c0] Estimating duration from bitrate, this may be inaccurate
Input #0, rtsp, from 'rtsp://192.168.24.5/live1.sdp':
  Metadata:
    title : RTSP/RTP stream 1 from DCS-2103
    comment : live1.sdp
  Duration: N/A, start: 0.000000, bitrate: 32 kb/s
    Stream #0.0: Video: h264 (High), yuvj420p, 1024x768 [PAR 1:1 DAR 4:3], 75 fps, 9k tbr, 90k tbn, 150 tbc
    Stream #0.1: Audio: g726, 8000 Hz, 1 channels, s16, 32 kb/s
    Stream #0.2: Data: [0][0][0][0] / 0x0000
[avsink @ 0x7fb1a8001020] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out'
[scale @ 0x7fb1a8001700] w:1024 h:768 fmt:yuvj420p -> w:1024 h:768 fmt:yuv420p flags:0x4
   2.05 A-V: -0.036 s:0.0 aq= 22KB vq= 637KB sq= 0B f=0/0 f=0/0

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: vlc 2.0.1-4
ProcVersionSignature: Ubuntu 3.2.0-23.36-generic 3.2.14
Uname: Linux 3.2.0-23-generic x86_64
NonfreeKernelModules: fglrx
ApportVersion: 2.0.1-0ubuntu7
Architecture: amd64
Date: Sat May 5 11:58:36 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
ProcEnviron:
 LANGUAGE=ru:en
 PATH=(custom, no user)
 LANG=ru_RU.UTF-8
 SHELL=/bin/bash
SourcePackage: vlc
UpgradeStatus: Upgraded to precise on 2012-04-17 (17 days ago)

Alexander (shulikov-n) wrote :
Rémi Denis-Courmont (rdenis) wrote :

We need a sample to investigate your issue. A private RTSP URL is not usable.

Changed in vlc (Ubuntu):
status: New → Incomplete
Alexander (shulikov-n) wrote :

Attached file. I see:
~$ mplayer test.wav
MPlayer svn r34540 (Ubuntu), built with gcc-4.6 (C) 2000-2012 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing test.wav.
libavformat version 53.21.0 (external)
Mismatching header version 53.19.0
Audio only file format detected.
Load subtitles in ./
==========================================================================
Requested audio codec family [g726] (afm=acm) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 53.35.0 (external)
Mismatching header version 53.32.2
[g726 @ 0x7fb149953300]Invalid number of bits 16
Could not open codec.
ADecoder init failed :(
ADecoder init failed :(
Cannot find codec for audio format 0x45.
Audio: no sound
Video: no video

Exiting... (End of file)

vlc:

[0x7f1a40c01a38] wav demux debug: chunk: fcc=`fmt ` size=18
[0x7f1a40c01a38] wav demux debug: format: 0x0045, fourcc: g726, channels: 1, freq: 8000 Hz, bitrate: 3Ko/s, blockalign: 2, bits/samples: 16, extra size: 0
[0x7f1a40c01a38] wav demux debug: found G.726 ADPCM audio format
[0x7f1a40c01a38] wav demux debug: chunk: fcc=`fact` size=4
[0x7f1a40c01a38] wav demux debug: chunk: fcc=`data` size=73000
[0x7f1a40c02928] avcodec decoder debug: libavcodec initialized (interface 0x352300)
[g726 @ 0x7f1a40c15660] Invalid number of bits 16
[0x7f1a40c02928] avcodec decoder error: cannot open codec (G.726 ADPCM Audio)
[0x10071b8] qt4 interface debug: IM: Setting an input
[0x7f1a40c02928] main decoder debug: no decoder module matching "any" could be loaded
[0x7f1a40c02928] main decoder debug: TIMER module_need() : 21.049 ms - Total 21.049 ms / 1 intvls (Avg 21.049 ms)
[0x7f1a40c02928] main decoder error: no suitable decoder module for fourcc `g726'. VLC probably does not support this sound or video format.
[0x7f1a40c02928] main decoder debug: killing decoder fourcc `g726', 0 PES in FIFO

avplay works fine:
$ avplay test.wav
avplay version 0.8.1-4:0.8.1-0ubuntu1, Copyright (c) 2003-2011 the Libav developers
  built on Mar 22 2012 05:09:06 with gcc 4.6.3
[wav @ 0x7f99640008c0] max_analyze_duration reached
Input #0, wav, from 'test.wav':
  Duration: 00:00:18.18, bitrate: 32 kb/s
    Stream #0.0: Audio: g726, 8000 Hz, 1 channels, s16, 32 kb/s
   3.01 A-V: 0.000 s:0.0 aq= 60KB vq= 0KB sq= 0B f=0/0

File from camera got by:
avconv -i rtsp://192.168.24.3/live1.sdp -re -vn -acodec copy test.wav

Changed in vlc (Ubuntu):
status: Incomplete → New
Changed in vlc (Ubuntu):
status: New → Confirmed
Benjamin Drung (bdrung) on 2012-05-12
Changed in vlc (Ubuntu):
status: Confirmed → Triaged
Alexander (shulikov-n) wrote :

May be this is not vlc trouble? mplayer have the same error:
Requested audio codec family [g726] (afm=acm) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 53.35.0 (external)
Mismatching header version 53.32.2
[g726 @ 0x7fb149953300]Invalid number of bits 16
Could not open codec.
ADecoder init failed :(
ADecoder init failed :(
Cannot find codec for audio format 0x45.
Audio: no sound
Video: no video

Benjamin Drung (bdrung) on 2012-05-23
Changed in vlc (Ubuntu):
status: Triaged → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package vlc - 2.0.2-1

---------------
vlc (2.0.2-1) unstable; urgency=medium

  [ Edward Wang ]
  * New upstream release (Closes: #679625, #664279, LP: #689122, #936488,
    #942126, #971106, #972615, #973051, #987231, #995003, #998538).
    - Fix Ogg Heap buffer overflow. Thanks to Hugo Beauzée-Luyssen
  * Add the crystalhd plugin to the vlc distribution.
  * libcaca_plugin.so now depends on X11 in this release, so it must
    be installed under vlc (versus vlc-nox).

  [ Reinhard Tartler ]
  * Urgency set to medium because a security issue is fixed in this release

  [ Benjamin Drung ]
  * Add new plugins to vlc-nox:
    - crystalhd (Linux amd64 and i386 only)
    - directfb
    - fbosd (Linux only)
    - omxil (Linux only)
  * Add build dependencies for new plugins.
  * Add new symbols to libvlccore5.
  * Switch to debhelper 8.

 -- Benjamin Drung <email address hidden> Sat, 30 Jun 2012 18:39:41 +0200

Changed in vlc (Ubuntu):
status: Fix Committed → Fix Released
Alexander (shulikov-n) wrote :

Is it in 12.04 updates? apt-get can't install it.

Benjamin Drung (bdrung) wrote :

No, it's in quantal (the upcoming 12.10).

The verification of this Stable Release Update has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

Changed in vlc:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.