Telestream Community Forum
Decrease font size
Increase font size
Topic Title: Slow playback when scrubbing Flash 9 H264 files
Topic Summary:
Created On: 11/2/2009 5:19 PM
Status Post and Reply
Linear : Threading : Single : Branch
Topic Tools Search Topic
Topic Tools Topic Tools
View topic in raw text format. Print this topic.
 11/2/2009 5:19 PM
User is offline View Users Profile Print this message

Author Icon
macgirlsweden

Posts: 3
Joined: 11/2/2009

I have a HDV source made in FCP and exported as a MOV-file in 1080 50i.

I want to compress that to publish it using a Flash player and have selected the FL9_widescreen_480_270 preset.

The encoding works just fine but when I open the file in either QT or VLC it plays the file just fine but as soon as I try to "scrub" it forward the processor load goes to the roof and it takes 20 sec or so before it starts playing on my Quad core Mac Pro.

Encoding it using VisualHub with their presets for iPhone (which is also H264) does not render this problem.

Anyone having a tip or two what kind of setting in Episode that can cause this.

Here is my settings file:

<?xml version="1.0"?>
<!DOCTYPE job SYSTEM "job.dtd">
<job version="1.1">
<!--5.3-->
<description/>
<meta-data meta-file="no">
<meta-group type="creator">
<meta name="product" value="Episode"/>
<meta name="platform" value="darwin"/>
<meta name="version" value="5.1"/>
</meta-group>
<meta-group type="movie">
<meta name="producer" value="The Right Kind of Fruit"/>
<meta name="tcKeepSource" value="1"/>
<meta name="tcSec" value="0"/>
<meta name="tcHour" value="0"/>
<meta name="tcMin" value="0"/>
<meta name="tcFrame" value="0"/>
</meta-group>
</meta-data>
<importer media="movie" in="!SRCFILE!">
<audio-out id="audio_1bedbe60_importer"/>
<video-out id="video_1c089d30_importer"/>
</importer>
<filter media="audio" type="chan">
<in id="audio_1bedbe60_importer"/>
<out id="audio_1c102f10_chan_filter"/>
<option name="channels" value="2"/>
</filter>
<filter media="video" type="frmr">
<in id="video_1c089d30_importer"/>
<out id="video_1c0f0ca0_frmr_filter"/>
<option name="framerate" value="25.00"/>
<option name="type" value="1"/>
<option name="fraction" value="2"/>
<option name="fractional" value="0"/>
<option name="itc_first_pair" value="1"/>
</filter>
<filter media="audio" type="smpr">
<in id="audio_1c102f10_chan_filter"/>
<out id="audio_1bc13430_smpr_filter"/>
<option name="samplerate" value="44100"/>
</filter>
<filter media="video" type="dint">
<in id="video_1c0f0ca0_frmr_filter"/>
<out id="video_1c101720_dint_filter"/>
<option name="dominance" value="2"/>
<option name="mendmethod" value="2"/>
<option name="template" value="1"/>
<option name="threshold" value="6"/>
<option name="filter-chroma" value="1"/>
<option name="double-framerate" value="0"/>
</filter>
<filter media="audio" type="norm">
<in id="audio_1bc13430_smpr_filter"/>
<out id="audio_1c1e80e0_norm_filter"/>
<option name="type" value="0"/>
<option name="value" value="90"/>
</filter>
<filter media="video" type="size">
<in id="video_1c101720_dint_filter"/>
<out id="video_1c1dd820_size_filter"/>
<option name="width" value="480"/>
<option name="height" value="270"/>
<option name="crop-top" value="0"/>
<option name="crop-bottom" value="0"/>
<option name="crop-left" value="0"/>
<option name="crop-right" value="0"/>
<option name="pixel-aspect-compensation" value="3"/>
<option name="output-display-aspect-ratio" value="1"/>
<option name="aspect-mode" value="2"/>
<option name="ratiow" value="16"/>
<option name="ratioh" value="9"/>
<option name="no-scale" value="0"/>
<option name="mode" value="0"/>
<option name="lowpass" value="0"/>
<option name="paspMode" value="1"/>
<option name="hSpacing" value="1"/>
<option name="vSpacing" value="1"/>
</filter>
<encoder media="audio" type="mp4a">
<in id="audio_1c1e80e0_norm_filter"/>
<out id="audio_1bfe8330_mp4a_encoder"/>
<option name="bitrate" value="128"/>
<option name="mode" value="1"/>
<option name="keep_codec_delay" value="1"/>
<option name="use_ps" value="0"/>
</encoder>
<encoder media="video" type="h264">
<in id="video_1c1dd820_size_filter"/>
<out id="video_1c0f8940_h264_encoder"/>
<option name="bitrate_control" value="4"/>
<option name="bitrate" value="700"/>
<option name="peak_bitrate" value="840"/>
<option name="vbr_quality" value="50"/>
<option name="complexity" value="90"/>
<option name="buffer_time" value="1.9"/>
<option name="num_refs" value="5"/>
<option name="random_access" value="0"/>
<option name="use_picture_timing_sei" value="0"/>
<option name="interlace_encoding_mode" value="0"/>
<option name="fixed_framerate" value="0"/>
<option name="threads" value="0"/>
<option name="use_loop" value="1"/>
<option name="keyframes" value="10"/>
<option name="multipass" value="1"/>
<option name="multipass_window_size" value="200"/>
<option name="period_type" value="1"/>
<option name="profile" value="1"/>
<option name="entropy_type" value="0"/>
<option name="dar" value="0"/>
<option name="b-frames" value="1"/>
<option name="force-format" value="IYUV"/>
<option name="level" value="0"/>
<option name="limit_frame_size" value="0"/>
<option name="frame_size_limit" value="10"/>
<option name="buffer_init_fullness" value="50"/>
<option name="idr_step" value="3"/>
</encoder>
<exporter media="movie" out="!DSTPATH!/!NAME!-!SETTING!.mp4" type="moov">
<in id="video_1c0f8940_h264_encoder"/>
<in id="audio_1bfe8330_mp4a_encoder"/>
<option name="movieType" value="kMP4"/>
</exporter>
</job>
 11/3/2009 1:08 PM
User is offline View Users Profile Print this message

Author Icon
CraigS

Posts: 17463
Joined: 4/4/2007

It may be the encode with the preset are too hard for your computer to decode. You really need to look at things like data rate (depends on your target), b frames (decrease), i frame frequency (increase). iPhone uses Baseline profile which is inherintly easier to decode (iPhones aren't desktops) than MainProfile often used in Flash on the web. That can all be changed by you. If you want to compare to an iPhone template, please use Episode iPhone template.

In short, an iPhone target is very different than Flash for web use even though they both use H.264. Apples and Oranges (Apples and Flash?).

-------------------------
CraigS
Telestream Desktop Forum Moderator
 11/3/2009 1:16 PM
User is offline View Users Profile Print this message

Author Icon
CraigS

Posts: 17463
Joined: 4/4/2007

BTW you should be using Episode 5.3. The updates are bug fixes.

-------------------------
CraigS
Telestream Desktop Forum Moderator
 11/3/2009 5:25 PM
User is offline View Users Profile Print this message

Author Icon
macgirlsweden

Posts: 3
Joined: 11/2/2009

Thank you for the answers Craig. I am targeting Flash on the Web for Desktops and the reason I mentioned the iPhone was that I created iPhone versions for download as well using VisualHub and noticed the difference. However, don't you think that my 2,66 Quad Core Mac Pro should be able to decode the movie I created with no problems?

I am using 5.3 but I noticed that the XML-file contained references to earlier versions so I might be using old templates as well?
 11/4/2009 12:56 PM
User is offline View Users Profile Print this message

Author Icon
jb3710

Posts: 5
Joined: 10/16/2008

Play with keyframes some more, you have it at 10 it looks like which should be fine. But I know keyframing definitely affects scrubbing...
 11/6/2009 12:55 AM
User is offline View Users Profile Print this message

Author Icon
CraigS

Posts: 17463
Joined: 4/4/2007

jb3710 is right. Keyframe rate can impact scrubbing. The P and B frames are much harder to encode.
iPhone uses Baselline and Flash for web is generally Main and Baseline will decode much more easily so you can not compare them.
When updating Episode you should say Yes when it asks you about deleting/backing up the old and adding the new templates. Old templates can have issues.

Also if you want to test scrubbing in a more accurate environment you might want to embed in a web page so that Adobe Flash browser plugin is handling it rather than Quicktime or VLC.
Then you also can me the link so I can double check on different machines on my end and maybe see if it's specific to certain situations Make sure your Flash plugin is current as decoding as improved in recent version of Flash 10 plugin.


-------------------------
CraigS
Telestream Desktop Forum Moderator
 11/8/2009 5:14 AM
User is offline View Users Profile Print this message

Author Icon
macgirlsweden

Posts: 3
Joined: 11/2/2009

I think the small changes you suggested fixed the problem. Changed to "Natural and Forced Keyframes" and set number of reference frames to 5.

The result looks like this:

http://app.rfsl.se/filmer/hbth..._panel3_politiker.html
 11/9/2009 6:12 PM
User is offline View Users Profile Print this message

Author Icon
CraigS

Posts: 17463
Joined: 4/4/2007

Scrubs very well online.

To learn Episode in depth there are some excellent Class on Demand online tutorials.
http://www.telestream.net/appl...sode/classondemand.htm

-------------------------
CraigS
Telestream Desktop Forum Moderator
 11/9/2009 6:15 PM
User is offline View Users Profile Print this message

Author Icon
CraigS

Posts: 17463
Joined: 4/4/2007

and this too
http://www.telestream.net/episode/demos.htm#cod

-------------------------
CraigS
Telestream Desktop Forum Moderator

FuseTalk Basic Edition v3.0 - © 1999-2010 FuseTalk Inc. All rights reserved.