Does not work player

147 views
Skip to first unread message

Эдуард Ломинов

unread,
Jan 27, 2015, 5:04:03 AM1/27/15
to be...@googlegroups.com
Hi, why doesn't the player ?
VLC is Good
My website is not working

P.S I use the translator.

Flávio Ribeiro

unread,
Jan 27, 2015, 8:41:59 AM1/27/15
to be...@googlegroups.com
Hello,

Can you tell me what is the source URL of your stream? BemTV request chunks via JavaScript and it's necessary to add some Access-Control rules on responses in case you're requesting chunks from a different domain.

Headers needed:

Access-Control-Allow-Methods: GET, OPTIONS, POST, HEAD, PUT, DELETE
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: Content-Length, Content-Range, Date, Server, Transfer-Encoding, origin, range, x-goog-meta-foo1

Flávio Ribeiro 

--
You received this message because you are subscribed to the Google Groups "BemTV: Hybrid CDN/P2P Architecture for HLS Broadcasts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bemtv+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/bemtv.
For more options, visit https://groups.google.com/d/optout.

Эдуард Ломинов

unread,
Jan 28, 2015, 5:25:37 AM1/28/15
to be...@googlegroups.com
Hi, 
video of my take Nginx-Rtmp ( FFmpeg - > RTP -> HLS )
Как я могу смотреть ? GET ? Log Nginx ?

#user nobody;
worker_processes
6;
events
{
    worker_connections
1024;
}
    rtmp_auto_push on
;
http
{
    include mime
.types;
    default_type application
/octet-stream;
    sendfile on
;
    keepalive_timeout
65;
        server
{
            listen
80;
            server_name localhost
;            
              access_log
/var/log/nginx/access.log;
              error_log
/var/log/nginx/error.log;
            location
/ {
                 root
/var/www;
                 index index
.html index.htm;
           
}
            location
/stat {
                 rtmp_stat all
;
                 rtmp_stat_stylesheet stat
.xsl;
           
}
            location
/stat.xsl {
                 
# you can move stat.xsl to a different location
                 
alias /tmp/hls;
           
}
           
# rtmp control
            location
/control {
                 rtmp_control all
;
           
}
            location
/hls {
                       types
{
                          application
/vnd.apple.mpegurl m3u8;
                       
}
            root
/tmp;
           
}
            error_page
500 502 503 504 /50x.html;
            location
=
/50x.html {
                 root html;
            }
      }
}
rtmp {
     access_log /
var/log/nginx/rtmp_access.log;
            server
{
               listen
1935;
               ping
30s;
               notify_method
get;
               application myapp
{
                   live on
;
                   
exec_static /usr/local/bin/ffmpeg -i rtp://@233.33.210.86:5050  -c:v libx264 -s 720x576 -b:v 500k -c:a libfaac -ar 44100 -ac 2 -f flv rtmp://localhost/myapp/live 2>>/var/log/nginx/ffmpeg.log';
                   hls on
;
                   hls_path
/tmp/hls;
                   hls_fragment
5s;
               
}
           
}
}

Satellite Stream

unread,
Jan 28, 2015, 11:33:21 AM1/28/15
to be...@googlegroups.com
http://95.25.178.158/  - website test
http://95.25.178.158/hls/live.m3u8  - 30 sec (chanel)

Flávio Ribeiro

unread,
Jan 28, 2015, 1:14:17 PM1/28/15
to be...@googlegroups.com

Hello,

I had several problems in trying to play this source (http://95.25.178.158/hls/live.m3u8) both on FlasHLS[1] and natively on Safari[2]. I really think that there's some issues on segments/playlist generation but despite this I saw that the name of the segments are being repeated and this is not recommended on BemTV, we use the name of the segment to match the content between the peers on the swarm. 

There's no Access-Control headers on the response also. You can solve by following this: http://serverfault.com/questions/162429/how-do-i-add-access-control-allow-origin-in-nginx

[2] Faced stucks, could only play 1 segment on Safari@Mac: https://dl.dropboxusercontent.com/u/7583353/watch_html5_video.html

Best,

Flávio Ribeiro 

On Wed, Jan 28, 2015 at 2:33 PM, Satellite Stream <gisc...@gmail.com> wrote:
http://95.25.178.158/  - website test
http://95.25.178.158/hls/live.m3u8  - 30 sec (chanel)

Satellite Stream

unread,
Jan 28, 2015, 2:39:11 PM1/28/15
to be...@googlegroups.com
Hi, Flávio Ribeiro 
It's not online was broadcast, sliced HTTP -> FFmpeg -> Nginx (HLS).
Is there a channel for 30 seconds.

sat@sat
-P5KC:~$ sudo /usr/local/bin/ffmpeg-i http://iptv.multi-net.ru/udp/239.255.1.29:1234 -vcodec copy-acodec aac-strict experimental-ar 44100-ac 2-f segment-segment_list /tmp/hls/channel_name.m3u8-segment_list_type m3u8-segment_time 10-segment_format MPEG-TS /tmp/hls/channel_name%03d.ts





And was nginx_rtmp(ffmpeg) (FFmpeg processor big load) -> hls -> bem_tv 
VLC is good
Website no

application myapp {
   live on
;
   exec_static
/usr/local/bin/ffmpeg -i rtp://@233.33.210.86:5050 -c:v libx264 -s 720x576 -b:v 500k -c:a aac -strict experimental -ar 44100 -ac 2 -f flv rtmp://localhost/myapp/live 2>>/var/log/nginx/ffmpeg.log;

   hls on
;
   hls_path
/tmp/hls;
   hls_fragment
5s;
}

Please give your code Nignix_rtmp + FFmpeg to see what I have wrong.

среда, 28 января 2015 г., 21:14:17 UTC+3 пользователь Flávio Ribeiro написал:

Satellite Stream

unread,
Jan 28, 2015, 4:19:04 PM1/28/15
to be...@googlegroups.com
            location / {
                 root
/var/www;
                 index index
.html index.htm;

                 add_header
Access-Control-Expose-Headers "Content-Length, Content-Range, Date, Server, Transfer-Encoding, origin, range, x-goog-meta-foo1";
                 add_header
Access-Control-Allow-Methods "GET, OPTIONS, POST, HEAD, PUT, DELETE";
         add_header
Access-Control-Allow-Origin "*";
           
}
Set up Nginx, tomorrow I will give your new IP, I changed

вторник, 27 января 2015 г., 16:41:59 UTC+3 пользователь Flávio Ribeiro написал:

Satellite Stream

unread,
Feb 1, 2015, 6:51:51 PM2/1/15
to be...@googlegroups.com

Hi, I had done it, works well !
The problem was - crossdomain.xml no.




среда, 28 января 2015 г., 21:14:17 UTC+3 пользователь Flávio Ribeiro написал:

Flávio Ribeiro

unread,
Feb 1, 2015, 10:15:34 PM2/1/15
to be...@googlegroups.com
Happy to see it's working. Sorry for miss the last mail you sent. Feel free to ask anything you want during your tests.

Best,

Flávio Ribeiro 
Reply all
Reply to author
Forward
0 new messages