Jump to content

livetv playback problem with firefox, mediaportal plugin


jsanchez

Recommended Posts

jsanchez

Hello,

 

I've installed the new Emby version 3.0.5781.8, and plugin mediaportal 1.3.2.933.

It works fine with chrome, and ie11 ( with webm for ie), when I play live tv with firefox V43 nothings happen.

 

In the log file there is this ffmpeg call:

2015-12-22 16:05:18.8081 Info App: C:\Users\JSANCHEZ\AppData\Roaming\Emby-Server\ffmpeg\20151111\ffmpeg.exe -fflags +genpts -async 1 -vsync -1 -re -i "http://10.161.86.101:4322/MPExtended/StreamingService/stream/RetrieveStream?identifier=TV-3069-20151222150515"-map_metadata -1 -threads 2 -map 0:0 -map 0:1 -map -0:s -codec:v:0 copy -bsf:v h264_mp4toannexb -sc_threshold 0 -codec:a:0 aac -strict experimental -ac 2 -ab 128000 -af "adelay=1,aresample=async=1000" -hls_time 3 -start_number 0 -hls_list_size 0 -hls_base_url "hls/13ba71ef32d3a45dd8a2ed6ec593907d/" -y "C:\Users\JSANCHEZ\AppData\Roaming\Emby-Server\transcoding-temp\13ba71ef32d3a45dd8a2ed6ec593907d.m3u8"

 

Which create this kind of m3u8

 

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:5
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:4.227022,
hls/13ba71ef32d3a45dd8a2ed6ec593907d/13ba71ef32d3a45dd8a2ed6ec593907d0.ts
#EXTINF:2.840000,
hls/13ba71ef32d3a45dd8a2ed6ec593907d/13ba71ef32d3a45dd8a2ed6ec593907d1.ts
#EXTINF:2.880000,
hls/13ba71ef32d3a45dd8a2ed6ec593907d/13ba71ef32d3a45dd8a2ed6ec593907d2.ts
#EXTINF:2.880000,
hls/13ba71ef32d3a45dd8a2ed6ec593907d/13ba71ef32d3a45dd8a2ed6ec593907d3.ts
 

If I try to play this playlist with VLC, Iget error can't find the file *.ts.

 

Thanks for your help.

 

server-63586396418.txttranscode-b71f7a9a-8152-4048-90b3-a3252aa97974.txt

Link to comment
Share on other sites

jsanchez

Yes I can play recorded tV, and the m3u8 generated is different, it looks like this

 

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:5
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:4.227022,
13ba71ef32d3a45dd8a2ed6ec593907d0.ts
#EXTINF:2.840000,
13ba71ef32d3a45dd8a2ed6ec593907d1.ts
#EXTINF:2.880000,
13ba71ef32d3a45dd8a2ed6ec593907d2.ts
#EXTINF:2.880000,
13ba71ef32d3a45dd8a2ed6ec593907d3.ts

 

Thanks again

Link to comment
Share on other sites

Ok, I might just suggest using Chrome for this then. Since the originating stream is owned by a plugin I don't really have the capacity to debug this I'm afraid.

Link to comment
Share on other sites

jsanchez

Since Firefox V42 there is a problem with live tv, encoding make m3u8 and ts files with older version encode is a webm file.

 

V42 and above ffmpeg is launched

 

2015-12-22 23:35:32.8168 Info App: C:\Users\JSANCHEZ\AppData\Roaming\Emby-Server\ffmpeg\20151111\ffmpeg.exe -fflags +genpts -async 1 -vsync -1 -re -i "http://10.161.86.101:4322/MPExtended/StreamingService/stream/RetrieveStream?identifier=TV-156-20151222223528"-map_metadata -1 -threads 2 -map 0:0 -map 0:1 -map -0:s -codec:v:0 libx264 -pix_fmt yuv420p -preset superfast -crf 23 -b:v 872001 -maxrate 872001 -bufsize 1744002 -vsync vfr -profile:v high -level 41 -force_key_frames "expr:gte(t,n_forced*3)" -vf "yadif=0:-1:0,scale=min(iw\,720):trunc(ow/dar/2)*2" -sc_threshold 0 -codec:a:0 aac -strict experimental -ac 2 -ab 128000 -af "adelay=1,aresample=async=1000" -hls_time 3 -start_number 0 -hls_list_size 0 -hls_base_url "hls/ce54a41b5eb45808f7488ec17a1c7662/" -y "C:\Users\JSANCHEZ\AppData\Roaming\Emby-Server\transcoding-temp\ce54a41b5eb45808f7488ec17a1c7662.m3u8"

 

V40

2015-12-22 23:33:43.7975 Info App: C:\Users\JSANCHEZ\AppData\Roaming\Emby-Server\ffmpeg\20151111\ffmpeg.exe -fflags +genpts -async 1 -vsync -1 -re -i "http://10.161.86.101:4322/MPExtended/StreamingService/stream/RetrieveStream?identifier=TV-154-20151222223339"-map 0:0 -map 0:1 -map -0:s -codec:v:0 libvpx -force_key_frames expr:gte(t,n_forced*5) -vf "yadif=0:-1:0,scale=min(iw\,720):trunc(ow/dar/2)*2" -pix_fmt yuv420p -speed 16 -quality good -profile:v 0 -slices 8 -crf 10 -qmin 0 -qmax 50 -maxrate:v 872001 -bufsize:v (872001*2) -b:v 872001 -vsync vfr -map_metadata -1 -threads 2 -codec:a:0 libvorbis -ab 128000 -af "aresample=async=1000" -y "C:\Users\JSANCHEZ\AppData\Roaming\Emby-Server\transcoding-temp\24c4a6991d616e587ed83000bec96312.webm"

Link to comment
Share on other sites

jsanchez

OK but emby server will be overwhelmed by several ffmpeg process not killed when launched by firefox web client or emby windows phone client.

The option hls_base_url seem to be wrong in that way.,

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:5
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:4.227022,
hls/13ba71ef32d3a45dd8a2ed6ec593907d/13ba71ef32d3a45dd8a2ed6ec593907d0.ts
#EXTINF:2.840000,
hls/13ba71ef32d3a45dd8a2ed6ec593907d/13ba71ef32d3a45dd8a2ed6ec593907d1.ts
#EXTINF:2.880000,
hls/13ba71ef32d3a45dd8a2ed6ec593907d/13ba71ef32d3a45dd8a2ed6ec593907d2.ts
#EXTINF:2.880000,
hls/13ba71ef32d3a45dd8a2ed6ec593907d/13ba71ef32d3a45dd8a2ed6ec593907d3.ts
 

If I try to play this playlist with VLC, Iget error can't find the file *.ts.

Screen capture of trancoding-temp folder:

 

567a7a7673867_Capture.png

 

Thanks you for your answers

Link to comment
Share on other sites

That's not the actual problem. The problem is something in the browser related to playing the .ts segments.

Link to comment
Share on other sites

jsanchez

Sorry to insist.

 

But when I play recorded TV, there is no problem with firefox V43.

 

And the files in transcoding-temp folder are similar to livetv play but without -hls_base_url.

 

server logs for livetv play:

 C:\Users\JSANCHEZ\AppData\Roaming\Emby-Server\ffmpeg\20151111\ffmpeg.exe -fflags +genpts -async 1 -vsync -1 -re -i "http://10.161.86.102:4322/MPExtended/StreamingService/stream/RetrieveStream?identifier=TV-701-20151224140339"-map_metadata -1 -threads 2 -map 0:0 -map 0:1 -map -0:s -codec:v:0 libx264 -pix_fmt yuv420p -preset superfast -crf 23 -b:v 1000000 -maxrate 1000000 -bufsize 2000000 -vsync vfr -profile:v high -level 41 -force_key_frames "expr:gte(t,n_forced*3)" -vf "yadif=0:-1:0,scale=min(iw\,1280):trunc(ow/dar/2)*2" -sc_threshold 0 -codec:a:0 aac -strict experimental -ac 2 -ab 128000 -af "adelay=1,aresample=async=1000" -hls_time 3 -start_number 0 -hls_list_size 0 -hls_base_url "hls/07a847bb2efeb2d95e333aa173ab5c50/" -y "C:\Users\JSANCHEZ\AppData\Roaming\Emby-Server\transcoding-temp\07a847bb2efeb2d95e333aa173ab5c50.m3u8"

 

server logs for recordertv play:

C:\Users\JSANCHEZ\AppData\Roaming\Emby-Server\ffmpeg\20151111\ffmpeg.exe -i file:"\\HPNASSXB\RecordTV\TF1\Journal\Journal - 2015-12-24.ts" -map_metadata -1 -threads 2 -map 0:0 -map 0:1 -map -0:s -codec:v:0 libx264 -pix_fmt yuv420p -preset superfast -crf 23 -b:v 9388216 -maxrate 9388216 -bufsize 18776432 -vsync vfr -profile:v high -level 41 -force_key_frames "expr:gte(t,n_forced*3)" -vf "scale=trunc(oh*a/2)*2:min(ih\,1080)" -flags -global_header -sc_threshold 0 -codec:a:0 aac -strict experimental -ac 2 -ab 128000 -af "adelay=1,aresample=async=1" -hls_time 3 -start_number 0 -hls_list_size 0 -y "C:\Users\JSANCHEZ\AppData\Roaming\Emby-Server\transcoding-temp\5f998d514f10b8d788f0998998bc124b.m3u8"
 

 

And m3u8 file for recordertv looks like

 

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:4
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:3.013567,
5f998d514f10b8d788f0998998bc124b0.ts
#EXTINF:3.000000,
5f998d514f10b8d788f0998998bc124b1.ts
#EXTINF:3.000000,
5f998d514f10b8d788f0998998bc124b2.ts
#EXTINF:3.000000,
5f998d514f10b8d788f0998998bc124b3.ts
#EXTINF:3.000000,
5f998d514f10b8d788f0998998bc124b4.ts
#EXTINF:3.000000,
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:4
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:3.013567,
5f998d514f10b8d788f0998998bc124b0.ts
#EXTINF:3.000000,
5f998d514f10b8d788f0998998bc124b1.ts
#EXTINF:3.000000,
5f998d514f10b8d788f0998998bc124b2.ts
#EXTINF:3.000000,
5f998d514f10b8d788f0998998bc124b3.ts
#EXTINF:3.000000,
5f998d514f10b8d788f0998998bc124b4.ts
#EXTINF:3.000000,
5f998d514f10b8d788f0998998bc124b5.ts
#EXTINF:3.000000,5.ts
 

Rather the same as livetv one's but without /hls/5f998d514f10b8d788f0998998bc124b/.

 

Cheers

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...