[CinCV TNG] Default (adpcm_ima_wav ?) audio codec in avi broken?

Andrew Randrianasulu randrianasulu at gmail.com
Sun Jul 16 19:53:39 CEST 2017


Hello, all!

While testing direct copy feature I think I stumbled on another  bug in 
Cinelerra CV (main branch). If I switch rendering options to file type = AVI 
and leave audio codec setting intact - resulted file can't be played with sound 
by mplayer or ffplay (video plays ok):

guest at slax:~/New_hdd$ ffplay /dev/shm/tmp/UD_dr_test.avi
ffplay version 2.8.11 Copyright (c) 2003-2017 the FFmpeg developers
  built with gcc 4.8.4 (GCC)
  
configuration: --arch=i486 --target-os=linux --prefix=/usr --libdir=/usr/lib --mandir=/usr/man --docdir=/usr/doc/ffmpeg-2.8.11 --enable-gpl --enable-version3 --disable-static --enable-shared --enable-runtime-cpudetect --enable-ffmpeg --enable-ffplay --enable-ffprobe --enable-ffserver --enable-doc --enable-avdevice --enable-avcodec --enable-avformat --enable-avutil --enable-swresample --enable-swscale --enable-postproc --enable-avfilter --enable-avresample --enable-pthreads --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-ladspa --enable-libass --enable-libbluray --disable-libbs2b --disable-libcaca --disable-libcelt --enable-libcdio --disable-libdc1394 --disable-libflite --enable-libfreetype --enable-libfribidi --disable-libgme --enable-libgsm --enable-libiec61883 --disable-libilbc --disable-libkvazaar --disable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --disable-libpulse --disable-libquvi --enable-librtmp --enable-libschroedinger --enable-libsmbclient --disable-libsnappy --disable-libsoxr --enable-libspeex --disable-libssh --enable-libtheora --enable-libtwolame --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxvid --enable-libzvbi --enable-lzma --enable-openal --enable-opengl --enable-sdl --enable-x11grab --enable-zlib --disable-debug
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
[avi @ 0xf23004a0] sample size (4) != block align (1)    0B f=0/0
[avi @ 0xf23004a0] non-interleaved AVI
[avi @ 0xf23004a0] Failed to open codec in av_find_stream_info
Input #0, avi, from '/dev/shm/tmp/UD_dr_test.avi':
  Duration: 00:01:02.90, start: 0.000000, bitrate: 34837 kb/s
    Stream #0:0: Video: dvvideo (dvsd / 0x64737664), yuv420p, 720x576 [SAR 16:15 
DAR 4:3], 34578 kb/s, 30 fps, 25 tbr, 30 tbn, 25 tbc
    Stream #0:1: Audio: adpcm_ima_wav ([17][0][0][0] / 0x0011), 48000 Hz, 2 
channels, 384 kb/s


************


guest at slax:~/New_hdd$ mplayer /dev/shm/tmp/UD_dr_test.avi -ac ffadpcmimawav -v
MPlayer SVN-r37938-4.9.2 (C) 2000-2017 MPlayer Team
CPU vendor name: AuthenticAMD  max cpuid level: 13
CPU: AMD FX(tm)-4300 Quad-Core Processor             (Family: 21, Model: 2, 
Stepping: 0)
extended cpuid-level: 30
extended cache-info: 134250816
Detected cache-line size is 64 bytes
Testing OS support for SSE... yes.
Tests of OS support for SSE passed.
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 1 SSE3: 1 SSSE3: 1 
SSE4: 1 SSE4.2: 1 AVX: 1
Compiled with runtime CPU detection.
get_path('codecs.conf') -> '/home/guest/.mplayer/codecs.conf'
Reading optional codecs config file /home/guest/.mplayer/codecs.conf: 225 audio 
& 464 video codecs
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/guest/.mplayer/fonts'
Configuration: --prefix=/usr --enable-xvmc --enable-runtime-cpudetection --enable-radio --enable-radio-capture --enable-s3fb
CommandLine: '/dev/shm/tmp/UD_dr_test.avi' '-ac' 'ffadpcmimawav' '-v'
Using nanosleep() timing
get_path('input.conf') -> '/home/guest/.mplayer/input.conf'
Reading optional input config file /home/guest/.mplayer/input.conf: No such file 
or directory
Reading optional input config file /usr/etc/mplayer/input.conf: No such file or 
directory
Falling back on default (hardcoded) input config
get_path('UD_dr_test.avi.conf') -> '/home/guest/.mplayer/UD_dr_test.avi.conf'

Playing /dev/shm/tmp/UD_dr_test.avi.
get_path('sub/') -> '/home/guest/.mplayer/sub/'
[file] File size is 273906190 bytes
STREAM: [file] /dev/shm/tmp/UD_dr_test.avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
libavformat version 57.72.101 (internal)
Configuration: --enable-gpl --enable-postproc
LAVF_check: AVI (Audio Video Interleaved)
AVI file format detected.
list_end=0x2192
======= AVI Header =======
us/frame: 33333  (fps=30.000)
max bytes/sec: 4353334
padding: 0
MainAVIHeader.dwFlags: (2352) HAS_INDEX MUST_USE_INDEX IS_INTERLEAVED 
TRUST_CKTYPE
frames  total: 1887   initial: 0
streams: 2
Suggested BufferSize: 0
Size:  720 x 576
==========================
list_end=0x10F4
==> Found video stream: 0
[aviheader] Video stream found, -vid 0
====== STREAM Header =====
Type: vids   FCC: dvsd (64737664)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 600/20 = 30.000
Start: 0   Len: 1887
Suggested BufferSize: 0
Quality -1
Sample size: 0
==========================
Found 'bih', 40 bytes of 40
======= VIDEO Format ======
  biSize 40
  biWidth 720
  biHeight 576
  biPlanes 1
  biBitCount 24
  biCompression 1685288548='dvsd'
  biSizeImage 1244160
===========================
====== AVI Super Index Header ========
  FCC (indx) dwSize (40) wLongsPerEntry(4)
  bIndexSubType (0) bIndexType (0)
  nEntriesInUse (1) dwChunkId (00dc)
  dwReserved[0] (0) dwReserved[1] (0) dwReserved[2] (0)
===========================
ODML (00dc): [0] 0x000000001051a48e 0x3b10 1887
list_end=0x217A
==> Found audio stream: 1
[aviheader] Audio stream found, -aid 1
====== STREAM Header =====
Type: auds   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 48000/1 = 48000.000
Start: 0   Len: 2946
Suggested BufferSize: 0
Quality -1
Sample size: 4
==========================
Found 'wf', 18 bytes of 18
======= WAVE Format =======
Format Tag: 17 (0x11)
Channels: 2
Samplerate: 48000
avg byte/sec: 32000
Block align: 1
bits/sample: 16
cbSize: 0
==========================================================================
====== AVI Super Index Header ========
  FCC (indx) dwSize (40) wLongsPerEntry(4)
  bIndexSubType (0) bIndexType (0)
  nEntriesInUse (1) dwChunkId (01wb)
  dwReserved[0] (0) dwReserved[1] (0) dwReserved[2] (0)
===========================
ODML (01wb): [0] 0x000000001051dfa6 0x5c28 2946
list_end=0x2192
AVI: dmlh found (size=4) (total_frames=0)
list_end=0x10523BD6
Found movie at 0x219E - 0x10523BD6
Reading INDEX block, 4833 chunks for 1887 frames (fpos=273824734).
AVI index offset: 0x219A (movi=0x219E idx0=0x4 idx1=0x2328C)
Auto-selected AVI video ID = 0
Auto-selected AVI audio ID = 1
Detected NON-INTERLEAVED AVI file format.
AVI: Searching for audio stream (id:1)
XXX initial  v_pts=0.000  a_pos=0 (0.000)
AVI video size=271728000 (1887) audio size=2010727 (2010727)
VIDEO:  [dvsd]  720x576  24bpp  30.000 fps  34560.0 kbps (4218.8 kbyte/s)
Auto-selected AVI video ID = 0
Auto-selected AVI audio ID = 1
[V] filefmt:3  fourcc:0x64737664  size:720x576  fps:30.000  ftime:=0.0333
s3fb: Couldn't map S3 registers: Operation not permitted
X11 opening display: :0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0" => local display)
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Detected wm supports STAYS_ON_TOP state.
[x11] Current fstype setting honours FULLSCREEN STAYS_ON_TOP ABOVE BELOW X atoms
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 57.96.101 (internal)
Configuration: --enable-gpl --enable-postproc
INFO: libavcodec init OK!
Selected video codec: [ffdv] vfm: ffmpeg (FFmpeg DV)
==========================================================================
Load subtitles in /dev/shm/tmp/
get_path('sub/') -> '/home/guest/.mplayer/sub/'
==========================================================================
Forced audio codec: ffadpcmimawav
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
dec_audio: Allocating 1536000 + 131072 = 1667072 bytes for output buffer.
FFmpeg's libavcodec audio codec
Could not open codec.
ADecoder init failed :(
ADecoder init failed :(
Cannot find codec for audio format 0x11.
Audio: no sound
Freeing 0 unused audio chunks.
Starting playback...
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 2)
Movie-Aspect is undefined - no prescaling applied.
VO Config (720x576->720x576,flags=0,'MPlayer',0x32315659)
VO: [vdpau] 720x576 => 720x576 Planar YV12
VO: Description: VDPAU with X11
VO: Author: Rajib Mahapatra <rmahapatra at nvidia.com> and others
[vdpau] Updating CSC matrix for BT.601
*** [vo] Allocating mp_image_t, 768x576x12bpp YUV planar, 663552 bytes
[ffmpeg] aspect_ratio: 1.333333
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 2)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO Config (720x576->768x576,flags=0,'MPlayer',0x32315659)
VO: [vdpau] 720x576 => 768x576 Planar YV12
VO: Description: VDPAU with X11
VO: Author: Rajib Mahapatra <rmahapatra at nvidia.com> and others
Unicode font: 660 glyphs.
Unicode font: 660 glyphs.
V:   1.0  31/ 31 18% 13%  0.0% 0 0
Uninit video: ffmpeg
_xgeWireToEvent: Unknown extension 147, this should never happen.
_xgeWireToEvent: Unknown extension 147, this should never happen.
vo: uninit ...

Exiting... (Quit)




More information about the Cinelerra mailing list