Discussion:
[FFmpeg-user] ffmpeg x265 profile Main10
Osztrovszky Zsolt
2015-07-21 08:15:50 UTC
Permalink
Hello Guys,
I’d like to create an h265 video with Main10 profile (10 bits).
However ffmpeg keeps saying that profile=main10 is an unknown option.
My command:
ffmpeg -i vid.ts -c:v libx265 -preset medium -x265-params “profile=main10:crf=30” -c:a aac strict experimental -b:a 128k output.mp4

please help me

cheers,
Zsolt


________________________________
FIGYELMEZTETÉS:
"Ez az e-mail bizalmas információkat tartalmaz kizárólag a címzett(ek) számára. Amennyiben Ön nem címzettje ennek az e-mail-nek, felhívjuk figyelmét arra, hogy az e-mail tartalmának közzététele, másolása, illetéktelenek számára való továbbítása, megőrzése vagy bármilyen hasonló tevékenység tilos és törvénybe ütköző."
tim nicholson
2015-07-21 09:33:57 UTC
Permalink
Post by Osztrovszky Zsolt
Hello Guys,
I’d like to create an h265 video with Main10 profile (10 bits).
However ffmpeg keeps saying that profile=main10 is an unknown option.
ISTR that x265 profiles are not yet supported, however you can still
make a MAIN10 file by setting other parameters. for example:-

-c:v libx265 -pix_fmt yuv420p10le \
-preset fast \
-x265-params level=5.2:vbv-bufsize=60000:vbv-maxrate=60000:crf=20

Prodcued some thing that when probed shows:-

Stream #0:0(und): Video: hevc (Main 10) (hev1 / 0x31766568),
yuv420p10le(tv), 3840x2160.....
Post by Osztrovszky Zsolt
ffmpeg -i vid.ts -c:v libx265 -preset medium -x265-params “profile=main10:crf=30” -c:a aac strict experimental -b:a 128k output.mp4
please help me
cheers,
Zsolt
[..]
--
Tim.
Key Fingerprint 38CF DB09 3ED0 F607 8B67 6CED 0C0B FC44 8B0B FC83
Moritz Barsnick
2015-07-21 10:12:37 UTC
Permalink
Post by tim nicholson
ISTR that x265 profiles are not yet supported
That's mentioned in this trac ticket by the way:
https://trac.ffmpeg.org/ticket/4284
Post by tim nicholson
however you can still make a MAIN10 file by setting other parameters.
for example:-
-c:v libx265 -pix_fmt yuv420p10le \
-preset fast \
-x265-params level=5.2:vbv-bufsize=60000:vbv-maxrate=60000:crf=20
Just for reference: A similar thing was figured out here:
http://superuser.com/a/936114

Moritz
Osztrovszky Zsolt
2015-07-21 12:10:13 UTC
Permalink
Thanks Tim, I've tried your solution, but it didn't work :(

http://pastebin.com/UyMsRPtg

As you can see in line 20, the input video is hevc Main 10, but the encoder still coding it to Main profile, 8 bit (line 27).
It also says in line 23: incompatible pixel format 'yuv420p10le' for libx265.
What am I missing here?

Cheers,
Zsolt

-----Original Message-----
From: ffmpeg-user [mailto:ffmpeg-user-***@ffmpeg.org] On Behalf Of tim nicholson
Sent: Tuesday, July 21, 2015 11:34 AM
To: ffmpeg-***@ffmpeg.org
Subject: Re: [FFmpeg-user] ffmpeg x265 profile Main10
Post by Osztrovszky Zsolt
Hello Guys,
I’d like to create an h265 video with Main10 profile (10 bits).
However ffmpeg keeps saying that profile=main10 is an unknown option.
ISTR that x265 profiles are not yet supported, however you can still make a MAIN10 file by setting other parameters. for example:-

-c:v libx265 -pix_fmt yuv420p10le \
-preset fast \
-x265-params level=5.2:vbv-bufsize=60000:vbv-maxrate=60000:crf=20

Prodcued some thing that when probed shows:-

Stream #0:0(und): Video: hevc (Main 10) (hev1 / 0x31766568), yuv420p10le(tv), 3840x2160.....
Post by Osztrovszky Zsolt
ffmpeg -i vid.ts -c:v libx265 -preset medium -x265-params
“profile=main10:crf=30” -c:a aac strict experimental -b:a 128k
output.mp4
please help me
cheers,
Zsolt
[..]
--
Tim.
Key Fingerprint 38CF DB09 3ED0 F607 8B67 6CED 0C0B FC44 8B0B FC83 _______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

FIGYELMEZTETÉS:
"Ez az e-mail bizalmas információkat tartalmaz kizárólag a címzett(ek) számára. Amennyiben Ön nem címzettje ennek az e-mail-nek, felhívjuk figyelmét arra, hogy az e-mail tartalmának közzététele, másolása, illetéktelenek számára való továbbítása, megőrzése vagy bármilyen hasonló tevékenység tilos és törvénybe ütköző."
Moritz Barsnick
2015-07-21 12:28:46 UTC
Permalink
Hi Zsolt,
Post by Osztrovszky Zsolt
As you can see in line 20, the input video is hevc Main 10, but the encoder still coding it to Main profile, 8 bit (line 27).
It also says in line 23: incompatible pixel format 'yuv420p10le' for libx265.
What am I missing here?
I think you have to compile libx265 with 10 bit support. (libx264
suffers the same restriction.) Unfortunate, but that's the way it is.

Moritz
tim nicholson
2015-07-21 13:56:44 UTC
Permalink
Post by Moritz Barsnick
Hi Zsolt,
Post by Osztrovszky Zsolt
As you can see in line 20, the input video is hevc Main 10, but the encoder still coding it to Main profile, 8 bit (line 27).
It also says in line 23: incompatible pixel format 'yuv420p10le' for libx265.
What am I missing here?
I think you have to compile libx265 with 10 bit support. (libx264
suffers the same restriction.) Unfortunate, but that's the way it is.
Indeed you need the cmake option "HIGH_BIT_DEPTH:BOOL=ON"

This gives you up to 16 bit support, so not quite the same as x264.
Post by Moritz Barsnick
[...]
--
Tim.
Key Fingerprint 38CF DB09 3ED0 F607 8B67 6CED 0C0B FC44 8B0B FC83
Osztrovszky Zsolt
2015-07-21 12:38:11 UTC
Permalink
Oh I see.
Can you help me with some links, how to compile it with 10bit support?

Zsolt

Feladó: Moritz Barsnick<mailto:***@gmx.net>
Elküldve: ‎kedd‎, ‎2015‎. ‎július‎ ‎21‎. ‎14‎:‎30
Címzett: ffmpeg-***@ffmpeg.org<mailto:ffmpeg-***@ffmpeg.org>

Hi Zsolt,
Post by Osztrovszky Zsolt
As you can see in line 20, the input video is hevc Main 10, but the encoder still coding it to Main profile, 8 bit (line 27).
It also says in line 23: incompatible pixel format 'yuv420p10le' for libx265.
What am I missing here?
I think you have to compile libx265 with 10 bit support. (libx264
suffers the same restriction.) Unfortunate, but that's the way it is.

Moritz
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

________________________________
FIGYELMEZTETÉS:
"Ez az e-mail bizalmas információkat tartalmaz kizárólag a címzett(ek) számára. Amennyiben Ön nem címzettje ennek az e-mail-nek, felhívjuk figyelmét arra, hogy az e-mail tartalmának közzététele, másolása, illetéktelenek számára való továbbítása, megőrzése vagy bármilyen hasonló tevékenység tilos és törvénybe ütköző."
Continue reading on narkive:
Loading...