Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - cloudraven

Pages: [1]
1
I am trying to output H.264 video in a Windows application. I am moderately familiar with FFMPEG and I have been successful at getting it to play H.264 in a SDL window without a problem.  Still, I would really benefit from using Hardware Acceleration (probably through DXVA2)

I am reading raw H264 video, no container, no audio ... just raw video (and no B-frames, just I and P). Also, I know that all the systems that will use this applications have Nvidia GPUs supporting at least VP3.
Given that set of assumptions I was hoping to cut some corners, make it simple instead of general, just have it working for my particular scenario.

So far I know that I need to set the hardware acceleration in the codec context by filling the hwaccel member through a call to ff_find_hwaccel. My plan is to look at Media Player Classic Home Cinema which does a pretty good job at supporting DXVA2 using FFMPEG when decoding H.264. However, the code is quite large and I am not exactly sure where to look.  I can find the place where ff_find_hwaccel is called in h264.c, but I was wondering where else should I be looking at.

More specifically, I would like to know what is the minimum set of steps that I have to code to get DXVA2 through FFMPEG working?

2
H.264/AVC / Packing frames without compression in x264
« on: April 26, 2012, 08:59:29 PM »
Hi,
I am trying to understand better how H.264 syntax works.
I recently found this interesting piece of code that shows a minimal H264 encoder that pretty much wraps a YUV bitmap with H264 SPS and PPS information. I wonder if there is a way to get x264 to encode something like that.
http://www.cardinalpeak.com/blog/?p=488
http://www.cardinalpeak.com/blog/?p=878
I am interested in looking at how would an I-Frame coded in such a simple way be referred by a P frame.  I can also figure out how to grow this tiny encoder and get a better understanding of how these encoders work.

Probably the secret is in whatever is encoded in the PPS, but I haven't been able to figure out what exactly is going on in there.

I wonder if it is possible at all to get  a real world encoder like x264 to do something like this.

Pages: [1]