formato de pixel incompatível 'yuv420p10le' para codec libx265

1

Estou usando

ffmpeg -probesize 2G -i input.ts -c:v libx265 -pix_fmt yuv420p10le -x265-params fps=50 -c:a libfdk_aac -t 00:00:05 /output.ts

Eu recebo o erro

incompatible pixel format 'yuv420p10le' for codec libx265m, auto-selecting format 'yuv420p'

Estou tentando criar um vídeo UHD com profundidade de cor de 10 bits a partir de um vídeo UHD com formato de pixel yuv420

Alguma idéia?

ffmpeg version 2.5.3 Copyright (c) 2000-2015 the FFmpeg developers
built on Jan 19 2015 10:40:37 with Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
configuration: --prefix=/usr/local/Cellar/ffmpeg/2.5.3 --enable-shared --enable-pthreads -- 
enable-gpl 
--enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-   
ldflags= --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-  
libfreetype --enable-libvorbis --enable-libvpx --enable-libass --enable-ffplay --enable-libfdk-
aac --enable-libopus --enable-libquvi --enable-libx265 --enable-nonfree --enable-vda


libavutil      54. 15.100 / 54. 15.100
libavcodec     56. 13.100 / 56. 13.100
libavformat    56. 15.102 / 56. 15.102
libavdevice    56.  3.100 / 56.  3.100
libavfilter     5.  2.103 /  5.  2.103
libavresample   2.  1.  0 /  2.  1.  0
libswscale      3.  1.101 /  3.  1.101
libswresample   1.  1.100 /  1.  1.100
libpostproc    53.  3.100 / 53.  3.100

Input #0, mpegts, from '/users/user/Documents/Capture4_HEVC_25M.ts':
Duration: 00:11:23.50, start: 2.000000, bitrate: 27892 kb/s
Program 1 
Stream #0:0[0x1e1]: Video: hevc (Main) ([36][0][0][0] / 0x0024), yuv420p(tv), 3840x2160 [SAR 1:1   
DAR 16:9], 50 fps, 50 tbr, 90k tbn, 50 tbc
Stream #0:1[0x1e2](und): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 129  
kb/s
File '/Users/user/documents/4k_h265_50fps_10bit.ts' already exists. Overwrite ? [y/N] 
Incompatible pixel format 'yuv420p10le' for codec 'libx265', auto-selecting format 'yuv420p'
x265 [info]: HEVC encoder version 1.4
x265 [info]: build info [Mac OS X][clang 6.0.0][64 bit] 8bpp
x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
x265 [info]: Main profile, Level-5.1 (Main tier)
x265 [info]: WPP streams / frame threads / pool  : 34 / 2 / 4
x265 [info]: CTU size / RQT depth inter / intra  : 64 / 1 / 1
x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 2
x265 [info]: Keyframe min / max / scenecut       : 25 / 250 / 40
x265 [info]: Lookahead / bframes / badapt        : 20 / 4 / 2
x265 [info]: b-pyramid / weightp / weightb / refs: 1 / 1 / 0 / 3
x265 [info]: Rate Control / AQ-Strength / CUTree : CRF-28.0 / 1.0 / 1
x265 [info]: tools: rd=3 lft sao signhide tmvp 
Output #0, mpegts, to '/Users/user/documents/4k_h265_50fps_10bit.ts':
Metadata:
encoder         : Lavf56.15.102
Stream #0:0: Video: hevc (libx265), yuv420p, 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 50 fps, 90k   
tbn, 50 tbc
Metadata:
  encoder         : Lavc56.13.100 libx265
Stream #0:1(und): Audio: aac (libfdk_aac), 48000 Hz, stereo, s16, 139 kb/s
Metadata:
  encoder         : Lavc56.13.100 libfdk_aac
Stream mapping:
Stream #0:0 -> #0:0 (hevc (native) -> hevc (libx265))
Stream #0:1 -> #0:1 (aac (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
    
por James Mclaren 16.01.2015 / 17:42

1 resposta

1

O problema é que o seu codificador x265 é construído somente com suporte a 8bpp:

build info [Mac OS X][clang 6.0.0][64 bit] 8bpp

Você tem que recompilar x265. Como você está usando o OS X, eu faria isso com o Homebrew usando o formula option 16-bit . Use reinstall ao invés de install se você já instalou o x265 / ffmpeg no Homebrew antes:

brew install x265 --16-bit

Então, eu reinstalaria o ffmpeg:

brew install ffmpeg --with-fdk-aac --with-x265 

Você também pode usar opções como:

--with-freetype --with-libass --with-libvorbis --with-libvpx --with-opus 
    
por 20.01.2015 / 12:45