cine-encoder icon indicating copy to clipboard operation
cine-encoder copied to clipboard

H.265/HEVC 8 bit encoding error

Open chlowden opened this issue 3 years ago • 2 comments

Hello I am trying to reencode PRORES 422 HQ 2336x1080 files to H.265 8bit. I have tried all the presets in High Quality H265 8 bit and I get the same error below:


Preset pass 1: -hide_banner -i <input file> -map 0:v:0? -map 0:a:0? -map_metadata -1 -map_metadata:s:v:0 -1 -metadata:s:a:0 language= -metadata:s:a:0 title= -pix_fmt yuv420p -c:v libx265 -profile:v main -preset slow -b:v 0 -cq 19 -qmin 19 -qmax 19 -x265-params pass=1 -an -sn -f null /dev/null

Preset pass 2: -hide_banner -i <input file> -map 0:v:0? -map 0:a:0? -map_metadata -1 -map_metadata:s:v:0 -1 -metadata:s:a:0 language= -metadata:s:a:0 title= -pix_fmt yuv420p -c:v libx265 -profile:v main -preset slow -b:v 0 -cq 19 -qmin 19 -qmax 19 -x265-params pass=2 -c:a aac -b:a 256k -c:s mov_text -y <output file>

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/run/media/admin/LOWDEN_TRAN/211211_COSTA_RICA_HOLIDAY/COSTA RICA DIARY/211209-12.mov':
 Metadata:
 major_brand : qt 
 minor_version : 512
 compatible_brands: qt 
 encoder : Lavf58.29.100
 Duration: 00:16:17.17, start: 0.000000, bitrate: 143481 kb/s

 Stream #0:0: Video: prores (apcn / 0x6E637061), yuv422p10le, 2336x1080, 141947 kb/s, SAR 1:1 DAR 292:135, 30 fps, 30 tbr, 90k tbn, 90k tbc (default)
 Metadata:
 handler_name : DataHandler
 Stream #0:1: Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default)
 Metadata:
 handler_name : DataHandler
Codec AVOption cq (Set target quality level (0 to 51, 0 means automatic) for constant quality mode in VBR rate control) specified for output file #0 (/dev/null) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
Stream mapping:
 Stream #0:0 -> #0:0 (prores (native) -> hevc (libx265))
Press [q] to stop, [?] for help

[libx265 @ 0x25455c0] [Eval @ 0x7ffdc9c6adc0] Undefined constant or missing '(' in 'main'
[libx265 @ 0x25455c0] Unable to parse option value "main"
[libx265 @ 0x25455c0] Error setting option profile to value main.
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

Conversion failed!

The main menu is greyed out. When I try the High Quality H265 HDR 10 bit presets, I don't get the main error but the export crashes in the last second. What I am looking for is the highest quality to smallest file ratio so I figure the H.265 8bit best for me. Do you have an idea how I can troubleshoot this? Thanks

chlowden avatar Feb 27 '22 14:02 chlowden

Hello! Probably because of the 2-pass coding, try changing it to 1 pass.

CineEncoder avatar Feb 28 '22 21:02 CineEncoder

Hello

Sadly, it is doing the same thing in 1 or 2 passes on the libx265

libx264 works fine. Thanks

On 28/02/2022 22:24, CineEncoder wrote:

Hello! Probably because of the 2-pass coding, try changing it to 1 pass.

— Reply to this email directly, view it on GitHub https://github.com/CineEncoder/cine-encoder/issues/26#issuecomment-1054676949, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTPXSUOFQP3KAQ3N2FEDS3U5PRYBANCNFSM5PPBD3LQ. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.***>

chlowden avatar Feb 28 '22 23:02 chlowden