Home/News | About | Download | Documentation | Forum | Bug Reports | Contact | Donations | Consulting | Projects | Legal | Security | FATE


Convert 6-channel WAV to 6-channel OGG issue

Discussions about problems encountered using ffmpeg.
Forum rules
FFmpeg is in a state of perpetual development and we do not currently have the person power to backport fixes to official releases. As such, if you wish to query or report a bug, you must try with the latest development branch revision of FFmpeg to confirm the issue still exists. The latest FFmpeg can be downloaded from here: http://www.ffmpeg.org/download.html

Convert 6-channel WAV to 6-channel OGG issue

Postby tdavison » Thu Feb 16, 2017 1:53 pm

Hi,
I tried to convert 6-channel WAV to 6-channel OGG file. After conversion, the 6th channel in the new ogg file was corrupted, not audible.
Is it because the encoder assumes that 6 channels means a 5.1 surround audio and creates one Low Frequency Effect (LFE) channel? how to remove this effect. I need only 6 channels, no 5.1 and LFE.

This is the command line:
ffmpeg -i D:\temp\6_channel.wav -codec:a libvorbis -qscale:a 3 D:\temp\6_channel.ogg

Console output:
Code: Select all
d:\ffmpeg>ffmpeg -i D:\temp\6_channel.wav -codec:a libvorbis -qscale:a 3 D:\tem
\6_channel.ogg
ffmpeg version N-41843-gc17808c Copyright (c) 2000-2012 the FFmpeg developers
  built on Jun 22 2012 17:40:07 with gcc 4.7.1
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-r
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libas
 --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enabl
-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libop
njpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libt
eora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable
libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --
nable-zlib
  libavutil      51. 61.100 / 51. 61.100
  libavcodec     54. 29.100 / 54. 29.100
  libavformat    54. 11.100 / 54. 11.100
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     2. 82.100 /  2. 82.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[wav @ 0033cea0] max_analyze_duration 5000000 reached at 5001333
Input #0, wav, from 'D:\temp\6_channel.wav':
  Duration: 00:01:04.47, bitrate: 4608 kb/s
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, 5.1, s16,
608 kb/s
[aformat @ 02cf04a0] auto-inserting filter 'auto-inserted resampler 0' between
he filter 'Parsed_anull_0' and the filter 'aformat'
[auto-inserted resampler 0 @ 02cf0e40] chl:5.1 fmt:s16 r:48000Hz -> chl:5.1 fmt
flt r:48000Hz
Output #0, ogg, to 'D:\temp\6_channel.ogg':
  Metadata:
    encoder         : Lavf54.11.100
    Stream #0:0: Audio: vorbis, 48000 Hz, 5.1, flt
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_s16le -> libvorbis)
Press [q] to stop, [?] for help
[libvorbis @ 0033f620] Que input is backward in time
size=    1933kB time=00:01:04.47 bitrate= 245.7kbits/s
video:0kB audio:1915kB subtitle:0 global headers:7kB muxing overhead 0.598681%

d:\ffmpeg>


Thanks for your help!!
tdavison
 
Posts: 4
Joined: Tue Feb 14, 2017 3:31 pm

Re: Convert 6-channel WAV to 6-channel OGG issue

Postby mulvya » Thu Feb 16, 2017 2:45 pm

Use the channelmap filter

Code: Select all
ffmpeg -i D:\temp\6_channel.wav -af "channelmap=6.0" -c:a libvorbis -q:a 3 D:\tem\6_channel.ogg


Check the docs to see how to assign input channels individually.
mulvya
 
Posts: 516
Joined: Mon Oct 26, 2015 6:58 am

Re: Convert 6-channel WAV to 6-channel OGG issue

Postby llogan » Thu Feb 16, 2017 6:24 pm

Also, your ffmpeg is ancient. Get a new one:
https://ffmpeg.zeranoe.com/builds/
Get an answer more quickly by providing your actual ffmpeg command and the complete console output. Use the code button to format your command and output or your question will be ignored.
llogan
 
Posts: 2285
Joined: Fri Jan 25, 2013 9:47 pm
Location: Alaska

Re: Convert 6-channel WAV to 6-channel OGG issue

Postby tdavison » Fri Feb 17, 2017 3:08 pm

Thanks for your help. I will try your suggestions.
tdavison
 
Posts: 4
Joined: Tue Feb 14, 2017 3:31 pm


Return to ffmpeg

Who is online

Users browsing this forum: Bing [Bot] and 7 guests

cron