[FFmpeg-user] Mapping audio from DV25 to MPEG2

James Anderson JamesAnderson at NWCT.ORG
Fri Jun 15 22:55:33 CEST 2012


Hello, This is probably a newbie question,

I'm trying to convert DV25 videos to MPEG2 using the following:

ffmpeg -i "TARGET APPROVED-PKG-4P-20120522.mov" -vcodec mpeg2video -pix_fmt yuv420p  -threads 4 -r 29.97 -g 15 -s 640x480 -b 5000k -bt 500k -acodec mp2 -ab 192k -ar 48000 -async 1 -ac 2 -map 0:1 -map 0:2 -map 0:3 -y -f vob output.mpg

The input file has two audio channels, but the output file is mono with only one of the audio source audio channels. I've tried mapping using -map. I can map each stream, but I can only get one to show up at a time. Do I need to use map_channel? It's not clear to me how to configure the map_channel.

Any help would be much appreciated.

James

Here's the output from FFMPEG:

Please use -b:a or -b:v, -b is ambiguous
-async is forwarded to lavfi similarly to -af aresample=min_comp=0.001:min_hard_comp=0.100000.
[aresample @ 0x100117700] chl:stereo fmt:s16 r:48000Hz -> chl:stereo fmt:s16 r:48000Hz
-async is forwarded to lavfi similarly to -af aresample=min_comp=0.001:min_hard_comp=0.100000.
[aresample @ 0x100118220] chl:stereo fmt:s16 r:48000Hz -> chl:stereo fmt:s16 r:48000Hz
[buffer @ 0x100118860] w:720 h:480 pixfmt:yuv411p tb:1/2997 sar:10/11 sws_param:flags=2
[buffersink @ 0x100118b60] No opaque field provided
[scale @ 0x100118d80] w:720 h:480 fmt:yuv411p sar:10/11 -> w:640 h:480 fmt:yuv420p sar:45/44 flags:0x4
[vob @ 0x100886600] VBV buffer size not set, muxing may fail
Output #0, vob, to 'output.mpg':
  Metadata:
    major_brand     : qt  
    minor_version   : 537199360
    compatible_brands: qt  
    creation_time   : 2012-05-23 18:45:31
    encoder         : Lavf54.6.100
    Stream #0:0(eng): Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s
    Metadata:
      creation_time   : 2012-05-23 18:45:31
      handler_name    : Apple Alias Data Handler
    Stream #0:1(eng): Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s
    Metadata:
      creation_time   : 2012-05-23 18:45:31
      handler_name    : Apple Alias Data Handler
    Stream #0:2(eng): Video: mpeg2video, yuv420p, 640x480 [SAR 45:44 DAR 15:11], q=2-31, 5000 kb/s, 90k tbn, 29.97 tbc
    Metadata:
      creation_time   : 2012-05-23 18:45:31
      handler_name    : Apple Alias Data Handler
Stream mapping:
  Stream #0:1 -> #0:0 (pcm_s16le -> mp2)
  Stream #0:2 -> #0:1 (pcm_s16le -> mp2)
  Stream #0:3 -> #0:2 (dvvideo -> mpeg2video)
Press [q] to stop, [?] for help
frame= 3772 fps=155 q=5.1 Lsize=   83776kB time=00:02:05.41 bitrate=5472.2kbits/s    
video:76839kB audio:5879kB global headers:0kB muxing overhead 1.278748%



More information about the ffmpeg-user mailing list