INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Can you add command line arguments for audio,subtitles to load separate audio fi  (Read 1000 times)

39505399

  • Junior Woodchuck
  • **
  • Posts: 52

Can you add command line arguments for audio,subtitles to load separate audio files and subtitle files.
Hello friends! Can you add command line arguments for audio,subtitles to load separate audio files and subtitle files., like this:
```
MC33.exe --audio=C:\Users\Name\Audio\test.mp3 --subtitle=C:\Users\Name\Audio\test.srt "C:\Users\Name\Video\test.mp4"
MC33.exe --audio=https://cdn-003.com/audio\test.mp3 --subtitle=C:\Users\Name\Audio\test.srt 'https://cdn-003.com/video\test.mp4'
```
If  Media Center 33  includes a command line parameter to add audio, it can be used in a wider range of fields.
Just like: the `--input-slave and --sub-file` parameter in vlc; the `--audio-file and --sub-files-append` parameter in mpv.

This way users can use  Media Center 33  in more environments.

I plan to develop a web extension for it so that it can be used in a wider range of fields.

Unfortunately, Media Center 33 currently does not support adding separate audio and subtitles via the command line.

Thank you very much for providing a very good media player for global users! 🙏
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42602
  • Shoes gone again!

This should already be possible. Check out the wiki:
https://wiki.jriver.com/index.php/The_Command_Line
Logged
Matt Ashland, JRiver Media Center

39505399

  • Junior Woodchuck
  • **
  • Posts: 52

This should already be possible. Check out the wiki:
https://wiki.jriver.com/index.php/The_Command_Line

Can you give some examples to show that this function has been implemented?
Like this:
```
MC33.exe --audio=C:\Users\Name\Audio\test.mp3 --subtitle=C:\Users\Name\Audio\test.srt "C:\Users\Name\Video\test.mp4"
MC33.exe --audio=https://cdn-003.com/audio\test.mp3 --subtitle=C:\Users\Name\Audio\test.srt 'https://cdn-003.com/video\test.mp4'
```

I have read the command line documentation, but I did not find any relevant audio command line.
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2812

Matt is referring to playing a single file from command line, but you want to play audio from one and video from another.

AFAIK this is not supported. You can easily merge the files using many tools, like MKVtoolnix, but MC currently doesn't do realtime source muxing.

Logged

39505399

  • Junior Woodchuck
  • **
  • Posts: 52

Matt is referring to playing a single file from command line, but you want to play audio from one and video from another.

AFAIK this is not supported. You can easily merge the files using many tools, like MKVtoolnix, but MC currently doesn't do realtime source muxing.

If you are willing to provide a command line parameter that can load separate audio, I can develop a web extension to play most network live streaming. Unfortunately, it is not possible at present. . .

The following command line also cannot play live streaming, which can be played in VLC or other popular players and performs very well.

```
yt-dlp 'https://l7jxodfjc1en.cdn-centaurus.com/hls2/01/02753/9b72pg0g3h9k_,n,h,x,.urlset/index-f2-v1-a1.m3u8' -o - | MC33.exe -
```
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2812

MC can play online streams directly:
mc33 /play https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8
Logged

39505399

  • Junior Woodchuck
  • **
  • Posts: 52

MC can play online streams directly:
mc33 /play https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8

Because many well-known and popular live streaming network service providers store audio and video separately, if it is always impossible to play audio and video at the same time in the command line, then there is actually no way to solve this problem. Users and extension developers have never been able to expand the playback function of JRiver Media Center 33.

So I hope that JRiver Media Center 33 can keep up with the times and support simultaneous playback of audio and video in the command line like popular media players such as VLC, MPV, PotPlayer, etc.

For example: In popular media players such as VLC, MPV, PotPlayer, they support the following two command line syntax formats to play separate audio and video:

```
vlc.exe --input-slave=C:\Users\Name\Audio\test.mp3 "C:\Users\Name\Video\test.mp4"
vlc.exe --input-slave=https://cdn-003.com/audio\test.mp3 'https://cdn-003.com/video\test.mp4'
```

```
mpv.exe --audio-file=C:\Users\Name\Audio\test.mp3 "C:\Users\Name\Video\test.mp4"
mpv.exe --audio-file=https://cdn-003.com/audio\test.mp3 'https://cdn-003.com/video\test.mp4'
```

```
yt-dlp.exe 'https://l7jxodfjc1en.cdn-centaurus.com/hls2/01/02753/9b72pg0g3h9k_,n,h,x,.urlset/index-f2-v1-a1.m3u8' -o - | vlc.exe -
```

```
yt-dlp.exe 'https://l7jxodfjc1en.cdn-centaurus.com/hls2/01/02753/9b72pg0g3h9k_,n,h,x,.urlset/index-f2-v1-a1.m3u8' -o - | mpv.exe -
```



Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72814
  • Where did I put my teeth?

Because many well-known and popular live streaming network service providers store audio and video separately...
Which ones?  Legal services?
Logged

39505399

  • Junior Woodchuck
  • **
  • Posts: 52

Which ones?  Legal services?

For example: like netflix, Youtube, bilibili, etc....
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2812

I was referring to your yt-dlp examples, which are just playing an m3u8. That should work with current MC directly, no need to pipe from yt-dlp.
Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 8070
  • Long cold Winter...

For example: like netflix, Youtube, bilibili, etc....

Problem is a lot of them use DRM so it's a no-go to begin with.
Logged
I don't work for JRiver... I help keep the forums safe from "male enhancements" and other sources of sketchy pharmaceuticals.

Windows 11 24H2 Update 64-bit + Ubuntu 24.10 Oracular Oriole 64-bit | Windows 11 24H2 Update 64-bit (Intel N305 Fanless NUC 16GB RAM/500GB M.2 NVMe SSD)
JRiver Media Center 33 (Windows + Linux) | iFi ZEN DAC 3 | JBL 306P MkII Studio Monitors | Audio-Technica ATH-M50x Headphones

39505399

  • Junior Woodchuck
  • **
  • Posts: 52

I was referring to your yt-dlp examples, which are just playing an m3u8. That should work with current MC directly, no need to pipe from yt-dlp.

The purpose of using yt-dlp to take over is to greatly improve the loading speed, playback stability and smoothness of the real-time stream.

Youtube can also be taken over using yt-dlp, as shown below:

```
yt-dlp.exe 'https://www.youtube.com/watch?v=LXb3EKWsInQ' -o - | vlc.exe -
```

```
yt-dlp.exe 'https://www.youtube.com/watch?v=LXb3EKWsInQ' -o - | mpv.exe -
```
Logged

39505399

  • Junior Woodchuck
  • **
  • Posts: 52

Add a command line parameter for audio to support loading separate audio files, which can bypass Youtube's restrictions and play the highest picture quality, even 8K ultra-high-definition Youtube video streams in JRiver Media Center 33...
Logged

39505399

  • Junior Woodchuck
  • **
  • Posts: 52

Is there any friend willing to solve this problem?
Logged

39505399

  • Junior Woodchuck
  • **
  • Posts: 52

Without this feature, it is impossible to add video, audio and subtitles at once through the command line. Therefore, this feature is very important. For example, VLC | MPV | KMPLAYER | POTPLAYER | MPC all support this feature.
Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 8070
  • Long cold Winter...

Just saying this as a fellow "normal" user who has been around for some years, but it's probably not a good idea to keep posting the same thing over and over in multiple topics. If the devs or anyone else for that matter seem interested in such a thing, chances are it's probably not going to be added. Bumping every few months or so to inquire is probably fine, but posting multiple times in a short period (and in multiple topics) and posting with ever new public build release could be seen as annoying (and could have the reverse effect on the chances of the request ever being added).

Personally this seems like such a niche use case that any investment of time/money implementing such a thing may not be worth it. Not to mention that adding such a thing may have unforeseen consequences and could be very complicated to implement in the first place or could break other features.
Logged
I don't work for JRiver... I help keep the forums safe from "male enhancements" and other sources of sketchy pharmaceuticals.

Windows 11 24H2 Update 64-bit + Ubuntu 24.10 Oracular Oriole 64-bit | Windows 11 24H2 Update 64-bit (Intel N305 Fanless NUC 16GB RAM/500GB M.2 NVMe SSD)
JRiver Media Center 33 (Windows + Linux) | iFi ZEN DAC 3 | JBL 306P MkII Studio Monitors | Audio-Technica ATH-M50x Headphones

EnglishTiger

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1170

Just saying this as a fellow "normal" user who has been around for some years, but it's probably not a good idea to keep posting the same thing over and over in multiple topics. If the devs or anyone else for that matter seem interested in such a thing, chances are it's probably not going to be added. Bumping every few months or so to inquire is probably fine, but posting multiple times in a short period (and in multiple topics) and posting with ever new public build release could be seen as annoying (and could have the reverse effect on the chances of the request ever being added).

Personally this seems like such a niche use case that any investment of time/money implementing such a thing may not be worth it. Not to mention that adding such a thing may have unforeseen consequences and could be very complicated to implement in the first place or could break other features.

+1
Logged
Apple Mac Mini Desktop Computer with M4 Pro chip with 12 core CPU and 16 core GPU: 24GB Unified Memory, 512GB SSD Storage, Gigabit Ethernet, 3 Thunderbolt5 + 2USBC ports.
Pages: [1]   Go Up