[FFmpeg-user] Audio not playing in Quicktime Player

Gabriel Zachmann zach at cs.uni-bremen.de
Tue Jan 2 17:57:49 EET 2018


Thanks a lot for your quick response.  Here comes - I hope it is what you need:

ffmpeg version N-87824-g25bd2f4 Copyright (c) 2000-2017 the FFmpeg developers
 built with Apple LLVM version 9.0.0 (clang-900.0.37)
 configuration: --enable-swscale --enable-avfilter --enable-avresample --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-libtheora --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libsoxr --enable-libspeex --enable-libass --enable-libbluray --enable-lzma --enable-gnutls --enable-fontconfig --enable-libfreetype --enable-libfribidi --disable-indev=jack --disable-outdev=xv --enable-audiotoolbox --enable-sdl2 --enable-shared --enable-pthreads --enable-videotoolbox --arch=x86_64 --enable-x86asm --enable-libx265 --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid --extra-ldflags='-L /opt/local/lib -framework CoreVideo -lfribidi' --extra-cflags='-I /opt/local/include/ -framework CoreVideo'
 libavutil      55. 79.100 / 55. 79.100
 libavcodec     57.108.100 / 57.108.100
 libavformat    57. 84.100 / 57. 84.100
 libavdevice    57. 11.100 / 57. 11.100
 libavfilter     6.108.100 /  6.108.100
 libavresample   3.  8.  0 /  3.  8.  0
 libswscale      4.  9.100 /  4.  9.100
 libswresample   2. 10.100 /  2. 10.100
 libpostproc    54.  8.100 / 54.  8.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Die Frau des Bäckers (La femme du boulanger) - Marcel Pagnol (1938, frz, deu sub).mov':
 Metadata:
   major_brand     : qt  
   minor_version   : 537199360
   compatible_brands: qt  
   creation_time   : 2018-01-02T10:23:23.000000Z
   com.apple.quicktime.displayname: Die Frau des Bäckers
   com.apple.quicktime.comment: Spielfilm Frankreich 1938 In einem kleinen Dorf der Provence ist die Ankunft des neuen Bäckers Aimable Castanier ein großes Ereignis. Es wird zu einer wahren Sensation, als die Bewohner die junge und sehr hübsche Frau des Bäckers, Aurélie, zu Gesicht
   com.apple.quicktime.software: Lavf54.17.100
   com.apple.quicktime.player.movie.audio.gain: 1.000000
   com.apple.quicktime.player.movie.audio.treble: 0.000000
   com.apple.quicktime.player.movie.audio.bass: 0.000000
   com.apple.quicktime.player.movie.audio.balance: 0.000000
   com.apple.quicktime.player.movie.audio.pitchshift: 0.000000
   com.apple.quicktime.player.movie.audio.mute: 
   com.apple.quicktime.player.movie.visual.brightness: 0.000000
   com.apple.quicktime.player.movie.visual.color: 1.000000
   com.apple.quicktime.player.movie.visual.tint: 0.000000
   com.apple.quicktime.player.movie.visual.contrast: 1.000000
   com.apple.quicktime.player.version: 7.6.6 (7.6.6)
   com.apple.quicktime.version: 7.7.3 (3014) 0x7738000 (Mac OS X, 10.13.2, 17C88)
 Duration: 02:08:21.60, start: -0.008000, bitrate: 788 kb/s
   Stream #0:0(eng): Video: h264 (High) (H264 / 0x34363248), yuv420p(tv, bt709), 720x576 [SAR 64:45 DAR 16:9], 594 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc (default)
   Metadata:
     creation_time   : 2018-01-02T10:23:23.000000Z
     handler_name    : Apple Alias Data Handler
   Stream #0:1(eng): Audio: mp3 (.mp3 / 0x33706D2E), 48000 Hz, stereo, s16p, 192 kb/s (default)
   Metadata:
     creation_time   : 2018-01-02T10:23:23.000000Z
     handler_name    : Apple Alias Data Handler
File 'Die Frau des Bäckers (La femme du boulanger) - Marcel Pagnol (1938, frz, deu sub).h265.mp4' already exists. Overwrite ? [y/N] y
Stream mapping:
 Stream #0:0 -> #0:0 (h264 (native) -> hevc (libx265))
 Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
x265 [info]: HEVC encoder version 2.5
x265 [info]: build info [Mac OS X][clang 8.1.0][64 bit] 8bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x265 [info]: Main profile, Level-3 (Main tier)
x265 [info]: Thread pool created using 8 threads
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 3 / wpp(9 rows)
x265 [warning]: Source height < 720p; disabling lookahead-slices
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 2
x265 [info]: Keyframe min / max / scenecut / bias: 25 / 250 / 40 / 5.00
x265 [info]: Lookahead / bframes / badapt        : 15 / 4 / 0
x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
x265 [info]: References / ref-limit  cu / depth  : 2 / on / on
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 1 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-24.0 / 0.60
x265 [info]: tools: rd=2 psy-rd=2.00 early-skip rskip signhide tmvp fast-intra
x265 [info]: tools: strong-intra-smoothing deblock sao
Output #0, mp4, to 'Die Frau des Bäckers (La femme du boulanger) - Marcel Pagnol (1938, frz, deu sub).h265.mp4':
 Metadata:
   major_brand     : qt  
   minor_version   : 537199360
   compatible_brands: qt  
   creation_time   : 2018-01-02T10:23:23.000000Z
   com.apple.quicktime.displayname: Die Frau des Bäckers
   com.apple.quicktime.comment: Spielfilm Frankreich 1938 In einem kleinen Dorf der Provence ist die Ankunft des neuen Bäckers Aimable Castanier ein großes Ereignis. Es wird zu einer wahren Sensation, als die Bewohner die junge und sehr hübsche Frau des Bäckers, Aurélie, zu Gesicht
   com.apple.quicktime.software: Lavf54.17.100
   com.apple.quicktime.player.movie.audio.gain: 1.000000
   com.apple.quicktime.player.movie.audio.treble: 0.000000
   com.apple.quicktime.player.movie.audio.bass: 0.000000
   com.apple.quicktime.player.movie.audio.balance: 0.000000
   com.apple.quicktime.player.movie.audio.pitchshift: 0.000000
   com.apple.quicktime.player.movie.audio.mute: 
   com.apple.quicktime.player.movie.visual.brightness: 0.000000
   com.apple.quicktime.player.movie.visual.color: 1.000000
   com.apple.quicktime.player.movie.visual.tint: 0.000000
   com.apple.quicktime.player.movie.visual.contrast: 1.000000
   com.apple.quicktime.player.version: 7.6.6 (7.6.6)
   com.apple.quicktime.version: 7.7.3 (3014) 0x7738000 (Mac OS X, 10.13.2, 17C88)
   encoder         : Lavf57.84.100
   Stream #0:0(eng): Video: hevc (libx265) (hvc1 / 0x31637668), yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 25 fps, 12800 tbn, 25 tbc (default)
   Metadata:
     creation_time   : 2018-01-02T10:23:23.000000Z
     handler_name    : Apple Alias Data Handler
     encoder         : Lavc57.108.100 libx265
   Stream #0:1(eng): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, s16p, 192 kb/s (default)
   Metadata:
     creation_time   : 2018-01-02T10:23:23.000000Z
     handler_name    : Apple Alias Data Handler
frame=192541 fps=135 q=-0.0 Lsize=  504307kB time=02:08:21.60 bitrate= 536.4kbits/s dup=2 drop=1 speed=5.39x    
video:318829kB audio:180507kB subtitle:0kB other streams:0kB global headers:2kB muxing overhead: 0.995591%
x265 [info]: frame I:    873, Avg QP:21.26  kb/s: 4457.34 
x265 [info]: frame P:  37882, Avg QP:23.54  kb/s: 1090.99 
x265 [info]: frame B: 153786, Avg QP:30.79  kb/s: 129.54  
x265 [info]: Weighted P-Frames: Y:4.6% UV:0.2%
x265 [info]: consecutive B-frames: 0.6% 0.1% 0.2% 0.1% 99.0% 

encoded 192541 frames in 1429.52s (134.69 fps), 338.33 kb/s, Avg QP:29.32





> On 2. Jan 2018, at 16:16, Dave Rice <dave at dericed.com <mailto:dave at dericed.com>> wrote:
> 
>> 
>> On Jan 2, 2018, at 9:44 AM, Gabriel Zachmann <zach at cs.uni-bremen.de> wrote:
>> 
>> I am converting a video , but when I play the output in Quicktime Player on macOS, then the audio seems to be gone.
>> However, when I play the output video using VLC, everything is fine, I can hear the audio.
>> The images in the video play fine in both Quicktime Player and VLC.
>> 
>> Does anybody have an idea what I might be doing wrong?
>> 
>> Here are more details.
>> 
>> The command line for conversion:
>> 
>> /usr/local/bin/ffmpeg -i "$input" \
>>      -map 0 -c:s copy -c:a copy -map_metadata 0 \
>>      -f mp4 -codec:v hevc -tag:v hvc1 \
>>      -preset faster -crf 24 -x265-params \
>>      "aq-mode=3:psy-rd=1.6:psy-rdoq=5.0:rdoq-level=1" \
>>      "$output"
>> 
>> I am living under macOS 10.13.2 (High Sierra).
>> 
>> The self-report of ffmpeg is:
>> 
>> ffmpeg version N-87824-g25bd2f4 Copyright (c) 2000-2017 the FFmpeg developers
>> built with Apple LLVM version 9.0.0 (clang-900.0.37)
>> configuration: --enable-swscale --enable-avfilter --enable-avresample --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-libtheora --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libsoxr --enable-libspeex --enable-libass --enable-libbluray --enable-lzma --enable-gnutls --enable-fontconfig --enable-libfreetype --enable-libfribidi --disable-indev=jack --disable-outdev=xv --enable-audiotoolbox --enable-sdl2 --enable-shared --enable-pthreads --enable-videotoolbox --arch=x86_64 --enable-x86asm --enable-libx265 --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid --extra-ldflags='-L /opt/local/lib -framework CoreVideo -lfribidi' --extra-cflags='-I /opt/local/include/ -framework CoreVideo'
>> libavutil      55. 79.100 / 55. 79.100
>> libavcodec     57.108.100 / 57.108.100
>> libavformat    57. 84.100 / 57. 84.100
>> libavdevice    57. 11.100 / 57. 11.100
>> libavfilter     6.108.100 /  6.108.100
>> libavresample   3.  8.  0 /  3.  8.  0
>> libswscale      4.  9.100 /  4.  9.100
>> libswresample   2. 10.100 /  2. 10.100
>> libpostproc    54.  8.100 / 54.  8.100
>> 
>> 
>> Any hints and suggestions will be highly appreciated.
> 
> Could you share the full terminal output rather than only this part. I suspect your copying an audio encoding from the input to output that QuickTime doesn’t support, but there’s not enough clues to see that. If re-encoding the audio is acceptable, then replace -c:a copy with -c:a aac or another audio encoding that QuickTime will support.
> Dave Rice
> 
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org <mailto:ffmpeg-user at ffmpeg.org>
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user <http://ffmpeg.org/mailman/listinfo/ffmpeg-user>
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org <mailto:ffmpeg-user-request at ffmpeg.org> with subject "unsubscribe".


More information about the ffmpeg-user mailing list