H.264 pseudostreaming apache

146 views
Skip to first unread message

Peter Fanter

unread,
Feb 25, 2015, 2:40:40 AM2/25/15
to matterho...@opencast.org
Hello,

do you have any experience with vod with apache (we use the H264 streaming module for Apache to server mp4 files) http://h264.code-shop.com/trac/wiki, but noticed we cannot server lectures say that last 1:30 minutes long, in 1080p, but only if they are 720p. And in means of size, if we have an mp4 file that is > 2gb, it throws an error,

any ideas why this is happening, or how one could fix it?

We use jwplayer as a player

Rüdiger Rolf

unread,
Feb 25, 2015, 3:23:25 AM2/25/15
to matterho...@opencast.org
Hi,

I would guess that you might use an Apache version that is too old. Before Apache 2.2 they had a 2GB filesize limit.

I find the module that you are using quite outdated by the way. You are not using streaming there, they allow byte range requests, so that you can load from any point within the video.

I would go for Nginx with real RTMP streaming if you want to use a real streaming protocol as this is much better supported by the current player component based on Adobe Flash.
https://opencast.jira.com/wiki/display/MHDOC/nginx-rtmp

With the upcoming Matterhorn 2.0 the byte range requests (pseudo streaming) becomes much more interesting. But is supported out of the box by Matterhorn, Apache, NGinx and most other up to date webservers. If you want to use streaming then HLS might be a good option, but currently there is only a Matterhorn 2.0 distribution module for Wowza in development.

Regards
Rüdiger

Am 25.02.15 08:40, schrieb Peter Fanter:
To unsubscribe from this group and stop receiving emails from it, send an email to matterhorn-use...@opencast.org.


-- 
________________________________________________
Rüdiger Rolf, M.A.
Universität Osnabrück - Zentrum virtUOS
Heger-Tor-Wall 12, 49069 Osnabrück
Telefon: (0541) 969-6511 - Fax: (0541) 969-16511
E-Mail: rr...@uni-osnabrueck.de
Internet: www.virtuos.uni-osnabrueck.de

Peter Fanter

unread,
Feb 25, 2015, 3:28:13 AM2/25/15
to matterho...@opencast.org
apache 2.4 here, this is why it seems strange to me why this limit occurs. SOmetimes, if i leave the player open for a long time (jwplayer), it seems to play the huge video file, so i was wondering if it had to do with buffering or something like that

Per Pascal Grube

unread,
Feb 25, 2015, 3:43:24 AM2/25/15
to matterho...@opencast.org
Hi,

a long loading time sounds to me like you are missing the faststart-option for
mp4 (See [1]) Apache 2.4 should be able to byte-range without plugins.

Regards,

Pascal

[1]https://ffmpeg.org/ffmpeg-formats.html#mov_002c-mp4_002c-ismv
Per Pascal Grube
IZUS/TIK
Universitaet Stuttgart Tel: ++49-711-685-60011
Allmandring 30a
70550 Stuttgart www.tik.uni-stuttgart.de


***********************************************************

Peter Fanter

unread,
Feb 25, 2015, 3:50:15 AM2/25/15
to matterho...@opencast.org
Think i missed this,

going to follow this guide:

We install qt-faststart

qt-faststart is part of ffmpeg. We´re still in the ffmpeg-2.2.1/ directory and change into the tools/ folder. Here we make qt-faststart and copy it to /usr/local/bin/:

cd tools
make qt-faststart
cp qt-faststart /usr/local/bin/
cd /usr/src

Peter Fanter

unread,
Feb 25, 2015, 5:09:31 AM2/25/15
to matterho...@opencast.org
Installed it, says usage: qt-faststart input.mp4 output.mp4

so what should i do now?

Thank you

Rüdiger Rolf

unread,
Feb 25, 2015, 5:29:36 AM2/25/15
to matterho...@opencast.org
If you used the MP4 encoding profiles from here:
https://opencast.jira.com/wiki/display/MHDOC/HD-Video+%28720p%29+with+H.264+encoding+only
You don't need qt-faststart, as ffmpeg already endodes this option to the files.

You would not need to do anything... The files should simply be delivered under the provided link.

Regards
Rüdiger

Am 25.02.15 11:09, schrieb Peter Fanter:

Rubén Pérez

unread,
Feb 25, 2015, 6:25:39 AM2/25/15
to matterho...@opencast.org, Rüdiger Rolf
Hi,

In order to apply the "faststart" format to your existing videos, I would do:

mv myfile.mp4 myfile.mp4.old
qt-faststart myfile.mp4.old myfile.mp4

, which will effectively substitute my current files with their "faststarted" versions.

Of course, for new videos is better to follow Rüdiger's advice and tell ffmpeg to produce videos that "start fast". This comes down to add the parameter "-movflags faststart" to the ffmpeg command line in your encoding profile.


Regards
--
Rubén Pérez Vázquez

Universität zu Köln
Regionales Rechenzentrum (RRZK)
Weyertal 121, Raum 4.07
D-50931 Köln
✆: +49-221-470-89603

Peter Fanter

unread,
Feb 25, 2015, 6:35:23 AM2/25/15
to matterho...@opencast.org, Rüdiger Rolf
thank you very much for the solution for the current videos
Reply all
Reply to author
Forward
0 new messages