channel mapping in ffmbc

3,230 views
Skip to first unread message

stib

unread,
Mar 28, 2012, 9:14:29 AM3/28/12
to ffmbc-...@googlegroups.com
When I use -map_channel in ffmbc I get:

Unrecognized option 'map_channel'
ffmbc: failed to set value '0.0.0' for option 'map_channel'

Is there a channel mapping option in FFMBC?

I'm trying to split a stereo file into dual mono, by making two audio streams from one. I can't get it to work with either ffmbc or ffmpeg. Any clues?

Here's what I was trying with ffmpeg:

ffmpeg -i MV1053.mov -i input.mov -vcodec copy -acodec copy -ac 1 -map 0:0 -map 0:1 -map_channel 0.0.0 output.mov -acodec copy -map 1:0 -map_channel 0.0.1 -ac 1 -newaudio
ffmpeg version N-36234-g7e5cbb3, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec 30 2011 00:56:46 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3)
  configuration: --enable-gpl --enable-nonfree --enable-frei0r --enable-libaacplus --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libnut --enable-libaacplus --enable-libx264 --enable-libvorbis --enable-libvpx
  libavutil      51. 33.100 / 51. 33.100
  libavcodec     53. 48.100 / 53. 48.100
  libavformat    53. 28.100 / 53. 28.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 55.100 /  2. 55.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  5.100 /  0.  5.100
  libpostproc    51.  2.100 / 51.  2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'MV1053.mov':
  Metadata:
    major_brand     : qt 
    minor_version   : 0
    compatible_brands: qt 
    creation_time   : 2012-03-27 02:22:38
    encoder         : FFmbc 0.7
  Duration: 00:05:50.08, start: 0.000000, bitrate: 185042 kb/s
    Stream #0:0(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, 2 channels, s16, 1536 kb/s
    Metadata:
      creation_time   : 2012-03-27 02:22:38
      handler_name    : ?Apple Alias Data Handler
    Stream #0:1(eng): Video: prores (apch / 0x68637061), yuv422p10le, 1920x1080, 183498 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc
    Metadata:
      creation_time   : 2012-03-28 12:37:35
      handler_name    : ?Apple Alias Data Handler
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'MV1053.mov':
  Metadata:
    major_brand     : qt 
    minor_version   : 0
    compatible_brands: qt 
    creation_time   : 2012-03-27 02:22:38
    encoder         : FFmbc 0.7
  Duration: 00:05:50.08, start: 0.000000, bitrate: 185042 kb/s
    Stream #1:0(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, 2 channels, s16, 1536 kb/s
    Metadata:
      creation_time   : 2012-03-27 02:22:38
      handler_name    : ?Apple Alias Data Handler
    Stream #1:1(eng): Video: prores (apch / 0x68637061), yuv422p10le, 1920x1080, 183498 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc
    Metadata:
      creation_time   : 2012-03-28 12:37:35
      handler_name    : ?Apple Alias Data Handler
File 'MV1053-dm.mov' already exists. Overwrite ? [y/N] y
Missing argument for option 'newaudio'

I don't understand that error, I didn't think -newaudio had any arguments.
--
Sent from /dev/tty0


Bouke (VideoToolShed)

unread,
Mar 28, 2012, 11:55:39 AM3/28/12
to ffmbc-...@googlegroups.com
from memory (i also always have to fight this and get it wrong a couple of
times...)
-map_audio_channel goes:
InfileNum:IntrackNum:InchannelNum:OutfileNum:OuttrackNum:outChannelNum

So for your it should be 0:1:0:0:1:0 outfile map 0:1:1:0:2:0 -newaudio
(assuming your sound is track 1 in your input file...)

hth,
Bouke

stib

unread,
Mar 28, 2012, 4:37:26 PM3/28/12
to ffmbc-...@googlegroups.com
Close - the channel numbering starts at zero, so it was

ffmbc -i input.mov -i MV1053.mov -vcodec copy -acodec pcm_s16le -ac 1 -map_audio_channel 0:0:0:0:0:0 output.mov -acodec pcm_s16le -map_audio_channel 0:0:1:0:1:0 -ac 1 -newaudio

I also had to use -acodec pcm_s16le instead of -acodec copy, or it just copied both channels (of course).

Thanks for the help.

-stib

stib

unread,
Mar 28, 2012, 4:39:48 PM3/28/12
to ffmbc-...@googlegroups.com
I just noticed that I specified two inputs (this was somethign I was trying with ffmpeg). The second one is unused so it should just be:

ffmbc -i input.mov -vcodec copy -acodec pcm_s16le -ac 1 -map_audio_channel 0:0:0:0:0:0 output.mov -acodec pcm_s16le -map_audio_channel 0:0:1:0:1:0 -ac 1 -newaudio

-stib

stib

unread,
Mar 28, 2012, 5:36:04 PM3/28/12
to ffmbc-...@googlegroups.com
Just one problem - it doesn't work. Only one audio stream is created.
-stib

Baptiste Coudurier

unread,
Mar 28, 2012, 7:00:26 PM3/28/12
to ffmbc-...@googlegroups.com
On 03/28/2012 02:36 PM, stib wrote:
> Just one problem - it doesn't work. Only one audio stream is created.
> -stib

ffmbc -i input.mov -vcodec copy -acodec pcm_s16le -map_audio_channel 0.0:0-0.1 output.mov -acodec
pcm_s16le -map_audio_channel 0.0:1-0.1 -newaudio

This should work. You can use dots and dashes to seperate files and tracks and input-output, it
makes it easier to understand.

You don't need -ac 1, there nothing to downmix to mono since you are already extracting one single
channel for the source.

You also don't need to output channel number since you have not rematrixing, it automatically
numbers them in order (0, 1, 2, etc...)
The output channel number is used to switch channel left and right for example and make the
commandline switch order independent if wanted.

As a general rule, please only trust what you can find on www.ffmbc.com
in the wiki pages. There are a lot of wrong examples everywhere on the internet.

--
Baptiste COUDURIER
Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer http://www.ffmpeg.org

Baptiste Coudurier

unread,
Mar 28, 2012, 7:01:41 PM3/28/12
to ffmbc-...@googlegroups.com
On 03/28/2012 04:00 PM, Baptiste Coudurier wrote:
> On 03/28/2012 02:36 PM, stib wrote:
>> Just one problem - it doesn't work. Only one audio stream is created.
>> -stib
>
> ffmbc -i input.mov -vcodec copy -acodec pcm_s16le -map_audio_channel 0.0:0-0.1 output.mov -acodec
> pcm_s16le -map_audio_channel 0.0:1-0.1 -newaudio

Damn typo:

ffmbc -i input.mov -vcodec copy -acodec pcm_s16le -map_audio_channel 0.0:0-0.0 output.mov -acodec


pcm_s16le -map_audio_channel 0.0:1-0.1 -newaudio

--

stib

unread,
Mar 28, 2012, 7:44:32 PM3/28/12
to ffmbc-...@googlegroups.com
Thanks for your help with that Baptiste.

This is why I hate it when open source projects use wikis as their user manuals. They're good if you know what you're looking for, but since they have no structured contents directory, they're crap as user manuals. The ffmpeg online user manual is much more useful, even though it's just a plain ol' slab of html. It's the contents at the start that do the trick.

Is there a list of all the pages on that wiki?

-stib

Baptiste Coudurier

unread,
Mar 28, 2012, 8:24:23 PM3/28/12
to ffmbc-...@googlegroups.com
On 03/28/2012 04:44 PM, stib wrote:
> Thanks for your help with that Baptiste.
>
> This <http://dl.dropbox.com/u/13833997/screenshots/ffmbc-mapsearch.png> is

> why I hate it when open source projects use wikis as their user manuals.
> They're good if you know what you're looking for, but since they have no
> structured contents directory, they're crap as user manuals.

Well, I'm sorry but map_audio_channel returns a result.
I believe most of users prefer using a wiki and I can understand why
as I think a wiki should describe how do to things.

The FFmbc seems structured to me, there are 7 pages which have a pretty
obvious title:


> Is there a list of all the pages on that wiki?

Huh ? Of course, don't you see if you click "wiki" ?

ProResEncoding
SubtitlesBurning
XDCAMHD422Encoding
FFmbc06to07
CompiledWindowsBinary
IMXD10Encoding
HowtoInstallFFMbconDebianTesting

marcelo....@gmail.com

unread,
Sep 18, 2013, 9:02:56 AM9/18/13
to ffmbc-...@googlegroups.com
Hi Guy's

I have some questions and doubt involving the ffmpeg or ffmbc

I have the follow material specs in hands:
Duration: 00:00:32.46, bitrate: 49561 kb/s
Stream #0.0(eng): Audio: pcm_s16le, 192000 Hz, 2 channels, s16, 6144 kb/s
Stream #0.1(eng): Video: h264 (Main), yuv420p, 1920x1080p, 43408 kb/s, 29.97 fps

I wanna know how to convert from this specs a container (wrapper) MXF or MOV with 4 audio channels with the resolution 16 bit, and channel 1 and 2 is stereo and the 3 and 4 it copy from 1 e 2 and set the volume of these 4 channels to "-12dBfs", keeping the frequency at 48Khz.

in other hand, the video channel i need keep the same resolution as the source file (1920x1080), framerate equal (29.97), but the bitrate need to be 50MB/s and the -vcodec like MPEG HD422 (MPEG–2-4:2:2) or DVCPRO100
It is possible do be done with ffmpeg or ffmbc? Exist some GUI app easy to setup this particular output options that i need?

'cause in the "command line" is painful, i tryng for a while, read much site and tutorials in Google and nothing... i cant'go ahead with. I don't know if you have  some tips, tricks for can help me with that.

BTW, my platform now is Windows.

Thanks for now, Best regards.

Reply all
Reply to author
Forward
0 new messages