Hello,
I am facing an issue on laptop,
1. CPU - i5
2. Ram - 8 GB
3. Windows 11 OS
4. Nvidia Graphics Driver
when I start a video in my application the screen flickers and display goes off.
Already Installed K-lite codec.
1. I kept K-lite Hardware acceleration at None because keeping any other accelerator problem still persists.
__________________________________________________________
The problem does not exists on similar laptop configuration without Nvidia Graphics drivers.
Can you suggest any solution to resolve the issue.
Regards,
Ravindra.
Hello,
unfortunately we cannot suggest definitive solutions for this kind of problems happening on a specific kind of laptop configuration: the only suggestion is to try updating the video card driver and trying to play with existing K-Lite settings.
Kind regards
Severino Delaurenti
MultiMedia Soft
Hello,
Is it possible to play only Audio (mp3, wav) from a video file without displaying video on screen?
In short can I extract only Audio from Video file ? And later should be able to change pitch and tempo.
I know its weird question but have such requirement.
Thanks and Regards,
Ravindra.
Hello,
yes, this is possible: you simply need to avoid adding the video window which is created through the VideoPlayer.VideoWindowAdd method: in this case only the audio stream of the video clip will be instanced and rendered.
You can test this situation by using the VideoPlayerSimple sample project and commenting out the VideoPlayer.VideoWindowAdd method inside the source code.
In case you should need to extract the audio stream into a brand new WAV audio file (or W64 if bigger than 2 GBytes), you may use the VideoPlayer.AudioTrackExtract method.
In case you should need to extract the audio stream into a brand new audio file of a format different from WAV, like MP3 or Opus, our recorder component comes with the ExtractAudioFromVideoFile method which allows extracting and exporting the audio stream into one of the many supported formats.
Kind regards
Severino Delaurenti
MultiMedia Soft
Hello Severino,
Thanks for Solution. I have some questions.
1. If I do not load video window it works, and play only Audio. Does that eliminates the need of K-lite codec
pack ?
2. I tried with VideoPlayer.AudioTrackExtract method but not able to use it. I need the snippet of code how to extract please. Let me know can I get a wave file (.wav..) after extracting the audio and can I change pitch and tempo of this file ?
Does Extract method takes longer time ?
Thanks and Regards
Ravindra.
Hello,
1. Unfortunately the K-Lite pack is still needed also if not showing the video stream
2. Please, take a look into the VideoWaveform sample project that makes use of the VideoPlayer.AudioTrackExtract method in order to extract a video file into a memory buffer (or into a temporary file by just changing the bStoreInMemory parameter from TRUE to FALSE). Once you have the memory buffer (or the temporary file) you may load it through the LoadSoundFromMemory method (or LoadSound for a temporary file).
Please, note that you don't need to extract the audio track in order to change pitch and tempo: this can be applied to the video player directly as seen inside the VideoPlayerSimple sample project.
Hope this helps
Kind regards
Severino Delaurenti
MultiMedia Soft