gmb 1 Posted September 28, 2016 Share Posted September 28, 2016 (edited) I am evaluating emby and bought a monthly premiere subscription. So far i managed to find a working setup for all of my needs but i would like to be able to record my iptv shows. If i schedule or manually record a channel the folder structure is properly created but there are no files inside. I tried all of the suggestions in the forum as disable transcoding, watch on folder etc. without any luck yet. From the log seems that the server can't locate the input source (NOTE: if i try to record the same .ts source from VLC or cvlc I can record without any problem ) here is the relevant log part (i just changed the url of the input source as is a paid service) ... 2016-09-28 14:34:56.0167 Info App: Writing file to path: /var/lib/emby-server/data/livetv/recordings/Series/Test/Test 2016-09-28.mp4 2016-09-28 14:34:56.0167 Info App: Opening recording stream from tuner provider 2016-09-28 14:34:56.0167 Info HttpClient: HttpClientManager GET: http://www.example.com/test.ts 2016-09-28 14:34:57.1438 Error HttpClient: Error getting response from http://www.example.com/test.ts *** Error Report *** Version: 3.0.7200.0 Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh Operating system: Unix 4.4.0.38 Processor count: 2 64-Bit OS: True 64-Bit Process: True Program data path: /var/lib/emby-server Mono: 4.4.2 (Stable 4.4.2.11/f72fe45 Tue Aug 30 16:43:57 UTC 2016) Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe One or more errors occurred. System.AggregateException at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7f90be93b2a0 + 0x00029> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7f90be939170 + 0x000a7> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7f90be9390f0 + 0x0006b> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7f90be9390a0 + 0x0003a> in <filename unknown>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x7f90be9398e0 + 0x00017> in <filename unknown>:0 at MediaBrowser.Common.Implementations.HttpClientManager.HttpClientManager+<SendAsyncInternal>c__async4.MoveNext () <0x41560000 + 0x00bfd> in <filename unknown>:0 InnerException: System.Net.WebException The remote server returned an error: (404) Not Found. at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) <0x415a3820 + 0x00197> in <filename unknown>:0 at System.Threading.Tasks.TaskFactory`1[TResult].FromAsyncCoreLogic (IAsyncResult iar, System.Func`2 endFunction, System.Action`1 endAction, System.Threading.Tasks.Task`1 promise, Boolean requiresSynchronization) <0x7f90be9ccb60 + 0x00088> in <filename unknown>:0 2016-09-28 14:34:57.1438 Error App: Error recording to /var/lib/emby-server/data/livetv/recordings/Series/Test/Test 2016-09-28.mp4 *** Error Report *** Version: 3.0.7200.0 Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh Operating system: Unix 4.4.0.38 Processor count: 2 64-Bit OS: True 64-Bit Process: True Program data path: /var/lib/emby-server Mono: 4.4.2 (Stable 4.4.2.11/f72fe45 Tue Aug 30 16:43:57 UTC 2016) Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe One or more errors occurred. MediaBrowser.Model.Net.HttpException at MediaBrowser.Common.Implementations.HttpClientManager.HttpClientManager+<SendAsyncInternal>c__async4.MoveNext () <0x41560000 + 0x017f7> in <filename unknown>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7f90be93b2a0 + 0x00029> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7f90be939170 + 0x000a7> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7f90be9390f0 + 0x0006b> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7f90be9390a0 + 0x0003a> in <filename unknown>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x7f90be9398e0 + 0x00017> in <filename unknown>:0 at MediaBrowser.Common.Implementations.HttpClientManager.HttpClientManager+<SendAsync>c__async1.MoveNext () <0x4155c890 + 0x00215> in <filename unknown>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7f90be93b2a0 + 0x00029> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7f90be939170 + 0x000a7> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7f90be9390f0 + 0x0006b> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7f90be9390a0 + 0x0003a> in <filename unknown>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x7f90be9398e0 + 0x00017> in <filename unknown>:0 at MediaBrowser.Server.Implementations.LiveTv.EmbyTV.EncodedRecorder+<RecordWithTempFile>c__async2.MoveNext () <0x418f80f0 + 0x00602> in <filename unknown>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7f90be93b2a0 + 0x00029> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7f90be939170 + 0x000a7> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7f90be9390f0 + 0x0006b> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7f90be9390a0 + 0x0003a> in <filename unknown>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () <0x7f90be9396e0 + 0x00012> in <filename unknown>:0 at MediaBrowser.Server.Implementations.LiveTv.EmbyTV.EncodedRecorder+<Record>c__async0.MoveNext () <0x418f7390 + 0x006b6> in <filename unknown>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7f90be93b2a0 + 0x00029> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7f90be939170 + 0x000a7> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7f90be9390f0 + 0x0006b> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7f90be9390a0 + 0x0003a> in <filename unknown>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () <0x7f90be9396e0 + 0x00012> in <filename unknown>:0 at MediaBrowser.Server.Implementations.LiveTv.EmbyTV.EmbyTV+<RecordStream>c__asyncD.MoveNext () <0x418c0000 + 0x014d2> in <filename unknown>:0 InnerException: System.AggregateException One or more errors occurred. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7f90be93b2a0 + 0x00029> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7f90be939170 + 0x000a7> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7f90be9390f0 + 0x0006b> in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7f90be9390a0 + 0x0003a> in <filename unknown>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x7f90be9398e0 + 0x00017> in <filename unknown>:0 at MediaBrowser.Common.Implementations.HttpClientManager.HttpClientManager+<SendAsyncInternal>c__async4.MoveNext () <0x41560000 + 0x00bfd> in <filename unknown>:0 InnerException: System.Net.WebException The remote server returned an error: (404) Not Found. at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) <0x415a3820 + 0x00197> in <filename unknown>:0 at System.Threading.Tasks.TaskFactory`1[TResult].FromAsyncCoreLogic (IAsyncResult iar, System.Func`2 endFunction, System.Action`1 endAction, System.Threading.Tasks.Task`1 promise, Boolean requiresSynchronization) <0x7f90be9ccb60 + 0x00088> in <filename unknown>:0 2016-09-28 14:34:57.1447 Info App: Retrying recording in 60 seconds. Any help appreciated gmb Edited September 28, 2016 by gmb Link to comment Share on other sites More sharing options...
gmb 1 Posted September 30, 2016 Author Share Posted September 30, 2016 anyone? Link to comment Share on other sites More sharing options...
Luke 37065 Posted September 30, 2016 Share Posted September 30, 2016 Hi, welcome. It looks like the remote server is returning a 404 not found error. Unfortunately I cannot tell you why that might be happening since I have no knowledge of the remote server. What you might want to look into is whether or not there are certain conditions in which the remote server might return a 404, like for example, something missing from the url, or a required http header missing, etc. something along those lines. We do not have any configuration to allow you to specify http headers but we could add that if necessary. thanks. Link to comment Share on other sites More sharing options...
gmb 1 Posted October 1, 2016 Author Share Posted October 1, 2016 Hi, thanks for the support As i said if i call the same url from command line using cvlc i have no problems recording the stream. cvlc 'http://www.example.com:1234/test.ts' --sout='#transcode{vcodec=h265,acodec=mp3,ab=192,channels=2,deinterlace,audio-sync,hq}:standard{access=file,mux=ts,dst=/storage/media/tv/Test/Test.ts}' --run-time 1920 --stop-time 1920 I'm not sure what kind of http header i am sending from the console but i think we can rule out mistakes in the url as i can watch the channel without problems and i am starting the recording from the emby interface. Could this be related to the port number in the url? Link to comment Share on other sites More sharing options...
Luke 37065 Posted October 1, 2016 Share Posted October 1, 2016 I suppose it's possible. Link to comment Share on other sites More sharing options...
gmb 1 Posted October 1, 2016 Author Share Posted October 1, 2016 Is there anything i can try from my side? Only thing that comes to my mind is a reverse proxy. I can try to it setup if this can help but i suppose it's a common case for live tv users. Link to comment Share on other sites More sharing options...
gmb 1 Posted October 13, 2016 Author Share Posted October 13, 2016 Just a report, looks like the Version 3.0.8000.0 partly fixed my problem. I am now able to record from the web interface. Thought some channels seems to have problems as they produce a large number of very short videos. Link to comment Share on other sites More sharing options...
TravellingGuy 0 Posted November 12, 2016 Share Posted November 12, 2016 (edited) I've just tried doing this with my IPTV subscription and was having the exact same issue. I've got it working, though, by checking the "Automatically convert recordings to a streaming friendly format" checkbox (in the Live TV -> Settings page). For some reason Emby (or ffmpeg) won't properly capture a raw .ts stream file from the provider and write it to disk, but telling Emby to transcode it as it comes in works for me. (Note, I'm on Linux, not Windows, but it's likely the same issue.) Edited November 12, 2016 by TravellingGuy Link to comment Share on other sites More sharing options...
Luke 37065 Posted November 12, 2016 Share Posted November 12, 2016 Depending on what the input is that might be required. A lot of iptv streams are using hls which is not a single continuous stream but rather a playlist of lots of little segments. Ffmpeg will be needed to process those which means that you basically have to enable the conversion feature. We'll try to make this more automatic in a future release. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now