Is it possible to play and audio and a video file at the same time?
#1
Hello, i have an audio file that contains just audio and video file that is just video and i want to play them at the same time. Is this possible with kodi? If so an code example would be appreciated. Thanks!
Reply
#2
Merging the two with MKVToolnix will vastly simply that challenge. I'm sure that ffmpeg can do it too on the command line.
Reply
#3
(2023-01-13, 17:35)Skipmode A1 Wrote: Hello, i have an audio file that contains just audio and video file that is just video
I have never tried it, but if you place both the audio and video file in the same folder, Kodi should play both. Filenames need to be identical...
MyMovie (2023).mkv
MyMovie (2023).mp3
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#4
Thanks for the info.

One addition question: what if it is a streaming video file (mp4) and streaming an audio file (mp3)? Can i combine them on the fly in kodi somehow?
Reply
#5
(2023-01-14, 06:22)Skipmode A1 Wrote: One addition question: what if it is a streaming video file (mp4) and streaming an audio file (mp3)?
Sorry, I don't know.
I just noticed who you are. Maybe ask in the slack channels?
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#6
Ok, i did. It seems it IS possible by using this addon: inputstream.adaptive
Reply
#7
I don’t know how in other platforms, on android it’s called audio focus.
on Android (Shield) you need to share audio to run two at same time:

Code:


adb shell
adb:/ $ cmd appops set org.xbmc.kodi TAKE_AUDIO_FOCUS ignore
adb:/ $ cmd appops set org.videolan.vlc TAKE_AUDIO_FOCUS ignore

After that open VLC and play music.
Open Kodi and play.
Reply

Logout Mark Read Team Forum Stats Members Help
Is it possible to play and audio and a video file at the same time?0