Giter Site home page Giter Site logo

ngx_http_estreaming_module's People

Contributors

whatvn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ngx_http_estreaming_module's Issues

what happend in new ver of module?

I is an older version of the module, from about May 2015, in my version I get a playlist
http://myserver.com/view/100053.m3u8?secl=qAmpzDxGNQ2zPhHSsZHwQw&sect=1438625784

inside - ALL FINE ,. here

EXTINF: 10.010,

0 / 177138.ts?Secl=gthP6Wd-O-WU6rD3NDAYmQ&sect=1438627125

EXTINF: 10.010,

1 / 177138.ts? Secl=gthP6Wd-O-WU6rD3NDAYmQ&sect=1438627125

EXTINF: 10.010,

.......

  The new version (now downloaded) within:
(i don't see here!!! ?Secl=gthP6Wd-O-WU6rD3NDAYmQ&sect=1438627125)

EXTINF: 10.678,

0 / 208.ts

EXTINF: 11.220,

3 / 208.ts

EXTINF: 11.595,

7 / 208.ts

EXTINF: 11.137,

11 / 208.ts

EXTINF: 12.304,

15 / 208.ts

Sec links for ts does;s not create normally in new ver, I'm getting on, respectively, 403
how to fix?

compile

i try to compile with nginx-1.7.12

i get this issue
/usr/local/nginx/ngx_http_estreaming_module-master/src/ngx_http_estreaming_module.c
In file included from /usr/local/nginx/ngx_http_estreaming_module-master/src/ngx_http_estreaming_module.c:14:0:
/usr/local/nginx/ngx_http_estreaming_module-master/src/ngx_http_adaptive_streaming.h:15:38: fatal error: libswresample/swresample.h: No such file or directory
compilation terminated.
make[1]: *** [objs/addon/src/ngx_http_estreaming_module.o] Error 1
make[1]: Leaving directory `/usr/local/nginx/nginx-1.7.12'
make: *** [build] Error 2

no ngx_http_estreaming_module/config was found

I use the steps you provided but since the owner used autconf i used

autoreconf --install
autoconf
./configure ; make; make install

and when i run

./configure --add-module=ngx_http_estreaming_module

i get the following error

configuring additional modules
adding module in ngx_http_estreaming_module
./configure: error: no ngx_http_estreaming_module/config was found

I am using Centos7

secure link

I have 415 code on *.ts files , with m3u8 all fine .

Please check .

core dumped

On this file i usually get
2015/05/23 07:23:47 [alert] 6556#0: worker process 7830 exited on signal 11 (core dumped)

Why?

ffmpeg -i ./1.mp4
ffmpeg version 2.6.2 Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
configuration: --enable-libx264 --enable-static --disable-opencl --enable-gpl --enable-libfdk-aac --enable-nonfree --enable-shared
libavutil 54. 20.100 / 54. 20.100
libavcodec 56. 26.100 / 56. 26.100
libavformat 56. 25.101 / 56. 25.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 11.102 / 5. 11.102
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from './176169.mp4':
Metadata:
major_brand : mp42
minor_version : 512
compatible_brands: isomiso2avc1mp41
title : Su 2015 from Exy
encoder : HandBrake 0.10.1 2015030800
Duration: 01:39:18.96, start: 0.000000, bitrate: 452 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1024x576, 319 kb/s, 24 fps, 24 tbr, 90k tbn, 180k tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(rus): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
handler_name : Stereo

give me your skype , and i transfer mp4 file for you
my skype artyinua

Not able to build nginx from sources

I have tried to add module ngx_http_estreaming_module to nginx but getting a build error as "No such file or directory #include <libswresample/swresample.h>"

Does module support live streams or VoD only?

It's not clear to me from the readme whether I need to have the entire video available as a file beforehand or not; can this module be used with a stream that is being published live?

Thanks for sharing your code!

secure link+proxy cache

I wish to use proxy_cahe (for m3u8 and ts files) + secure_links

i see on cache files like
KEY: http://127.0.0.1:88/video/long.m3u8?org=true&&secl=9Dl7GT9ut_cSInvjudkFHg&sect=1429630073
and
KEY: http://127.0.0.1:88/video/long.ts?video=4&org=true&&secl=9Dl7GT9ut_cSInvjudkFHg&sect=1429630073

but for another user (with other secure_link parameters) i will get copy cache files ...
I see already in the cache all the cache files for the same video ...., 10 users watch the video, and I'll have 10 copies of the same file in the cache. How can I have 1 copy of the cache for all users?

may be i need to get on cache key like this
KEY: http://127.0.0.1:88/video/long.m3u8
KEY: http://127.0.0.1:88/video/long.ts?video=4&org=true

how make this correct?

hot files stat

Hi, is scheduled ly creation extended statistics for hls module, for example sees most hot files for the time period, traffic etc

?

core dumped

I see this time to time , on ver nginx-1.8.0 STABLE
2015/09/10 17:12:50 [alert] 15671#15671: worker process 17957 exited on signal 11 (core dumped)
....
2015/09/10 17:51:59 [alert] 15671#15671: worker process 18878 exited on signal 11 (core dumped)

all fine on nginx-1.6.0
why it's happend? I need some fiatures from nginx-1.8.0 ver...

error log

what its mean in error.log ?

source video w:720source video w:656source video w:720source video w:720source video w:720source video w:700source video w:720overread end of a
tom 'colr' by 1 bytes
source video w:704source video w:720overread end of atom 'colr' by 1 bytes
source video w:704source video w:690overread end of atom 'colr' by 1 bytes
source video w:704source video w:720source video w:720source video w:720source video w:720source video w:720source video w:720source video w:72
0source video w:720overread end of atom 'colr' by 1 bytes
.....

Correction to guide

You have named your module "ngx_http_estreaming_module". But, you have written guide for building with following command,

--add-module=ngnx_http_estreaming_module

I guess the correction is obvious.

compile nginx failure

when I 'make' nginx , previously using './configure --add-module=./ngx_http_estreaming_module' I got this error :

cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -ggdb -D_DEBUG -D_LARGEFILE_SOURCE -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules -I src/mail -I src/stream
-o objs/addon/src/ngx_http_estreaming_module.o
./ngx_http_estreaming_module/src/ngx_http_estreaming_module.c
In file included from ./ngx_http_estreaming_module/src/ngx_http_estreaming_module.c:12:0:
./ngx_http_estreaming_module/src/output_m3u8.h: In function ‘mp4_create_m3u8’:
./ngx_http_estreaming_module/src/output_m3u8.h:73:9: error: ‘rewrite’ undeclared (first use in this function)
rewrite = (char ) ngx_palloc(mp4_context->r->pool,
^
./ngx_http_estreaming_module/src/output_m3u8.h:73:9: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *
* [objs/addon/src/ngx_http_estreaming_module.o] Error 1

note : I'm using ubuntu 14.04

libavcodec/avcodec.h: No such file or directory

In file included from ngx_http_estreaming_module/src/ngx_http_estreaming_module.c:13:0:
ngx_http_estreaming_module/src/ngx_http_adaptive_streaming.h:15:32: fatal error: libavcodec/avcodec.h: No such file or directory
 #include <libavcodec/avcodec.h>

conn bug?

nginx 1.7.9

config
limit_conn_zone $binary_remote_addr zone=addr:10m;
after 7-15 day of uses :
....
failed: no memory in limit_conn_zone "addr"
failed: no memory in limit_conn_zone "addr"
failed: no memory in limit_conn_zone "addr"....

In nginx stat i see

Active connections: 289590
server accepts handled requests
195828 195828 755861
Reading: 0 Writing: 15752 Waiting: 232070

its not real ...

for example stat with native mp4 pseudo stream, and same heavy load:
Active connections: 2251
server accepts handled requests
588592 588592 543546
Reading: 0 Writing: 2233 Waiting: 18

when

Hi,

when we see anything to get and test? :)

crit

2015/09/13 21:22:29 [crit] 21748#21748: 14156439 output_ts.h.808: (error) segment 1 is too big: 342577663 - 355582059, client: 127.0.0.1, server: examole.com, request: "GET /vod/filename.ts?video=1159&org=true&&secl=*_&sect=_* HTTP/1.0", host: "example.com"

What it's mean , why it's happend , how to fix?

m3u8

in config
segment_length 5;
in playlist i see

EXTM3U

EXT-X-TARGETDURATION:8

EXT-X-MEDIA-SEQUENCE:0

EXT-X-VERSION:4

EXTINF:10.010,

how to understant than chunk size 5 sec?

what about try_files?

try_files does't work ....

conf
location / {
......
root /ssd/hls/;
try_files
/hdd0/$1
/hdd1/$1

=404;
}

if possible to work try_files with this module?

Adaptive behaviour is limited to MP4 encoded by mp42 codec

In continuation to my posts on the following issue,
#19
I have decided to spawn this as a new thread.

The adaptive behaviour expected, is only possible if the file is encoded by mp42 (MPEG4 Version 2) encoder, shown by mediainfo as

Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42

Well at this point all I have come to know is that it is a codec by Microsoft, extending the standard MP4 definition.

What I am testing with is, encoded with x264, ffmpeg encoder.You would come across such files more often. Such files do not result in adaptive behaviour.

Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom

What's the reason, well I am not sure about that. If you have any information with this regard, kindly share.

Module is not getting built

I have compiled ffmpeg like this
PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure --prefix="$HOME/ffmpeg_build" --extra-cflags="-I$HOME/ffmpeg_build/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib" --bindir="$HOME/bin" --pkg-config-flags="--static" --enable-gpl --enable-nonfree --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265

$HOME is /root and estreaming config file has

CORE_LIBS="$CORE_LIBS -I /root/ffmpeg_build/include -lswresample -lavformat -lavcodec -lavutil -lavcodec -lavfilter -lrt -lswscale -lz -lm -lbz2 -lfdk-aac -lx264"
ngx_addon_name=ngx_http_estreaming_module
HTTP_AUX_FILTER_MODULES="$HTTP_AUX_FILTER_MODULES ngx_http_estreaming_module"
CFLAGS="$CFLAGS -ggdb -D_DEBUG -D_LARGEFILE_SOURCE"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/src/ngx_http_estreaming_module.c"

but still getting following error while compiling source
libavutil/old_pix_fmts.h: No such file or directory

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.