[SOLVED] Live TV with VLC stops after ~30 seconds

General talk about ARGUS TV
Post Reply
shawly
Posts: 12
Joined: Fri Aug 29, 2014 3:56 pm

[SOLVED] Live TV with VLC stops after ~30 seconds

Post by shawly » Fri Aug 29, 2014 4:08 pm

Hey Guys,

so I just installed ArgusTV 2.3 on my NAS (TV-Card: Tevii S471, OS: Windows Server 2012 R2), after I installed the BDA Drivers (because Win Server doesn't have them) the Recorder Service finally started and I was able to scan for channels.

Then I went to the Scheduler Console and started a Livestream and opened the RTSP Stream with VLC on my PC (!), then I could watch about 30 seconds and then the video froze and the audio from before 5 seconds repeated, then VLC stopped.
I looked into the Scheduler Console and saw, that the stream has stopped. The only Error in the logs I found was this in the "Streaming.Rtsp.log" file:

Code: Select all

Info     11836	29-08-2014 15:51:00.847	StreamingUsageEnvironment.cpp	23	
Starting a new stream for 
Info     11836	29-08-2014 15:51:00.847	StreamingUsageEnvironment.cpp	23	D:\ServerFolders\Benutzer\ths\Videos\ARGUS TV Timeshift\Card1-1-0.ts.tsbuffer
Info     11836	29-08-2014 15:51:00.847	StreamingUsageEnvironment.cpp	23	.

Info     11836	29-08-2014 15:51:00.847	StreamingUsageEnvironment.cpp	23	
Started stream.

Info     11836	29-08-2014 15:51:00.847	StreamingUsageEnvironment.cpp	23	Streaming file 
Info     11836	29-08-2014 15:51:00.847	StreamingUsageEnvironment.cpp	23	D:\ServerFolders\Benutzer\ths\Videos\ARGUS TV Timeshift\Card1-1-0.ts.tsbuffer
Info     11836	29-08-2014 15:51:00.847	StreamingUsageEnvironment.cpp	23	 to "
Info     11836	29-08-2014 15:51:00.847	StreamingUsageEnvironment.cpp	23	stream-live-1-1
Info     11836	29-08-2014 15:51:00.847	StreamingUsageEnvironment.cpp	23	" stream.
Info     11836	29-08-2014 15:51:00.847	StreamingUsageEnvironment.cpp	23	Use the following URL "
Info     11836	29-08-2014 15:51:00.847	StreamingUsageEnvironment.cpp	23	rtsp://192.168.0.3:8554/stream-live-1-1
Info     11836	29-08-2014 15:51:00.847	StreamingUsageEnvironment.cpp	23	" to play it.
Info     11836	29-08-2014 15:51:30.927	StreamingUsageEnvironment.cpp	23	
Stopping stream on RtspUrl 
Info     11836	29-08-2014 15:51:30.927	StreamingUsageEnvironment.cpp	23	stream-live-1-1
Info     11836	29-08-2014 15:51:30.927	StreamingUsageEnvironment.cpp	23	.

Error    11836	29-08-2014 15:51:41.144	StreamBuffer.cpp	122	StreamBuffer::Allocate() - Error reading buffer file.
Error    11836	29-08-2014 15:51:42.02	StreamBuffer.cpp	122	StreamBuffer::Allocate() - Error reading buffer file.
Error    11836	29-08-2014 15:51:42.02	StreamBuffer.cpp	168	Allocate : Empty buffer
Error    11836	29-08-2014 15:51:42.02	TransportStreamFileSource.cpp	130	doGetNextFrame - Unable to read data from buffer.
The other logfiles didn't had anything related.
Same thing happens with ArgusTV 2.2.2.

Can someone help me out with this? :(
Last edited by shawly on Sat Aug 30, 2014 9:30 pm, edited 1 time in total.

User avatar
andrewNZ
Posts: 677
Joined: Thu Nov 26, 2009 2:07 pm
Location: Dunedin, New Zealand

Re: Live TV with VLC stops after ~30 seconds

Post by andrewNZ » Fri Aug 29, 2014 8:18 pm

Welcome to the forums :) .

This looks to me like a permissions issue. ARGUS TV is writing the file to disk, but can't read from it to check it.

How did you create the share and how did you set the permissions? (via the dashboard, or manually).
You can fix it, or you can fix it until it's broken. I usually choose the latter.

Server: WHS 2011. Hauppauge HVR 2200. Avermedia A835. ArgusTV Server. EPG Collector.
Clients: Win7 64bit. MediaPortal. ArgusTV Client. StreamedMP.

shawly
Posts: 12
Joined: Fri Aug 29, 2014 3:56 pm

Re: Live TV with VLC stops after ~30 seconds

Post by shawly » Fri Aug 29, 2014 8:19 pm

But why does it work for 30 seconds then?

User avatar
andrewNZ
Posts: 677
Joined: Thu Nov 26, 2009 2:07 pm
Location: Dunedin, New Zealand

Re: Live TV with VLC stops after ~30 seconds

Post by andrewNZ » Fri Aug 29, 2014 8:29 pm

Not 100% certain, but its probably how long it takes to start, check, and shut down the stream.
You can fix it, or you can fix it until it's broken. I usually choose the latter.

Server: WHS 2011. Hauppauge HVR 2200. Avermedia A835. ArgusTV Server. EPG Collector.
Clients: Win7 64bit. MediaPortal. ArgusTV Client. StreamedMP.

shawly
Posts: 12
Joined: Fri Aug 29, 2014 3:56 pm

Re: Live TV with VLC stops after ~30 seconds

Post by shawly » Fri Aug 29, 2014 8:45 pm

I created the Shares with the Dashboard but I haven't set any permissions, I mean, when ArgusTV runs as user ths and the owner of the folders is ths, then it should work.

And if it really depends on the permissions, then the stream wouldn't even start, but it does and runs for 30 secs, so the problem aren't the permissions I think..

And why do even my posts have to be moderated? This is pretty stupid.. especially if you want help..

Is there any debugging option, so the logs would give out more information?

User avatar
andrewNZ
Posts: 677
Joined: Thu Nov 26, 2009 2:07 pm
Location: Dunedin, New Zealand

Re: Live TV with VLC stops after ~30 seconds

Post by andrewNZ » Fri Aug 29, 2014 9:26 pm

All new users posts are moderated, that's one of the many tools we use to keep our forums spam free.

I can't remember if there is a debugging option, but the logs paint a pretty clear picture as it is.

We know ARGUS TV writes the file to disk because you can view it. The logs say that ARGUS TV sees an empty/inaccessible file.

There are two things I can think of that would give these symptoms. They are incorrect permissions, or poor disk performance. Permissions is the most likely.

Please give "everyone" full access to that folder.
You can fix it, or you can fix it until it's broken. I usually choose the latter.

Server: WHS 2011. Hauppauge HVR 2200. Avermedia A835. ArgusTV Server. EPG Collector.
Clients: Win7 64bit. MediaPortal. ArgusTV Client. StreamedMP.

shawly
Posts: 12
Joined: Fri Aug 29, 2014 3:56 pm

Re: Live TV with VLC stops after ~30 seconds

Post by shawly » Fri Aug 29, 2014 11:01 pm

I already gave full access to everyone for the folder and aswell the share, made no difference.
Diskperformance isn't the problem either, I tried to put the folders on the SSD which made no difference. Permissions aren't the problem because it creates two .ts files and one .tsbuffer file in the Timeshift folder which couldn't work if the permissions weren't right.
I don't even need to open the stream within VLC, if I just start the stream and wait 20-30 secs it just closes and the logs show the same error.

It's just so frustrating under Windows 8.1 in my old HTPC everything worked like a charm..

Caesium
Posts: 328
Joined: Fri Dec 16, 2011 11:40 pm

Re: Live TV with VLC stops after ~30 seconds

Post by Caesium » Fri Aug 29, 2014 11:13 pm

Isn't this normal behaviour? If I start a live stream in the scheduler console then it too stops after a few seconds, because nothing is keeping it alive.

Argus needs to be sent repeated KeepAlive requests for each live stream or it assumes nobody is watching them and stops them. By the looks of it, the scheduler console is not sending these keepalives so the stream stops shortly after you start it.

I'm not sure if the scheduler is supposed to send them, and it not doing so is a bug, or its not supposed to and the button is only there for testing.

But anyway, your setup looks fine to me. Try playing some streams in an actual Argus client?

shawly
Posts: 12
Joined: Fri Aug 29, 2014 3:56 pm

Re: Live TV with VLC stops after ~30 seconds

Post by shawly » Sat Aug 30, 2014 2:09 am

If this was normal behaviour, then there would be no error and I can't even watch TV with XBMC on my HTPC so I don't think that this is normal :/

Edit: Ok the problem really was the keepalive. Live TV with XBMC 13.2 under Windows works like a charm, aswell VLC if I start it over the Scheduler Console.
The real problem is XBMC 13.2 under Linux! OpenELEC and XBMCbuntu can't start the stream for a reason.. but I have no idea why. Like I said under Windows it works without problems.. so it has to be a problem with Linux. But I honestly don't want Windows on my HTPC..

Edit2: Alright I figured out why I can't play the channels, it's because my NAS with Windows Server 2012 R2 Essentials created an Active Directory Domain, so when I try to watch Live TV with my Windows PC and the Account that is linked to the AD, it works.
But when I try it with the local account on the SAME PC it happens to be the same problem like with Linux, so the problem is, that the Linux users aren't in the AD and therefore they seem to have access to Argus TV to start the stream, but have no access to the actual stream.

Edit3: Ok now I reinstalled my NAS with Windows 8.1 so I don't have to bother about that AD crap anymore. It's now working on my local Windows user, but still not with XBMC on my HTPC..

Edit4: Alright I feel like an idiot now. The reason was the access to the share, the ArgusTV plugin doesn't care about the windows username and password, you have to access the shares with the XBMC filemanager once and then just save the credentials for the path.. That's it.. now it's working :D
And for this shiet I wasted two days :oops:

Post Reply

Who is online

Users browsing this forum: No registered users and 94 guests