komh / kmp

K Movie Player
Other
1 stars 0 forks source link

WPS hangs/crash after playing video #5

Open unclebrr opened 8 years ago

unclebrr commented 8 years ago

problem.zip Short explanation of the problem (also see attached zip with logs etc). After years under ACP2/OS4/p6, I have a fresh install of eCS 2.2 on ICH8/iQuad. The problem is with playing video. After systemstart the audiocard initializes normally, all controls are shown and almost all are working. AUDIO-players (PM123, Qu2) give good sound which can be changed from programm's interfaces. NEW KMP is showing video with sound, but volume control is NOT working. After video is finished WPS hangs, but the process could be killed by CADH. But after this audio-players give no sound and hang (Qu2) and give message "Not enough audio-buffers" (PM123). KMP works and hangs. I've tried a lot of drivers and players - all the same, best variant is with latest KMP, all older give "DART error(15ed):Insufficient buffer size specified".

komh commented 8 years ago

I recommended

to try to use DART mode not UNIAUD by specifying '-audio dart', and try to use DIVE mode by specifying '-video dive'.

And your reply was

Tried. WPS hangs are away, but all other is the same. Volume control is uniaud-only and audio-players (and KMP too) do not change volume. UPD. Hmmm... it plays youtube's mp4s (aac) normally but gives no sound with avis (ac3). So I hasn't been quite correct.

'All other is same' means that

  1. After playing with KMP, you can still see 'Not enough audio-buffers'
  2. In KMP, you cannot control volume

right ?

  1. occurs only if KMP uses UNIAUD mode. However it is so In spite of KMP using DART mode, I have no idea now. 2. is a problem of Uniaud driver. Uniaud driver is an universal driver. However, different audio chipsets provide different control name for mixer. A DART-to-UNIAUD-bridge of Uniaud do not support those control names. For example, some chipset use [Speaker Playback Volume], but other chipsets use [Front Playback Volume]. Another chipsets use another control name.

Instead, use master volume with Volume on WPS. Later, there is need to use soft volume to avoid this.

unclebrr commented 8 years ago

OK. Two questions: -Why do other audio-players (f.x. PM123, Qu/2, z!) work nice with this version of Uniaud? -Why nothing works AFTER using KMP? I've attached the Uniaud report in my mail. You can see that all controls are well-known and working. PMUnimixer works fine switching outs etc.. RTL883-chip is well-known and has been in production over 9 years. Do you really think the problem is in Uniaud?

unclebrr commented 8 years ago

Look at this too, pls.

G:\Download>E:\APPM\WarpVision\kmp.exe -audio dart -video dive G:\Download\Asia-Fantasia-Live.In.Tokyo.200 CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 SwScaler CPUflags : MMX MMX2 KMP v0.7.2(ffplay N-37509-g11675cf) Copyright (c) 2007-2012 KO Myung-Hun Playing file : G:\Download\Asia-Fantasia-Live.In.Tokyo.2007.BDRip.XviD.AC3.-HQ-ViDEO.avi [1/1] Input #0, avi, from 'G:\Download\Asia-Fantasia-Live.In.Tokyo.2007.BDRip.XviD.AC3.-HQ-ViDEO.avi': Metadata: encoder : VirtualDubMod 1.5.10.2 (build 2540/release) title : Asia / Fantasia - Live in Tokyo (2007) artist : SENATOR (BDRip 720) copyright : HQ-ViDEO (www.hq-video.ru) comment : 14.08.2009 Duration: 01:54:56.81, start: 0.000000, bitrate: 2719 kb/s Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 720x400 [SAR 1:1 DAR 9:5], SAR 80:81 DAR 16:9, 23.98 tbr, 23.98 tbn, 23.98 tbc Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), s16, 448 kb/s [swscaler @ 0x23ddc40] using unscaled yuv420p -> bgra special converter [swscaler @ 0x26240e0] using unscaled yuv420p -> bgra special converterB f=0/0 DART error(15ed):Insufficient buffer size specified.

10.71 A-V: 0.032 fd= 103 aq= 658KB vq= 74KB sq= 0B f=0/0

What can you say? Another Uniaud bug?

komh commented 8 years ago

Two questions: -Why do other audio-players (f.x. PM123, Qu/2, z!) work nice with this version of Uniaud?

Because they use DART only. Can they control volumes ? But cannot KMP ?

-Why nothing works AFTER using KMP?

If you run KMP without specifying audio mode, then KMP try to use UNIAUD mode first. Currently, uniaud APIs of Uniaud device driver are buggy. So after uniaud APIs are used, Uniaud device driver does not work even on DART.

You'd better to use KMP with DART mode only. Do not use UNIAUD mode.

I've attached the Uniaud report in my mail. You can see that all controls are well-known and working. PMUnimixer works fine switching outs etc.. RTL883-chip is well-known and has been in production over 9 years. Do you really think the problem is in Uniaud?

What is this for ? Volume control ? Or...

DART error(15ed):Insufficient buffer size specified.

Maybe, did you run KMP with UNIAUD mode, and then run again with DART mode ?

Do not use UNIAUD mode.

unclebrr commented 8 years ago

No. I've run KPM in DART mode only and get this message. (///)

Now, further, pls look at this:

G:\Download>ffplay Asia-Fantasia-Live.In.Tokyo.2007.BDRip.XviD.AC3.-HQ-ViDEO.avi ffplay version 2.1.5 Copyright (c) 2003-2014 the FFmpeg developers built on Sep 10 2014 16:08:41 with gcc 4.4.6 (GCC) configuration: --cxx=g++ --prefix=/ffmpeg --disable-debug --samples=/fate/fate-suite --extra-ldflags=-Zhigh-mem --extra-cflags=-D_GNU_SOURCE --enable-gpl --enable-version3 --enable-libxvid --enable-libx264 --enable-libmp3lame --enable-postproc --enable-runtime-cpudetect --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libspeex --enable-libopus --cpu=i486 --extra-libs= --extra-cxxflags=-D_GNU_SOURCE libavutil 52. 48.101 / 52. 48.101 libavcodec 55. 39.101 / 55. 39.101 libavformat 55. 19.104 / 55. 19.104 libavdevice 55. 5.100 / 55. 5.100 libavfilter 3. 90.100 / 3. 90.100 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 Input #0, avi, from 'Asia-Fantasia-Live.In.Tokyo.2007.BDRip.XviD.AC3.-HQ-ViDEO.avi': Metadata: encoder : VirtualDubMod 1.5.10.2 (build 2540/release) title : Asia / Fantasia - Live in Tokyo (2007)f=0/0 artist : SENATOR (BDRip 720) copyright : HQ-ViDEO (www.hq-video.ru) comment : 14.08.2009 Duration: 01:54:56.81, start: 0.000000, bitrate: 2719 kb/s Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 720x400 [SAR 1:1 DAR 9:5], 2259 kb/s, SAR 80:81 DAR 16:9, 23.98 tbr, 23.98 tbn, 23.98 tbc Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), fltp, 448 kb/s

3.89 A-V: 0.004 fd= 0 aq= 51KB vq= 1KB sq= 0B f=0/0

G:\Download>E:\APPM\WarpVision\kmp.exe -audio dart -video dive G:\Download\Asia-Fantasia-Live.In.Tokyo.200 CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 SwScaler CPUflags : MMX MMX2 KMP v0.7.2(ffplay N-37509-g11675cf) Copyright (c) 2007-2012 KO Myung-Hun Playing file : G:\Download\Asia-Fantasia-Live.In.Tokyo.2007.BDRip.XviD.AC3.-HQ-ViDEO.avi [1/1] Input #0, avi, from 'G:\Download\Asia-Fantasia-Live.In.Tokyo.2007.BDRip.XviD.AC3.-HQ-ViDEO.avi': Metadata: encoder : VirtualDubMod 1.5.10.2 (build 2540/release) title : Asia / Fantasia - Live in Tokyo (2007) artist : SENATOR (BDRip 720) copyright : HQ-ViDEO (www.hq-video.ru) comment : 14.08.2009 Duration: 01:54:56.81, start: 0.000000, bitrate: 2719 kb/s Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 720x400 [SAR 1:1 DAR 9:5], SAR 80:81 DAR 16:9, 23.98 tbr, 23.98 tbn, 23.98 tbc Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), s16, 448 kb/s

DART error(1138e):Hardware error. Cannot open audio [swscaler @ 0x2396da0] using unscaled yuv420p -> bgra special converter [swscaler @ 0x25a15a0] using unscaled yuv420p -> bgra special converter

3.50 A-V: 0.000 fd= 0 aq= 0KB vq= 1KB sq= 0B f=0/0

unclebrr commented 8 years ago

sorry for THE BIG letters - I really don't know where git takes these tags...

komh commented 8 years ago

No problem.

This problem is for other videos, too ?

How about trying to enlarge audio buffers with -audiobufsize ? Default is 8192 for 2ch and 16bits audio.

Finally, would you mind providing a clip to me ?

unclebrr commented 8 years ago

Yes, I've tried -audiobufsize 16384 - did not change anything. This is not a clip - this is full concert (3Gb), but I can try to cut meg or two :) I'll also look for the smaller one and put it on share. Can you check differrence in latest ffplay and kmp? or maybe upgrade kmp? because ffplay as you can se does its work well.

komh commented 8 years ago

I've confirmed. This is a problem of a number of channels. DART implementation of uniaud driver seems not to support 5.1 ch. Try

SET KAI_AUDIO_CHANNELS=2
unclebrr commented 8 years ago

Hello KO, Thanks for your efforts! Sorry, I am not able to check it right now, 'cause I have no system installed here. I promise to do it later. Anyway, somebody at the channel can do it.

wbr,brr

On Thu, 07 Jan 2016 17:22:28 -0800 KO Myung-Hun notifications@github.com wrote:

I've confirmed. This is a problem of a number of channels. DART implementation of uniaud driver seems not to support 5.1 ch. Try

SET KAI_AUDIO_CHANNELS=2

Reply to this email directly or view it on GitHub: https://github.com/komh/kmp/issues/5#issuecomment-169860128


Professional hosting for everyone - http://www.host.ru

komh commented 8 years ago

Any result ?

unclebrr commented 8 years ago

Sorry KO, have no OS/2 right now. Will install in VB and check later. Thanks for your efforts.

On Mon, 18 Jan 2016 22:05:06 -0800 KO Myung-Hun notifications@github.com wrote:

Any result ?


Reply to this email directly or view it on GitHub: https://github.com/komh/kmp/issues/5#issuecomment-172750310


Professional hosting for everyone - http://www.host.ru