Audio sync problem with live stream - Galaxy S I9000 General

Hi
I tried to search topics about this problem but I wasn't able to find any..
I put together file/live streaming server to my home htpc. Point is to be able to view movies or live tv via my SGS anywhere. Server uses ffmpeg + ffserver. I can watch remotelly all my videos or live TV anywhere with laptop or galaxy Tab, but when I watch any videos with my SGS video/audio sync is way off (about 5secs). This is really annoying. I have tried different encoding setting but problem accurs allways.
My server encodes videos with ffmpeg (H264 + AAC) to ffserver. As format I use flv and container is mp4. Ffserver streams video to jw player. Ffmpeg encodes videos on-the-fly.
Does anyone have any tips how to get my video/audio sync working with my SGS ?? If I encode videos in advance and use progressive download I dont have any video/audio sync problem (ffmpeg using same settings).
This problem is driving me nuts..
ps. sorry about my bad english

Related

Streaming Video to EVO

UPDATE: VLC Stream and Convert does everything for me now. I can browse the server directory and watch movies transcoded. There is still a tiny bit of audio lag, but no where near as bad as my methods below.
I am on CM6 nightly.
--- original post ---
Just wanted to share what I use to stream both pre-recorded and live video to the native video player on the EVO. I am using the latest Ubuntu 10.04 with VLC and a Video4Linux compatible BTTV card. The settings I have here are 320x180 res at a very low bitrate as I use this mostly over 3G. Adjust the 'width' 'height' 'vb' and 'ab' to your pleasure.
This is a work-in-progress and any other methods or contributions are greatly appreciated!
To play a movie:
Code:
# vlc -v video.avi -I dummy --sout "#transcode{vcodec=h264,venc=x264{no-cabac,level=12,vbv-maxrate=384,vbv-bufsize=1000,keyint=75,ref=3,bframes=0},width=320, height=180,acodec=mp4a,ab=64,vb=384}:rtp{dst=,port=4555,sdp=rtsp://server:4555/stream.sdp,mp4a-latm}"
To Watch my Dish Network feed (Composite):
Code:
vlc -v vlc -v v4l2:///dev/video0 :v4l2-standard=3:v4l2-standard=45056 :v4l2-chroma= :v4l2-input=1 :v4l2-audio-input=0 :v4l2-io=1 :v4l2-width=640 :v4l2-height=480 -I dummy --sout "#transcode{vcodec=h264,venc=x264{no-cabac,level=12,vbv-maxrate=384,vbv-bufsize=1000,keyint=75,ref=3,bframes=0},width=320, height=180,acodec=mp4a,ab=64,vb=384}:rtp{dst=,port=4555,sdp=rtsp://server:4555/stream.sdp,mp4a-latm}"
To Watch my home security cameras (ATSC US Cable #104):
Code:
vlc -v v4l2:///dev/video0 :v4l2-standard=3:v4l2-standard=45056 :v4l2-chroma= :v4l2-input=0 :v4l2-audio-input=0 :v4l2-io=1 :v4l2-width=640 :v4l2-height=480 :v4l2-tuner=0 :v4l2-tuner-frequency=673250 -I dummy --sout "#transcode{vcodec=h264,venc=x264{no-cabac,level=12,vbv-maxrate=384,vbv-bufsize=1000,keyint=75,ref=3,bframes=0},width=320, height=180,acodec=mp4a,ab=64,vb=384}:rtp{dst=,port=4555,sdp=rtsp://server:4555/stream.sdp,mp4a-latm}"
------
Start Movie Client Stream on Android:
- Open browser
- Browse to “rtsp://server:4555/stream.sdp”
- Watch stream!
** Also worth noting the VLC HTTP interface seems to be working partially and apparently you may be able to setup playlists and such within there. I mainly am using this method to view live content so I havent explored much of that yet.
** Someone with more time than I could theoretically whip up a simple PHP page that enumerates a directory and launches vlc for video library type of support.
Thanks OP.
Forgive my ignorace. But for stored content, this doesn't start the stream until the Android client opens it, right? Not sure since you say that you usually use it for live streams.
I've been looking for a way to stream movies from my 7MC box to the EVO. This might work if the windows version of VLC has the same function. What kind of quality can you get from a stream on the local network vs. WAN?
Well I've been trying this on the windows machine and I'm starting to think this is not a very polished solution. What I would like is to be able browse the media in folders and start a video stream all from android. I'm not sure how possible this is. I have found so far:
Gmote - can only stream one format I think. I don't feel like converting
Orb - closer, but I'd really like to do all this through the home wifi network, not involving an orb server at all. Plus the video quality is a bit less that what I was hoping for.
VLC - can supposedly transcode on the fly from nearly any format to mp4 to play on Android. But I don't see a way to start a stream from android. I can use the HTTP interface to start the player but I don't see how to start a stream or browse more than a playlist (can't create one).
Maybe I missed something.
I've been trying to get the VLC Stream and Convert app to work, I can control VLC player on my PC but I can't get the streaming to work.
Is our phone supposed to play the H.264 stream fine? It seems like zonyl got it working, I tried all different video sizes and I'm using the mp4 latm audio, but nothing shows up on screen when it's playing, no sound, nothing.
Anyone have any advice?
Search market for AndroStream... Supposedly an app that uses VLC for streaming AND lets you initiate streams from your phone. I tried it but couldn't get it to stream over WAN.
nhutpham said:
I've been trying to get the VLC Stream and Convert app to work, I can control VLC player on my PC but I can't get the streaming to work.
Is our phone supposed to play the H.264 stream fine? It seems like zonyl got it working, I tried all different video sizes and I'm using the mp4 latm audio, but nothing shows up on screen when it's playing, no sound, nothing.
Anyone have any advice?
Click to expand...
Click to collapse
VLC Stream and Convert does everything for me now. I can browse the server directory and watch movies transcoded.
I am on CM6 nightly.
Any advice on settings and such?
I can browse and everything, but when it plays I get nothing except the moving bar and the timer starts running.
I'm on the rooted stock froyo rom.
I've been trying to get the VLC Stream and Convert app to work, I can control VLC player on my PC but I can't get the streaming to work.
Is our phone supposed to play the H.264 stream fine? It seems like zonyl got it working, I tried all different video sizes and I'm using the mp4 latm audio, but nothing shows up on screen when it's playing, no sound, nothing.
Anyone have any advice?
Click to expand...
Click to collapse
VLC Stream and Convert does everything for me now. I can browse the server directory and watch movies transcoded.
I am on CM6 nightly.
Click to expand...
Click to collapse
Thanks for the tip. I'll try it out. Will this work on a sense Rom tho? Might have to flash cm6
nhutpham said:
Any advice on settings and such?
I can browse and everything, but when it plays I get nothing except the moving bar and the timer starts running.
I'm on the rooted stock froyo rom.
Click to expand...
Click to collapse
I'm just running with the stock settings for the most part. Changed the resolution to whatever my bandwidth can tolerate at the time and make sure audio sync is turned on.
Sent from my PC36100 using XDA App
Got to try this app last night. Wow, very cool. Easy setup (visit the devs website), decent video quality, easily browse the pc for media. Dev has a donation version that i'll pick up for sure.
Another +1 for this app. Wish it did a better job with aspect ratios, but it still streams most of my media great.
Sent from my blah blah blah blah
hate to necro a thread but im trying to set this up for over 3g/4g. any luck? if so, what settings am I missing?
I know its 2 months old.
Anyone have any tips on setting up the VLC convert app to work with Mac. I am unable to find the file that the developer is suggesting I modify.
Thanks
engagedtosmile said:
hate to necro a thread but im trying to set this up for over 3g/4g. any luck? if so, what settings am I missing?
Click to expand...
Click to collapse
Don't know if you've done it already but, turn on your wifi (no need to connect to a network, just turn on)
read this http://traveldevel.com/vlc-stream-convert/streaming-over-3g

i know of 2 apps that video streaming on home network

I use upn play and mobo player to stream video over home network.
hello
I use also iMediaShare, and Skifta (both DNLA)
why wouldn't my streamer apps (UPNP, Skifta, clear.fi etc.) not detect the mp4 files I am putting into my servers shared video folder? The apps see a my other video files, like the avi files and mpg files, but none of my mp4's show up.
Does that make any sense? Does UPNP ignore mp4 files? yet it seems like everyone converts their files to mp4 (which by the way play ok on the device if I attach and play through usb.).
I just want to convert everything to something that I can both stream and put on hard drive and take with me...

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

720p mkv hi10p playback with subtitles

Hi all,
I'm looking to play 720p mkv hi10p videos with embedded subtitles on my Nexus 7. I'll probably want to be doing this by streaming it off a computer or accessing a Samba share.
Does anyone know if this is possible?. Trying to toss up my purchase with the knowledge that its easy / do-able to watch tv shows, movies and things like anime.
Cheers!
I'm just downloading vPlayer to see how it works with my Serviio server. I'll let you know how it goes.
the latest beta VLC player worked for me, was having abit hit or miss with mxvideo player but VLC just played everything i threw at it off my western digital tv live hub.
I tested a 720p hi10p video yesterday using MX Player Pro, no streaming over air.
A couple of frame drops, cannot handle panning scenes very well.
Styled subtitles however look ace, I haven't bothered to check out advanced typesetting though.
Have been exploring the ability on my phone with ES explorer and different media players. 8 bit 720p mkvs work perfectly. 10 bit just falls about for me though on a GNEX with just about every player. Obviously there is a difference in processing power though.
Keen to know if anyone gets it working / how (even if its a solution like PLEX).

stream two wmv videos in same time

I want to stream two videos wmv from with mms. I tried to use vitamio but this cant stream two videos same time. I tried to compile ffmpeg and I get lost with this..
Their is some simple library that can stream wmv ??
Thanks!

Categories

Resources