Re: [FFmpeg-user] Audio not playing in Quicktime Player
Thanks to all, I consider the issue solved. The solution is: I either have to - use the MOV container, in which case I can copy the mp3 stream to the output; or, - use the MP4 container, in which case I have to convert audio to AAC. Best regards, Gabriel > On 3. Jan 2018, at 18:52, Gyan Doshiwrote: > > On 1/3/2018 10:49 PM, Erik Dobberkau wrote: >> Regardless whether it is or not, there is some spec in QuickTime Player >> which requires .mp4 containers to have h.264 (and obviously now also h.265) >> video, and aac audio. OTOH I can't remember where I got this from, it's >> quite some years back... > > As per the ref below, audio in MP4 can only be AAC. > > https://developer.apple.com/library/content/documentation/MusicAudio/Conceptual/CoreAudioOverview/SupportedAudioFormatsMacOSX/SupportedAudioFormatsMacOSX.html > > > Regards, > Gyan > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". > > ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Audio not playing in Quicktime Player
Sorry about that. Funny thing is, when I convert to "mov" container, the audio plays fine. When I convert to MP4, it does not. Here is the command line, that works: $ffmpeg -i "$input" \ -map 0 -c:s copy -map_metadata 0 \ -c:a copy \ -f mov -codec:v hevc -tag:v hvc1 \ -preset faster -crf 24 \ -t 120 \ "$output" here is the command line, that does *not* work: $ffmpeg -i "$input" \ -map 0 -c:s copy -map_metadata 0 \ -c:a copy \ -f mp4 -codec:v hevc -tag:v hvc1 \ -preset faster -crf 24 \ -t 120 \ "$output" funny enough, this does work: $ffmpeg -i "$input" \ -map 0 -c:s copy -map_metadata 0 \ -c:a aac \ -f mp4 -codec:v hevc -tag:v hvc1 \ -preset faster -crf 24 \ -t 120 \ "$output" Everything else is exactly the same. Complete ffmpeg output below. Best regards, Gabriel ffmpeg output for conversion 1 to mov (which works): 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 libavformat57. 84.100 / 57. 84.100 libavdevice57. 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 libpostproc54. 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.00Z 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.00 com.apple.quicktime.player.movie.audio.treble: 0.00 com.apple.quicktime.player.movie.audio.bass: 0.00 com.apple.quicktime.player.movie.audio.balance: 0.00 com.apple.quicktime.player.movie.audio.pitchshift: 0.00 com.apple.quicktime.player.movie.audio.mute: com.apple.quicktime.player.movie.visual.brightness: 0.00 com.apple.quicktime.player.movie.visual.color: 1.00 com.apple.quicktime.player.movie.visual.tint: 0.00 com.apple.quicktime.player.movie.visual.contrast: 1.00 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.00Z 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.00Z 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
Re: [FFmpeg-user] Audio not playing in Quicktime Player
> > Why are you not choosing .mov as output format if your target > is QuickTime for which mov was invented? I tried it , to no avail. Stil no sound in Quicktime Player (macOS 10.13.2). It seems to me that macOS does not recognize the audio stream. VLC reports 2 streams; stream 0: type = video, codec = MPEG-H Part 2 / HEVC (H.265) (hevc) stream 1: type = audio, codec = MPEG Audio layer 1/2 (mp4a) ffprobe also reports 2 streams: Stream #0:0(eng): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, progressive), 720x576 [SAR 64:45 DAR 16:9], 215 kb/s, 25 fps, 25 tbr, 12800 tbn, 25 tbc (default) Stream #0:1(eng): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, s16p, 192 kb/s (default) But Quicktime Player seems to see only 1 stream: the info I get is Source: Format: HEVC, 720x576 FPS: 25 Data Size: .. Data Rate: .. Current Size: Nothing else. Best regards, Gabriel ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Audio not playing in Quicktime Player
On 1/3/2018 10:49 PM, Erik Dobberkau wrote: Regardless whether it is or not, there is some spec in QuickTime Player which requires .mp4 containers to have h.264 (and obviously now also h.265) video, and aac audio. OTOH I can't remember where I got this from, it's quite some years back... As per the ref below, audio in MP4 can only be AAC. https://developer.apple.com/library/content/documentation/MusicAudio/Conceptual/CoreAudioOverview/SupportedAudioFormatsMacOSX/SupportedAudioFormatsMacOSX.html Regards, Gyan ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Audio not playing in Quicktime Player
> > But as said, I am not convinced that QT is the ideal playback software > for mp4. > Regardless whether it is or not, there is some spec in QuickTime Player which requires .mp4 containers to have h.264 (and obviously now also h.265) video, and aac audio. OTOH I can't remember where I got this from, it's quite some years back... ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Audio not playing in Quicktime Player
2018-01-03 17:50 GMT+01:00 Gabriel Zachmann: > Funny thing is, when I convert to "mov" container, the audio plays fine. (Why "funny", I thought this is expected.) >>> >>> I don't know very much about container format. >>> I always assumed that MOV can contain mp3 as well as aac. >> >> That is exactly what your tests confirmed. > > Sorry, I wanted to say that I always assumed that MP4 can contain > mp3 as well as aac audio tracks. It can, I assume the mp4 files you created play fine with vlc and ffplay. But as said, I am not convinced that QT is the ideal playback software for mp4. Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Audio not playing in Quicktime Player
Funny thing is, when I convert to "mov" container, the audio plays fine. >>> >>> (Why "funny", I thought this is expected.) >> >> I don't know very much about container format. >> I always assumed that MOV can contain mp3 as well as aac. > > That is exactly what your tests confirmed. Sorry, I wanted to say that I always assumed that MP4 can contain mp3 as well as aac audio tracks. Best regards, Gabriel ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Audio not playing in Quicktime Player
2018-01-03 17:24 GMT+01:00 Gabriel Zachmann: >>> Funny thing is, when I convert to "mov" container, the audio plays fine. >> >> (Why "funny", I thought this is expected.) > > I don't know very much about container format. > I always assumed that MOV can contain mp3 as well as aac. That is exactly what your tests confirmed. Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Audio not playing in Quicktime Player
>> Funny thing is, when I convert to "mov" container, the audio plays fine. > > (Why "funny", I thought this is expected.) I don't know very much about container format. I always assumed that MOV can contain mp3 as well as aac. Is that assumption wrong? Best regards, Gabriel ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Audio not playing in Quicktime Player
On Wed, Jan 03, 2018 at 14:09:39 +0100, Carl Eugen Hoyos wrote: > > I can't force ".mp3" on MP4 container though: > > There is a specification Yeah, but I couldn't find it... So that's why I expressed my confusion. Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Audio not playing in Quicktime Player
2018-01-03 14:52 GMT+01:00 Gabriel Zachmann: > Funny thing is, when I convert to "mov" container, the audio plays fine. (Why "funny", I thought this is expected.) > When I convert to MP4, it does not. To the best of my knowledge, mp4 support in QT is limited. Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Audio not playing in Quicktime Player
Sorry about that. Funny thing is, when I convert to "mov" container, the audio plays fine. When I convert to MP4, it does not. Here is the command line, that works: $ffmpeg -i "$input" \ -map 0 -c:s copy -map_metadata 0 \ -c:a copy \ -f mov -codec:v hevc -tag:v hvc1 \ -preset faster -crf 24 \ -t 120 \ "$output" here is the command line, that does *not* work: $ffmpeg -i "$input" \ -map 0 -c:s copy -map_metadata 0 \ -c:a copy \ -f mp4 -codec:v hevc -tag:v hvc1 \ -preset faster -crf 24 \ -t 120 \ "$output" funny enough, this does work: $ffmpeg -i "$input" \ -map 0 -c:s copy -map_metadata 0 \ -c:a aac \ -f mp4 -codec:v hevc -tag:v hvc1 \ -preset faster -crf 24 \ -t 120 \ "$output" Everything else is exactly the same. Complete ffmpeg output below. Best regards, Gabriel ffmpeg output for conversion 1 to mov (which works): 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 libavformat57. 84.100 / 57. 84.100 libavdevice57. 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 libpostproc54. 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.00Z 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.00 com.apple.quicktime.player.movie.audio.treble: 0.00 com.apple.quicktime.player.movie.audio.bass: 0.00 com.apple.quicktime.player.movie.audio.balance: 0.00 com.apple.quicktime.player.movie.audio.pitchshift: 0.00 com.apple.quicktime.player.movie.audio.mute: com.apple.quicktime.player.movie.visual.brightness: 0.00 com.apple.quicktime.player.movie.visual.color: 1.00 com.apple.quicktime.player.movie.visual.tint: 0.00 com.apple.quicktime.player.movie.visual.contrast: 1.00 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.00Z 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.00Z 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
Re: [FFmpeg-user] Audio not playing in Quicktime Player
2018-01-03 14:02 GMT+01:00 Moritz Barsnick: > On Wed, Jan 03, 2018 at 11:39:09 +0100, Gabriel Zachmann wrote: >>Stream #0:1(eng): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, s16p, >> 192 kb/s (default) > > Well, at least this looks peculiar, but I'm no QuickTime/MOV/MP4 > expert. I get the same when remuxing MP3 audio to an MP4 container. > When remuxing to a MOV container, I get ".mp3". > I can't force ".mp3" on MP4 container though: There is a specification and we try not to write invalid files... Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Audio not playing in Quicktime Player
2018-01-03 11:39 GMT+01:00 Gabriel Zachmann: >Stream #0:1(eng): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, s16p, > 192 kb/s (default) Please do not cut excerpts of console output, always provide the ffmpeg command line you tested together with the complete, uncut console output (do not use ffprobe to show issues that can be reproduced with ffmpeg). (I cannot reproduce.) Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Audio not playing in Quicktime Player
On Wed, Jan 03, 2018 at 11:39:09 +0100, Gabriel Zachmann wrote: >Stream #0:1(eng): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, s16p, > 192 kb/s (default) Well, at least this looks peculiar, but I'm no QuickTime/MOV/MP4 expert. I get the same when remuxing MP3 audio to an MP4 container. When remuxing to a MOV container, I get ".mp3". I can't force ".mp3" on MP4 container though: $ ffmpeg -i ~/tmp/h265_mp3.mov -c copy -tag:a ".mp3" ~/tmp/h265_mp3_atag.mp4 ffmpeg version N-89665-gbddf31b Copyright (c) 2000-2018 the FFmpeg developers [...] Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/barsnick/tmp/h265_mp3.mov': [...] Stream #0:1(eng): Audio: mp3 (.mp3 / 0x33706D2E), 48000 Hz, stereo, s16p, 128 kb/s (default) Metadata: handler_name: DataHandler [mp4 @ 0xb7b3140] Tag .mp3 incompatible with output codec id '86017' (mp4a) Could not write header for output file #0 (incorrect codec parameters ?): Invalid data found when processing input It looks like ffmpeg considers "mp4a" to be the correct tag for the MP3 codec in MP4 containers. (If I map to ipod = ".m4a" extension, which I though was just a variation of the MP4 container, ffmpeg does use the ".mp3" tag.) I can't say whether ffmpeg is correct or not, just wondering. Do you have any MP3 audio in MP4 files which play correctly? Does the original MP3 audio in MOV file play correctly? Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Audio not playing in Quicktime Player
> > Why are you not choosing .mov as output format if your target > is QuickTime for which mov was invented? I tried it , to no avail. Stil no sound in Quicktime Player (macOS 10.13.2). It seems to me that macOS does not recognize the audio stream. VLC reports 2 streams; stream 0: type = video, codec = MPEG-H Part 2 / HEVC (H.265) (hevc) stream 1: type = audio, codec = MPEG Audio layer 1/2 (mp4a) ffprobe also reports 2 streams: Stream #0:0(eng): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, progressive), 720x576 [SAR 64:45 DAR 16:9], 215 kb/s, 25 fps, 25 tbr, 12800 tbn, 25 tbc (default) Stream #0:1(eng): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, s16p, 192 kb/s (default) But Quicktime Player seems to see only 1 stream: the info I get is Source: Format: HEVC, 720x576 FPS: 25 Data Size: .. Data Rate: .. Current Size: Nothing else. Best regards, Gabriel ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Audio not playing in Quicktime Player
>> I am converting a video , but when I play the output in Quicktime >> Player on macOS, then the audio seems to be gone. > > Why are you not choosing .mov as output format if your target > is QuickTime for which mov was invented? IIRC, I read somewhere that mp4 is the "standard" format for H265 - but I will try mov, too. Best regards, Gabriel ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Audio not playing in Quicktime Player
2018-01-02 15:44 GMT+01:00 Gabriel Zachmann: > I am converting a video , but when I play the output in Quicktime > Player on macOS, then the audio seems to be gone. Why are you not choosing .mov as output format if your target is QuickTime for which mov was invented? Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Audio not playing in Quicktime Player
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 libavformat57. 84.100 / 57. 84.100 libavdevice57. 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 libpostproc54. 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.00Z 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.00 com.apple.quicktime.player.movie.audio.treble: 0.00 com.apple.quicktime.player.movie.audio.bass: 0.00 com.apple.quicktime.player.movie.audio.balance: 0.00 com.apple.quicktime.player.movie.audio.pitchshift: 0.00 com.apple.quicktime.player.movie.audio.mute: com.apple.quicktime.player.movie.visual.brightness: 0.00 com.apple.quicktime.player.movie.visual.color: 1.00 com.apple.quicktime.player.movie.visual.tint: 0.00 com.apple.quicktime.player.movie.visual.contrast: 1.00 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.00Z 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.00Z 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 :
Re: [FFmpeg-user] Audio not playing in Quicktime Player
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 libavformat57. 84.100 / 57. 84.100 libavdevice57. 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 libpostproc54. 8.100 / 54. 8.100 Any hints and suggestions will be highly appreciated. Best regards, Gabriel Please provide full uncut ffmpeg console output during conversion. This is only the ffmpeg version output. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Audio not playing in Quicktime Player
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 libavformat57. 84.100 / 57. 84.100 libavdevice57. 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 libpostproc54. 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.00Z 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.00 com.apple.quicktime.player.movie.audio.treble: 0.00 com.apple.quicktime.player.movie.audio.bass: 0.00 com.apple.quicktime.player.movie.audio.balance: 0.00 com.apple.quicktime.player.movie.audio.pitchshift: 0.00 com.apple.quicktime.player.movie.audio.mute: com.apple.quicktime.player.movie.visual.brightness: 0.00 com.apple.quicktime.player.movie.visual.color: 1.00 com.apple.quicktime.player.movie.visual.tint: 0.00 com.apple.quicktime.player.movie.visual.contrast: 1.00 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.00Z 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.00Z 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.00Z
Re: [FFmpeg-user] Audio not playing in Quicktime Player
> On Jan 2, 2018, at 9:44 AM, Gabriel Zachmannwrote: > > 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 > libavformat57. 84.100 / 57. 84.100 > libavdevice57. 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 > libpostproc54. 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@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".