XHA1 HDV 24p to H.264: Best bitrate? at DVinfo.net
DV Info Net

Go Back   DV Info Net > Canon EOS / MXF / AVCHD / HDV / DV Camera Systems > Canon HDV and DV Camera Systems > Canon XH Series HDV Camcorders
Register FAQ Today's Posts Buyer's Guides

Canon XH Series HDV Camcorders
Canon XH G1S / G1 (with SDI), Canon XH A1S / A1 (without SDI).

Reply
 
Thread Tools Search this Thread
Old March 21st, 2009, 01:10 AM   #1
Major Player
 
Join Date: Jul 2007
Location: Eugene, Oregon, USA
Posts: 213
XHA1 HDV 24p to H.264: Best bitrate?

Hi,

Here is the info from one of my clips:

Quote:
File Path: /Volumes/SCRATCH/springs/t2.gallery.mpeg
Type: MPEG Movie
File Size: 9.9 GB
Image Size: 1440 x 1080
Pixel Depth: 1440
Frame Rate: 23.976
Source Audio Format: 48000 Hz - compressed - Stereo
Project Audio Format: 48000 Hz - 32 bit floating point - Stereo
Total Duration: 00:52:30:00
Average Data Rate: 3.2 MB / second
Pixel Aspect Ratio: 1.333
I was using Adobe Media Encoder to encode a high-resolution edit to H.264 VBR, but I was wondering what would be the optimal target bitrate and maximum bitrate?

For example, should my target bitrate be 3.2 (to match the Average Data Rate of the source footage)... and what should be my maximum? AME will let me go up to 24mbs, but is that extreme and/or superfluous?

Any tips for a noob to H.264?

Also, what is the best keyframe distance?

I would love some help! :)

Have a great night!
Cheers,
Micky

Thanks a billion in advance!
__________________
Home: See "Work" :)
Work: Canon XH A1, CS3/CS4/CS5/Final Cut Studio/Final Cut Express/Premiere Elements
Micky Hulse is offline   Reply With Quote
Old March 21st, 2009, 09:39 AM   #2
Trustee
 
Join Date: Jan 2008
Location: North Conway, NH
Posts: 1,745
Maybe it's because I haven't had enough coffee yet, but I cannot figure out what you are trying to do.

Picking the correct codec and settings depends upon your delivery media. Are you going to BD, a kiosk playback, or the Web? Without knowing where you are going, it's hard to give you salient advice. Give us your use and delivery case information and we'll try to help you out.
Tripp Woelfel is offline   Reply With Quote
Old March 21st, 2009, 02:09 PM   #3
Major Player
 
Join Date: Jul 2007
Location: Eugene, Oregon, USA
Posts: 213
Hi Tripp! Thanks for the reply, I really appreciate it.

Sorry that I did not provide enough info.

I am eventually going to web.

The streaming web service that my company uses allows for "HD" playback, and they suggest users upload H.264. This service creates several encoded versions of the uploaded video... The highest resolution version being 1.5mbps. The uploaded source version is not included in the allowed versions for playback.

I was told that knowing the original encoding rate of my source material is useful for determining the target variable bit rate that I am exporting.

Basically, I want to make sure that the uploaded version has the optimal settings for down sampling on their end.

I have output some vids at 5mbps/7mbps VBR and it looks pretty good (when viewed locally and when viewing the 1.5mbps version on their end).

I have never really used H.264 before, and thought I would ask for some help here. :)

Questions:
  • I guess I am just curious about how the H.264 VBR works... Let's say I am going for an optimal HQ/HD encoding... If my source footage has an "Average Data Rate: 3.2 MB / second", then should my target H.264 bitrate be 3.2mbps? Or, is the data rate different from the VBR settings? In other words, am I comparing apples to oranges here?
  • Is there a formula for determining the "maximum" vbr setting?
  • In general, what are keyframes used for? I assume that they help for scenes where there is a lot of action (the more keyframes, the better the action looks). Are there any drawbacks to setting a small/large keyframe distance?

Please let me know if you need more info... Sorry if I sound like a complete noob.

Thanks Tripp!

Have a great day!
Cheers,
Micky
__________________
Home: See "Work" :)
Work: Canon XH A1, CS3/CS4/CS5/Final Cut Studio/Final Cut Express/Premiere Elements
Micky Hulse is offline   Reply With Quote
Old March 21st, 2009, 02:35 PM   #4
Major Player
 
Join Date: Dec 2006
Location: Los Angeles, CA
Posts: 959
Google "bit rate calculator" to help with optimal bit rates, etc.

Also, a source's data rate (3.2 MBytes in your case) is not the same as an encoders bit rate (3.2 mbps would be megaBITS per sec, not megabytes).
Bill Busby is offline   Reply With Quote
Old March 21st, 2009, 03:06 PM   #5
Major Player
 
Join Date: Jul 2007
Location: Eugene, Oregon, USA
Posts: 213
Hi Bill!

Thanks for the help! I really appreciate it. :)

I am googling now.

Also, thanks for the clarification on the data rate.

If ya'll don not mind, I may be back with more questions. :D

Have a great day!
Cheers,
Micky
__________________
Home: See "Work" :)
Work: Canon XH A1, CS3/CS4/CS5/Final Cut Studio/Final Cut Express/Premiere Elements
Micky Hulse is offline   Reply With Quote
Old March 21st, 2009, 05:10 PM   #6
Major Player
 
Join Date: Jul 2007
Location: Eugene, Oregon, USA
Posts: 213
This seems to answer my question about keyframes:

Quote:
In video compression, a key frame, also known as an Intra Frame, is a frame in which a complete image is stored in the data stream. In video compression, only changes that occur from one frame to the next are stored in the data stream, in order to greatly reduce the amount of information that must be stored. This technique capitalizes on the fact that most video sources (such as a typical movie) have only small changes in the image from one frame to the next. Whenever a drastic change to the image occurs, such as when switching from one camera shot to another, or at a scene change, a key frame must be created. The entire image for the frame must be output because the visual difference between the two frames is so great that the new image cannot be reproduced incrementally from the previous frame.

Because video compression only stores incremental changes between frames (except for key frames), it is not possible to fast forward or rewind to any arbitrary spot in the video stream. That is because the data for a given frame only represents how that frame was different from the preceding frame. For that reason it is beneficial to include key frames at arbitrary intervals while encoding video. For example, a key frame may be output once for each 10 seconds of video, even though the video image does not change enough visually to warrant the automatic creation of the key frame. That would allow seeking within the video stream at a minimum of 10 second intervals. The down side is that the resulting video stream will be larger in size because many key frames were added when they were not necessary for the visual representation of the frame.
-- Key frame - Wikipedia, the free encyclopedia
__________________
Home: See "Work" :)
Work: Canon XH A1, CS3/CS4/CS5/Final Cut Studio/Final Cut Express/Premiere Elements
Micky Hulse is offline   Reply With Quote
Old April 11th, 2009, 12:05 AM   #7
Major Player
 
Join Date: Jul 2007
Location: Eugene, Oregon, USA
Posts: 213
These settings worked pretty well for me.

Here is the preset.

Here is sample footage.

Brightcove will create "renditions" based on the uploaded mp4. The highest one being 1.5mbps.

My company has an account that does not stream, only progressive downloads, so I have just been uploading one "rendition"/version with a 1 - 1.5mbps CBR (with all the same settings as settings above)... Seems to work pretty well for my needs.

Not sure if that will help anyone.

Cheers,
Micky
__________________
Home: See "Work" :)
Work: Canon XH A1, CS3/CS4/CS5/Final Cut Studio/Final Cut Express/Premiere Elements
Micky Hulse is offline   Reply With Quote
Old April 11th, 2009, 10:52 AM   #8
Regular Crew
 
Join Date: Apr 2008
Location: Edinburgh UK
Posts: 94
I've been going as low as 0.8 Mb/s for HD 720 on the web. The logic being that the file sizes are much smaller and viewers don't need a fast internet connection. The down side is that viewers' pc's need to be reasonably modern for the cpu to be able to decode the file in real-time.

Here's an example of 0.8 MB/s: Nick Pynn at the Brighton Fringe Launch Party Festival Previews Video Blog It's 190 seconds long and is just over 20 MBytes in size.

Ian
Festival Video and Audio Previews - Festival Previews Ltd
Ian Wright is offline   Reply
Reply

DV Info Net refers all where-to-buy and where-to-rent questions exclusively to these trusted full line dealers and rental houses...

B&H Photo Video
(866) 521-7381
New York, NY USA

Scan Computers Int. Ltd.
+44 0871-472-4747
Bolton, Lancashire UK


DV Info Net also encourages you to support local businesses and buy from an authorized dealer in your neighborhood.
  You are here: DV Info Net > Canon EOS / MXF / AVCHD / HDV / DV Camera Systems > Canon HDV and DV Camera Systems > Canon XH Series HDV Camcorders


 



All times are GMT -6. The time now is 03:53 PM.


DV Info Net -- Real Names, Real People, Real Info!
1998-2024 The Digital Video Information Network