Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-07-11T18:07:38.930Z
Answers.LastActivityDate: 2015-07-11T18:07:38.930Z
Answers.UserDisplayName: Gyan
Body: <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>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-10T11:18:32.797Z
Comments.Text: Like the error message says, use "-pix_fmt yuv420p" and place it after "-profile:v high"
Comments.UserDisplayName: Gyan
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-10T16:41:54.493Z
Comments.Text: 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
Comments.UserDisplayName: 89neuron
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-10T16:44:15.193Z
Comments.Text: maybe I need to compile and install ffmpeg than using a build. libx264 seems to be a problem, maybe does not have required codec
Comments.UserDisplayName: 89neuron
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-10T17:29:26.057Z
Comments.Text: Can you post the entire command you used? And also the output of "ffprobe -i <yourinputfile>"
Comments.UserDisplayName: Gyan
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-10T18:06:43.113Z
Comments.Text: 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
Comments.UserDisplayName: 89neuron
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-10T18:21:12.813Z
Comments.Text: 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
Comments.UserDisplayName: Gyan
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-10T18:28:38.110Z
Comments.Text: here it is, short link to this http://pastebin.com/p9y5qqEu
Comments.UserDisplayName: 89neuron
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-10T19:22:07.220Z
Comments.Text: Ok. Run "ffmpeg -h encoder=libx264 > x264.txt" and paste the line from that textfile starting with 'Supported pixel formats'
Comments.UserDisplayName: Gyan
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-11T04:31:24.977Z
Comments.Text: here  it is > http://pastebin.com/hQrPZMKZ
Comments.UserDisplayName: 89neuron
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-11T04:50:11.420Z
Comments.Text: 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.
Comments.UserDisplayName: Gyan
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-11T16:51:49.627Z
Comments.Text: 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!
Comments.UserDisplayName: 89neuron
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-11T18:09:10.430Z
Comments.Text: Answer posted. Glad it worked out.
Comments.UserDisplayName: Gyan
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-01-21T03:21:21.580Z
Comments.Text: 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!
Comments.UserDisplayName: Digger
Tags: <ffmpeg><mp4>
Title: How to encode video to profile high using ffmpeg?
UserDisplayName: 89neuron
ThreadText: # 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.
  
  
  ---
  
  