Opened 4 years ago

Closed 8 months ago

Last modified 8 months ago

#1564 closed enhancement (fixed)

support dvaudio in non dv container

Reported by: ami_stuff Owned by:
Priority: wish Component: avcodec
Version: git-master Keywords: dvaudio
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description (last modified by richardpl)

http://www.datafilehost.com/download-f6b0f2cb.html

C:\>ffmpeg -i Test_DV_Audio.avi
ffmpeg version N-42682-g7e17389 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jul 20 2012 02:23:40 with gcc 4.5.0 (GCC) 20100414 (Fedora MinGW 4.5.
0-1.fc14)
  configuration: --prefix=/var/www/users/research/ffmpeg/snapshots/build --arch=
x86 --target-os=mingw32 --cross-prefix=i686-pc-mingw32- --cc='ccache i686-pc-min
gw32-gcc' --enable-w32threads --enable-memalign-hack --enable-runtime-cpudetect
--enable-cross-compile --enable-static --disable-shared --extra-libs='-lws2_32 -
lwinmm -lpthread' --extra-cflags='--static -I/var/www/users/research/ffmpeg/snap
shots/build/include' --extra-ldflags='-static -L/var/www/users/research/ffmpeg/s
napshots/build/lib' --enable-bzlib --enable-zlib --enable-gpl --enable-version3
--enable-nonfree --enable-libx264 --enable-libspeex --enable-libtheora --enable-
libvorbis --enable-libfaac --enable-libxvid --enable-libopencore-amrnb --enable-
libopencore-amrwb --enable-libmp3lame --enable-libvpx --disable-decoder=libvpx
  libavutil      51. 65.100 / 51. 65.100
  libavcodec     54. 41.100 / 54. 41.100
  libavformat    54. 17.100 / 54. 17.100
  libavdevice    54.  1.100 / 54.  1.100
  libavfilter     3.  2.100 /  3.  2.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[avi @ 0x1eacdc0] non-interleaved AVI
[avi @ 0x1eacdc0] max_analyze_duration 5000000 reached at 5000000
[avi @ 0x1eacdc0] Could not find codec parameters for stream 1 (Audio: none ([22
][2][0][0] / 0x0216), 44100 Hz, 2 channels, 1728 kb/s): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Guessed Channel Layout for  Input Stream #0.1 : stereo
Input #0, avi, from 'Test_DV_Audio.avi':
  Duration: 00:00:14.06, start: 0.000000, bitrate: 5488 kb/s
    Stream #0:0: Video: cinepak (cvid / 0x64697663), yuv420p, 352x288, 15 fps, 1
5 tbr, 15 tbn, 15 tbc
    Stream #0:1: Audio: none ([22][2][0][0] / 0x0216), 44100 Hz, stereo, 1728 kb
/s
At least one output file must be specified

Change History (9)

comment:1 Changed 4 years ago by cehoyos

  • Component changed from undetermined to avcodec
  • Priority changed from normal to wish
  • Reproduced by developer set
  • Status changed from new to open
  • Type changed from defect to enhancement
  • Version changed from unspecified to git-master

comment:2 Changed 4 years ago by richardpl

  • Description modified (diff)
  • Summary changed from port ulead dv audio decoder to support dvaudio in non dv container

There is nothing to port, dvaudio code is in dv demuxer

comment:3 Changed 4 years ago by ami_stuff

this seems to be already implemented for mov container (libavformat/mov.c)

#if CONFIG_DV_DEMUXER
    case AV_CODEC_ID_DVAUDIO:
        c->dv_fctx = avformat_alloc_context();
        c->dv_demux = avpriv_dv_init_demux(c->dv_fctx);
        if (!c->dv_demux) {
            av_log(c->fc, AV_LOG_ERROR, "dv demux context init error\n");
            return AVERROR(ENOMEM);
        }
        sc->dv_audio_container = 1;
        st->codec->codec_id = AV_CODEC_ID_PCM_S16LE;
        break;
#endif

etc.

comment:4 Changed 8 months ago by ami_stuff

some samples exported from Premiere (built-in codec):

http://www.datafilehost.com/d/45e2b621

comment:5 follow-up: Changed 8 months ago by richardpl

The avi sample is gone.

comment:6 in reply to: ↑ 5 Changed 8 months ago by ami_stuff

comment:7 Changed 8 months ago by richardpl

  • Resolution set to fixed
  • Status changed from open to closed

comment:8 Changed 8 months ago by cehoyos

  • Keywords dvaudio added

comment:9 Changed 8 months ago by richardpl

there is dv audio in caf. Do you have such files?

Note: See TracTickets for help on using tickets.