[FFmpeg-user] QuickTime Player plays two audio tracks when I open a file transcoded with ffmpeg

Gonzalo Suárez gonzalo.llorente at gmail.com
Tue Nov 27 00:06:59 CET 2012


Hi

On Mon, Nov 26, 2012 at 11:33 PM, Roger Pack <rogerdpack2 at gmail.com> wrote:
>> I'm having a weird behaviour when I open a file that was transcoded
>> using ffmpeg. The command I used to transcode the file is the
>> following:
>>
>> $ ffmpeg -i Collateral.vob -map 0:0 -map 0:30 -map 0:29 -preset
>> ultrafast -crf 18 -vf crop=720:416 -profile:v high -ss 300 -t 30
>> Collateral.mp4
>
> full console output please?

The full output is the following:

[libx264 @ 0x7f82a30db200] using SAR=64/45
[libx264 @ 0x7f82a30db200] using cpu capabilities: none!
[libx264 @ 0x7f82a30db200] profile Constrained Baseline, level 3.0
[libx264 @ 0x7f82a30db200] 264 - core 119 - H.264/MPEG-4 AVC codec -
Copyleft 2003-2011 - http://www.videolan.org/x264.html - options:
cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1
psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0
8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0
threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0
bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250
keyint_min=25 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=18.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0
Output #0, mp4, to 'Collateral.mp4':
  Metadata:
    encoder         : Lavf54.29.104
    Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p,
720x416 [SAR 64:45 DAR 32:13], q=-1--1, 25 tbn, 25 tbc
    Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, 5.1,
s16, 128 kb/s
    Stream #0:2: Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, 5.1,
s16, 128 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video -> libx264)
  Stream #0:30 -> #0:1 (ac3 -> libfaac)
  Stream #0:30 -> #0:2 (ac3 -> libfaac)
Press [q] to stop, [?] for help
frame= 1500 fps= 32 q=0.0 Lsize=   20765kB time=00:01:00.00
bitrate=2835.1kbits/s dup=10 drop=0
video:17923kB audio:2785kB subtitle:0 global headers:0kB muxing
overhead 0.277196%
[libx264 @ 0x7f82a30db200] frame I:6     Avg QP:14.17  size: 36180
[libx264 @ 0x7f82a30db200] frame P:1494  Avg QP:17.16  size: 12139
[libx264 @ 0x7f82a30db200] mb I  I16..4: 100.0%  0.0%  0.0%
[libx264 @ 0x7f82a30db200] mb P  I16..4: 15.0%  0.0%  0.0%  P16..4:
72.6%  0.0%  0.0%  0.0%  0.0%    skip:12.4%
[libx264 @ 0x7f82a30db200] coded y,uvDC,uvAC intra: 45.9% 84.8% 49.7%
inter: 42.6% 61.5% 10.5%
[libx264 @ 0x7f82a30db200] i16 v,h,dc,p: 35% 31% 23% 12%
[libx264 @ 0x7f82a30db200] i8c dc,h,v,p: 38% 27% 24% 11%
[libx264 @ 0x7f82a30db200] kb/s:2446.96


>
>>
>> As you can see, I have two audio streams in the resulting mp4 file.
>> When I open it in QuickTime Player and hit play, the audio of both
>> streams is mixed. If I select View>Languages, none of the two streams
>> is selected. If I select one of them, audio starts playing correctly.
>>
>> This doesn't happen if I open the file using VLC. Also, if I use
>> apple's quickview feature in Finder, the video starts playing
>> correctly using by default the first audio stream.
>>
>> Funny enough, I tried transcoding the original video with HandBrake
>> using same audio/video codec combination and the resulting file plays
>> correctly in QuickTime Player. It seems like ffmpeg is not able to add
>> some additional info to the file to tell QuickTime Player which stream
>> to use by default.
>
> handbrake to an mp4?
> What's the output from $ ffmpeg -i FILENAME
> for the ffmpeg one and the handbrake one, do they differ?
> -r

Unfortunately, I can't find how to make HandBrake show what's doing
under the hood (GUI) so I can't compare.
Thanks for the help.

> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user


More information about the ffmpeg-user mailing list