WebM playing slow

2,301 views
Skip to first unread message

Haspet

unread,
Apr 15, 2011, 9:32:11 AM4/15/11
to WebM Discussion
I have problem, i encode movie to webm. 2-pass, realtime encode, and
movie play very slow. Only Winamp no have problem with that file.
I upload file to my server and have this same problem, have solution ?

http://gdzietobylo.tk/2011/04/webm-otwarty-konkurent-h-264-od-google-rewolucja/

I try html5 from this http://diveintohtml5.org/video.html, many
plugins for wordpress and nothing.

P.S Sory for my bad english

Matthew Heaney

unread,
Apr 15, 2011, 11:09:19 AM4/15/11
to webm-d...@webmproject.org
On Fri, Apr 15, 2011 at 9:32 AM, Haspet <has...@gmail.com> wrote:
> I have problem, i encode movie to webm. 2-pass, realtime encode, and
> movie play very slow. Only Winamp no have problem with that file.
> I upload file to my server and have this same problem, have solution ?
>
> http://gdzietobylo.tk/2011/04/webm-otwarty-konkurent-h-264-od-google-rewolucja/

I think your MIME type is wrong. Your server says "text/plain", but
it should be "video/webm".

If I do this from the command-line:

$ wget http://gdzietobylo.tk/download/html5/big.webm

the response says:

--10:59:43-- http://gdzietobylo.tk/download/html5/big.webm
=> `big.webm'
Resolving gdzietobylo.tk... done.
Connecting to gdzietobylo.tk[195.248.226.10]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 41,719,349 [text/plain]

0% [ ] 82,969 73.33K/s ETA 09:14

10:59:45 (73.33 KB/s) - Read error at byte 82969/41719349 (No such
file or directory). Retrying.

--10:59:45-- http://gdzietobylo.tk/download/html5/big.webm
(try: 2) => `big.webm'


I downloaded the file, and it renders OK using Windows Media Player
12, so I do not think your problem is with the file itself.

So fix the MIME type first, and see if the problem goes away. (You
want "video/webm" as the MIME type.)

-Matt

Haspet

unread,
Apr 15, 2011, 3:23:00 PM4/15/11
to WebM Discussion
I add mime type into .htaccess:
AddType video/webm .webm

And now MIME type its good, but still frames are delayed:

[Haspet@HaspeT ~]$ wget -c http://gdzietobylo.tk/download/html5/big.webm
--2011-04-15 21:16:01-- http://gdzietobylo.tk/download/html5/big.webm
Translacja gdzietobylo.tk... 195.248.226.10
Łączenie się z gdzietobylo.tk|195.248.226.10|:80... połączono.
Żądanie HTTP wysłano, oczekiwanie na odpowiedź... 200 OK
Długość: 41719349 (40M) [video/webm]
Zapis do: `big.webm'

3% [> ] 1.627.560 445K/s eta
1m 40s


On 15 Kwi, 17:09, Matthew Heaney <matthewjhea...@google.com> wrote:
> On Fri, Apr 15, 2011 at 9:32 AM, Haspet <has...@gmail.com> wrote:
> > I have problem, i encode movie to webm. 2-pass, realtime encode, and
> > movie play very slow. Only Winamp no have problem with that file.
> > I upload file to my server and have this same problem, have solution ?
>
> >http://gdzietobylo.tk/2011/04/webm-otwarty-konkurent-h-264-od-google-...
>
> I think your MIME type is wrong.  Your server says "text/plain", but
> it should be "video/webm".
>
> If I do this from the command-line:
>
> $ wgethttp://gdzietobylo.tk/download/html5/big.webm

Mike Melanson

unread,
Apr 15, 2011, 7:24:56 PM4/15/11
to webm-d...@webmproject.org

I just played the sample with libav's ffplay. It appears "slow" (jumpy)
but it is not using much CPU time. I think it may have been encoded in an
unusual manner. What program did you use to encode? What settings? What
source material? The original Big Buck Bunny video comes in a 640x360 size
but that video is 640x480, stretching the vertical resolution.

--
-Mike Melanson

Matthew Heaney

unread,
Apr 15, 2011, 7:58:42 PM4/15/11
to webm-d...@webmproject.org
On Fri, Apr 15, 2011 at 3:23 PM, Haspet <has...@gmail.com> wrote:
>
> And now MIME type its good, but still frames are delayed:

Is it possible that the datarate of the file is higher than the
bandwidth of the server?

I am having a problem around the 4m10s mark: the audio stream suddenly
delivers EOS, so there might be something distinctive about the file.
I am investigating.

-Matt

Haspet

unread,
Apr 16, 2011, 6:15:08 AM4/16/11
to WebM Discussion
I use MediaCoder x64 but i have this problem with all aplications in
Windows. I dont change size this its oryginal from file. I try encode
everything and have this problem with all movies.
I encode 2 pass, Realtime keyframe 0, profile 0. Bitrate 500 kbps.
This its oryginal video:
http://mirrorblender.top-ix.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_h264.mov

No, its not bad bandwith of the server, i have this same problem in
Chrome with localhost. All aplications, jetAudio, Media Player played
slow. And Video its in buffer. Only Winamp dont have this problem. Try
in Winamp open this File:
http://gdzietobylo.tk/download/html5/big.webm

In Fedora 13 with new libvpx, movie play normal, but still "frame are
delayed" in audio. Video its ok, but have this same problem with audio
no video. (Sory for my bad english)

On 16 Kwi, 01:24, "Mike Melanson" <m...@multimedia.cx> wrote:
> > I have problem, i encode movie to webm. 2-pass, realtime encode, and
> > movie play very slow. Only Winamp no have problem with that file.
> > I upload file to my server and have this same problem, have solution ?
>
> >http://gdzietobylo.tk/2011/04/webm-otwarty-konkurent-h-264-od-google-...
>
> > I try html5 from thishttp://diveintohtml5.org/video.html, many

John Koleszar

unread,
Apr 18, 2011, 10:02:57 AM4/18/11
to webm-d...@webmproject.org
There does seem to be something very strange with the audio of that file. From the output of mkvinfo, it looks like it's missing sections of audio, but some tools are able to play it back seemingly ok. The demuxer in chrome is not one of them. Since the players are going to use the audio clock for a/v sync, this explains the jumpiness. Players that get their clock from the decoded audio data rather than the timestamps in the container will likely play smoothly.

How are you encoding the audio of this file?

| + SimpleBlock (key, track number 2, 1 frame(s), timecode 0.037s = 00:00:00.037)
|   + Frame with size 136
| + SimpleBlock (key, track number 2, 1 frame(s), timecode 0.039s = 00:00:00.039)
|   + Frame with size 135
| + SimpleBlock (key, track number 2, 1 frame(s), timecode 0.040s = 00:00:00.040)
|   + Frame with size 130
| + SimpleBlock (track number 1, 1 frame(s), timecode 0.040s = 00:00:00.040)
|   + Frame with size 47
| + SimpleBlock (key, track number 2, 1 frame(s), timecode 0.041s = 00:00:00.041)
|   + Frame with size 138
| + SimpleBlock (key, track number 2, 1 frame(s), timecode 0.043s = 00:00:00.043)
|   + Frame with size 121
| + SimpleBlock (key, track number 2, 1 frame(s), timecode 0.044s = 00:00:00.044)
|   + Frame with size 132
| + SimpleBlock (track number 1, 1 frame(s), timecode 0.080s = 00:00:00.080)
|   + Frame with size 47
| + SimpleBlock (track number 1, 1 frame(s), timecode 0.120s = 00:00:00.120)
|   + Frame with size 47
| + SimpleBlock (track number 1, 1 frame(s), timecode 0.160s = 00:00:00.160)
|   + Frame with size 47
| + SimpleBlock (track number 1, 1 frame(s), timecode 0.200s = 00:00:00.200)
|   + Frame with size 63
| + SimpleBlock (track number 1, 1 frame(s), timecode 0.240s = 00:00:00.240)
|   + Frame with size 242
| + SimpleBlock (track number 1, 1 frame(s), timecode 0.280s = 00:00:00.280)
|   + Frame with size 240
| + SimpleBlock (track number 1, 1 frame(s), timecode 0.320s = 00:00:00.320)
|   + Frame with size 210
| + SimpleBlock (track number 1, 1 frame(s), timecode 0.360s = 00:00:00.360)
|   + Frame with size 213
| + SimpleBlock (track number 1, 1 frame(s), timecode 0.400s = 00:00:00.400)
|   + Frame with size 262
|+ Cluster
| + Cluster timecode: 0.440s
| + SimpleBlock (key, track number 1, 1 frame(s), timecode 0.440s = 00:00:00.440)
|   + Frame with size 2528
| + SimpleBlock (track number 1, 1 frame(s), timecode 0.480s = 00:00:00.480)
|   + Frame with size 295
| + SimpleBlock (track number 1, 1 frame(s), timecode 0.520s = 00:00:00.520)
|   + Frame with size 256
| + SimpleBlock (track number 1, 1 frame(s), timecode 0.560s = 00:00:00.560)
|   + Frame with size 247
| + SimpleBlock (track number 1, 1 frame(s), timecode 0.600s = 00:00:00.600)
|   + Frame with size 277
| + SimpleBlock (track number 1, 1 frame(s), timecode 0.640s = 00:00:00.640)
|   + Frame with size 298
| + SimpleBlock (track number 1, 1 frame(s), timecode 0.680s = 00:00:00.680)
|   + Frame with size 444
| + SimpleBlock (key, track number 2, 1 frame(s), timecode 0.695s = 00:00:00.695)
|   + Frame with size 131
| + SimpleBlock (key, track number 2, 1 frame(s), timecode 0.696s = 00:00:00.696)
|   + Frame with size 125
| + SimpleBlock (key, track number 2, 1 frame(s), timecode 0.697s = 00:00:00.697)
|   + Frame with size 135
| + SimpleBlock (key, track number 2, 1 frame(s), timecode 0.699s = 00:00:00.699)
|   + Frame with size 137
| + SimpleBlock (key, track number 2, 1 frame(s), timecode 0.700s = 00:00:00.700)
|   + Frame with size 140

I extracted just the audio with ffmpeg, and you can see the jumps ("normal" frames elided)

| + SimpleBlock (key, track number 1, 1 frame(s), timecode 0.044s = 00:00:00.044)
|   + Frame with size 132
| + SimpleBlock (key, track number 1, 1 frame(s), timecode 0.695s = 00:00:00.695)
|   + Frame with size 131

| + SimpleBlock (key, track number 1, 1 frame(s), timecode 0.733s = 00:00:00.733)
|   + Frame with size 143
| + SimpleBlock (key, track number 1, 1 frame(s), timecode 1.335s = 00:00:01.335)
|   + Frame with size 142

| + SimpleBlock (key, track number 1, 1 frame(s), timecode 1.371s = 00:00:01.371)
|   + Frame with size 140
| + SimpleBlock (key, track number 1, 1 frame(s), timecode 1.932s = 00:00:01.932)
|   + Frame with size 142

| + SimpleBlock (key, track number 1, 1 frame(s), timecode 1.969s = 00:00:01.969)
|   + Frame with size 153
| + SimpleBlock (key, track number 1, 1 frame(s), timecode 2.551s = 00:00:02.551)
|   + Frame with size 147


--
You received this message because you are subscribed to the Google Groups "WebM Discussion" group.
To post to this group, send email to webm-d...@webmproject.org.
To unsubscribe from this group, send email to webm-discuss...@webmproject.org.
For more options, visit this group at http://groups.google.com/a/webmproject.org/group/webm-discuss/?hl=en.


Haspet

unread,
Apr 18, 2011, 9:44:22 AM4/18/11
to WebM Discussion
Okej, i solved my problem.
MediaCoder released new version and all its good.

On 16 Kwi, 12:15, Haspet <has...@gmail.com> wrote:
> I use MediaCoder x64 but i have this problem with all aplications in
> Windows. I dont change size this its oryginal from file. I try encode
> everything and have this problem with all movies.
> I encode 2 pass, Realtime keyframe 0, profile 0. Bitrate 500 kbps.
> This its oryginal video:http://mirrorblender.top-ix.org/peach/bigbuckbunny_movies/big_buck_bu...
Reply all
Reply to author
Forward
0 new messages