<p>The ffmpeg build you have uses libx264 compiled for 10-bit. Apparently one can only build with support for either 8-bit OR 10-bit. So, you'll need a build where libx264 supports 8-bit.</p>

CC BY-SA 3.0
2015-07-11T18:07:38.930Z
2015-07-11T18:07:38.930Z
Gyan
<p>This is my first post here. I am in a situation where my original file is of profile High and transcoding profile is High10. I am suspecting that this is the cause my video is not getting played in jwplayer. I have also tried to set profile to <code>-profile:v high</code>
but no help . I am using ffmpeg version </p>

<p>ffmpeg version 2.6.2</p>

<pre><code>No pixel format specified, yuv420p10le for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
x264 [error]: high profile doesn't support a bit depth of 10
[libx264 @ 0x350d960] Error setting profile high.
[libx264 @ 0x350d960] Possible profiles: baseline main high high10 high422 high444
</code></pre>

<p>Please help me.</p>

CC BY-SA 3.0
2015-07-10T11:18:32.797Z
Like the error message says, use "-pix_fmt yuv420p" and place it after "-profile:v high"
Gyan
CC BY-SA 3.0
2015-07-10T16:41:54.493Z
Tried but ended in _italic_ Incompatible pixel format 'yuv420p' for codec 'libx264', auto-selecting format 'yuv420p10le'
x264 [error]: high profile doesn't support a bit depth of 10
[libx264 @ 0x3acb980] Error setting profile high.
[libx264 @ 0x3acb980] Possible profiles: baseline main high high10 high422 high444
89neuron
CC BY-SA 3.0
2015-07-10T16:44:15.193Z
maybe I need to compile and install ffmpeg than using a build. libx264 seems to be a problem, maybe does not have required codec
89neuron
CC BY-SA 3.0
2015-07-10T17:29:26.057Z
Can you post the entire command you used? And also the output of "ffprobe -i <yourinputfile>"
Gyan
CC BY-SA 3.0
2015-07-10T18:06:43.113Z
Here is the shortest command I am using to check if my "High" video is getting converted to "High" again ----- ffmpeg -i 50_Cent___My_Life_ft__Eminem__Adam_Levine_hd720.mp4 -profile:v high -pix_fmt yuv420p  arvind34.mp4 . The original video downloaded from youtube is of "High " profile which after above command is converted to "High10". ffprobe gives segmentation fault on the input video
89neuron
CC BY-SA 3.0
2015-07-10T18:21:12.813Z
Try ffmpeg -i 50_Cent...mp4 -c:v libx264 -crf 23 -profile:v high -pix_fmt yuv420p -c:a copy arvind34.mp4 2> log.txt      ---   and paste log.txt here
Gyan
CC BY-SA 3.0
2015-07-10T18:28:38.110Z
here it is, short link to this http://pastebin.com/p9y5qqEu
89neuron
CC BY-SA 3.0
2015-07-10T19:22:07.220Z
Ok. Run "ffmpeg -h encoder=libx264 > x264.txt" and paste the line from that textfile starting with 'Supported pixel formats'
Gyan
CC BY-SA 3.0
2015-07-11T04:31:24.977Z
here  it is > http://pastebin.com/hQrPZMKZ
89neuron
CC BY-SA 3.0
2015-07-11T04:50:11.420Z
There you go. the ffmpeg build you have uses libx264 compiled for 10-bit. Apparently one can only build with support for either 8-bit OR 10-bit. So, you'll need a build where libx264 supports 8-bit. Now, the archive that you downloaded includes separate ffmpeg builds for both 8-bit and 10-bit. Can you confirm if you aren't actually running the 10-bit version. And if the build compiler has made a mistake, just download the latest iteration.
Gyan
CC BY-SA 3.0
2015-07-11T16:51:49.627Z
Yes that is what initially suspected. Thanks for making this discussion so far. I compiled ffmpeg from source and it seems to be solving my problem.Please post your last comment as an answer so that I can mark and close it. Thanks!
89neuron
CC BY-SA 3.0
2015-07-11T18:09:10.430Z
Answer posted. Glad it worked out.
Gyan
CC BY-SA 3.0
2016-01-21T03:21:21.580Z
Just a FWIW - In the OP's first comment (above), mention is made of a `Incompatible pixel format 'yuv420p' for codec 'libx264', auto-selecting format 'yuv420p10le' ` error being thrown.  This can most likely be obviated by using `yuv420p10le` as the option for the `-pix_fmt` option, vice `yuv420p`.  IHTH someone!
Digger
<ffmpeg><mp4>
How to encode video to profile high using ffmpeg?
89neuron
# How to encode video to profile high using ffmpeg?

(Asked by: username_0 on 2015-07-10)

This is my first post here. I am in a situation where my original file is of profile High and transcoding profile is High10. I am suspecting that this is the cause my video is not getting played in jwplayer. I have also tried to set profile to -profile:v high
but no help . I am using ffmpeg version 
ffmpeg version 2.6.2
No pixel format specified, yuv420p10le for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
x264 [error]: high profile doesn't support a bit depth of 10
[libx264 @ 0x350d960] Error setting profile high.
[libx264 @ 0x350d960] Possible profiles: baseline main high high10 high422 high444

Please help me.

**Tags:** ffmpeg, mp4

> **Comments:**
> **username_1**: Like the error message says, use "-pix_fmt yuv420p" and place it after "-profile:v high"  
> **username_0**: Tried but ended in _italic_ Incompatible pixel format 'yuv420p' for codec 'libx264', auto-selecting format 'yuv420p10le' x264 [error]: high profile doesn't support a bit depth of 10 [libx264 @ 0x3acb980] Error setting profile high. [libx264 @ 0x3acb980] Possible profiles: baseline main high high10 high422 high444  
> **username_0**: maybe I need to compile and install ffmpeg than using a build. libx264 seems to be a problem, maybe does not have required codec  
> **username_1**: Can you post the entire command you used? And also the output of "ffprobe -i <yourinputfile>"  
> **username_0**: Here is the shortest command I am using to check if my "High" video is getting converted to "High" again ----- ffmpeg -i 50_Cent___My_Life_ft__Eminem__Adam_Levine_hd720.mp4 -profile:v high -pix_fmt yuv420p  arvind34.mp4 . The original video downloaded from youtube is of "High " profile which after above command is converted to "High10". ffprobe gives segmentation fault on the input video  
> **username_1**: Try ffmpeg -i 50_Cent...mp4 -c:v libx264 -crf 23 -profile:v high -pix_fmt yuv420p -c:a copy arvind34.mp4 2> log.txt      ---   and paste log.txt here  
> **username_0**: here it is, short link to this http://pastebin.com/p9y5qqEu  
> **username_1**: Ok. Run "ffmpeg -h encoder=libx264 > x264.txt" and paste the line from that textfile starting with 'Supported pixel formats'  
> **username_0**: here  it is > http://pastebin.com/hQrPZMKZ  
> **username_1**: There you go. the ffmpeg build you have uses libx264 compiled for 10-bit. Apparently one can only build with support for either 8-bit OR 10-bit. So, you'll need a build where libx264 supports 8-bit. Now, the archive that you downloaded includes separate ffmpeg builds for both 8-bit and 10-bit. Can you confirm if you aren't actually running the 10-bit version. And if the build compiler has made a mistake, just download the latest iteration.  
> **username_0**: Yes that is what initially suspected. Thanks for making this discussion so far. I compiled ffmpeg from source and it seems to be solving my problem.Please post your last comment as an answer so that I can mark and close it. Thanks!  
> **username_1**: Answer posted. Glad it worked out.  
> **username_2**: Just a FWIW - In the OP's first comment (above), mention is made of a `Incompatible pixel format 'yuv420p' for codec 'libx264', auto-selecting format 'yuv420p10le' ` error being thrown.  This can most likely be obviated by using `yuv420p10le` as the option for the `-pix_fmt` option, vice `yuv420p`.  IHTH someone!  

---

## 1 answers

### Answer by username_1 on 2015-07-11. Score: 1 | Accepted answer

The ffmpeg build you have uses libx264 compiled for 10-bit. Apparently one can only build with support for either 8-bit OR 10-bit. So, you'll need a build where libx264 supports 8-bit.


---

