Showing posts with label h.265 decoder. Show all posts
Showing posts with label h.265 decoder. Show all posts

Friday, June 26, 2015

Convert DVD to H.265 for iPhone 6/6 Plus on Mac

High Efficiency Video Coding (HEVC) or also called H.265 is a new video codec that compresses video files to 50% with the most proficient encoding format today. As seen on Apple’s iPhone tech specs webpage, both the iPhone 6 and its larger iPhone 6 Plus sibling leverage next-generation H.265 technology for encoding and decoding FaceTime video calls over cellular. So, a lot of Apple device users want to convert their DVD Movies to H.265 format since it's the best format for video experience. But How?Just keep on reading... 

* Read Apple TV Column | Embrace Extraordinary Experience With iPhone 6 (6 Plus) 



Is it possible to rip a DVD in the new H.265 Codec for better visual effects for iPhone 6/6 Plus via Mac? If you have got lots of DVD Movies and want to rip them to iPhone 6/6 Plus for enjoying at everywhere, converting DVD to H.265 MP4 is a wise choice. Yeah, When talking about DVD to H.265 rippers, the latest version of Pavtube BDMagic for Macis suggested by Mac users - Which is just updated with the H.265 decoder/encoder and rated as the best all-in-one Blu-ray to H.265 converter. (Pavtube Supported OS:Mac OS X 10.10 Yosemite, 10.9 Mavericks, 10.8 Mountain Lion, 10.7 Lion, Snow Leopard10.6, Leopard 10.5). Read the review

With this software, you can convert Blu-ray and DVD to H.265 MP4 in smaller size as possible and keep the almost same quality. Utilizing the highly efficient HEVC H.265 format in MP4 containers, it results in files with much more manageable sizes than the regular 25GB or 50GB Blu-ray discs we are used to. Besides H.265, it provides more regular video formats like MKV, AVI, WMV, MOV, FLV, WMV, etc. The exported files are playable on your computer as well as iOS devices, tablets & smart phones freely as you want. Now free try the Blu-ray ripper and follow the guide to accomplish the conversion.  

Download the best DVD to H.265/HEVC Video Converter on your Mac Yosemite and Windows 10:

  

Encode DVDs to H.265/HEVC MP4 video for iPhone 6/6 Plus on Mac OS X with ease

Step 1. Load DVD movies

Install and launch the best Mac DVD to H.265 Converter program. Just click disc icon to load your DVD movies. Beside, you can also load Blu-ray discs and do not miss insert your Blu-ray disc into your BD drive. You can also import movies files from Blu-ray/DVD folder, Blu-ray/DVD ISO/IFO Video files.



Step 2. Select H.265 as output format

Hit the “Format” box and select H.265 Video(*.mp4) from Common Video or H.265 HD Video(*.mp4) from HD Video profile. It enables you to rip DVD to H.265 .mp4 with the best quality for iPhone 6/6 Plus.



Tips:

1. If you wanna some advanced settings, you can click “Settings” icon to adjust the video, audio parameters bitare, frame rate, sample rate, audio channel, etc.



2. Plus, you can click “Edit” button to do some editing work cropping, trimming, settings effect, adding subtitles.

Step 3. Start DVD to H.265 conversion on Mac

Click “Convert” button and the program will rip DVD movies to H.265 mp4 video on Mac OS X immediately. You can easily find the output files in the output folders once the conversion is done and watch these wonderful DVD videos cozily on H.265 players as you like. 

iTunes media files syncing issue:

Don't know how to add files to iTunes library, you can have a reference at this article: Sync local contents to iTunes on Mac

Have no idea how to transfer iTunes media to iOS devices, find solution in this article: Sync media files from iTunes library to iPhone

Since it can help you to achieve your goal so easily, why not try this upgraded Blu-ray/DVD Ripper software now? 

Hot News! Pavtube Studio has launched a user-requested upgrade for full line of Pavtube products to version 4.8.6.2. Existing bugs, improvements and new elements for M3U8 encoding are added and has the capability of encoding or decoding H.265/HEVC files well. 

Read More:

Friday, January 9, 2015

High Quality Video Compression: Integrating an H.265/HEVC Solution for Android Platforms

This article introduces Strongene's H.265/HEVC solution on Intel Atom processor-based Android tablet. If you have any H.265 playback problem on Android or wanna an alternative, please refer.

For the HD videos are very popular today, most of us must have some HEVC files in Android Platforms. Here offers you some effective H.265/HEVC Solutions, we will provide you with information on products and services that we consider useful and of value to developers.
 


Abstract

According to the International Data Corporation, the total amount of global data for 2012 reached 2.7 zettabytes, an increase of 48% from 2011. Ninety percent of the global data was videos. Video apps consumed 66% of the total Internet data flow, and that number continues to increase rapidly. End users want to watch high quality videos but, for online video providers, costs of purchasing the network bandwidth and the storage devices grow increasingly expensive every year. How can video content providers meet the challenge of large data sources and their increasing storage requirements? Is it possible to achieve high quality videos with smaller bandwidth? The solution to these challenges is found in utilizing a video core compression technique known as High Efficiency Video Coding (H.265/HEVC).

Some open source communities such as FFmpeg are developing an H.265/HEVC decoder, but the performance has not yet reached commercial use capability. Strongene Ltd., a producer of video codec core technology, has developed advanced H.265/HEVC encoder/decoder solutions, including optimized H.265/HEVC encoder/decoder libraries and demonstration codes for Intel® Atom™ processor-based Android platforms. This article introduces Strongene's H.265/HEVC solution on Intel Atom processor-based Android tablet (condenamed Bay Trail).

Strongene's H.265/HEVC Solution

To evaluate a good video standard, we generally use efficiency and compatibility standards. The video standard evolution over the past 20 years is shown in the following graph:


video standard evolution

Figure1. Video standard history

H.265/HEVC is the successor codec to H.264/AVC (Advanced Video Coding), both were developed jointly by the ISO/IEC Moving Picture Experts Group and ITU-T Video Coding Experts Group (VCEG). The primary goal of the new codec is to provide 50% better compression efficiency than H.264 and support resolutions up to 8192 x 4320.

As shown in Figure 1, it took 9 years to evolve from MPEG-2 to H.264/AVC, so more challenges are expected to be encountered in moving from the H.264/AVC standard to the H.265/HEVC standard. Gaps between the technical concept and the actual quality of the product still exist for H.265/HEVC. However, H.265/HEVC does a good job of balancing the efficiency and compatibility requirements, which make up the next level of video standards.

Strongene's H.265/HEVC solutions were optimized using YASM assembler compiler, Intel® C++ Compiler, Intel® Streaming SIMD Extensions (Intel® SSE), and Intel® Threading Building Blocks (Intel® TBB), with OpenGL* used for rendering. By directly uploading the decoded YUV420 data to the GPU, it finishes the transcoding of YUV data to RGB data and renders the RGB data to LCD. This reduces the CPU's workload and improves performance. The data stream is shown in the following diagram:
CPU's workload

Figure2. Render method comparison

On an Intel Atom processor-based tablet (codenamed Bay Trail), after having been tested by Intel® Graphics Performance Analyzers (Intel® GPA) tool, the optimized H.265/HEVC decoder refresh rate can reach 90 FPS (frames per second) when playing a 1080p HEVC video. If we set the refresh rate to 24 FPS on the Bay Trail tablet when playing the 1080p video, the CPU workload is less than 25%. Thus, Strongene's H.265/HEVC solution achieves commercial use capability.

Analysis of the APIs of Strongene's H.265/HEVC Solution

The APIs of Strongene's H.265/HEVC solution are easily used directly with or integrated into FFmpeg open source. Strongene defined five functions and one structure for the H.265/HEVC decoder, as listed below:

Structure:

lenthevcdec_ctx;

Description: It is the context of decoder for identifying different decoders.

Functions:

1. Unit32_t lenthevcdec_version(void);

Description: For getting API version of current library.

2. lenthevcdec_ctx lenthevcdec_create(int threads, int comoatibility, void* reserved);

Description: Create decoder with specified parameters.

Example: 

int32_t got_frame, width, height, stride[3], ret, i;
uint8_t* pixels[3];
int64_tpts, got_pts;
for ( i = 0; i <au_count; i++ ) {
pts = i * 40;
got_frame = 0;
ret = lenthevcdec_decode_frame(ctx, au_buf + au_pos[i], au_pos[i + 1] -
au_pos[i], pts,&got_frame, &width, &height, stride, (void**)pixels,
&got_pts);
if ( ret < 0 ) {
fprintf(stderr, 
"calllenthevcdec_decode_frame failed! ret=%dn", ret);
exit(1);
}
if ( got_frame> 0 ) {
printf("decode frame, %dx%d, pts is %" PRId64 "n", 
width, height, got_pts);
/* got frame, do something ... */
}


How to Integrate Strongene's H.265/HEVC Solution

Developers can easily integrate these five functions when developing HEVC video players. The documentation and sample code are available from Strongene's download web site.

Developers can directly call the Strongene's H.265/HEVC APIs to develop their video players, or they can merge Strongene's H.265/HEVC patch for FFmpeg, and then use the merged FFmpeg APIs to develop their video players. The following paragraph introduces the two methods separately.

Directly Use Strongene's APIs to Develop Video Players
On Strongene's web site, developers can download the:
  • sample code testdec.c/lenthevcdec.h 
  • decoder: liblenthevcdec.so 
  • documents: lenthevcdec_en.pdf, the Makefile 

Copy the sample code to Ubuntu* build machine into separate folders: 

wangsy@ubuntu:~/Desktop cp testdec.c Makefille ~/hevc/src
wangsy@ubuntu:~/Desktop cp lenthevcdec.h  ~/hevc/include
wangsy@ubuntu:~/Desktop cp liblenthevcdec.so ~/hevc/lib/Android_x86 

Set up ANDROID_NDK_HOME environment with the "export" command:

export ANDROID_NDK_HOME= $ ANDROID_NDK_HOME :/~/android-ndk-r9c 

Then you can run the demo on the Android devices directly.

Use the H.265/HEVC Patch for FFmpeg to Develop the Video Players
In fact, most developers will use the open source FFmpeg to develop their video players. Strongene's web site also provides the patch for FFmpeg, which can be downloaded from:lentoid_ffmpeg2.0_patch_2014_01_23_new_encoder_interface.patch

To merge this patch, you should also download and decompress the FFmpeg 2.0.4 version. Then add the patch:

wangsy@ubuntu:~/ffmpeg-2.0.4
patch &ndash;p1 < ./lentoid_ffmpeg2.0_patch_2014_01_23_new_encoder_interface.patch

Copy the downloaded headfile and the libs code to ~/ffmpeg-2.0.4/thirdparty 

cp lenthevcdec.h lenthevcenc.h liblenthevcdec.so liblenthevcenc.so ~/ffmpeg-2.0.4/thirdparty 

Copy the following configure file to ~/ffmpeg-2.0.4 and add the "run" permissions: 

wangsy@ubuntu: cp build_x86.sh ~/ffmpeg-2.0.4
wangsy@ubuntu: sudo chmod a+x ~/ffmpeg-2.0.4/build_x86.sh 

Download build_x86.txt

Run the configure file "build_x86.sh" (embedded above), then run the "make" and "make install" commands. The merged FFmpeg with Strongene's H.265/HEVC patch should now be built successfully. The output libs will be under ~/FFmpeg2.0.4/android/x86/lib. You can use these output libs in your video players.

Summary

The H.265/HEVC standard is becoming more and more popular in the mobile market. Online video providers, mobile Internet users, and broadcast/TV operators are the beneficiaries of this new video revolution, along with users. To produce the results described in this article, Strongene's H.265/HEVC solutions were fully optimized for Intel® Atom™ processor-based Android platforms, so don't hesitate to adopt their solutions to develop HEVC players. 

via codeproject.com 

Editor's Note:

Didn't understand? Never mind! Due to the complex process, you may meet unexpected problems. Please comment below.

If you need an easy-to-use yet powerful H.265 encoder, decoder and converter, the upgraded Pavtube Video Converter Ultimate will be the perfect solution. It is clean and safe to install and use. With it, you can not only effortlessly transcode Blu-ray, DVD and non-H.265 video to H.265/HEVC MP4 for Android, but also decode H.265 video to any video format for playback on media player, Android devices and game consoles without problems. It works well and converts flawlessly.