[root] xbmc - choppy avi playback solution - mount samba share - external mxplayer - Fire TV General

It looks like disabling hardware acceleration and not choosing multi-threaded decoding helps with this problem.
see this thread http://forum.xda-developers.com/showthread.php?t=2796356
edit: 6/26/14 - It looks to me like xbmc for ouya does not have this problem with xvid playback with libstagefright turned off (software decoding?) so I am going to try launching xbmc for ouya as an external player and see how that works.
Other than remuxing files into mkv format, I did not find another solution for choppy xvid playback in xbmc gotham 13.1.
Redardless, I posted this info so that there is more information on how to mount a remote share on an android device and have the share visible for android apps.
I ended up using mxplayer android app to launch when playing xvid files, or invoke it manually through the "play using" option in the context menu. Having a mouse handy may be needed to scroll to some options during app setup.
I have my firetv rooted, and as the default launcher following threads on this forum. I installed SSH and use SFTP to put files on my FireTV
This is the only way I could get any app to mount a remote share and have android apps see the share.
The first step is to install mxplayer and the custom codec (I believe this helps with AC3 passthrough)
sites.google.com/site/mxvpen/download - MXPlayer downloads page
I downloaded and installed the second option (free neon edition)
then I downloaded the custom codec (for neon) found in the link at the bottom of the codecs section and followed the directions, putting the file in the data directory.
I put the file in /sdcard/Android/data/ and pointed mxplayer to the file, as per directions in the xda custom codec thread.
wiki.xbmc.org/index.php?title=HOW-TO:Use_external_players_on_Android - HOW-TO: Use External Players on Android
following those directions I made a playercorefactory.xml file and put that in the xbmc userdata directory.
/sdcard/Android/data/org.xbmc.xbmc/files/.xbmc/userdata/
Code:
<playercorefactory>
<players>
<player name="mxplayer" type="ExternalPlayer" audio="false" video="true">
<filename>com.mxtech.videoplayer.ad</filename>
<hidexbmc>true</hidexbmc>
<playcountminimumtime>120</playcountminimumtime>
</player>
</players>
<rules action="prepend">
<rule videocodec="xvid" player="mxplayer"/> <!-- launch mxplayer to playback xvid files if xbmc knows already -->
</rules>
</playercorefactory>
restart XBMC after putting playercorefactory.xml in the userdata directory
The mxplayer would not launch on files using only this method, as the NFS or Samba share I was using was not usefully passed along to mxplayer, so I had to find a way to mount a share in android and use that mountpoint as my video source.
from your terminal on your pc (not using ssh, using adb) - This is for mounting a samba share (windows share). I saw a lot of problems trying to use NFS shares.
replace the IP addresses with your servers IP Address, and username,password
Code:
adb kill-server
adb start-server
adb connect 192.168.0.xx (put your IP address of your file server here)
adb shell
mkdir /mnt/obb/nas
su
mount -o noperm,unc=\\\\192.168.0.xx\\putsharenamehere,username=putusernamehere,password=putpasswordhere -t cifs none /mnt/obb/nas
add that video source in XBMC, by navigating to root filesystem, and /mnt/obb/nas
verify that it works by going to video->files and seeing the share
In mxplayer, I had to select Hardware decoding for video, not Hardware+, and Software Decoder for Audio
If XBMC knows the file is xvid video it will launch mxplayer automatically otherwise you can use the context menu and choose mxplayer
caveats:
messing with the settings in mxplayer will cause AC3 streams to not passthrough, but I don't always have the mouse hooked up to navigate to the proper settings and fix them back up, but it looks promising so far. I do have smooth playback for xvid files (avi containers) and passthrough of AC3 audio to my receiver.
I don't believe the mountpoint will survive a reboot at this point, but I believe it would be easy to put a script in an init file somewhere to do this, as long as we find the right file that is invoked after bootup.
navigation using the fire tv remote is OK in mxplayer for basic playback, and disabling subtitles in settings if you have to (I chose a default directory with no subs)
if we use this mountpoint as a media source, scan into the library, and don't make it persistent after reboot, we will have problems. But I have mostly x264 files in my library, and they play fine normally with XBMC so this is only useful for .avi files for me.
If anyone wants to find a way to make the mount persistent after reboot this would help me out. The mounting of remote shares for android apps took a day of googling for me to nail down, not sure if there is an easier way, but nothing else worked.
with mxplayer set to decode files this way, I have trouble playing mkv files (I believe with AC-3) with it but I don't use mxplayer for those files.
UPDATE: I am not able to play files with AC3 and use passthrough without losing seeking function in mxplayer, might try bsplayer next or another android app. The difference as far as the video is concerned is night and day though.
I think with the mount options that I found it would be possible to use CIFS Manager app to automate the mount, but I would probably still have to make the directory before mounting. This is just a temporary solution for me until hopefully we get linux on the fire tv and can solve some of the playback issues I see. I don't wish to re-encode files that I ripped 15 years ago, and merging them in mkv format makes no difference.

I don't have any avi files that are that big, the biggest I've got is probably 90 minutes and a size of 3 gig. I just tried it in xbmc 13.1 and it seemed OK to me.
Are you connecting your Fire via wifi or ethernet? I put mine onto ethernet very quickly after putting it in the living room, and it seems very helpful to do so.

My files range from 300MB to 3GB and I see jitter during pans and normal scenes that occur visibly on files that are .avi and/or originally encoded as xvid. I tried to look for a number of settings that would help, but never did. I am looking at the long thread on the xbmc forum and seeing if I get any pointers, might try a nightly build. When I load the same file in mxplayer I don't see the jitter. Thanks for your input.
I am connected ethernet, SMB or NFS shares.
what are your settings for acceleration, and your other settings regarding audio and video in system, and video tabs?
thanks

Related

[FIXED] Streaming iPod encoded .mp4 over network

I've got an annoying problem that I don't know how to fix.
I have a script that uses handbrake to encode videos for me and spits them out as a .mp4 file. I used to view these from a local open web directory so I could stream them while I was in the bath or in the kitchen or having a dump or whenever I wasn't in front of my TV.
They work on my iPhone, iPod touch and on the various Android things I put on my HD2. How can it work on a flashed WinMo phone and not on a proper Android device?
What's frustrating is that they work when I transfer them over using Astro or downloading them in the browser. I assume it would work if I put them on a memory stick but all of these solutions take more time.
I was thinking I should root the Tab and put a custom Android on it, but is there anything else I can do without re-encoding a bunch of files?
What exactly is the problem? How are you trying to stream them?
I have an open web directory which is basically just a list of .mp4 files. I open the browser and point it to my site, 192.168.1.3/movies, and then click on whatever I want to watch.
Then usually it gives me an option of what app I want to play it in and I usually just pick the default video player.
This doesn't work on the Tab where it does on my other devices (Android and iOS).
So the problem is that its not giving you an option to pick which app to open the .mp4 with?
Maybe you dont have any other apps that can play the file?-
It does give me an option, it just refuses to play saying that the type is not supported. I've tried the built in video player, rockplayer, meridian. I've also tried it on a file manager like Astro.
The files just refuses to play like they do on my hacked HD2 and iPhone.
Are you trying to emulate this like the AllShare program? Cant seem to get this to work too on the network media
I don't know what AllShare is unfortunately. Did it work on a previous device?
Allshare is sammys DLNA client. Its pretty good for small folders on a LAN server. But it doesn't understand headers very well. Search is your friend.
Someone pointed me in the right direction on another board.
Another Forum said:
OK, figured it out. The problem is that most MPEG4/QuickTime muxers append a critical piece of metadata to the end of the file and it needs to be moved to the beginning to allow streaming/progressive downloading in the Android media player (it's not a Samsung-specific problem).
If you already have a bunch of non-streaming-compatible MP4 files, there's a tool that comes with ffmpeg called qt-faststart that rewrites them (without reencoding) in a compatible fashion.
Also, it looks like Handbrake 0.9.2 and up have an option for producing "Web optimized" MPEG-4 files, which if you enable should fix future videos.
Click to expand...
Click to collapse

Stream video from NAS

Any way that anyone has working for video to stream from their nas? I want to lay in bed and watch my videos, but I cannot for the life of me get them to play. Tried ES file explorer, File Expert, vplayer, rockplayer uni, rockplayer lite, built in player. I can find the videos just fine, but it will not play them. Looks like file expert tries to open them in a web page, then crashes back to the folder on the nas.
Looking for the same answer as well lol
got to be something on the market place that works
You will need a rooted xoom. Install the cifs.ko module from here
http://forum.xda-developers.com/showthread.php?t=974343&highlight=cifs
Then use the program cifsmanager that can be found in the market to mount your shares. I tested it last night and was streaming .avi files from my NAS. HD video that played fine locally was having a little trouble streaming. I'll have to work on finding the optimal transcode settings.
Hope this helps
boom, I didn't know that cifs worked on the xoom.
I'll update in 10 min if it works
cifsmanager is a little tricky though, I was unable to launch it from the shortcut created in the launcher. I had to launch it from inside the market.
how did you set it up? I cannot get it to connect to the nas, it is saying it failed b/c "no such device"
That error means the cifs module isn't loaded. Click on menu then settings. I checked the Load cifs module and the Load via insmod boxes. Reboot (or kill the application with a task killer), start it back up and it should work.
still no dice. i have the ip of the nas in the share path, the mount point is /mnt/sdcard/Movies
all other fields blank. Am I missing something?
I dream to have AirVideo ported from iOS.
Wondering why no Android developer created something similar
You will be rich for creating such app for Android! Being the first!
Sent from my Nexus S using XDA App
why doesnt anybody use "orb" to stream their videos? am i missing something? it works fine for me. tried it last night on my xoom. i have live tv and all of my downloaded movies working for me
I think you're missing the share name. For instance, the first field should read something along the lines of 192.168.0.2/e (e being the share name). Mount point is fine (I think. I have mine mounted to /mnt/cifs/e)
orb is the best thing to use streaming video. and its also web based
not working still, now saying mount: invalid argument
//192.168.1.70/movies
/mnt/sdcard/movies
Do any of the media players on the Xoom support UPnP (DLNA)? If so, you might be able to use something like PS3 Media Server.
http://code.google.com/p/ps3mediaserver/
The server shouldn't have // in front of the ip address.
my nas is already setup for dlna and itunes server, so anything that works with those would sync up to them. Sucks that apple has this working so well and we can't get it.
TheNibbler said:
The server shouldn't have // in front of the ip address.
Click to expand...
Click to collapse
Tried it both ways, still invalid argument error.
After doing some reading, try putting in the computers login name and password. (if the computer doesn't have a login name/password, create a user (with a password) and give them access to the share) That should hopefully take care of that error. (I never encountered this error, but I had a username/password)
is the issue that i'm trying to access a NAS and not a pc? So you have it working to a shared folder on your pc...
jparker36 said:
Any way that anyone has working for video to stream from their nas? I want to lay in bed and watch my videos, but I cannot for the life of me get them to play. Tried ES file explorer, File Expert, vplayer, rockplayer uni, rockplayer lite, built in player. I can find the videos just fine, but it will not play them. Looks like file expert tries to open them in a web page, then crashes back to the folder on the nas.
Click to expand...
Click to collapse
I have a (free) MP4 Streaming Server app that runs a website on your (windows) computer. I also have a few sample-videos (look in the NOOKcolor section. I havent had a cvhance to make samples for the Xoom yet) on my website that are streamable, located on an apache webserver. Just visit the site on your Xoom, and tap the mp4 links.
For MP4 files to stream, the quicktime "fast start" atom needs to be enabled, and the location on the webserver of where they are located needs to have executable permissions.

ps3 media server possible transcoding?

can someone try to work on ps3 media server settings ,on the fly trans coding maybe is better option then changing whole library of movies.It work for xbox maybe its gonna work on transformer
# ps3mediaserver renderer profile for Android
# Refer to PS3.conf for help
RendererName=Android
RendererIcon=android.png
UserAgentSearch=Android
Video=true
Audio=true
Image=true
SeekByTime=false
TranscodeVideo=MPEGAC3
TranscodeAudio=MP3
DefaultVBVBufSize=true
MuxH264ToMpegTS=true
MuxDTSToMpeg=true
WrapDTSIntoPCM=false
MuxLPCMToMpeg=true
MaxVideoBitrateMbps=0
MaxVideoWidth=0
MaxVideoHeight=0
TranscodeExtensions=
StreamExtensions=hdmov,hdm,flac,fla,dts,ogg,asf,asx,m2v,mkv
it wont work. the only thing you can transcode too is mpeg2 which the transformer cant do over upnp. mp4 cant be live streamed over upnp only over rtsp or rtmp, if you really want live transcoding look at vlc media player and vlc s+c for android. it takes a lot of tweaking but does work.
can you provide some more information about the transcode capabilities such as the lackof mpeg streaming
SangreSlayer said:
can you provide some more information about the transcode capabilities such as the lackof mpeg streaming
Click to expand...
Click to collapse
I have had no problems streaming mpeg2 even to the native player with Mediatomb. In fact, you can directly play mpeg2 files from an internet site (internet archive) if you have enough bandwidth. Even the matroska format will stream, although without sound and at an unpredictable framerate. Still, I think that problem is on the encoding side.
So what your saying is you can transcode with PS3 media server?
IE: if you were to take a video gotten from a generic source, lets say via bittorrent you can stream that with the PS3 media server?
Any video I try does not work. it only works if I transcode it with handbrake first.
any tips would be greatly appreciated.
SangreSlayer said:
So what your saying is you can transcode with PS3 media server?
IE: if you were to take a video gotten from a generic source, lets say via bittorrent you can stream that with the PS3 media server?
Any video I try does not work. it only works if I transcode it with handbrake first.
any tips would be greatly appreciated.
Click to expand...
Click to collapse
If I was you I would go and get a WD media player. They go for about 60-90 bucks. I used the PS3 for about a year and I gave up. Mkv is not support on ps3 media server. Videos that it cant play you're pc will need to transcode before sending it over to your display. I ended up getting a dedicated media player. There are tons to choose from. WD, boxee, popcorn hour and dune players. No issues streaming 20-30GB blu ray movies when I had the WD player. PS3 sucks for streaming IMHO.
Actually, mpeg2 can be streamed over upnp.
Try this:
Code:
# ps3mediaserver renderer profile for Android
# Refer to PS3.conf for help
RendererName=Android
RendererIcon=android.png
UserAgentSearch=Android
Video=true
Audio=true
Image=true
SeekByTime=false
TranscodeVideo=MPEGAC3
TranscodeAudio=MP3
DefaultVBVBufSize=true
MuxH264ToMpegTS=false
MuxDTSToMpeg=false
WrapDTSIntoPCM=false
MuxLPCMToMpeg=false
MaxVideoBitrateMbps=0
MaxVideoWidth=0
MaxVideoHeight=0
TranscodeExtensions=
StreamExtensions=
frosty5689 said:
Actually, mpeg2 can be streamed over upnp.
Try this:
Code:
# ps3mediaserver renderer profile for Android
# Refer to PS3.conf for help
RendererName=Android
RendererIcon=android.png
UserAgentSearch=Android
Video=true
Audio=true
Image=true
SeekByTime=false
TranscodeVideo=MPEGAC3
TranscodeAudio=MP3
DefaultVBVBufSize=true
MuxH264ToMpegTS=false
MuxDTSToMpeg=false
WrapDTSIntoPCM=false
MuxLPCMToMpeg=false
MaxVideoBitrateMbps=0
MaxVideoWidth=0
MaxVideoHeight=0
TranscodeExtensions=
StreamExtensions=
Click to expand...
Click to collapse
Though it should be worth noting UPnPlay doesn't send a "streaming end" HTTP header to the UPNP server, so after you play one video PS3 media server doesn't know you stopped watching the video and will be stuck in the "streaming mode", causing any other video not to load until you restart PS3 Media Server. This problem only persists iwth PMS, Serviio works fine if you set the transcoding profile. I wish PMS worked as it is the only Server with full softsub support.
Edit: Opps accidentally pressed "Quote" instead of edit...
Just wanted to make sure i am trying with the same player as you.
I am using the "my Net" and selecting the ps3 media server from there.
With the new settings, when I go to play it it just hangs with "please Wait" previously it would just immediately end with "fail to load"
SangreSlayer said:
Just wanted to make sure i am trying with the same player as you.
I am using the "my Net" and selecting the ps3 media server from there.
With the new settings, when I go to play it it just hangs with "please Wait" previously it would just immediately end with "fail to load"
Click to expand...
Click to collapse
Did you edit Android.conf with my profile and then restarted the server? Also, use Upnplay combined with MoboPlayer.
I did edit the file with your settings and restart the server. Will download Upbplay (already have mobo installed).
Update in a few minutes
That does seem to work. I am able to play non HD videos.
I was able to play different video's back to back without restarting, I tested with three different videos, watch 1 min of each.
I tested out a topgear episode that is 720p. My PC says its being trans-coded, but moboplayer just says "loading". After 1.5 minutes i cancelled out by going "home"
I then restarted the PS3 media server and reloaded upnplay and tried the video again. my PC still says transcoding and serving but mobo is stuck on loading.
Under Transcoding settings, i don't have Avisynth/FFmpeg or Avisynth/Mencoder available as they are marked red if that means anything
Any suggestions?
Thanks for being so helpful. I really appreciate it.
I know this post is asking about ps3 media server, and I have tried to use it also, but what I have found is a media server called PLEX, there is a mac/windows/even Linux server version, then you get the client on the app store for $5. I can not believe how well this app allows me to stream VOB/MKV/MPG,etc, and it allows me to do this all the way up to HIGH PROFILE 1080p MKV, oh and it also allows me to do this on a remote wifi connection or even on 3g, it really is amazing what these guys have pulled together. The other HUGE plus is it is a branch off of XBMC, so you have the same similar interface with all scraping, etc automatically, it can also do music and supports plugins. Anyways I would suggest you try it, server is free to download, and the app is so worth the measly $5, just suggest you get the server all setup and working before you buy the app. but even if you don;t like it the plex team will refund your money if you are not happy so there is really no remorse checking it out. Hope this helps, I am off to watch a 1080p high profile mkv on my transformer >
I think OP is trying to get PMS working so he can watch media on his PS3 too without running 2 servers. As to why HD vids don't play, maybe it didn't detect the need to transcode it, I need to look into this again after exam's over (maybe that'll explain why my videos didn't play properly when I tested), feel free to use the PS3.conf and try different things. It doesn't matter if you have ffdshow/avisynth, it uses bundled mencoder to re-encode. All that matters i that your PC can play the video fine in DirectShow players like Windows Media Player, Media Player Classic, Zoom Player.
I tried the above .conf file settings and still when running an HD video
it won't limit the video size
is there a way to transcode down into say
800x480
I tried this
MaxVideoWidth=800
MaxVideoHeight=480
RobH79: Thanks for the information. So far I am most of the the way to my end goal. The last hold out being the 720p video's.
I believe the OP (like myself) do not want to run 2x renders, one for the PS3, one for the tablet.
Frosty:
The video does play fine on my PC using VLC but not with Windows media player ( I anticipate this is why all my below troubleshooting did nothing based upon your last response.)
I have done some more testing and tried a few different settings in the config, such as
MaxVideoWidth=800
MaxVideoHeight=600
and MaxVideoBitrateMbps=3
so far nothing has worked.
The video does play fine on my PC using VLC. I still see PS3 Media Server using the transcoding buffer, and Mencoder is using varying amounts of CPU and the java memory size is increasing as time goes on (I assume filling up the buffer)
**Update Since I started typing**
I went to: http://matroska.org/technical/guides/playback/windows/index.html and found out that i needed the CCCP pack, i usually dont install it on my system from a bad experience many years ago.
However I installed it and now it plays fine in windows media player.
I loaded up PS3 Media server and tried streaming again from my tablet...
And no luck, same issue as before. I went through all the other variations of the tweaks above and also no luck.
Any other suggestions?
I also tried to get myNet working, but i found this.
myNet uses AwoX as UserAgent name. So copy Android.conf and rename the file and change from:
UserAgentSearch=Android
to
UserAgentSearch=AwoX
But all upnp clients that you can download in the market use Android.conf. I know so far that only AVIs/WMV are working. However no MKVs.
ok... just my 2 cents
I have a tonido plug running ubuntun 9.04 and mediatomb as a server, no transcoding eneabled.
I installed UPnPlay from market as a upnp renderer (audio only, but support to stream video with external palyer)
I got DicePlayer (paid app) and am able to stream mkv, avi, mov, mp4 containers, even some movies that have srt or sub subtitles, however if I connect my tablet to a TV via HDMI I only get the video and not the subs... MyNet app gives a lot of trouble working with m3u playlists and can only render a file at a time, meaning if you want to play continous audio/viedo you need to go one by one manually.
So far I'm happy with this setup, planning on upgragind my local WLAN to "N" standard byt so far 54gb are good, not exellent
On the down side, I haven't got the time to tweak mediatomb to present in a convinient way video files, it throws everything regardless of the folder structure you have on the server hard disk
Edit, if you know how to hard encode and stream subtitles info is appreciated, also if you know to send subs via HDMI to tv I'll be grateful

Video and Audio Playback/Conversion

There are alot of guides around for converting movie files so they can be played back on S7/Gear VR some of them might actualy work but ive noticed that alot of the guides forgets to mention the audio output when they convert they only tell you about the video so to remedy this ill write down my experience..
1. Most guides tell you correcly about the video formats
2. Most guides don´t tell you that AC-3 won´t work. Only AAC and MP3 works.
3. First i thought avidemux would be perfect but apparently it cant read the complete audiostream on the files iv´e tested with no matter what audio settings i used in avidemux the output file ended up without speech.
4. So. Download ffmpeg
5. Put your video file in the ffmpeg\bin folder or add a path to the environment variable.
6. Open a cmd in your ffmpeg\bin folder and paste this line
ffmpeg -i YOURFILENAME.mkv -c:v copy -c:a aac OUTPUTFILENAME.ACC.mkv
7. After the conversion is done the output file should play correctly on your S7/Gear VR
8. Last note i have only tested this with movies that have an AC3 stream but it should work for other audio streams.
A liitle followup..
I thought it was a hazzle to install Emby or any other dnla client and milkvrlauncher just to watch local media in milkvr(And im not even supposed to have access to milkvr for that matter..) so i went the easy way and simply installed Abyss webserver added the mkv file extension and added my media files to the htdoc folder and now i simply open the local web adress in the samsung internet browser and it lists all the files and folders i have in the htdoc folder and i can can watch what ever file i put in the htdoc folder.

FTVS - DLNA / UPnP - Codec support

Hi,
Wondered if someone could help me with getting my FTVS to play recorded TV shows / live TV from my PVR?
I have a Panasonic HWT130 PVR that acts a DLNA server on my network. I can use android apps like Archos player and iMX Player to browse the file directory but I can't play anything (Kodi also won't play them). From what I can tell the files are MPEG-TTS format.
Does anyone know of any codec pack that would support this file type? I don't mind if the device needs rooting or if I need to flash the kernel.
If you can browse to them with ES File Explorer, you can use "open with" and choose the FTV picture viewer (it also plays video) and see if it will play them.
MPEG-TS container with h264 encoded video is listed as a supported file type by FTV.
Ah I didn't know it had native support. Well I installed the Archos all codecs pack last night and live TV started working in Kodi but it recognized recorded shows as an audio file
Are you aware of a DNLA file viewer app that has a simple GUI? I like Archos but it doesn't support external players and doesn't playback live or recorded content.
dannyspanish1 said:
Ah I didn't know it had native support. Well I installed the Archos all codecs pack last night and live TV started working in Kodi but it recognized recorded shows as an audio file
Are you aware of a DNLA file viewer app that has a simple GUI? I like Archos but it doesn't support external players and doesn't playback live or recorded content.
Click to expand...
Click to collapse
Vimu might, of course there is always Kodi
You mentioned MX Player in your original post, if you go to: Settings > List > File Extensions, you can set .ts file extensions to use HW+ or HW (HW facilitates .ac3 passthrough) decoders which will use the system decoders in FTV.

Categories

Resources