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
Audio tracks not handled correctly on LiveTV #3170
Comments
This problem is still present in the latest sources from github, and is related to the patch from FernetMenta and others discussed here: xbmc/xbmc#3590. In order to speed the channel switching the stream is not analysed by not calling avformat_find_stream_info(), but ffmpeg then produces lots of decoding errors on the teletext stream as seen here: http://pastebin.com/RE3hBuiW. The ffprobe result on my the stream gives this: Program 1 As mentioned by the OP the URL in the format of rtp://234.168.40.10:10000 inside a .strm file works perfectly, but when passed from IPTVSimple PVR addon it does not. The developer of the addon has indicated that his addon is just passing the URL of the stream and not processing it in any way. |
@FernetMenta The patch that is referenced in this bugreport and via the upstream PR: xbmc/xbmc#3590 - do you have an idea to not come up with teletext as audio tracks? From my reading it seems backends without own demuxer are affected. |
I made some new debug logfiles on Openelec 4.0.7: debug logs: http://1drv.ms/1mDblCK |
The GUI should ask decoder not demuxer for audio info. We have a similar problem with some DTS formats where info show on screen may be wrong because only the DTS core is used. |
I will have a closer look end of this week. |
Even worse with Openelec 4.1.1. Openelec tries to play the teletext track which gives a horrible noise out of the speakers. xbmc.log w/ debug enabled: http://sprunge.us/SBXa |
i this is the case PAT/PMT is corrupted. you log shows: which indicated issues with this stream. I can't reproduce on stream having proper pat/pmt |
Can/should I provide a sample of the stream? Or do I simply have to realize that I cannot use Openelec >=4 for watching LiveTV? |
please provide a sample. |
Can I record a sample from my OE box? Or maybe from a windows pc with VLC? I have no exoerience with recording streams untouched, |
Record using build in record function and share recording would be my guess. |
When I record it simply with VLC not everything is being recorded. At least the teletext-track and some other extended information is not in the stream anymore. Here the original streaminfo while playing it in VLC: And here the vlc recorded stream: http://bit.ly/1sBQ2Vq (available for 1 week I think...) |
Maybe share your live tv connection to a dev for better trouble shooting is an option? |
The sample provided shows no issues with find_stream_info skipped. |
@FernetMenta I guess that's because the teletext-track hasnot been recorded by VLC :-/ I can offer SSH connection to my OE box if that helps. Or anyone has an Idea how to record the stream as-is, without removing teletext?! |
I doubt that this is related to teletext. your last log indicated that mp3 audio was opened. @fritsch can you provide a build based on Helix with most recent changes of my master? |
What I experience on the GUI is, that the "codec info overlay" shows "0.0 channels" in this case and I also cannot show teletext. But if openelec catches the right audio track, it shows "5.1 channels" or "stereo" and teletext is working. This led to my guess, that it sometimes (presumably in 33% of the time) tries to play the teletext-track... |
I am almost sure that your rtp streams lacks pat/pmt. If it had pat/pmt we would get a stream change and streams would be created at once. Have a look into your log between those lines other thinks happen: I do hard in creating a solution for this odd case without having access to a sample. Either some rtp source of a raw dump of this stream. |
I have uploaded another sample here http://we.tl/JPYbXQG317 (available for 7 days). This was recorded using VLC, it includes teletext. If still does not help I can try to record from my OE box. |
Not sure if this is related but last night i experienced the same thing, or sort of. |
@FernetMenta I managed to remove your message... sorry! @schumi2004 I think your last problem is an issue of tvh. tvh has its own demuxer. it needs to detect the change from 5.1 to stereo which in general happens on commercial breaks. then it needs to inform player with a special message to trigger re-open of audio decoder. |
@mister-bogus your problem seems also different to the one OP has. ffmpeg demuxer does not update channel number for AAC. This is only done by decoder. A solution for what I first posted in this thread. |
@FernetMenta if I change the line (in your patch): |
this disables the entire patch and channel switching times may go up to 8 seconds on certain streams. your issue is fixed by FernetMenta/xbmc@ed4f59a |
Great, thanks a lot. I would like to test it, how can I add this as patch in the OpenELEC sources to compile myself, like in xbmc-995.01-fernetmenta-fixesxbmc-995.01-fernetmenta-fixes.patch? |
I don't know how to build OE. Someone from the OE dev team needs to assist @sraue, can you help? |
I managed to do a "raw data dump" with VLC player. It should contain all video/audio tracks like the real stream. |
you sample shows no issues here. nevertheless this patch might fix the issue: FernetMenta/xbmc@db0490a |
@FernetMenta, thank you so much!!! I have tested your patch and it works great. Took me awhile to figure git out but I managed to compile OE 4.0.7 with your modifications, I even included the one for the lack of pat/pmt. Hopefully this gets included by @sraue in the next OE 4.2. |
@mister-bogus Generic x86_64 is perfect...I would pay for it ;-) Can you provide a download-link? |
@mcluki here you go (valid for 7 days): http://we.tl/9JGhP9DXBc |
@mister-bogus @FernetMenta Thank you guys. That patch seems to fix my issue too. I only tested it for two minutes but I can see one main difference => I can choose/switch the audio tracks again. That was not possible with any 4.x version at all! |
In OE 5 betas the issue reappeared. Same like before, no audio track to choose at all...but sometimes one is played randomly. |
@FernetMenta Some more information after a debug session with @stefansaraev:
Logfiles:
Hope that helps! |
what exactly is the issue? the log shows that audio plays. if you think that there is something wrong please elaborate on it. what would you have expected and where exactly (line numbers) in the log did it happen. I don't have a crystal ball :) |
@FernetMenta I believe its something related to the "fastchannelswitch" thingie. @mcluki says hecant select "audio track" via osd -> audio. (none shown) but random track playing (he has few) playing the (rtp, multicast) stream directly, not via pvr but via strm/m3u file or PlayMedia() builtin is fine. all audio tracks shown and can be changed. it's just livetv broken :( playing the SAME stream but "proxied" via udpxy (udp/rtp multicast to http proxy) is fine in both pvr and PlayMedia(). udpxy does some internal "buffering". unfortunately, I cant reproduce atm, as everything I have here is http (mpegts coming via udpxy from few streaming servers I manage). will try to set up something with opencaster next few days. hope I can reproduce then. oh and btw we tested with bumped ffmpeg, if that matters, it did not help. |
I need much more precise descriptions. The log shows that at least four channels were played. It shows audio for all of them. "I believe" does not help much. |
well.... broken (http://sprunge.us/YLTI)
^ go figure... good (http://sprunge.us/UadB)
^ 4 streams. 1x video, 2x audio, 1x teletext. all audio streams shown in osd -> audio.. |
@stefansaraev there is nothing wrong with the log snippets you posted. creation of streams is deferred until pat/pmt is seen. the question is why this does not work. what did you change in the liked build? |
could you try this:
|
thanks @FernetMenta @mcluki here two builds for you please test both and share (clean, right after restart, try play an rtp:// channel) debug logs |
@FernetMenta @stefansaraev After trying build1 and build2, I can confirm that both work for me. I can see and change audio tracks. Logs: |
thanks @FernetMenta FYI "build 1" has
just to confirm what "I believe" :) EDIT: and uh #2885 |
@stefansaraev that would just disable the entire fastchannelswitch logic. I think this is not what we want, right? |
@FernetMenta yes, that was exactly what I wantedto test and uhm.. I hope "preferred audio language" will work with your patch. unfortunately @mcluki cant test that :( |
language is encoded in pat/pmt and a change in pmt triggers open of default streams which includes preferred audio track selection. works for vnsi and tvh for ages because they have their own demuxer and the same logic for a long time. |
yep. I know its in pmt, wasnt sure about kodi internals. cool. thanks ;) damn github doesnt have "+1" (thanks) button :D |
this one is fixed in xbmc master. fix comes in next OE rc. thanks to everyone involved.c losing ;) |
I'm using Openelec 3.95.7 generic on a Zotac AD02. With IPTV Simple Client I am watching LiveTV. All Openelec4 betas seem to have one issue: not correctly detecting audio channels.
If I press the "info" button, Openelec is always showing "0.0" as channel configuration - but it is playing an audio channel.
My provider's streams contain 3 tracks (5.1, 2.0 and teletext). Openelec seems to select one of it randomly. Sometimes it chooses the teletext-track... ;)
Additionaly I can't manually change the track. In the audio options openelec is showing "None" instead of the tracks.
If I play an M3U file with one of the streams in it, everything works perfect and as expected!
"Screenshot" here: http://1drv.ms/1fYJfv0
Logfiles here: http://1drv.ms/1q1j93Z
Some new debug log with Openelec 4.0.7: http://1drv.ms/1mDblCK
XBMC-Log: http://sprunge.us/DNSB
The text was updated successfully, but these errors were encountered: