[FFmpeg-user] How to convert music into DTS encoded WAV file?
Moritz Barsnick
barsnick at gmx.net
Wed Aug 10 17:15:57 EEST 2016
On Wed, Aug 10, 2016 at 16:09:01 +0200, Peter White wrote:
> > I think maybe
> > because the thing in the bracket is not correct? It should be
> > "([1][0][0][0] / 0x0001)", but it is "([1] [0][0] / 0x2001)".
>
> Out of my depth here, but that is certainly possible.
If that's the only difference... "-tag:a" *would* be the option. But:
$ ffmpeg -i test.wav -c copy -tag:a 0x0001 test2.wav -y
ffmpeg version N-81308-g369ed11 Copyright (c) 2000-2016 the FFmpeg developers
built with icc (ICC) 14.0.3 20140422
configuration: --prefix=/usr/new/tools/video/install/ffmpeg/2016-08-09 --cc=icc --cxx=icpc --enable-gpl --enable-version3 --enable-nonfree --disable-shared --enable-gnutls --enable-libcdio --enable-libfreetype --enable-libx264 --enable-libvpx --enable-libmp3lame --enable-openal --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtwolame --enable-libopenjpeg --enable-librtmp --enable-libass --enable-libv4l2 --enable-libvidstab --enable-libfdk-aac --enable-libsmbclient --enable-libzvbi --enable-libtesseract --enable-libzmq
libavutil 55. 28.100 / 55. 28.100
libavcodec 57. 51.100 / 57. 51.100
libavformat 57. 46.100 / 57. 46.100
libavdevice 57. 0.102 / 57. 0.102
libavfilter 6. 50.100 / 6. 50.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 1.100 / 2. 1.100
libpostproc 54. 0.100 / 54. 0.100
Input #0, wav, from 'test.wav':
Duration: 00:00:05.03, bitrate: 1411 kb/s
Stream #0:0: Audio: dts (DTS) ([1][0][0][0] / 0x0001), 44100 Hz, 5.1(side), fltp
[wav @ 0xa410480] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
[wav @ 0xa410480] Tag [1][0][0][0]/0x00000001 incompatible with output codec id '86020' ([1] [0][0])
Output #0, wav, to 'test2.wav':
Stream #0:0: Audio: dts (DTS) ([1][0][0][0] / 0x0001), 44100 Hz, 5.1(side)
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Could not write header for output file #0 (incorrect codec parameters ?): Invalid data found when processing input
My ffmpeg refuses to set the tag 0x0001 for dts in wav. Hmm.
Moritz
More information about the ffmpeg-user
mailing list