INTERACT FORUM

Please login or register.

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

Author Topic: Can you add a command line parameter for audio to load a separate audio file  (Read 349 times)

39505399

  • Recent member
  • *
  • Posts: 32

Can you add a command line parameter for audio to load a separate audio file
Hello friends! Can you add a command line parameter for audio to load a separate audio file, like this:
```
MC33.exe --audio=C:\Users\Name\Audio\test.mp3 "C:\Users\Name\Video\test.mp4"
MC33.exe --audio=https://cdn-003.com/audio\test.mp3 '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` parameter in vlc; the `--audio-file` 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 loading individual audio resources from 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: 42441
  • 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

  • Recent member
  • *
  • Posts: 32

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 "C:\Users\Name\Video\test.mp4"
MC33.exe --audio=https://cdn-003.com/audio\test.mp3 '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: 2674

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

  • Recent member
  • *
  • Posts: 32

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: 2674

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

39505399

  • Recent member
  • *
  • Posts: 32

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: 72534
  • 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

  • Recent member
  • *
  • Posts: 32

Which ones?  Legal services?

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

zybex

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

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: 7885
  • 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

  • Recent member
  • *
  • Posts: 32

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
Pages: [1]   Go Up