jslhs / ffmbc

Automatically exported from code.google.com/p/ffmbc
0 stars 0 forks source link

mux 2 audio streams and 1 video into Vob. #98

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.trying to map 2 Audio files and one Video to Vob stream

What is the expected output? 
Mpeg.vob with 2 Audio streams

What do you see instead?
----

What version of the product are you using? On what operating system?
07rc7 - Windows 7

Please provide any additional information below:

- Full commandline run (with -v 3) and everything the program printed
  without the repeating parts.

ffmbc -i Video.mpg -i Audio_0.ac3 -i Audio_1.ac3 -map 0:0 -map 1:0 -map 2:0 
-acodec copy -vcodec copy -f vob Muxx.mpg
FFmbc version 0.7-rc7
Copyright (c) 2008-2012 Baptiste Coudurier and the FFmpeg developers
Input #0, mpeg, from 'Video.mpg':
  Duration: 00:38:19.18, start: 0.172344, bitrate: 14659 kb/s
    Stream #0.0[0x1e0](und): Video: mpeg2video (Main), yuv420p, 720x576p [PAR 16:15 DAR 4:3], 14100 kb/s, 25.00 fps
    Stream #0.1[0x1c0](und): Audio: mp2, 48000 Hz, stereo, s16, 384 kb/s
[ac3 @ 003DF880] Estimating duration from bitrate, this may be inaccurate
Input #1, ac3, from 'Audio_0.ac3':
  Duration: 00:38:18.94, start: 0.000000, bitrate: 384 kb/s
    Stream #1.0(und): Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s
[ac3 @ 03D325C0] Estimating duration from bitrate, this may be inaccurate
Input #2, ac3, from 'Audio_1.ac3':
  Duration: 00:38:18.94, start: 0.000000, bitrate: 384 kb/s
    Stream #2.0(und): Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s
Number of stream maps must match number of output streams

Original issue reported on code.google.com by unr...@web.de on 13 Apr 2012 at 3:05

GoogleCodeExporter commented 8 years ago
You need to add -newaudio after output file if you want to add a new audio 
track.
You dont need -map if you keep all audio tracks, it's mapped automatically.

Original comment by baptiste...@gmail.com on 13 Apr 2012 at 4:53

GoogleCodeExporter commented 8 years ago
Thanx fot the quick and RIGHT answer!
I was just confused, that ffmpeg itself does not need this option...

Thanx!

Am 13.04.2012, 18:53 Uhr, schrieb <ffmbc@googlecode.com>:

Original comment by unr...@web.de on 13 Apr 2012 at 5:34

GoogleCodeExporter commented 8 years ago
Oh... but it seems, that -ab is only set for the first audio stream, the  
second allways comes out as 64K...
Will you guys be switching to ffmpegs new options for that?! (like -b:a:0  
384K -b:a:1 384K)..?

Am 13.04.2012, 18:53 Uhr, schrieb <ffmbc@googlecode.com>:

Original comment by unr...@web.de on 13 Apr 2012 at 5:44

GoogleCodeExporter commented 8 years ago
It is not scheduled currently.

Original comment by baptiste...@gmail.com on 13 Apr 2012 at 5:47

GoogleCodeExporter commented 8 years ago
OK...
So I guess this issue will stay open until then?!

Am 13.04.2012, 19:47 Uhr, schrieb <ffmbc@googlecode.com>:

Original comment by unr...@web.de on 13 Apr 2012 at 5:48

GoogleCodeExporter commented 8 years ago
What issue ? If you want to set bitrate for the other audio stream add -ab 
before -newaudio.

Original comment by baptiste...@gmail.com on 13 Apr 2012 at 5:50

GoogleCodeExporter commented 8 years ago
Sorry, now I get it...
I guess I never had to do that before the changes in ffmpeg...
Thanx!

Am 13.04.2012, 19:51 Uhr, schrieb <ffmbc@googlecode.com>:

Original comment by unr...@web.de on 16 Apr 2012 at 12:08