lisamelton / other_video_transcoding

Other tools to transcode videos.
MIT License
545 stars 25 forks source link

transcoding failed due to "high profile doesn't support a bit depth of 10" error #48

Open stephenbrannen opened 4 years ago

stephenbrannen commented 4 years ago

I'm attempting to use batch encoding, I've had a few different files error out due to issues with bit depth.


Transcoding...
x264 [error]: high profile doesn't support a bit depth of 10
[libx264 @ 0x559491f90dc0] Error setting profile high.
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height```
lisamelton commented 4 years ago

@stephenbrannen I'm sorry you're having this problem. But to help I'll need more information:

  1. What options are you passing to other-transcode?

  2. Is your input 10-bit HDR format or something like that?

  3. Can you attach your .log file from the failed attempt?

stephenbrannen commented 4 years ago
  1. I'm using batch processing and only passing in burn-subtitle: ./batch.rb --burn-subtitle auto
  2. I'm not sure the exact format, I'm processing media I've ripped over the course of years. From what I can tell it appears to be 10 bit (not sure if HDR). I used mediainfo to get this: `mediainfo --Output='Video;%BitDepth%' ../Movies/Apocalypse\ Now\ \(1979\)/Apocalypse\ Now\ \(1979\)\ Bluray-1080p.mkv
  3. I have attached the log file as requested. _ffmpeg_54797_468330.mkv.log
lisamelton commented 4 years ago

@stephenbrannen Thanks for the .log file!

Yes, that's a 10-bit HEVC source and you can't transcode that to 8-bit using x264. Sorry about that.

Just out of curiosity, do you have any hardware encoders available?

stephenbrannen commented 4 years ago

It should be using the nvenc h264 encoder (I can see a thread from ffmpeg when I look at nvidia-smi).

Is it possible to transcode via other_video_transcoding using any settings?

docmcfreckles commented 3 years ago

This is similar to an issue I just created: https://github.com/donmelton/other_video_transcoding/issues/73#issue-714439213

With the help of this post on SuperUser I was able to get my video to transcode by passing -vf format=yuv420p in the ffmpeg command that other-transcode generates. You might be able to get it to transcode. I'm not sure if there is a flag for this in other-transcode that will let you batch process however.

lisamelton commented 3 years ago

@stephenbrannen and @docmcfreckles Please see my new comment in #73. Thanks.