jslhs / ffmbc

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

MP4 muxing force audio stereo tracks #127

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I'm trying to compress raw video to XDCAM EX 35Mb and mux it to a mp4 file with 
4 audio mono tracks. Here is the cmd line (i just put fake files) : 
./ffmbc.exe -i video.mov -i audio.wav -threads 4 -vcodec mpeg2video -flags 
+ildct+ilme -flags2 +ivlc+non_linear_q -aspect 16:9 -pix_fmt yuv420p -tff -dc 
10 -bf 2 -qmin 1 -lmin QP2LAMBDA -vb 35000k -maxrate 35000k -bufsize 25485834 
-an -f mov test.mov -ac 1 -acodec pcm_s16be -newaudio -ac 1 -acodec pcm_s16be 
-newaudio -ac 1 -acodec pcm_s16be -newaudio -ac 1 -acodec pcm_s16be -newaudio 
-map_audio_channel 1:0:0:0:1:0 -map_audio_channel 1:0:0:0:2:0 
-map_audio_channel 1:0:0:0:3:0 -map_audio_channel 1:0:0:0:4:0

Same mono track is mapped to streams 1-4 of the output.

The output summary seems right :

Output #0, mp4, to 'file3.mp4':
  Metadata:
    encoder: FFmbc 0.7
    Stream #0.0(und): Video: mpeg2video, yuv420p, 1920x1080i tff [PAR 1:1 DAR 16:9], 35000 kb/s, 25.00 fps
    Stream #0.1(und): Audio: pcm_s16be, 48000 Hz, 1 channels, s16, 768 kb/s
    Stream #0.2(und): Audio: pcm_s16be, 48000 Hz, 1 channels, s16, 768 kb/s
    Stream #0.3(und): Audio: pcm_s16be, 48000 Hz, 1 channels, s16, 768 kb/s
    Stream #0.4(und): Audio: pcm_s16be, 48000 Hz, 1 channels, s16, 768 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #1.0 -> #0.1 [channel: 0 -> 0]
  Stream #1.0 -> #0.2 [channel: 0 -> 0]
  Stream #1.0 -> #0.3 [channel: 0 -> 0]
  Stream #1.0 -> #0.4 [channel: 0 -> 0]

But resulting file declares stereo audio essences.

I use FFmbc-0.7rc7-win64 version.

Original issue reported on code.google.com by sylvain....@gmail.com on 17 Dec 2012 at 4:49

GoogleCodeExporter commented 8 years ago
Giving mediaInfo output of the resulting file :
General
Complete name                            : file3.mp4
Format                                   : MPEG-4
Commercial name                          : XDCAM EX 35
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42
File size                                : 44.7 MiB
Duration                                 : 10s 0ms
Overall bit rate mode                    : Variable
Overall bit rate                         : 37.5 Mbps
Encoded date                             : UTC 2012-12-17 16:20:23
Tagged date                              : UTC 2012-12-17 16:20:23
Writing application                      : FFmbc 0.7

Video
ID                                       : 1
Format                                   : MPEG Video
Commercial name                          : XDCAM EX 35
Format version                           : Version 2
Format profile                           : Main@High
Format settings, BVOP                    : Yes
Format settings, Matrix                  : Default
Format settings, GOP                     : M=3, N=12
Codec ID                                 : 61
Duration                                 : 10s 0ms
Bit rate mode                            : Variable
Bit rate                                 : 34.4 Mbps
Maximum bit rate                         : 35.0 Mbps
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 25.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Interlaced
Scan order                               : Top Field First
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.664
Stream size                              : 41.0 MiB (92%)
Encoded date                             : UTC 2012-12-17 16:20:23
Tagged date                              : UTC 2012-12-17 16:20:23

Audio #1
ID                                       : 2
Format                                   : PCM
Format settings, Endianness              : Big
Format settings, Sign                    : Signed
Codec ID                                 : twos
Duration                                 : 10s 0ms
Bit rate mode                            : Constant
Bit rate                                 : 768 Kbps
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Delay relative to video                  : 40ms
Stream size                              : 938 KiB (2%)
Encoded date                             : UTC 2012-12-17 16:20:23
Tagged date                              : UTC 2012-12-17 16:20:23

Audio #2
ID                                       : 3
Format                                   : PCM
Format settings, Endianness              : Big
Format settings, Sign                    : Signed
Codec ID                                 : twos
Duration                                 : 10s 0ms
Bit rate mode                            : Constant
Bit rate                                 : 768 Kbps
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Delay relative to video                  : 40ms
Stream size                              : 938 KiB (2%)
Encoded date                             : UTC 2012-12-17 16:20:23
Tagged date                              : UTC 2012-12-17 16:20:23

Audio #3
ID                                       : 4
Format                                   : PCM
Format settings, Endianness              : Big
Format settings, Sign                    : Signed
Codec ID                                 : twos
Duration                                 : 10s 0ms
Bit rate mode                            : Constant
Bit rate                                 : 768 Kbps
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Delay relative to video                  : 40ms
Stream size                              : 938 KiB (2%)
Encoded date                             : UTC 2012-12-17 16:20:23
Tagged date                              : UTC 2012-12-17 16:20:23

Audio #4
ID                                       : 5
Format                                   : PCM
Format settings, Endianness              : Big
Format settings, Sign                    : Signed
Codec ID                                 : twos
Duration                                 : 10s 0ms
Bit rate mode                            : Constant
Bit rate                                 : 768 Kbps
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Delay relative to video                  : 40ms
Stream size                              : 938 KiB (2%)
Encoded date                             : UTC 2012-12-17 16:20:23
Tagged date                              : UTC 2012-12-17 16:20:23

Original comment by sylvain....@gmail.com on 17 Dec 2012 at 4:50

GoogleCodeExporter commented 8 years ago
Erf i made a mistake in the cmd line and i cannot edit it. The container is of 
course mp4 and not mov.
Cmd line :

./ffmbc.exe -i video.mov -i audio.wav -threads 4 -vcodec mpeg2video -flags 
+ildct+ilme -flags2 +ivlc+non_linear_q -aspect 16:9 -pix_fmt yuv420p -tff -dc 
10 -bf 2 -qmin 1 -lmin QP2LAMBDA -vb 35000k -maxrate 35000k -bufsize 25485834 
-an -f mp4 test.mp4 -ac 1 -acodec pcm_s16be -newaudio -ac 1 -acodec pcm_s16be 
-newaudio -ac 1 -acodec pcm_s16be -newaudio -ac 1 -acodec pcm_s16be -newaudio 
-map_audio_channel 1:0:0:0:1:0 -map_audio_channel 1:0:0:0:2:0 
-map_audio_channel 1:0:0:0:3:0 -map_audio_channel 1:0:0:0:4:0

Original comment by sylvain....@gmail.com on 17 Dec 2012 at 4:53

GoogleCodeExporter commented 8 years ago
Humm yes I confirm the bug, I'll fix it

Original comment by baptiste...@gmail.com on 21 Dec 2012 at 12:32

GoogleCodeExporter commented 8 years ago
Ok great.Thanks. Waiting for the next RC then.

Original comment by sylvain....@gmail.com on 21 Dec 2012 at 8:08

GoogleCodeExporter commented 8 years ago
Should be fixed in rc8

Original comment by baptiste...@gmail.com on 13 Mar 2013 at 11:01