DSub 3.6.9 Released

Alternative Android Client for Subsonic

Moderators: daneren2005, moderators

DSub 3.6.9 Released

Postby daneren2005 » Thu Jan 10, 2013 3:55 am

Dsub 3.6.9 released. Another small list of changes for this one.

Changelog:
Stream video option added. This a stopgap measure until I add HLS streaming. Note: This will NOT work with the default flv video transcoding
Optimized memory usage
Expandable Notifications for 4.1+
Fix some devices not being able to stream correctly
Internal Logging mechanism for newer devices which don't allow 3d party apps (ex: alogcat) to grab others logs anymore
Developer of DSub for Android
daneren2005
 
Posts: 1709
Joined: Fri Jul 06, 2012 7:52 pm

Re: Re: DSub 3.6.9 Released

Postby jesusice » Fri Jan 11, 2013 3:48 pm

daneren2005 wrote:Dsub 3.6.9 released. Another small list of changes for this one.

Changelog:
Stream video option added. This a stopgap measure until I add HLS streaming. Note: This will NOT work with the default flv video transcoding
Optimized memory usage
Expandable Notifications for 4.1+
Fix some devices not being able to stream correctly
Internal Logging mechanism for newer devices which don't allow 3d party apps (ex: alogcat) to grab others logs anymore


Thank you for this! Big Dsub fan!

Do you have any idea what I would want to change the default video transcoding to in order for streamed video to play in the default 4.2.1 Gallery? I tried changing the Subsonic server settings to convert to mp4 but still got an error. I suspect I may have had to edit the code under Step 1 also but I've no idea how to do so.
jesusice
 
Posts: 5
Joined: Fri May 04, 2012 12:55 pm

Re: DSub 3.6.9 Released

Postby daneren2005 » Fri Jan 11, 2013 6:51 pm

I was able to get it to work with this:

Code: Select all
ffmpeg -i %s -ss %o -t %d -s %wx%h -r 30000/1001 -vb %bk -vcodec libx264 -preset ultrafast -acodec libvo_aacenc -ac 2 -ar 48000 -f mpegts -


But that was with a version of ffmpeg that I got with Ubuntu 12.04. I removed the default one and linked the system one. With the default one, if I remember correctly, you would want to replace 'libvo_aacenc' with 'libfaac' or 'aac'. Or you might even possibly need to change it to something else that your configuration actually supports. Basically your ffmpeg should support the video codec but you need to replace libvo_aacenc with a audio codec it supports. I would suggest monitoring the log file (/var/subsonic/log in Ubuntu) while doing this, because it should complain about the codec combination if it doesn't work or tell you if it can't even find the codec you are trying to use.
Developer of DSub for Android
daneren2005
 
Posts: 1709
Joined: Fri Jul 06, 2012 7:52 pm

Re: DSub 3.6.9 Released

Postby iwill » Sat Jan 12, 2013 1:35 am

Yay! JB expanded notifications!
User avatar
iwill
 
Posts: 34
Joined: Wed Feb 29, 2012 7:38 pm
Location: Austin, TX

Re: DSub 3.6.9 Released

Postby plastikman » Tue Jan 15, 2013 6:36 pm

daneren2005 wrote:I was able to get it to work with this:

ffmpeg -i %s -ss %o -t %d -s %wx%h -r 30000/1001 -vb %bk -vcodec libx264 -preset ultrafast -acodec libvo_aacenc -ac 2 -ar 48000 -f mpegts -

But that was with a version of ffmpeg that I got with Ubuntu 12.04. I removed the default one and linked the system one. With the default one, if I remember correctly, you would want to replace 'libvo_aacenc' with 'libfaac' or 'aac'. Or you might even possibly need to change it to something else that your configuration actually supports. Basically your ffmpeg should support the video codec but you need to replace libvo_aacenc with a audio codec it supports. I would suggest monitoring the log file (/var/subsonic/log in Ubuntu) while doing this, because it should complain about the codec combination if it doesn't work or tell you if it can't even find the codec you are trying to use.



I got this working on windows 7 with DSub 3.6.10

here is how my transcode is setup

Code: Select all
Name: mpeg stream
Convert from: avi mpg mpeg mp4 m4v mkv mov wmv ogv divx m2ts
Convert to: mpegts
Step 1: ffmpeg -i %s -ss %o -t %d -s %wx%h -r 30000/1001 -vb %bk -vcodec libx264 -preset ultrafast -acodec aac -ac 2 -ar 48000 -f mpegts -strict experimental -


hope this helps

I hid this option from all players but DSub, seems to work great! this is for windows only.
plastikman
 
Posts: 51
Joined: Wed Oct 05, 2011 6:03 pm

Re: DSub 3.6.9 Released

Postby mta99 » Thu Jan 17, 2013 8:06 pm

Both these transcoder settings work perfectly on my linux/unraid box streaming to Nexus devices.

Great to have video back on Android and looking forward to the updates to come :D
mta99
 
Posts: 8
Joined: Thu Jan 17, 2013 8:04 pm

Re: DSub 3.6.9 Released

Postby tguless » Thu Jan 24, 2013 7:20 pm

I am having an issue where ffmpeg.exe gets spawned twice, and the video doesn't stream.

Incidentally, this only happens when I have HW+ decoder on in MX Player. Same thing also happens with VPlayer.

I think this is a timing related issue as it only happens on my kindle fire, but not on my droid bionic. I'll continue investigating.

Ted
tguless
 
Posts: 26
Joined: Fri Jul 23, 2010 6:22 pm

Re: DSub 3.6.9 Released

Postby daneren2005 » Thu Jan 24, 2013 8:11 pm

Odd I have no clue what is going on with that. I literally just pass the URL to external players so it must be them that are making multiple requests.

Sent from my HTC One X using Tapatalk 2
Developer of DSub for Android
daneren2005
 
Posts: 1709
Joined: Fri Jul 06, 2012 7:52 pm

Re: DSub 3.6.9 Released

Postby tguless » Thu Jan 24, 2013 8:13 pm

So to test out, if this issue is related to DSub, I copied the URL for the stream out of MX Player (menu->tools->properties)

Once I had the URL, I started MX Player on its own, and then typed the full stream (/stream.view) URL in MX Player.
The problem persisted, Hardware Decoder supposedly works, but when I set the H/W+ option, it croaks.

This seems to be either an issue with stream compatibility, or the request timing out.

The reason I didn't think it was a stream compatibility issue is that the whole thing works fine on shorter videos.

Very strange.
tguless
 
Posts: 26
Joined: Fri Jul 23, 2010 6:22 pm

Re: DSub 3.6.9 Released

Postby tguless » Thu Jan 24, 2013 8:38 pm

Sorry to bother everyone. This seems to be a stream compatibility issue with MX Player running on Kindle Fire in HW+ accelerated mode.

Spawning off two ffmpeg.exe processes seem to be normal behavior as the first call gets the video length, and the 2nd command does the transcoding.

The problem is when MX Player attempts to play the stream, and then fails, it looks like it never closes the socket, or if it does, subsonic doesn't seem to be aware of it, and if it aware of it, meaning an exception got thrown and caught, it never bothers to kill the running ffmpeg.exe process.

So the ffmpeg.exe process keeps running and piping content somewhere.

MX Player actually never shows a message stating it can't play the stream, it just hourglasses, and when I hit the back button to come back to DSub, the backend ffmpeg.exe process keeps running, and continues to stream until the whole movie is done. I don't know what is happening at the network socket layer on the android device or the server, as that requires me running this in an IDE with all the nice debugging tools. I am not sure I am ready to jump in and do that as my last set of commits got completely ignored.

I see similar behaviour in VPlayer.
tguless
 
Posts: 26
Joined: Fri Jul 23, 2010 6:22 pm

Re: DSub 3.6.9 Released

Postby daneren2005 » Thu Jan 24, 2013 9:11 pm

I'm not even sure where you would get started in debugging that. I haven't really had any experience in using any of eclipses debugging tools. Do you mean commits that you made for DSub? And if so what is your github user name?
Developer of DSub for Android
daneren2005
 
Posts: 1709
Joined: Fri Jul 06, 2012 7:52 pm

Re: DSub 3.6.9 Released

Postby tguless » Thu Jan 24, 2013 9:53 pm

I meant commits I made to subsonic.
tguless
 
Posts: 26
Joined: Fri Jul 23, 2010 6:22 pm

Re: DSub 3.6.9 Released

Postby tguless » Fri Jan 25, 2013 4:01 am

After many different trials and errors, here is the ffmpeg line that works for my kindle fire:

ffmpeg -crf 22 -ss %o -t %d -i %s -async 1 -b %bk -s %wx%h -ar 44100 -ac 2 -f mpegts -vcodec libx264 -preset superfast -v 0 -acodec aac -strict experimental -threads 0 -

Now, why does dsub send in incorrect height and width info to the -s %wx%h param?

Kindle fire's resolution is 1024 x 700, but dsub is sending in 496x240
tguless
 
Posts: 26
Joined: Fri Jul 23, 2010 6:22 pm

Re: DSub 3.6.9 Released

Postby daneren2005 » Fri Jan 25, 2013 4:05 am

All I am passing in is the max bitrate. While it is an option to specify the w/h, I am not currently using it. I'm guessing that it is scaling the video based off of the max bitrate that you are using (in settings)? I'll have to look more into that and setting the correct w/h.
Developer of DSub for Android
daneren2005
 
Posts: 1709
Joined: Fri Jul 06, 2012 7:52 pm

Re: DSub 3.6.9 Released

Postby tguless » Fri Jan 25, 2013 4:13 am

There may be a way to also pass in height and width to /rest/stream.view which should be based on the device capability. Will looks at source / API to confirm.

The bitrate is an unrelated parameter that gets handed off to ffmpeg as -b %bk.

Thanks for the quick replies by the way. Now I am even more glad I purchased your app.

I can trick the system by using different logins for different devices I think, but it would be nice if this was more out of the box and seamless.
tguless
 
Posts: 26
Joined: Fri Jul 23, 2010 6:22 pm

Next

Return to DSub for Android

Who is online

Users browsing this forum: No registered users and 14 guests