Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Casting AceStream Links to the TV #107

Open
avmduck opened this issue May 31, 2016 · 41 comments
Open

Casting AceStream Links to the TV #107

avmduck opened this issue May 31, 2016 · 41 comments

Comments

@avmduck
Copy link

avmduck commented May 31, 2016

I have gotten PowderPlayer to Play an AceStream (http://acestream.org/) using a .m3u file. Written using Notepad and saved with UTF-8(encoding)
(example below) But I can't get it to "Stream to TV (DLNA)" working. i am getting an "Error: Nothing Found" error.
More than likely..... something to do with Transcoding!
Am I correct in my thinking?

EXTM3U

EXTINF:-1, BT Sport 2 HD (Спорт)

http://127.0.0.1:8081/channels/play?id=14882
(of course it was not as easy or simple as making the .m3u file had to run a couple of programs and register with Torrent-TV to do it)

@jaruba
Copy link
Owner

jaruba commented May 31, 2016

What TV do you have (include model too if possible). Could you try without the (Спорт) in the item title? (some TVs don't support foreign characters)

Another thing that might help would be doing CTRL + D and checking if there are any errors in the console log after trying to cast to the TV.

One more thing you could do would be downloading ffprobe from here and trying something like:

ffprobe -v error -show_format -show_streams http://127.0.0.1:8081/channels/play?id=14882

then printing the output here, so we can get a better understanding of the format we're dealing with.

@avmduck
Copy link
Author

avmduck commented Jun 1, 2016

Sony BRAVIA 55" Model # KDL55W700B

CTRL+D:
Uncaught TypeError: Cannot read property 'request' of undefine ddlna.js:333 dlna.prepareServer dlna.js:527 dlna.findMyIp E:\Program Files (x86)\Powder Player\node_modules\pw-wcjs-player\index.js:2665
(anonymous function)
n.event.dispatch jquery-2.1.3.min.js:3
r.handle jquery-2.1.3.min.js:3

ffprobe:
[h264 @ 00000000001ed4a0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 00000000001ed4a0] decode_slice_header error
[h264 @ 00000000001ed4a0] no frame!
[h264 @ 00000000001ed4a0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 00000000001ed4a0] decode_slice_header error
[h264 @ 00000000001ed4a0] no frame!
[h264 @ 00000000001ed4a0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 00000000001ed4a0] decode_slice_header error
[h264 @ 00000000001ed4a0] no frame!
[h264 @ 00000000001ed4a0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 00000000001ed4a0] decode_slice_header error
[h264 @ 00000000001ed4a0] no frame!
[h264 @ 00000000001ed4a0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 00000000001ed4a0] decode_slice_header error
[h264 @ 00000000001ed4a0] no frame!
[h264 @ 00000000001ed4a0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 00000000001ed4a0] decode_slice_header error
[h264 @ 00000000001ed4a0] no frame!
[h264 @ 00000000001ed4a0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 00000000001ed4a0] decode_slice_header error
[h264 @ 00000000001ed4a0] no frame!
[h264 @ 00000000001ed4a0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 00000000001ed4a0] decode_slice_header error
[h264 @ 00000000001ed4a0] no frame!
[h264 @ 00000000001ed4a0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 00000000001ed4a0] decode_slice_header error
[h264 @ 00000000001ed4a0] no frame!
[h264 @ 00000000001ed4a0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 00000000001ed4a0] decode_slice_header error
[h264 @ 00000000001ed4a0] no frame!
[h264 @ 00000000001ed4a0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 00000000001ed4a0] decode_slice_header error
[h264 @ 00000000001ed4a0] no frame!
[h264 @ 00000000001ed4a0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 00000000001ed4a0] decode_slice_header error
[h264 @ 00000000001ed4a0] no frame!
[h264 @ 00000000001ed4a0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 00000000001ed4a0] decode_slice_header error
[h264 @ 00000000001ed4a0] no frame!
[h264 @ 00000000001ed4a0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 00000000001ed4a0] decode_slice_header error
[h264 @ 00000000001ed4a0] no frame!
[h264 @ 00000000001ed4a0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 00000000001ed4a0] decode_slice_header error
[h264 @ 00000000001ed4a0] no frame!
[h264 @ 00000000001ed4a0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 00000000001ed4a0] decode_slice_header error
[h264 @ 00000000001ed4a0] no frame!
[h264 @ 00000000001ed4a0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 00000000001ed4a0] decode_slice_header error
[h264 @ 00000000001ed4a0] no frame!
[h264 @ 00000000001ed4a0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 00000000001ed4a0] decode_slice_header error
[h264 @ 00000000001ed4a0] no frame!
[h264 @ 00000000001ed4a0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 00000000001ed4a0] decode_slice_header error
[h264 @ 00000000001ed4a0] no frame!
[h264 @ 00000000001ed4a0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 00000000001ed4a0] decode_slice_header error
[h264 @ 00000000001ed4a0] no frame!
[h264 @ 00000000001ed4a0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 00000000001ed4a0] decode_slice_header error
[h264 @ 00000000001ed4a0] no frame!
[h264 @ 00000000001ed4a0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 00000000001ed4a0] decode_slice_header error
[h264 @ 00000000001ed4a0] no frame!
[h264 @ 00000000001ed4a0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 00000000001ed4a0] decode_slice_header error
[h264 @ 00000000001ed4a0] no frame!
[h264 @ 00000000001ed4a0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 00000000001ed4a0] decode_slice_header error
[h264 @ 00000000001ed4a0] no frame!
[h264 @ 00000000001ed4a0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 00000000001ed4a0] decode_slice_header error
[h264 @ 00000000001ed4a0] no frame!
[h264 @ 00000000001ed4a0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 00000000001ed4a0] decode_slice_header error
[h264 @ 00000000001ed4a0] no frame!
[h264 @ 00000000001ed4a0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 00000000001ed4a0] decode_slice_header error
[h264 @ 00000000001ed4a0] no frame!
[h264 @ 00000000001ed4a0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 00000000001ed4a0] decode_slice_header error
[h264 @ 00000000001ed4a0] no frame!
[h264 @ 00000000001ed4a0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 00000000001ed4a0] decode_slice_header error
[h264 @ 00000000001ed4a0] no frame!
[h264 @ 00000000001ed4a0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 00000000001ed4a0] decode_slice_header error
[h264 @ 00000000001ed4a0] no frame!
[h264 @ 00000000001ed4a0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 00000000001ed4a0] decode_slice_header error
[h264 @ 00000000001ed4a0] no frame!
[h264 @ 00000000001ed4a0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 00000000001ed4a0] decode_slice_header error
[h264 @ 00000000001ed4a0] no frame!
[h264 @ 00000000001ed4a0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 00000000001ed4a0] decode_slice_header error
[h264 @ 00000000001ed4a0] no frame!
[STREAM]
index=0
codec_name=aac
codec_long_name=AAC (Advanced Audio Coding)
profile=LC
codec_type=audio
codec_time_base=1/48000
codec_tag_string=[15][0][0][0]
codec_tag=0x000f
sample_fmt=fltp
sample_rate=48000
channels=2
channel_layout=stereo
bits_per_sample=0
id=0x44
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/90000
start_pts=239
start_time=0.002656
duration_ts=N/A
duration=N/A
bit_rate=126000
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=N/A
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=0
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
[/STREAM]
[STREAM]
index=1
codec_name=h264
codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
profile=High
codec_type=video
codec_time_base=1/50
codec_tag_string=[27][0][0][0]
codec_tag=0x001b
width=1920
height=1080
coded_width=1920
coded_height=1080
has_b_frames=2
sample_aspect_ratio=1:1
display_aspect_ratio=16:9
pix_fmt=yuv420p
level=40
color_range=N/A
color_space=unknown
color_transfer=unknown
color_primaries=unknown
chroma_location=left
timecode=N/A
refs=1
is_avc=false
nal_length_size=0
id=0x45
r_frame_rate=25/1
avg_frame_rate=25/1
time_base=1/90000
start_pts=21600
start_time=0.240000
duration_ts=N/A
duration=N/A
bit_rate=N/A
max_bit_rate=N/A
bits_per_raw_sample=8
nb_frames=N/A
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=0
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
[/STREAM]
[FORMAT]
filename=http://127.0.0.1:8081/channels/play?id=14882
nb_streams=2
nb_programs=1
format_name=mpegts
format_long_name=MPEG-TS (MPEG-2 Transport Stream)
start_time=0.002656
duration=N/A
size=N/A
bit_rate=N/A
probe_score=100
[/FORMAT]

@jaruba
Copy link
Owner

jaruba commented Jun 1, 2016

Funnily enough, I think your TV might support MPEG-TS H264 out of the box.. Do local videos or torrents work to be casted to the TV? How about youtube links?

@jaruba
Copy link
Owner

jaruba commented Jun 1, 2016

I have an idea.. try using:

#EXTM3U
#EXTINF:-1, BT Sport 2 HD
http://localhost:8081/channels/play?id=14882

@jaruba
Copy link
Owner

jaruba commented Jun 1, 2016

An alternative (and possibly better, as it uses a different technique of casting) way of doing it would be to open this file with a text or code editor:

PowderPlayer/src/lib/dlna.js

And replace these lines:
https://github.com/jaruba/PowderPlayer/blob/master/src/lib/dlna.js#L321-L329

With:

if (urlParser.protocol == 'https:') {
    var http = require('https');
    urlParser.port = urlParser.protocol || 443;
} else if (urlParser.protocol == 'http:') {
    var http = require('http');
    urlParser.port = urlParser.protocol || 80;
}

Then save the file (restart powder if it's already running) and try it with:

#EXTM3U
#EXTINF:-1, BT Sport 2 HD
http://127.0.0.1:8081/channels/play?id=14882

note the use of the 127.0.0.1, not localhost in this test

@jaruba
Copy link
Owner

jaruba commented Jun 1, 2016

I've looked at this a bit closer, the second method i proposed can't work without this change too.

https://github.com/jaruba/PowderPlayer/blob/master/src/lib/dlna.js#L232

should be:

configProxy = { target: urlParser.protocol+'//'+ ( urlParser.host.includes(':') ? urlParser.host : urlParser.host+':'+urlParser.port ) };

keep in mind that after making all these code changes you can just change between these 2 test cases by changing 127.0.0.1 to localhost or vice versa in your .m3u playlist

@jaruba jaruba changed the title "Error: Nothing Found" Casting AceStream Links to the TV Jun 1, 2016
@avmduck
Copy link
Author

avmduck commented Jun 1, 2016

Tried all of your suggestions
It just froze up Powder (when I tried to DLNA)
YouTube video works fine (go figure)
I Uninstalled and Reinstalled Powder
Got to get myself a real editing program... what do you use?
I will try it all again tomorrow... and give you a new CTRL + D error....
Thank You, for all your help!

@jaruba
Copy link
Owner

jaruba commented Jun 2, 2016

It just froze up Powder (when I tried to DLNA)

It shouldn't have.. The way the 2 test scenarios work, is that if you use localhost, it would just send the streaming link directly to the TV, without any interference.

With the fixes and using 127.0.0.1, it should do what it does for YouTube, which is create a local proxy, and push everything from your stream link through this new proxy attaching DLNA headers to it. This is needed for YouTube because TV's only accept streams from your LAN, not the internet. The DLNA headers that it attaches just activate the use of your remote during TV playback.

In your particular scenario, both should work (if your TV supports the format, and I think it might), because your link is already in your LAN, so it should be accepted, proxying it like we do to YouTube should only activate remote control use.

Got to get myself a real editing program... what do you use?

Most like using Sublime Text

@avmduck
Copy link
Author

avmduck commented Jun 3, 2016

Thank You for the Sublime Text Editor... Made trying your earlier suggestions much easier.
When I did what you suggested Powder froze up,,,, took a Task Manager End Task to shut down.
Have put everthing back the way it was.... am getting a CTRL+D console says:

Uncaught Error: Illegal MIME-type (714) dlna.js:886
dlna.listeners.onLoad dlna.js:886
(anonymous function) E:\Program Files (x86)\Powder Player\node_modules\upnp-mediarenderer-client\index.js:162
(anonymous function) E:\Program Files (x86)\Powder Player\node_modules\upnp-device-client\index.js:145
(anonymous function) E:\Program Files (x86)\Powder Player\node_modules\concat-stream\index.js:36
emitNone events.js:70
emit events.js:147
finishMaybeE E:\Program Files (x86)\Powder Player\node_modules\readable-stream\lib_stream_writable.js:511
afterWrite E:\Program Files (x86)\Powder Player\node_modules\readable-stream\lib_stream_writable.js:390
afterTick E:\Program Files (x86)\Powder Player\node_modules\process-nextick-args\index.js:18
_tickCallback node.js:375

@avmduck avmduck closed this as completed Jun 3, 2016
@avmduck avmduck reopened this Jun 3, 2016
@jaruba
Copy link
Owner

jaruba commented Jun 3, 2016

Uhm, for this particular error, I'd try changing these lines:
https://github.com/jaruba/PowderPlayer/blob/master/src/lib/dlna.js#L197-L202

to:

var options = {
    contentType: 'video/mp2t',
    autoplay: true,
    metadata: {
        title: player.vlc.playlist.items[dlna.instance.lastIndex].title.replace("[custom]","")
    }
};

this is a change that might help with that error in your current use case, but would need to be changed back for other formats to work with casting

@avmduck
Copy link
Author

avmduck commented Jun 3, 2016

Thank You
I will try it

@jaruba
Copy link
Owner

jaruba commented Jun 3, 2016

Other possible options for contentType if that doesn't work, could be video/vnd.dlna.mpeg-tts and video/x-mp2t-mphl-188

@avmduck
Copy link
Author

avmduck commented Jun 3, 2016

Error:Action
SetAVTransportURI failed (714) dlna.js:888

Line 888 = throw err;

@jaruba
Copy link
Owner

jaruba commented Jun 3, 2016

did you try all of them? :))

@avmduck
Copy link
Author

avmduck commented Jun 3, 2016

no
sorry
missed 1

@avmduck
Copy link
Author

avmduck commented Jun 3, 2016

1st content type change
Illegal MIME-type (714)
2nd
Same result.
Do you use Powder to watch streaming content?

@jaruba
Copy link
Owner

jaruba commented Jun 3, 2016

Streaming - Yes (all the time), Live Streaming - No. But that shouldn't be the issue. What method did you use to get to this error?

Make sure that your TV's software is updated. After that open:
PowderPlayer\node_modules\upnp-mediarenderer-client\index.js
and add:

console.log(JSON.stringify(result, null, 2));

here:
https://github.com/thibauts/node-upnp-mediarenderer-client/blob/master/index.js#L81

Then try again and check the console log (CTRL + D), paste here what is in there (there should be a big text printed there with content types) this will tell us exactly what content types your TV supports.

@jaruba
Copy link
Owner

jaruba commented Jun 3, 2016

edited my previous comment, use the code posted now

@avmduck
Copy link
Author

avmduck commented Jun 3, 2016

Load an .m3u as a file
then right click on the settings icon then Stream to TV (DLNA)

Ok will do

@avmduck
Copy link
Author

avmduck commented Jun 3, 2016

fetching OS cookie failed, trying again in 20 sec
dlna.js:273
Uncaught TypeError: Cannot read property 'indexOf' of undefined
2dlna.js:273
Uncaught TypeError: Cannot read property 'indexOf' of undefined
2dlna.js:273

@jaruba
Copy link
Owner

jaruba commented Jun 3, 2016

It's saying that it can't find the video URL, try again maybe? Wait for the video to play a few seconds before pressing Stream to TV (DLNA)

@jaruba
Copy link
Owner

jaruba commented Jun 3, 2016

Thing is, I wouldn't be putting you through all this if I didn't think it might actually be possible.

But I'm looking at a DLNA profile generated from a BRAVIA KDL-42W805A (your's being KDL-55W700B, which are pretty close models) and it says it supports:

Supported = f:avi             v:mp4|mjpeg              a:mp3|lpcm|mpa|ac3   qpel:no   gmc:0         m:video/avi
Supported = f:mkv             v:mp4|h264               a:ac3|aac|mpa|ogg                            m:video/x-matroska
Supported = f:mov             v:mp4|h264|mjpeg         a:aac|ac3|mpa|lpcm                           m:video/quicktime
Supported = f:mp4             v:mp4|h264               a:ac3|mpa                                    m:video/mp4
Supported = f:mp4             v:mp4|h264               a:aac                                  n:2   m:video/mp4
Supported = f:mpegps|mpegts   v:mpeg1|mpeg2|mp4|h264   a:ac3|lpcm|aac|mpa                           m:video/mpeg
Supported = f:wmv             v:wmv|vc1                a:wma                                  n:2   m:video/x-ms-wmv

One of these lines is:

Supported = f:mpegps|mpegts   v:mpeg1|mpeg2|mp4|h264   a:ac3|lpcm|aac|mpa                           m:video/mpeg

Your previous ffprobe check said your trying to play:

f:mpegts  v:h264  a:aac

Which seem to be fully compatible with a request for the video/mpeg content type (which is the default if we don't set any contentType). This info might not be perfect, or there might just be a bigger difference between the two Sony Bravia W models then I think..

But we're getting pretty close to me running out of ideas, so what's there to loose? :)

@avmduck
Copy link
Author

avmduck commented Jun 3, 2016

Okay
Thank You for all your effort! Much Appreciated!

@jaruba
Copy link
Owner

jaruba commented Jun 3, 2016

If you want, we can try with transcoding, it wouldn't be necessarily hard to test, and we might succeed faster, but you might need a lot of space on your hard disk for this one :)

@avmduck
Copy link
Author

avmduck commented Jun 3, 2016

Hard disk space I've got plenty...
But we are going to have to wait until tomorrow

@avmduck
Copy link
Author

avmduck commented Jun 3, 2016

Good afternoon jaruba! I've got plenty of hard disk space... VLC 2.2.3 Weatherwax..... and a couple of hours to kill(if we need that long).
If you have the time... for Transcoding 101.

@jaruba
Copy link
Owner

jaruba commented Jun 3, 2016

@avmduck Download ffmpeg, open a command line in the same folder where you unpacked ffmpeg (same forlder as ffmpeg.exe)

With the AceStream Link ready write:

[command-removed]

remember to substitute http://127.0.0.1:8081/channels/play?id=14882 with the new AceStream Link and C:\liveStream.mpg to wherever you want to save the transcoded media

Then wait a bit and try to play the .mpg file from where it's being saved. (With VLC first, if it works then with Powder)

@avmduck
Copy link
Author

avmduck commented Jun 3, 2016

You Rock jaruba!!!

Working fine so far....

@jaruba
Copy link
Owner

jaruba commented Jun 3, 2016

@avmduck You'd need to elaborate on the "working fine", did you manage to transcode it, or managed to cast it to the TV? :)

@avmduck
Copy link
Author

avmduck commented Jun 3, 2016

Cast to Tv..... But its only working for 3-5 minutes
Out of time right now
I should be back around 10PM EST

@jaruba
Copy link
Owner

jaruba commented Jun 3, 2016

Yes, I was expecting this issue..

@avmduck
Copy link
Author

avmduck commented Jun 4, 2016

Would you like to see some of the errors that are coming up in the ffmpeg Command Prompt window?

@jaruba
Copy link
Owner

jaruba commented Jun 4, 2016

Wouldn't hurt, although I have an idea of what's bugging it :)

@avmduck
Copy link
Author

avmduck commented Jun 4, 2016

Press [q] to stop, [?] for help
[h264 @ 00000000030f6b40] out of range intra chroma pred modetrate=7672.2kbits/s dup=64 drop=0 speed=1.06x
[h264 @ 00000000030f6b40] error while decoding MB 40 36
[h264 @ 00000000030f6b40] concealing 729 DC, 729 AC, 729 MV errors in I frame
[h264 @ 00000000030f6b40] negative number of zero coeffs at 47 24e=8076.4kbits/s dup=66 drop=0 speed=1.05x
[h264 @ 00000000030f6b40] error while decoding MB 47 24
[h264 @ 00000000030f6b40] concealing 1682 DC, 1682 AC, 1682 MV errors in I frame
[h264 @ 00000000030f6b40] dquant out of range (60627098) at 46 18e=8334.5kbits/s dup=66 drop=0 speed=1.04x
[h264 @ 00000000030f6b40] error while decoding MB 46 18
[h264 @ 00000000030f6b40] concealing 2163 DC, 2163 AC, 2163 MV errors in I frame
[h264 @ 00000000030f66a0] concealing 1333 DC, 1333 AC, 1333 MV errors in P frame dup=67 drop=0 speed=1.03x
Invalid UE golomb code1.0 size= 271856kB time=00:04:08.35 bitrate=8967.1kbits/s dup=68 drop=0 speed=1.03x
[h264 @ 00000000020fc600] cbp too large (3199971767) at 31 24
[h264 @ 00000000020fc600] error while decoding MB 31 24
[h264 @ 00000000020fc600] concealing 1698 DC, 1698 AC, 1698 MV errors in P frame
[h264 @ 00000000030f66a0] corrupted macroblock 65 39 (total_coeff=-1)367.9kbits/s dup=69 drop=0 speed=1.02x
[h264 @ 00000000030f66a0] error while decoding MB 65 39
[h264 @ 00000000030f66a0] concealing 464 DC, 464 AC, 464 MV errors in P frame
[h264 @ 00000000020fc600] concealing 2903 DC, 2903 AC, 2903 MV errors in P frames dup=85 drop=0 speed=1.02x
[h264 @ 00000000030f6b40] out of range intra chroma pred modetrate=11242.0kbits/s dup=85 drop=0 speed=1.02x
[h264 @ 00000000030f6b40] error while decoding MB 41 17
[h264 @ 00000000030f6b40] concealing 2248 DC, 2248 AC, 2248 MV errors in I frame
frame=13102 fps= 25 q=1.0 size= 718374kB time=00:08:44.13 bitrate=11227.9kbits/s dup=85 drop=0 speed=1.01x

@jaruba
Copy link
Owner

jaruba commented Jun 4, 2016

Does it error out though? Or just continuing to do it's thing while these errors are coming up?

@avmduck
Copy link
Author

avmduck commented Jun 4, 2016

continues to run(with a couple quick freezes) for as long as 5 minutes then just stops

@avmduck
Copy link
Author

avmduck commented Jun 4, 2016

Don't know if this helps...
[vob @ 0000000003101ee0] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.

@jaruba
Copy link
Owner

jaruba commented Jun 4, 2016

There are many limitations and issues with this particular technique.. First of which is that I don't think ffmpeg was ever made to handle live streams in this way, thus the inconsistencies it runs into (your errors).

Secondly is that it transcodes into what can only be understood as a recording, and as the live stream is endless, it will keep recording and use more and more hard disk space. (I wouldn't want to fall asleep with ffmpeg running if it does this without dying out, lol)

Thirdly is that the streaming server inside Powder (that is being used to cast to the TV) considers the file fully downloaded, when it is actually a partial file. So chances are that if you waited 4 minutes before trying to cast it, it might only have 4-6 minutes of recording when you start casting, and the TV would stop after that time has gone even if ffmpeg continued to write to this file in the meanwhile.

The solution to this might be in on-the-fly transcoding, which is something that I can't give you a simple walkthrough for, but will be available in Powder v1.0

(I say "might" because I'm not even sure anyone ever attempted transcoding a live stream on-the-fly and casting it to the TV, it might work perfectly or explode)

The good news is that if it does work with on-the-fly transcoding, then it might work out of the box with Powder v1.0 without you needing to do anything else. And I'm pretty close to releasing an alpha for it, with a bit of luck maybe by the end of this weekend.

The bad news is that if it doesn't work with on-the-fly transcoding, and your TV doesn't natively support this kind of live stream (which from previous tests it pretty much proves it doesn't).. Then I don't think there's anything else to be tried, except maybe transcoding to a different type of live stream, like HLS, but I'm almost sure that your TV doesn't support HLS either.

@avmduck
Copy link
Author

avmduck commented Jun 4, 2016

Well.. Thank You for trying!
Love the program.
Guess we'll wait and see about v1.0
Good luck with it!
...... Until next time, U take care!!

@jaruba
Copy link
Owner

jaruba commented Jun 4, 2016

I'll ping you when the alpha is out, I'm pretty sure it will work with it, but I don't want to jinx it. :))

@jaruba
Copy link
Owner

jaruba commented Jul 5, 2016

This should be possible now in Powder Player Nightly by starting the live stream you want to cast, then selecting "Cast to DLNA", then selecting your TV, and making sure that these settings are set correctly:

  • Transcode: "Yes"
  • Buffer Type: "HDD"
  • Prebuffer Time: "20 sec" (if the playback eventually stops on the TV, cast again and increase the Prebuffer Time, the trick here is to always have more downloaded then the TV is trying to play, I've tested with some live streams myself, I'm not sure if I used 20, 30 secs or more, but with my download speed it managed to play continuasly for more then 1 hour when I stopped it myself)

This technique still downloads locally, using more and more disk space as you watch, nothing really bad though, as in my case of 1+ hours of watching, it got to about 1.5 GB. You can set the Cache Folder for Casting in the Player settings.

The official announcement for Powder Player Nightly Pre-Release and the download link can be found here:
https://www.reddit.com/r/PowderPlayer/comments/4ralk2/powder_player_v100_prerelease_available_for/

Be sure to tell me how it goes. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants