Question / Help Media Source problem when restreaming m3u8

IsraLiga

New Member
Hello,
I'm using OBS for months to restream some m3u8 I get from an IPTV service. Everything worked perfectly good (besides that the url path has a timestamp and die after a few hours (7 hr in avarage), I could deal with it fine. The problem now is that suddenly in the last 2 days, when I load the media source as usual, it's start playing for a few second and after that falling. It's not about the server or the streaming it self, but about the loading of the media source.

I could see that sometimes if I open the window of the media source and load the same URL again, it's coming back to life again for a few seconds and then die again.

I don't understand what is the problem and why it's started to occurring right now after months without any problem.

Here is m3u8 url path I load on the Media Source for example:
http://cdn11_usw.sababatv.com/C18/s...u8?token=20ba996b-a61f-41fd-9277-e1b0afc8873a
 

IsraLiga

New Member
I don't have log for the issue, because the broadcasting to server is working well, the problem is with source media that plays for a few seconds and then fall. There is a bag with the software to load media source with time stamp probably.
 

Suslik V

Active Member
I don't care with your broadcasting, you may not broadcast at all. You need add working 'Video Capture Device' source (virtual cam well enough) to the same scene collection where you media source present. Then switch to the scene with media source and after 10-20 sec, when you encountered the error, post Current Log File. 'Media Source' and 'Video Capture Device' source uses same dlls, so to get it logged - add this additional device to the scene collection or you wouldn't see any errors in the log caused by the media plugin.
 

IsraLiga

New Member
This is what the log says:

11:17:44.460: Max audio buffering reached!
11:17:44.460: adding 1021 milliseconds of audio buffering, total audio buffering is now 1044 milliseconds
 

IsraLiga

New Member
and another log:
11:27:04.989: ------------------------------------------------
11:27:04.989: Loaded scenes:
11:27:04.989: - scene 'Scene':
11:27:04.989: - source: 'Media Source' (ffmpeg_source)
11:27:04.989: ------------------------------------------------
11:27:05.608: Update check: last known remote version is 0.16.2
11:27:11.347: [Media Source 'Media Source']: settings:
11:27:11.347: input: http://cdn12_eu.sababatv.com/C18/sm...u8?token=a881e71f-8ddf-442b-9476-b766d69779e4
11:27:11.347: input_format:
11:27:11.347: is_looping: no
11:27:11.347: is_forcing_scale: yes
11:27:11.347: is_hw_decoding: yes
11:27:11.347: is_clear_on_media_end: yes
11:27:11.347: restart_on_activate: yes
11:27:12.040: adding 23 milliseconds of audio buffering, total audio buffering is now 23 milliseconds
11:27:21.875: adding 23 milliseconds of audio buffering, total audio buffering is now 46 milliseconds
11:28:19.955: Max audio buffering reached!
11:28:19.955: adding 998 milliseconds of audio buffering, total audio buffering is now 1044 milliseconds
 

IsraLiga

New Member
and here another one:
11:30:32.982: CPU Name: Intel(R) Xeon(R) CPU E3-1240 V2 @ 3.40GHz
11:30:32.982: CPU Speed: 3392MHz
11:30:32.982: Physical Cores: 4, Logical Cores: 8
11:30:32.982: Physical Memory: 16353MB Total, 15334MB Free
11:30:32.983: Windows Version: 6.3 Build 9600 (revision: 17415; 64-bit)
11:30:32.983: Running as administrator: true
11:30:32.983: Aero is Enabled (Aero is always on for windows 8 and above)
11:30:33.011: OBS 0.16.2 (64bit, windows)
11:30:33.011: ---------------------------------
11:30:33.012: ---------------------------------
11:30:33.012: audio settings reset:
11:30:33.012: samples per sec: 44100
11:30:33.012: speakers: 2
11:30:33.013: ---------------------------------
11:30:33.013: Initializing D3D11..
11:30:33.013: Available Video Adapters:
11:30:33.016: Loading up D3D11 on adapter Microsoft Basic Render Driver (0)
11:30:33.017: D3D11 loaded sucessfully, feature level used: 45056
11:30:33.855: ---------------------------------
11:30:33.855: video settings reset:
11:30:33.855: base resolution: 1364x768
11:30:33.855: output resolution: 1088x614
11:30:33.855: downscale filter: Bicubic
11:30:33.855: fps: 30/1
11:30:33.855: format: NV12
11:30:33.855: ---------------------------------
11:30:33.857: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
11:30:33.859: [AMF Encoder] Version 1.3.1.0-1.3.0.5
11:30:33.859: [AMF Encoder] <Plugin::AMD::AMF::AMF> Initializing...
11:30:33.859: [AMF Encoder] <Plugin::AMD::AMF::AMF> Loading of 'amfrt64.dll' failed with error code 126.
11:30:33.865: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libcef.dll' not found, loading of module failed
11:30:33.866: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libEGL.dll' not found, loading of module failed
11:30:33.866: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libGLESv2.dll' not found, loading of module failed
11:30:33.867: Failed to load 'en-US' text for module: 'obs-browser.dll'
11:30:33.867: [browser_source: 'Version: 1.25.0']
11:30:33.868: LoadLibrary failed for 'nvEncodeAPI64.dll': The specified module could not be found.
11:30:33.868: (126)
11:30:33.887: Couldn't find VLC installation, VLC video source disabled
11:30:34.017: No blackmagic support
11:30:34.022: ---------------------------------
11:30:34.022: Loaded Modules:
11:30:34.022: win-wasapi.dll
11:30:34.022: win-mf.dll
11:30:34.022: win-dshow.dll
11:30:34.023: win-decklink.dll
11:30:34.023: win-capture.dll
11:30:34.023: vlc-video.dll
11:30:34.023: text-freetype2.dll
11:30:34.023: rtmp-services.dll
11:30:34.023: obs-x264.dll
11:30:34.023: obs-transitions.dll
11:30:34.023: obs-text.dll
11:30:34.023: obs-qsv11.dll
11:30:34.023: obs-outputs.dll
11:30:34.023: obs-filters.dll
11:30:34.023: obs-ffmpeg.dll
11:30:34.023: obs-browser.dll
11:30:34.023: image-source.dll
11:30:34.023: frontend-tools.dll
11:30:34.023: enc-amf.dll
11:30:34.023: coreaudio-encoder.dll
11:30:34.023: ==== Startup complete ===============================================
11:30:34.024: All scene data cleared
11:30:34.024: ------------------------------------------------
11:30:34.035: [Media Source 'Media Source']: settings:
11:30:34.035: input: http://cdn12_eu.sababatv.com/C18/sm...u8?token=a881e71f-8ddf-442b-9476-b766d69779e4
11:30:34.035: input_format:
11:30:34.035: is_looping: no
11:30:34.035: is_forcing_scale: yes
11:30:34.035: is_hw_decoding: yes
11:30:34.035: is_clear_on_media_end: yes
11:30:34.035: restart_on_activate: yes
11:30:34.038: Switched to scene 'Scene'
11:30:34.038: ------------------------------------------------
11:30:34.038: Loaded scenes:
11:30:34.038: - scene 'Scene':
11:30:34.038: - source: 'Media Source' (ffmpeg_source)
11:30:34.038: ------------------------------------------------
11:30:34.462: adding 23 milliseconds of audio buffering, total audio buffering is now 23 milliseconds
11:30:34.470: Update check: last known remote version is 0.16.2
11:31:26.515: Max audio buffering reached!
11:31:26.516: adding 1021 milliseconds of audio buffering, total audio buffering is now 1044 milliseconds
 

IsraLiga

New Member
I'm using terminal server (dedicated remote desktop) to stream, so I can't connect and don't have any camera / device I can connect.

The problem is very clear, I don't think a log really needed here. The Media Source url path I put as you can see is taking with token inside and stay alive for a few hours (because it has time stamp). Also now, when it's falling, I can see that the url path I take is still alive for hours although it's not playing it continuously.

Do OBS has problems with playing time stamp urls? I'm pretty sure it's a problem with the program.
Moreover, one of my competitor websites that use same paths to restream doing it still without any problem, so I'm 100% sure it's not about the url end.
 

Suslik V

Active Member
And virtual cam is not an option for you? Then you unable see what error is and thus unable to resolve it. OBS Studio itself, as you can see from my logs, works with different formats and you can try VLC source too (VLC player installation required, or registry path to it and some dlls).
 

IsraLiga

New Member
I already tried it, the source playing a little bit more time but then also collapse and also stucking the program.
 

IsraLiga

New Member
Do you have a place we can talk in private? I'll send you the details to connect to my remote desktop so you can see what happened in your eyes.
 

Suslik V

Active Member
It doesn't help. When you able to see what error is (in the log) then you may post it here.
The buffering you saw, it's just audio lagged when encoding.
 
Top