- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
which one is the sample umc h.264encoder used to read and encode it into the format of h.264.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
Do you mean the sample code simpleencoder.cpp inGetting Started with Intel IPP Unified Media Classes Sample?
It provide parameters like below
int VideoWidth=352,VideoHeight=288,FrameNumber=200;
You may take it as cif YUV420. Theraw file foram is YUV420planar sampling structure, YUVYUVYUV......
(or you can get a input test files through runing simple_player.exe, which can decode h.264 stream, then write outa YUV file.)
Do you mean the sample code simpleencoder.cpp inGetting Started with Intel IPP Unified Media Classes Sample?
It provide parameters like below
int VideoWidth=352,VideoHeight=288,FrameNumber=200;
You may take it as cif YUV420. Theraw file foram is YUV420planar sampling structure, YUVYUVYUV......
(or you can get a input test files through runing simple_player.exe, which can decode h.264 stream, then write outa YUV file.)
But H.264 encoder doesn't limit the input YUV resolution. You may refer to the readme.htm inipp-samples\audio-video-codecs\application\umc_video_enc_con.
>If InputParFile not specified, at least options -w,-h should be specified and -o should be added before OutputEncodedFile.
Regards,
Ying H.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, when I encode a piece of cif_yuv file. I just got a 4k h.264. I just assigned the w and h 352 and 288.
and why the frame size in the sample is width * height *3/2 , why not width*height?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
The sample take YUV4:2:0 plane as default yuv format , so the frame size is image width*image heipht *3 /2 if measured by byte.
if you cif_yuv file is YUV 444 plane format, then the size is image width*image heipht *3
Regards,
Ying H.
The sample take YUV4:2:0 plane as default yuv format , so the frame size is image width*image heipht *3 /2 if measured by byte.
if you cif_yuv file is YUV 444 plane format, then the size is image width*image heipht *3
Regards,
Ying H.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page