Topic: SVPcast - audio lagging behind and cutting out every few seconds

I've tried it with "downmix multichannel" enabled and disabled, with the same result. Any ideas what the problem could be?

11:41:33.968: ===== Starting transcoding ======
11:41:33.968: Command line: C:\Program Files (x86)\SVP 4\mpv64\mpv.exe C:/install/Triangle 2009 1080p BrRip 5 1 x264 aac TuGAZx.mp4 --aid=1 --sid=no --no-sub-auto --no-ytdl --o=C:/Users/Melkior/AppData/Local/Temp/svpcast/stream/svp%04d.ts --input-ipc-server=mpvstreampipe --hwdec=auto-copy --vf=vapoursynth:[C:\Users\Melkior\AppData\Roaming\SVP4\scripts\fffe.py]:4:25 --ovc=h264_nvenc --ovcopts=b=11700000,rc=vbr_hq,preset=slow,profile=high,g=60,keyint_min=60,time_base=1000/60000,threads=16 --oac=aac --of=ssegment --ofopts=segment_time=4,segment_format=mpegts,segment_list_size=15,segment_start_number=0,segment_list_flags=+live,segment_list=[C:\Users\Melkior\AppData\Local\Temp\svpcast\stream\svp.m3u8]
11:41:34.004: Playing: C:/install/Triangle 2009 1080p.mp4
11:41:34.049: (+) Video --vid=1 (*) (h264 1920x1080 24.000fps)
11:41:34.049: (+) Audio --aid=1 (*) (aac 2ch 44100Hz)
11:41:34.206: Using hardware decoding (dxva2-copy).
11:41:34.207: [autoconvert] Converting nv12 -> yuv420p
11:41:34.592: VO: [lavc] 1920x1080 yuv420p
11:41:34.592: [vo/lavc] Opening encoder: NVIDIA NVENC H.264 encoder [h264_nvenc]
11:41:35.065: [ao/lavc] Opening encoder: AAC (Advanced Audio Coding) [aac]
11:41:35.065: [encode] Opening muxer: streaming segment muxer [stream_segment,ssegment]
11:41:35.066: AO: [lavc] 44100Hz stereo 2ch floatp
11:41:40.436: [ffmpeg/video] h264: mmco: unref short failure
11:41:40.774: (...) AV: 00:40:20 / 01:38:51 (40%) A-V: 0.000 {0.1min 171.6fps 0.0MB}
11:42:53.731: ===== mpv exited with code 62097 =====

Re: SVPcast - audio lagging behind and cutting out every few seconds

The error 62097 is Qt error that tells about the child process has terminated. No details provided.
https://stackoverflow.com/questions/918 … -that-mean

Maybe it is NVIDIA NVENC H.264 encoder error? You can look the error details in Windows Events log, Applications tab.

Re: SVPcast - audio lagging behind and cutting out every few seconds

> The error 62097

It just means the streaming was ended.

4 (edited by Kaiji 27-09-2018 16:38:36)

Re: SVPcast - audio lagging behind and cutting out every few seconds

I terminated the stream manually.

I tried it with software rendering and the audio still lags behind and cuts out. H.265 just makes the stream shut down before it starts playing.

There don't seem to be any Nvidia-related notices in the Windows Event log.

Re: SVPcast - audio lagging behind and cutting out every few seconds

> audio lagging behind and cutting out every few seconds

What is the target device? Chromecast / AppleTV / Android player / etc?

Re: SVPcast - audio lagging behind and cutting out every few seconds

Chromecast.

Re: SVPcast - audio lagging behind and cutting out every few seconds

And the video itself is playing fine?
With any source video or just this particular one?

8 (edited by Kaiji 27-09-2018 18:14:48)

Re: SVPcast - audio lagging behind and cutting out every few seconds

Every video I've tried has had the audio lag/intermittent silence, but plays normally on my computer.

There don't appear to be any network issues. I just tested it on another Chromecast on another TV and it has the same problem.

Re: SVPcast - audio lagging behind and cutting out every few seconds

I tried streaming to Chromecast through VLC using SVP @60 FPS and it works fine. No audio problems at all.

Only issue now is that VLC doesn't send subtitles to Chromecast so this is far from a perfect solution. :\

Re: SVPcast - audio lagging behind and cutting out every few seconds

Just to be sure - are we talking about Chromecast Ultra? Which software version installed?

Re: SVPcast - audio lagging behind and cutting out every few seconds

No, just two regular Chromecasts on 1080p tvs.

I'm running SVP Pro version 4.2.0.140.

Re: SVPcast - audio lagging behind and cutting out every few seconds

Stop right here! big_smile
Chromecast non-Ultra can only handle 60 fps in 720p resolution.
Set Video frame -> Advanced -> Decrease to HD.

https://developers.google.com/cast/docs/media

Video codecs (Chromecast 1st and 2nd Gen.)
  H.264 High Profile up to level 4.1 (720p/60fps or 1080p/30fps)
  VP8 (720p/60fps or 1080p/30fps)

Video codecs (Chromecast Ultra)
  H.264 High Profile up to level 5.2 (2160p/60fps)
  VP8 (2160p/60fps)
  HEVC / H.265 Main and Main10 Profiles up to level 5.1 (2160p/60fps)
  VP9 Profile 0 and Profile 2 up to level 5.1 (2160p/60fps)

Re: SVPcast - audio lagging behind and cutting out every few seconds

That made it work perfectly. Thanks! But now I have another problem...

I created a new profile named "Streaming" and set it to be used automatically if a network stream is run (so that I don't have to switch the setting to 720p every time I want to stream something), but the streaming dialog defaults to using the "Automatic" profile. The "streaming" profile I created isn't even available in it's selection box.

Not sure if I'm doing something wrong...