Encoding H.264

Moderator: Ken Berry

Post Reply
dasdazu
Posts: 1
Joined: Fri Jul 19, 2013 12:19 am
operating_system: Windows 7 Professional
System_Drive: C
32bit or 64bit: 64 Bit

Encoding H.264

Post by dasdazu »

Hi,
I want to encode my video to the following profile. I cannot find a place to specify these settings although there are several pre-set H.264 encoding profiles for mobile.
Can I do the following encoding in VideoStudio Pro X6?

Video: H.264, Level 3.0, Baseline profile
Audio: AAC, 1-2 channels
Auto Bitrate: 128 (or less)
Audio Sample Rate: 44100 (or less)
Size: 480x320
Max Framerate: 30
Video Bitrate: 1500 (or less)
Web optimized: Enable fast internet startup, a.k.a "Prepare for internet streaming", "Compressed headers", etc.
User avatar
lata
Site Admin
Posts: 14280
Joined: Thu Jan 19, 2012 6:21 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUSTeK COMPUTER INC A88XM-A USB 3 1 Rev X 0x
processor: 4 10 gigahertz AMD A10-7890K Radeon R7
ram: 16 gb
Video Card: on board
sound_card: Realtek High Definition Audio
Hard_Drive_Capacity: 500 SSD
Monitor/Display Make & Model: LG W2242 [Monitor]
Corel programs: CVSX, 19, 20, 22 PSP2023, PI, MS3D
Location: UK
Contact:

Re: Encoding H.264

Post by lata »

Hi

Use Settings – Make Movie Templates Manager

Create a template using Mpeg4, I managed these settings

MPEG-4 Files
24 bits, 320 x 240, 30 fps
Frame-based
H.264 Baseline Profile Video: 1500 Kbps
44100 Hz, 16 Bit, Stereo
MPEG AAC Audio: 128 Kbps

The frame size is a little different but give 30fps.

At least to you can explore the options.

Note some templates allow for user defined frame sizes.
New forum for PSP and VS users, register if you need help

https://psp-vs-forums.freeforums.net
Kingston
Posts: 427
Joined: Tue Jul 14, 2009 7:26 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Gateway [Acer] DX4860
processor: Intel Core i5 3rd gen. 3 GHz
ram: 8 GB
Video Card: Intel HD 2500
sound_card: Bluetooth
Hard_Drive_Capacity: 1 TB
Monitor/Display Make & Model: Dell ST2210; Samsung SmartTV 3D 40"
Location: CA, USA

Re: Encoding H.264

Post by Kingston »

With MPEG-4 you can modify the MP4Set.ini file and add your own video settings. MP4Set.ini is in the root of the Videostudio program directory: C:\Program Files (x86)\Corel\Corel VideoStudio Ultimate X6.
You are modifying the file at your own risk.


There exists 201 video settings, and you need to add one at the bottom of the the VideoSettings list in the MP4Set.ini file:

VideoSetting202 = 264BL ; 30000 (/1000)fps; 480W; 320H; Max 2000 kbps; Min 512 kbps


Then somewhere above the list of settings you'll find this group of variables:

TotalVideoSetting = 202
DataRateLength = 5
VideoTypeNum = 5
FPSNum = 21
FrameList = 23

You need to modify two of them. The 480 x 320 is a new frame setting, none of the 201 other settings have that frame size. So you bump up the FrameList counter from 22 to 23. Since you added a new setting, change the TotalVideoSetting counter from 201 to 202. Nothing new was added that affects the other counters.

In Videostudio when you create a custom MPEG-4 video and go to select the frame size from the dropdown list, the 480x320 will be in the list, but at the bottom of the list.

After creating the video, I checked it with MediaInfo to find that Baseline 2.1 is used. Adding my own video setting seemed to work. Good luck.
MotionStudio 3D 1.0; Corel VideoStudio Ultimate X7 (w/o sp1) (Download), Corel PaintShop Pro 15.2.0.12 (Download)
tommy12
Posts: 83
Joined: Wed Mar 27, 2013 3:10 am
operating_system: Windows XP Pro
System_Drive: C
32bit or 64bit: 32 Bit

Re: Encoding H.264

Post by tommy12 »

Kingston and All,

I've been outputing my 640 x 480 .avi to .mp4. The Videostudio template by default is limited to a maximum bitrate of 4000 and the Main Profile, which doesn't come close to the 15000 kbps of my video clips. But through a workaround I was able to produce 15000 kbps mp4 output files. But with your information I just changed one value in the file you mentioned, and now I can produce output up to 20000 kbps directly from a new template I just made after modifying that file. I also created a new line in the file to give me the option to produce clips using the High Profile with up to 20000 kbps. Things just became a lot easier. Thanks!

Any other cool tricks you want to share concerning ini files? I would be particularly interested in knowing if it is possible to add new resolutions (360 x 240 in particular) to the short list of choices when choosing to specify what resolution proxy files you want. You get these choices if you uncheck the "Auto generate proxy template" box in Settings\Preferences ->Performance Tab as in the figure below:
Proxy Parameters.jpg
Clicking the Options button brings up the General Tab. The drop down box for Frame size only has four values. I'd like to add 360 x 240.

Any suggestions, Kingston or anyone?

Thanks,
Tommy12
Kingston
Posts: 427
Joined: Tue Jul 14, 2009 7:26 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Gateway [Acer] DX4860
processor: Intel Core i5 3rd gen. 3 GHz
ram: 8 GB
Video Card: Intel HD 2500
sound_card: Bluetooth
Hard_Drive_Capacity: 1 TB
Monitor/Display Make & Model: Dell ST2210; Samsung SmartTV 3D 40"
Location: CA, USA

Re: Encoding H.264

Post by Kingston »

To set a custom frame size for Proxy files, use Microsoft AVI files (.avi) for the video format. That allows for the widest range of frame sizes.

1. Click the Template button, then select Add/Remove Template Manager...

2. Click the New... button.

3. Select Microsoft AVI files (.avi) for the format.

You'll then be able to set just about any custom frame size on the General tab.

The name you give to this preset will then be shown in the menu when you click the Template button again.
MotionStudio 3D 1.0; Corel VideoStudio Ultimate X7 (w/o sp1) (Download), Corel PaintShop Pro 15.2.0.12 (Download)
Post Reply