yuv to y4m conversion for 4K ?

100 views
Skip to first unread message

Mourad AKLOUF

unread,
May 14, 2018, 5:38:25 AM5/14/18
to Codec Developers

hello !

I have troubles with converting 4k video  from .yuv to .y4m , to use it after that as input for Av1 encoder ;
I'm using mjpegtools and this is the commands  :

cat Drums_3840x2160_100fps_10bit_420_jvet.yuv | ./yuv4mpeg -w 3840 -h 2160 -x 420mpeg2  -i p -r 100:1 > Drums_3840x2160_100fps_10bit_420_jvet.y4m
./yuvplay < Drums_3840x2160_100fps_10bit_420_jvet.y4m  # this is for palying 

when i play the .y4m nothing appears which probably means bad conversion , however it works very fine with any CIF sequence. the problem i think is in the bit-depth (10b) i couldnt find any way to put it as arg for the converion.
do you know any other way to do the conversion ? and does the AV1 encoder accept other extension besides .y4m as input ?

Johann Koenig

unread,
May 14, 2018, 11:43:26 AM5/14/18
to codec...@webmproject.org
On Mon, May 14, 2018 at 2:38 AM Mourad AKLOUF <mouradak...@gmail.com>
wrote:
aomenc will accept .yuv files. You need to specify width, height, timebase,
and bitdepth:

--width=3840
--height=2160
--timebase= or --fps=
--bit-depth=10

i420 is the default, but if you want to encode something else like i444 you
need to specify that as well:
--yv12
--i420
--i422
--i444

Mourad AKLOUF

unread,
May 15, 2018, 4:18:01 AM5/15/18
to codec...@webmproject.org
Thank you it works very good.
Do you know where i can find some documentation about the AV1 Codec , like a user-manual and tools description( partitioning, prediction , entropy coding ) ?!
Reply all
Reply to author
Forward
0 new messages