sooty234 266 Posted October 24, 2020 Share Posted October 24, 2020 20 minutes ago, Darren & Gemma said: Was there anything in the first log file? There is an audio buffer underflow [ 0.506][i][cplayer] AO: [wasapi] 48000Hz stereo 2ch spdif-dts [ 0.506][v][cplayer] AO: Description: Windows WASAPI audio output (event mode) [ 0.507][v][af] [convert] (disabled) [ 0.507][v][af] [out] 48000Hz stereo 2ch spdif-dts [ 0.507][v][cplayer] Still buffering (buffer went from 0% -> 37%) [0.376667s]. [ 0.507][v][cplayer] Still buffering (buffer went from 37% -> 30%) [0.309333s]. [ 0.507][v][cplayer] audio sync: sync_to_video=1, offset=-0.042000 [ 0.507][v][cplayer] Still buffering (buffer went from 30% -> 27%) [0.277333s]. [ 0.507][v][cplayer] starting audio playback [ 0.519][v][cplayer] Still buffering (buffer went from 27% -> 77%) [0.776667s]. [ 0.540][d][ao/wasapi] Thread Resume [ 0.540][d][ao/wasapi] Thread Reset [ 0.540][v][cplayer] End buffering (waited 0.121626 secs) [1.770000s]. [ 0.540][w][ao/wasapi] Audio underflow by 480 samples. [ 0.543][d][mkv] stream 0: resize index to 128 [ 5.738][d][mkv] stream 2: resize index to 256 [ 7.652][d][mkv] stream 0: resize index to 256 Link to comment Share on other sites More sharing options...
Darren & Gemma 12 Posted October 24, 2020 Share Posted October 24, 2020 Here you go, all pass-through disabled. Same 40 seconds at the beginning of the movie. This time it happened about 3-4 times. mpvlog.txt Link to comment Share on other sites More sharing options...
sooty234 266 Posted October 24, 2020 Share Posted October 24, 2020 Something isn't quite right. It should have downmixed to stereo, but it's decoding to 5.1 which the optical cable doesn't have the bandwidth for. Put this line in the mpv.conf and leave the audio passthrough in theater unset. af=lavcac3enc=yes:384:3 Link to comment Share on other sites More sharing options...
Darren & Gemma 12 Posted October 24, 2020 Share Posted October 24, 2020 1 minute ago, sooty234 said: Put this line in the mpv.conf and leave the audio passthrough in theater unset. af=lavcac3enc=yes:384:3 Just on the second line below the first line? Link to comment Share on other sites More sharing options...
sooty234 266 Posted October 24, 2020 Share Posted October 24, 2020 1 minute ago, Darren & Gemma said: Just on the second line below the first line? Yep, that'll work Link to comment Share on other sites More sharing options...
Darren & Gemma 12 Posted October 24, 2020 Share Posted October 24, 2020 Here you go. Pass through all still off. You're right it is still passing it through to my Logitech Receiver, because the decode light is on....... mpvlog.txt Link to comment Share on other sites More sharing options...
sooty234 266 Posted October 24, 2020 Share Posted October 24, 2020 3 minutes ago, Darren & Gemma said: You're right it is still passing it through to my Logitech Receiver, because the decode light is on.. That's expected. So you still had the issue, correct? Link to comment Share on other sites More sharing options...
Darren & Gemma 12 Posted October 24, 2020 Share Posted October 24, 2020 Yes. Sorry, just so i'm following you, with Passthrough all disabled, the Emby Server should downmix it to Stereo, and the decode light should be off? The logitech Receiver should only light up the Decode when passthrough is enabled, meaning the receiver does the work, correct? And the Audio buffer underflow is because the optical cable doesn't have enough bandwidth to pass 5.1? Link to comment Share on other sites More sharing options...
sooty234 266 Posted October 24, 2020 Share Posted October 24, 2020 1 minute ago, Darren & Gemma said: Sorry, just so i'm following you, with Passthrough all disabled, the Emby Server should downmix it to Stereo, and the decode light should be off? No. The server is not involved.... Wait! It is direct playing, correct? When you play the video, pull up the stats for nerds (ctrl+j), and post a screenshot. Link to comment Share on other sites More sharing options...
sooty234 266 Posted October 24, 2020 Share Posted October 24, 2020 Looking at the mpv log, it's streaming through the server, so Theater (that computer) doesn't have direct access to the media. We should rectify that... Link to comment Share on other sites More sharing options...
Darren & Gemma 12 Posted October 24, 2020 Share Posted October 24, 2020 (edited) OK the server isn't involved, but the Decode light shouldn't light up with Pass-Through disabled, correct? Stats below, Direct-Play Yes....... Edited October 24, 2020 by Darren & Gemma Link to comment Share on other sites More sharing options...
sooty234 266 Posted October 24, 2020 Share Posted October 24, 2020 1 minute ago, Darren & Gemma said: OK the server isn't involved, but the Decode light shouldn't light up with Pass-Through disabled, correct? No. The last line I gave you resamples the audio and bitstreams it as AC3. That was intentional. I'm trying to rule out a few things. 3 minutes ago, Darren & Gemma said: Stats below, Direct-Play Yes....... This is misleading. I wish emby wouldn't do this. Even though the media isn't being changed by the server, it's still streaming through the server, likely because Theater doesn't have direct access to the media. It should look like this: You may not have configured the (optional) shared folder path, in the library config. Anyway, give me a minute. I will give you a standalone mpv to test with.... Link to comment Share on other sites More sharing options...
sooty234 266 Posted October 24, 2020 Share Posted October 24, 2020 OK, I'm attaching a pre-configured standalone of mpv. Unzip the folder anywhere you want. Double click on the mpv.exe and drag and drop your video on it. It will play, automatically. Let me know the results. mpv.zip Link to comment Share on other sites More sharing options...
Darren & Gemma 12 Posted October 24, 2020 Share Posted October 24, 2020 9 minutes ago, sooty234 said: You may not have configured the (optional) shared folder path, in the library config That's correct: I'm running Emby on a QNAP NAS, so not sure what path to put in here? Link to comment Share on other sites More sharing options...
sooty234 266 Posted October 24, 2020 Share Posted October 24, 2020 3 minutes ago, Darren & Gemma said: That's correct: I'm running Emby on a QNAP NAS, so not sure what path to put in here? https://support.emby.media/support/solutions/articles/44001159320-optional-network-paths Link to comment Share on other sites More sharing options...
Darren & Gemma 12 Posted October 24, 2020 Share Posted October 24, 2020 OK will take a look a that link. Just played the file directly with MPV for 2 mins, not a single problem and the decode light on my receiver stayed off. Link to comment Share on other sites More sharing options...
sooty234 266 Posted October 24, 2020 Share Posted October 24, 2020 Just now, Darren & Gemma said: OK will take a look a that link. Just played the file directly with MPV for 2 mins, not a single problem and the decode light on my receiver stayed off. Ok that's good. I hadn't configured the audio passthrough. I wanted a baseline. You can add it, to test. You'll see a folder called portable_config. The mpv.conf is in there. Add this line for audio passthrough. audio-spdif=ac3,dts Link to comment Share on other sites More sharing options...
Darren & Gemma 12 Posted October 24, 2020 Share Posted October 24, 2020 Do you want me to put it in between the logfile and hwdec line, or just at the bottom (line 4?) Link to comment Share on other sites More sharing options...
sooty234 266 Posted October 24, 2020 Share Posted October 24, 2020 1 minute ago, Darren & Gemma said: Do you want me to put it in between the logfile and hwdec line, or just at the bottom (line 4?) Doesn't really matter, but just make it the last line Link to comment Share on other sites More sharing options...
Darren & Gemma 12 Posted October 24, 2020 Share Posted October 24, 2020 OK so I just played 2 minutes of the file, with no issues, and passthrough was enabled, as the decode light on my receiver was on. I created a log file for reference also..... mpvlog.txt Link to comment Share on other sites More sharing options...
sooty234 266 Posted October 24, 2020 Share Posted October 24, 2020 Looks like you copied the movie to the desktop? Try dragging it from your NAS. We need to see it work over your network. Link to comment Share on other sites More sharing options...
Darren & Gemma 12 Posted October 24, 2020 Share Posted October 24, 2020 OK. Just removed the passthrough setting first in the conf file and re-run it in MPV from the network location, it re-produced the issue.....! This is looking like a network issue then..... Something i've never had before. mpvlog.txt Link to comment Share on other sites More sharing options...
sooty234 266 Posted October 24, 2020 Share Posted October 24, 2020 There aren't any errors in the log. I wonder what happens if we increase the cache size and audio buffer? Add these lines to the mpv.conf. cache=yes cache-secs=30 force-seekable=yes audio-buffer=1 Lets see if that will compensate. But I'd suggest looking at your network. Link to comment Share on other sites More sharing options...
Darren & Gemma 12 Posted October 24, 2020 Share Posted October 24, 2020 (edited) Same with the above additional cache settings. I set the home network settings to transcode down to 1080-4Mbps and it still did it, it seemed better at 720-3Mbps, but not perfect. it does seem to point to -possible network, but i'm not convinced. Nothing has changed in years, 5Ghz Wifi connection at 54Mbps, and nothing else current running or stream in my house at present. Also, all other devices I run Emby on in my house, which is 3 Amazon Firesticks are all obviously wifi also, and they have zero problems! Plus decode is still illuminated on my Receiver with PassThrough disabled, so that doesnt make sense either. Edited October 24, 2020 by Darren & Gemma Link to comment Share on other sites More sharing options...
sooty234 266 Posted October 24, 2020 Share Posted October 24, 2020 Your PC is on WiFi? Try running a temp patch cable to it? And you'll need to remove the ac3enc line you put in the mpv.conf. 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