• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

MP4 Video Encoding Parameters

Contributor ,
Nov 07, 2018 Nov 07, 2018

Copy link to clipboard

Copied

I've a project that has a ton of video.  For years I've never really gotten silky smooth video from AIR apps utilizing StageVideo, or StageWebView, and just lived with it.

These 'moves' are a lot of turns and the 'little bumpiness' is more obvious than usual.

Has anyone found encoding settings for 720p and 1080p that produce smooooth video playback?

I've tried nearly every variation in Adobe Media encoder with no luck.  I would be willing to use another encoding package if required.

GTX 1070, so it's not the card.

Thanks

TOPICS
Development

Views

1.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 08, 2018 Nov 08, 2018

Copy link to clipboard

Copied

Are you talking about inside a desktop AIR app? Which version of AIR are you using? Are you playing the video with HTML5 video tags?

Whether it's desktop or mobile, using StageVideo would be better performance than using StageWebView.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 08, 2018 Nov 08, 2018

Copy link to clipboard

Copied

Yes, an Air 31 Windows Desktop Application @ 30fps utlitizing StageVideo, playing video from ApplicationStorageDirectory (system is on a SSD)

Specific Test system is a Dell XPS desktop, i7 gen 6, 64G of ram, Nvidia GTX1070, Windows 10


720p Video is encoded at 30fps, 6->8, 1 pass VBR, Main profile, level 4.1 and plays smoothly in any other application on the system.  I mostly review video in Google Chrome.  I've tried a bunch of variations on encoding.  more bitrate, less biterate. CBR,1,2 pass VBR,  Fussed with the profiles and levels.  I've tested on other systems as well, including some laptops, including the laptop of the project director for this one which is a new Asus. Always a little 'stutter' going on during playback.

Same videos play smoothly on iOS in an Air 31 app using StageVideo.

I'm not sure what 'video with HTML5 vidoe tags' means.  Is that meta that's applied to the file?  Is it typcially applied be Adobe Media Encoder CC 2018?

Thanks

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 08, 2018 Nov 08, 2018

Copy link to clipboard

Copied

How is the video being played in the web page? If it's the HTML5 video tag way:

<video>: The Video Embed element - HTML: HyperText Markup Language | MDN

I would expect it to use hardware decoding. If it's some other way it may be using software decoding.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 08, 2018 Nov 08, 2018

Copy link to clipboard

Copied

It's not in a web page, it's directly in the AIR app using StageVideo. 

Also Render Mode is set to Direct, per the instructions,  hummm... maybe I'll try auto or something.

Thanks!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 08, 2018 Nov 08, 2018

Copy link to clipboard

Copied

You had mentioned StageWebView, so I thought you were using StageWebView.

One nice undocumented thing about StageVideo is that it works fine in GPU mode. That could be worth a try.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 08, 2018 Nov 08, 2018

Copy link to clipboard

Copied

I tried that a few years back, didn't do much, but I'll try again if you are recommending it.

How do I load the video quickly?  Do I use .loadString with some HTML in it?

Soundthing like this?

<html><video><source src="app:/media/video/flower.mp4" type="video/mp4"></video></html>

Do the controls work, would it give me the standard web broswers controls?  This has never worked for me in the past.  A code snippet would be ideal


Thanks

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 08, 2018 Nov 08, 2018

Copy link to clipboard

Copied

You're giving an HTML example now, which would be StageWebView using the video tag, and not StageVideo.

The way StageVideo is done hasn't changed in the last 8 years, so this article should still help:

Getting started with Stage Video

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 08, 2018 Nov 08, 2018

Copy link to clipboard

Copied

Yes,  I am using StageVideo.  As I've been using it for the past 8 years... 

It's NEVER been silky smooth on windows desktop.  We are displaying really crisp 3d architectual animations, so the edges stutter sometimes.  I know from experience that 'softer' real video seldom looks this way.

i thought you where recommending trying StageWebView.  I tried use StageWebView for video a few years back, but that didn't play smoothly either. 

StageVideo, from your experience, works better than StageWebView for video playback?

Thanks

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 12, 2018 Nov 12, 2018

Copy link to clipboard

Copied

LATEST

You might consider FFMPEG for compression, which has a lot more granular control than Media Encoder, but is a bit arcane b/c its command line only. I typically fire up a server on DigitalOcean, install FFMPEG, do my compression, and shut the server down. Use the biggest server (most cores) available, since you'll only be using its for an hour or two. Remember to shut it down or you'll see a $500 monthly bill on your CC.

I switched because Media Encoder wasn't giving me all the options I wanted, and because it frees up the local machine I was using for compression.

Use ffprobe for really sweet granular analysis of existing video.

$ ffprobe video.flv

Also like mentioned above, use GPU on both desktop and mobile for smoother playback. Video is almost unworkable with out GPU on IOS in my experience.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines