Ask Different (Apple)
Q&A for power users of Apple hardware and software
Latest Questions
6
votes
3
answers
3919
views
Is it possible to extend Quick Look to support h.265?
H.265 (or HEVC) is the official successor to H.264, with a significant reduction in bitrate for the same picture quality. However it's not supported widely yet, including in Quicktime, iTunes or Quick Look in the Finder (cmd+space) and I haven't seen anyone talking about support in OSX 10.11 (El Cap...
H.265 (or HEVC) is the official successor to H.264, with a significant reduction in bitrate for the same picture quality.
However it's not supported widely yet, including in Quicktime, iTunes or Quick Look in the Finder (cmd+space) and I haven't seen anyone talking about support in OSX 10.11 (El Capitan).
I can view files in, for example, VLC, but was wondering if there's any sort of plugin for Quick Look.
William Turrell
(855 rep)
Jun 18, 2015, 08:02 AM
• Last activity: Aug 21, 2023, 02:50 PM
5
votes
0
answers
1442
views
How to make Youtube serve videos in h264 in Safari instead of VP9
So if remember correctly with Safari 15 Youtube started to serve videos in VP9 instead of h264 as it was before. Which enabled resolutions over 1080p but disabled GPU decoding. Which is producing quite a sizeable load especially on older CPUs. On Chrome and Firefox we have h264ify (or Enhanced h264i...
So if remember correctly with Safari 15 Youtube started to serve videos in VP9 instead of h264 as it was before. Which enabled resolutions over 1080p but disabled GPU decoding. Which is producing quite a sizeable load especially on older CPUs.
On Chrome and Firefox we have h264ify (or Enhanced h264ify) extensions which enables you to choose what codec to serve your videos in but what about Safari? Had anyone found a solution for this particular inconvenience?
iskra
(5578 rep)
Jul 11, 2023, 01:00 PM
• Last activity: Jul 11, 2023, 01:13 PM
4
votes
1
answers
3221
views
How do I get ffmpeg to encode using constant quality with h264_videotoolbox hardware acceleration for Macs?
Background info: Apple provides hardware acceleration support for encoding h264 and h265 videos through VideoToolbox. ffmpeg has built-in support for VideoToolbox through the h264_videotoolbox codec. Problem: I have a bunch of .png images I want to make into a high-quality mp4 video. Using "-crf 18"...
Background info: Apple provides hardware acceleration support for encoding h264 and h265 videos through VideoToolbox. ffmpeg has built-in support for VideoToolbox through the h264_videotoolbox codec.
Problem: I have a bunch of .png images I want to make into a high-quality mp4 video. Using "-crf 18" works fine without hardware acceleration, as in the following:
ffmpeg -pattern_type glob -i '*.png' -framerate 25 -c:v libx264 -crf 18 -preset veryslow out.mp4
But this takes forever. I can force a bitrate and use my Mac's hardware acceleration by doing something like this:
ffmpeg -hwaccel videotoolbox -pattern_type glob -i '*.png' -framerate 25 -c:v h264_videotoolbox -b:v 7000k out.mp4
...which encodes at 100fps rather than E..V..... Profile (from 0 to 4) (default 0)
baseline E..V..... Baseline Profile
main E..V..... Main Profile
high E..V..... High Profile
-level E..V..... Level (from 0 to 52) (default 0)
1.3 E..V..... Level 1.3, only available with Baseline Profile
3.0 E..V..... Level 3.0
3.1 E..V..... Level 3.1
3.2 E..V..... Level 3.2
4.0 E..V..... Level 4.0
4.1 E..V..... Level 4.1
4.2 E..V..... Level 4.2
5.0 E..V..... Level 5.0
5.1 E..V..... Level 5.1
5.2 E..V..... Level 5.2
-coder E..V..... Entropy coding (from 0 to 2) (default 0)
cavlc E..V..... CAVLC entropy coding
vlc E..V..... CAVLC entropy coding
cabac E..V..... CABAC entropy coding
ac E..V..... CABAC entropy coding
-a53cc E..V..... Use A53 Closed Captions (if available) (default true)
-allow_sw E..V..... Allow software encoding (default false)
-require_sw E..V..... Require software encoding (default false)
-realtime E..V..... Hint that encoding should happen in real-time if not faster (e.g. capturing from camera). (default false)
-frames_before E..V..... Other frames will come before the frames in this session. This helps smooth concatenation issues. (default false)
-frames_after E..V..... Other frames will come after the frames in this session. This helps smooth concatenation issues. (default false)
```
What is "level"? How do "baseline"/"main"/"high" differ and what is a "profile"...?
I'd appreciate examples of how to use h264_videotoolbox properly with ffmpeg and specifically how to achieve something like the CRF option that exists with the default h264 codec.
M. C.
(109 rep)
Jul 13, 2020, 10:58 PM
• Last activity: Feb 23, 2023, 10:02 AM
2
votes
3
answers
3320
views
How do I encode mp4 files with H.264 (or x264) codec in AVIDemux?
I am trying to get AVIDemux set up with the X264 codec using [this][1] tutorial. The following is what goes down when I get to the `./configure --enable-mp4-output` command Thomas-Phillipss-MacBook:x264 tomdabomb2u$ sudo ./configure --enable-mp4-output Password: Unknown option --enable-mp4-output, i...
I am trying to get AVIDemux set up with the X264 codec using this tutorial. The following is what goes down when I get to the
./configure --enable-mp4-output
command
Thomas-Phillipss-MacBook:x264 tomdabomb2u$ sudo ./configure --enable-mp4-output
Password:
Unknown option --enable-mp4-output, ignored
Found no assembler
Minimum version is yasm-0.6.2
If you really want to compile without asm, configure with --disable-asm.
So I tried it.
Thomas-Phillipss-MacBook:x264 tomdabomb2u$ sudo ./configure --enable-mp4-output --disable-asm
Unknown option --enable-mp4-output, ignored
Warning: gpac is too old, update to 2007-06-21 UTC or later
Platform: X86_64
System: MACOSX
asm: no
avs: no
lavf: no
ffms: no
gpac: no
pthread: yes
filters: crop select_every
debug: no
gprof: no
PIC: no
shared: no
visualize: no
bit depth: 8
You can run 'make' or 'make fprofiled' now.
I issued make
, and then Thomas-Phillipss-MacBook:x264 tomdabomb2u$ ./x264 -v -q 20 -o foreman.mp4 foreman_part_qcif.yuv 176x144
. And as expected, the results are:
x264 [error]: not compiled with MP4 output support
So I'm stuck. Any ideas?
Thomas
(2880 rep)
Sep 1, 2010, 07:50 PM
• Last activity: May 16, 2018, 02:54 AM
0
votes
2
answers
2775
views
Does any OS X hardware contain on chip h.264 encoding/decoding?
I know that iOS devices have the h.264 instruction set on chip, which helps to dramatically reduce processing (and thus, power, battery drain, etc.) when watching native video. Has this been added to Intel CPUs, or ATI/nVidia GPUs, in Apple's Desktop/Laptop hardware?
I know that iOS devices have the h.264 instruction set on chip, which helps to dramatically reduce processing (and thus, power, battery drain, etc.) when watching native video.
Has this been added to Intel CPUs, or ATI/nVidia GPUs, in Apple's Desktop/Laptop hardware?
Jason Salaz
(25167 rep)
Sep 12, 2012, 08:58 AM
• Last activity: Aug 6, 2017, 02:51 PM
2
votes
1
answers
4466
views
VLC is dropping frames/stuttering when trying to play 1080p@60FPS video on rMBP w. 2.3 GHz Intel Core i7
When I try to play a video with 1920x1080 pixels and 60fps, in H.264 format using VLC player. It cannot keep up with this work and frequently drops frames (in other words, it's not playing it "smoothly"). OS X's QuickTime player seems to be free from this problem, but it's not a solution, since it's...
When I try to play a video with 1920x1080 pixels and 60fps, in H.264 format using VLC player. It cannot keep up with this work and frequently drops frames (in other words, it's not playing it "smoothly").
OS X's QuickTime player seems to be free from this problem, but it's not a solution, since it's limited to a small subset of formats (can't handle 10-bit or 4:2:2 colorspaces, or MKV container, etc.)
Is there a way to fix that problem (without upgrading to macOS Sierra), or I should look for another video player if VLC's performance is not good enough?
The computer is a Retina MacBook Pro with a 2.3 GHz i7 processor and a NVIDIA GeForce GT 750M 2048 MB dedicated GPU, and OS X version is 10.11.6. I'm not sure how to check if secondary GPU is being really used for heavy lifting instead of Intel one when playing videos.
VLC says it's up to date:
>VLC 2.2.4 is currently the newest version available
Display Name
(1551 rep)
Dec 1, 2016, 12:49 PM
• Last activity: Apr 25, 2017, 07:38 PM
2
votes
1
answers
1167
views
iOS cannot play "slow" or "veryslow" h.264 videos
I have encoded a video that I want to transfer to my iPad. Using FFmpeg, the settings are: ffmpeg -i input.mkv -c:v libx264 -preset veryslow -crf 32 output.mp4" When I have tried the presets `veryslow` and `slow`, I get this message when trying to sync the video via iTunes to the device: > "[Your Fi...
I have encoded a video that I want to transfer to my iPad.
Using FFmpeg, the settings are:
ffmpeg -i input.mkv -c:v libx264 -preset veryslow -crf 32 output.mp4"
When I have tried the presets
veryslow
and slow
, I get this message when trying to sync the video via iTunes to the device:
> "[Your File] was not copied to the [Device Name] because it cannot be
> played on this iPad."
However, I have tried encoding the same video using the preset medium
and sync and playback in iOS's *Videos* app works.
Is there a work-around to get the "slow" preset videos onto the iPad?
P A N
(10354 rep)
Jun 25, 2016, 01:13 PM
• Last activity: Jun 27, 2016, 10:12 AM
0
votes
1
answers
146
views
Handbrake CLI Transcoded Video not Playable in Quicktime and Itunes
i am transcoding a bunch of videos with handbrake CLI. Therfore i use this presets: for i in `seq 0 10`; do f=$(($i-1)); HandBrakeCLI -i /Videofolder/ -t $i -O -f av_mp4 -e x264 -q 19 --h264-profile high --h264-level 4.1 --x264-preset medium --decomb -q 19 -a 1,3 -s "1,3" -E copy:ac3 -o ~/Desktop/Vi...
i am transcoding a bunch of videos with handbrake CLI. Therfore i use this presets:
for i in
seq 0 10
; do f=$(($i-1)); HandBrakeCLI -i /Videofolder/ -t $i -O
-f av_mp4 -e x264 -q 19 --h264-profile high --h264-level 4.1
--x264-preset medium --decomb -q 19 -a 1,3 -s "1,3"
-E copy:ac3 -o ~/Desktop/Video$(($f+1)).m4v; done
The Problem is the result is not playable, not in Itunes neither in Quicktime. VLC does just fine. Quicktime starts trancoding this Video and after about 20 secs its playing it back. Has anyone got a hint for me whats my mistake?
Greenings and a big thank you :)
user154501
(21 rep)
Oct 27, 2015, 10:27 AM
• Last activity: Oct 27, 2015, 01:35 PM
6
votes
4
answers
13914
views
What is the best way to convert MPEG-2 videos to MP4 H.264?
I've been playing around, trying to find the best settings for converting DVD files (MPEG-2) to H.264 so that I can store everything in iTunes and watch it on the TV. Most of the stuff I have has been ripped using a DVD Recorder. I am in the UK and am using the PAL format. I want to keep it as true...
I've been playing around, trying to find the best settings for converting DVD files (MPEG-2) to H.264 so that I can store everything in iTunes and watch it on the TV. Most of the stuff I have has been ripped using a DVD Recorder. I am in the UK and am using the PAL format. I want to keep it as true to the original as possible, including all interlacing.
If I use Handbrake, it tries to crop bits off and resizes to a weird dimension, so I have to work to switch all of that off. Also, even if I try to turn off all the decombing and deinterlacing options, including putting the
Also, ripping from TV keeps some lines at the top of the screen which contain white dots (some kind of syncing data?)... If I crop the video so it removes them then obviously that makes the aspect ratio wrong... Does that affect how it will play back on a TV?
If anyone has some good tips on how best to rip stuff, please let me know!
:interlaced
flag in the advanced options, when I play it back on the TV it has somehow destroyed the interlacing and no longer appears smooth.
I've also tried VisualHub, which is much more simple to set up and keeps the interlacing in fine by default. I find that also converting to H.264 using MPEG StreamClip works just as well. However, one thing I have noticed while converting a TV programme about Pink Floyd is that the conversion to H.264 is making some of the colours washed out. On the computer, the green seems a bit lighter, and on the TV the red looks more like pink. Here's a screen grab from QuickTime Player (left one is MPEG-2 and the other two are MP4 H.264):

Jowie
(406 rep)
Dec 30, 2011, 02:02 PM
• Last activity: Oct 21, 2015, 07:08 AM
6
votes
5
answers
14742
views
Efficient MKV H.264 player with GPU decoding for Mac OS X
How can I play MKV files from QuickTime in Mavericks? I used to use Perian but it hangs and the other third party players are very inefficient as QuickTime is the most optimized software among the ones I analyzed.
How can I play MKV files from QuickTime in Mavericks?
I used to use Perian but it hangs and the other third party players are very inefficient as QuickTime is the most optimized software among the ones I analyzed.
swineone
(2411 rep)
Dec 27, 2013, 02:06 PM
• Last activity: Mar 16, 2015, 08:18 PM
1
votes
1
answers
269
views
App to convert .h264 video on ipad to watch in "Photos" app?
I have a video clip with extention ".h264" on my online storage, and i want to save it in "Photos" app on my iPad and watch it there... Is there an app for that? I think it might need to be converted to a playable format even before putting it in Photos. Thanks!
I have a video clip with extention ".h264" on my online storage, and i want to save it in "Photos" app on my iPad and watch it there... Is there an app for that? I think it might need to be converted to a playable format even before putting it in Photos. Thanks!
tomatoos
(11 rep)
Dec 29, 2014, 08:14 AM
• Last activity: Jan 16, 2015, 07:00 AM
2
votes
2
answers
14021
views
Handbrake x264 encodes .m4v/.mp4 not accepted in iTunes
It seems like every once in awhile, when using Handbrake to encode a DVD rip to x264 with either the mp4 or m4v extension, I can't add the resulting file to my iTunes Library. When dragging and dropping, the Library window highlights like it's going to accept (If you try to drag an unsupported file,...
It seems like every once in awhile, when using Handbrake to encode a DVD rip to x264 with either the mp4 or m4v extension, I can't add the resulting file to my iTunes Library. When dragging and dropping, the Library window highlights like it's going to accept (If you try to drag an unsupported file, the window doesn't highlight, and the thumbnail you're dragging flies back to the original folder).
If I rip a handful of movies and do an overnight encode session, in the morning some of the files can be added to the library, some can't. I have to re-do the ones that don't work. Is there a way to found out what the problem is? An iTunes setting that will output what it doesn't like about certain files? A piece of software that can validate the files? The resulting files play in VLC and Quicktime Player regardless of if they're added to my iTunes Library.
Daddy
(301 rep)
Aug 16, 2012, 07:36 PM
• Last activity: Nov 3, 2014, 07:28 AM
1
votes
1
answers
501
views
Import H.264 videos into Final Cut Pro X
I tried to import an H.264 video into Final Cut Pro X without success. The software tells me that the file is not importable. [VideoSpec][1] shows me the following video track parameters: - Format: H.264/MPEG-4 AVC - Bitrate: Max.: Undefined / Average: 725 Kbps / Min.: Undefined - Frame rate (fps):...
I tried to import an H.264 video into Final Cut Pro X without success. The software tells me that the file is not importable.
VideoSpec shows me the following video track parameters:
- Format: H.264/MPEG-4 AVC
- Bitrate: Max.: Undefined / Average: 725 Kbps / Min.: Undefined
- Frame rate (fps): Max.: Undefined / Average: 25.000 / Min.: Undefined
- Encoding profile: High@L3.0
- Image size: 720*576
- Pixel Aspect Ratio: Undefined
- Display Aspect Ratio: 16:9
- Interlacing: Progressive
splattne
(981 rep)
Aug 20, 2012, 09:12 AM
• Last activity: Sep 29, 2013, 04:17 PM
14
votes
5
answers
8302
views
If iPhones/iPads don't support Flash, how do they play YouTube?
Which technology do iPhones and iPads use to play YouTube without supporting Flash?
Which technology do iPhones and iPads use to play YouTube without supporting Flash?
Student
(1386 rep)
Feb 16, 2011, 12:44 PM
• Last activity: Feb 13, 2013, 09:05 AM
0
votes
2
answers
1180
views
Is a Mac Mini G4 capable of 1080p MP4/H.264 playback?
Looking for a HTPC, and I noticed the G4 Mac Minis are relatively cheap to get. I just wonder, do they support 1080p playback for MP4/H.264 files?
Looking for a HTPC, and I noticed the G4 Mac Minis are relatively cheap to get. I just wonder, do they support 1080p playback for MP4/H.264 files?
Michael Stum
(1770 rep)
Nov 6, 2011, 05:36 AM
• Last activity: Nov 6, 2011, 12:42 PM
1
votes
2
answers
3474
views
find video codec from terminal
I'm writing some shell scripts that automatically convert some video files. Except I don't want to run the conversion on files that are already h264 encoded. Is there a way I can tell via a terminal command whether a video has a certain codec?
I'm writing some shell scripts that automatically convert some video files. Except I don't want to run the conversion on files that are already h264 encoded. Is there a way I can tell via a terminal command whether a video has a certain codec?
Rob
(11 rep)
Aug 16, 2011, 03:16 PM
• Last activity: Aug 16, 2011, 06:56 PM
Showing page 1 of 16 total questions