RSATom / QmlVlc

[ABANDONED] libvlc wrapper for Qt Quick 2/Qml
Other
139 stars 56 forks source link

VOB video format #33

Closed kevkha closed 9 years ago

kevkha commented 9 years ago

The demo can play VOB video files but AC3 sound is not clear. Is there a way to improve this? Also, how to toggle audio tracks?

RSATom commented 9 years ago

The demo can play VOB video files but AC3 sound is not clear. Is there a way to improve this?

Did you try play same file with Vlc Player? Is it sounds better?

Also, how to toggle audio tracks?

That's QML API wiki: https://github.com/RSATom/WebChimera/wiki/QML-API You should look at: https://github.com/RSATom/WebChimera/wiki/QML-API#vlcaudio

kevkha commented 9 years ago

Yes, sound is perfect in VLC Player. Thanks for pointers to the wiki. I didn't know it exist. I have bookmarked.

RSATom commented 9 years ago

Yes, sound is perfect in VLC Player.

Then it's worth look to application output log - maybe you will see some errors there.

Thanks for pointers to the wiki. I didn't know it exist. I have bookmarked.

It's for WebChimera plugin but since it based on QmlVlc - docs mostly suitable for QmlVlc too.

kevkha commented 9 years ago

Log shows which audio converter module used. I don't see any helpful error/warning.

[23f2d13c] core audio converter debug: no audio converter modules matched [23f2ce14] core audio converter debug: no audio converter modules matched [23f2d13c] core audio converter debug: looking for audio converter module matching "any": 12 candidates [23f2ce14] core audio converter debug: looking for audio converter module matching "any": 12 candidates [23f2d13c] core audio converter debug: using audio converter module "a52tofloat32" [23f90f8c] core audio output debug: conversion pipeline complete [23f2ce14] core audio converter debug: [23f90f8c] using audio converter module "a52tofloat32"core audio output debug: conversion: 'f32l'->'f32l' 48000 Hz->48000 Hz Stereo->Stereo [23f90f8c] core audio output debug: conversion pipeline complete [23f8cdd4] core audio output debug: conversion pipeline complete [23f2d464] core audio resampler debug: looking for audio resampler module matching "any": 3 candidates [23f8cdd4] core audio output debug: conversion: 'f32l'->'f32l' 48000 Hz->48000 Hz Stereo->Stereo [23f2d464] core audio resampler debug: using audio resampler module "samplerate" [23f8cdd4] core audio output debug: conversion pipeline complete [282e271c] core decoder debug: End of audio preroll [23f2d78c] core audio resampler debug: looking for audio resampler module matching "any": 3 candidates [23f2d78c] core audio resampler debug: using audio resampler module "samplerate" [2832a864] core decoder debug: End of audio preroll [23ec2734] core input debug: Decoder wait done in 34 ms

RSATom commented 9 years ago

What if compare it with VLC player logs for same file?

kevkha commented 9 years ago

VLC uses the right converter too

image

image

kevkha commented 9 years ago

I found a fix/workaround. I can't have both VlcPlayer and VlcMmPlayer. I comment out VlcMmPlayer and now AC3 sound is perfect. Not sure it's a bug and can be improved but you can test it if you like. Thanks.

RSATom commented 9 years ago

Then I understand what happens, since you have both VlcPlayer and VlcMmPlayer active - them play file twice and you hear mix of sound from two streams. It's same as if you run two VLC players simultaneously. To avoid this problem, you could try mute sound in one of players.

kevkha commented 9 years ago

I did try to pause the VLC but that didn't make a diff. I suspect VlcMmPlayer does not handle AC3 well. I am going to switch the order to confirm. Earlier, I converted the same VOB video to MP4 and both could play fine.

Update: VlcMmPlayer by itself is fine too. You were right I can't have two ac3 sound streams at the same time, I guess with VOB/AC3 things handled a bit diff. Mp4 and Avi are fine. Consider issue is fixed. Thanks again.

RSATom commented 9 years ago

About difference between VlcPlayer and VlcMmPlayer: https://github.com/RSATom/QmlVlc/wiki/VlcPlayer-vs-VlcMmPlayer I.e. internally they are almost the same, difference is only where they draw video frames. Them absolutely identical relative to audio output, so in this case I think it's libvlc issue with simultaneous ac3 playback.

kevkha commented 9 years ago

Good stuff. Thanks much!