NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Other Clients Old Stuff (legacy) nDroid v
« Previous 1 2 3 4 5 … 7 Next »
Transcoding Live TV to Android

 
  • 0 Vote(s) - 0 Average
Transcoding Live TV to Android
t^2
Offline

Member

Posts: 62
Threads: 11
Joined: Dec 2013
#1
2013-12-14, 05:26 AM
I've been playing around and can stream Live TV ok. Can't say that I've figured out how to transcode Live TV though. is it possible?

The device I want to Transcode to is a Galaxy S3.
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#2
2013-12-14, 07:37 AM
t^2 Wrote:I've been playing around and can stream Live TV ok. Can't say that I've figured out how to transcode Live TV though. is it possible?

The device I want to Transcode to is a Galaxy S3.
If you go to Settings in nDroid you can select various preset transcode profiles.

Cheers,
Brian
t^2
Offline

Member

Posts: 62
Threads: 11
Joined: Dec 2013
#3
2013-12-14, 09:12 PM
bgowland Wrote:If you go to Settings in nDroid you can select various preset transcode profiles.

Cheers,
Brian

When I select any setting for transcoding Live TV, and select watch on a channel, I can see the tuner get allocated in NVPR's Device Status window. Then maybe 10 seconds later it goes away. Nothing happens on my Galaxy S3. MXPlayer just sits there with a spinning circle until I back out of it.

If I leave transcoding set to off in nDroid, then Live TV plays fine on my GS3 in MXPlayer. Do I need to change the transcode paramters in the NVPR config.xml file to true for this to work?
t^2
Offline

Member

Posts: 62
Threads: 11
Joined: Dec 2013
#4
2013-12-14, 09:37 PM
t^2 Wrote:W Do I need to change the transcode paramters in the NVPR config.xml file to true for this to work?

Well if you do... In my case it made no difference. I toggled <AllowRemoteTranscode>false</AllowRemoteTranscode> from false to true and restarted the service. Results remain the same. No transcoding.
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#5
2013-12-14, 10:36 PM (This post was last modified: 2013-12-14, 10:42 PM by bgowland.)
Hmmm, I'm not sure what the problem is. Watching Live TV (transcoded or not) connects directly to the npvr web server. If transcoding is disabled in nDroid, it uses a URL along the lines of...
Code:
http://<server>:<port>/live?...
... with associated channel number.

If transcoding is enabled in nDroid, it uses something like...
Code:
http://<server>:<port>/transcode?...
...with channel number and transcode parameters (XY resolution and bitrate).

If it's not working then try some of the different presets (some don't work successfully for me). If that doesn't help then post the npvr log files after a failed attempt.

EDIT: I'm not sure what the <AllowRemoteTranscode> setting does but I'm fairly sure it wouldn't apply to streaming over a LAN or WLAN and probably doesn't apply in this case.

Cheers,
Brian
t^2
Offline

Member

Posts: 62
Threads: 11
Joined: Dec 2013
#6
2013-12-15, 12:21 AM (This post was last modified: 2013-12-15, 06:07 AM by t^2.)
bgowland Wrote:Hmmm, I'm not sure what the problem is. Watching Live TV (transcoded or not) connects directly to the npvr web server. If transcoding is disabled in nDroid, it uses a URL along the lines of...
Code:
http://<server>:<port>/live?...
... with associated channel number.

If transcoding is enabled in nDroid, it uses something like...
Code:
http://<server>:<port>/transcode?...
...with channel number and transcode parameters (XY resolution and bitrate).

If it's not working then try some of the different presets (some don't work successfully for me). If that doesn't help then post the npvr log files after a failed attempt.

EDIT: I'm not sure what the <AllowRemoteTranscode> setting does but I'm fairly sure it wouldn't apply to streaming over a LAN or WLAN and probably doesn't apply in this case.

Cheers,
Brian

Ok... I gave various presets a try (assuming you're referring to the different speeds selectable in the enable transcode options). Nothing seems to be working.

Here are my logs...
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#7
2013-12-15, 06:44 AM
From your logs it looks like npvr is doing what it should and is creating the transcoded buffer file but the player on your Android device is deciding it doesn't know how to handle it so terminating the connection at which point npvr stops the transcoding.

I'll need to look at this closer. I'm currently rewriting all of the code for watching live tv / recordings / videos and should be able to test it later today.
t^2
Offline

Member

Posts: 62
Threads: 11
Joined: Dec 2013
#8
2013-12-15, 02:27 PM
Ya... MXPlayer will just hang (perpetual spinning circle). If I stop the NVPR service, MXPlayer will give me an error message telling me it couldn't open this video file and then back out on its own.

So what's this line telling me (just curious):

Quote:Seems stream 0 codec frame rate differs from container frame rate: 119.88 (120000/1001) -> 59.94 (60000/1001

Some kind of frame rate mismatch (120 vs 60) between the codec and the container (TS?)?
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#9
2013-12-15, 08:27 PM
t^2 Wrote:Ya... MXPlayer will just hang (perpetual spinning circle). If I stop the NVPR service, MXPlayer will give me an error message telling me it couldn't open this video file and then back out on its own.
I did an analysis of what MX Player does with Wireshark a while back.

It attempts to get the duration of a media file by requesting a chunk from the beginning, finding out the file size then requesting a chunk from near the end. It then tries to use that to be able to display the correct duration on its OSD (progress bar) and to allow accurate seeking etc. This is fine for fixed length files (recordings etc) but I seem to remember for live tv (original format or transcoded) sub wrote the web server to report a "very large" file size bearing in mind the buffer file(s) are ongoing.

I know when I first started using MX Player it would fail-back if it couldn't determine duration and simply show 00:00 for duration but was happy to playback the buffer. I don't know if they've changed something or if there's a setting in MX Player which can be tweaked. Unfortunately I lost my TV antenna feed recently so can't test immediately. I will be rigging a new feed soon though.

Quote:So what's this line telling me (just curious)
To be honest I don't know - I think ffmpeg does some pre-processing to work out what streams (AV) to use and that's a warning that it has found an anomaly - not sure if it's critical or not.

Cheers,
Brian
t^2
Offline

Member

Posts: 62
Threads: 11
Joined: Dec 2013
#10
2013-12-15, 09:02 PM
I've tried a handful of different players. All seem to react the same. So is there a player that will work that you know of?
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Anyone using nDroid TE on devices running Android less than v4? bgowland 4 6,835 2016-11-03, 02:09 AM
Last Post: mrred128
  video playback on android reven 11 7,131 2014-01-22, 08:57 AM
Last Post: bgowland
  ffmpeg transcoding only utilizing 50% CPU. poor_red_neck 2 3,957 2013-12-31, 07:30 PM
Last Post: bgowland
  Media player for Samsung Galaxy S3 SCH-I535 for watching Live TV? nDroid (TE)? t^2 2 2,330 2013-12-13, 07:40 PM
Last Post: bgowland
  transcoding level set by network? fuzzweed 1 1,967 2013-12-06, 10:05 PM
Last Post: bgowland
  No audio when transcoding HD channels gEd 15 5,677 2013-04-04, 08:23 PM
Last Post: bgowland
  Transcoding - dont get it Elmo Putney 3 2,244 2013-02-02, 04:48 PM
Last Post: bgowland
  1.8.5 and false Transcoding setting odin 6 3,295 2013-01-26, 04:23 PM
Last Post: bgowland
  No Live TV stream anymore topcat 3 2,680 2012-05-29, 11:34 PM
Last Post: bgowland

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode