Page 1 of 1

Merging from command line only writes the first file

Posted: 30 May 2023 21:54
by Harry6217
When I try and merge 2 files I get a merged file with a full length video (total time of the 2 files) but when the first video finishes I either get a black screen or vlc plays the remaining time showing the last frame of the first video. Following one of the command lines I tried:

"C:\Program Files (x86)\VideoLAN\VLC\vlc" 1.mp4 3.mp4 --sout #gather:std{access=file,dst=all.mp4} --sout-keep vlc://quit

My vlc version is 3.0.18.
Windows 11 Pro version 22H2

Thanks in advance for your help. I have researched in depth and it seems like this should be pretty straightforward.
Harry

Re: Merging from command line only writes the first file

Posted: 31 May 2023 13:16
by RĂ©mi Denis-Courmont
Are you sure the files have exact same set of tracks with exact same track formats? MP4 can't change track formats mid-stream.

Re: Merging from command line only writes the first file

Posted: 31 May 2023 14:37
by Harry6217
Both were recorded within minutes of one another using XBox Game Bar.

Re: Merging from command line only writes the first file

Posted: 02 Jun 2023 16:20
by Harry6217
Does anyone else have a suggestion?

Thanks,
Harry

VLC audio streaming difficulty

Posted: 15 Jun 2023 20:37
by BobRadil
Hopefully, this is the correct place to post this.

I would like to set up a VLC transmit stream but haven't yet been successful finding the right parameters.

The goal is to select one of the audio inputs and make it available to many clients as a received stream.

Linear in, sample rate, 44100, 16 bit, stereo, and to convert it to 128K MP3 stream that people can access via a typical browser, VLC, Windows Media Player, or equivalent.

I'd like to set up a command line with the proper parameters that can be put into a batch file that can be easily clicked on. One click >>> It's ON!

No luck so far.

I've got many years of experience using Windows Media Encoder streaming audio, but it's limited to 50 connections per instance(default is 5, modified to 50). From what I understand, VLC, as a streaming server, has no connection limit, the limits being the CPU and network bandwidth.

I DID have what appeared to be a working stream, one computer sending, another receiving. I left it on overnight as a test. The receive computer stopped receiving after about 11 hours. Attempts to re-start the receive only created a local file instead of sending to the audio output.

Any thoughts/suggestions ???

Re: VLC audio streaming difficulty

Posted: 21 Jun 2023 18:00
by BobRadil
I guess nobody is out there with any suggestions. :(
I've tried all sorts of things with little success.
Sending a stream from one computer to another on my network has worked, but is problematic at best.
It's very unstable, very inconsistent.
But from the outside, even with port forwarding properly set, ZERO connection.
VLC is adequate as a media player, but to stream... it seems to be total GARBAGE!
Please someone, prove me wrong.
Otherwise, I'll have to go back to the reliable Windows Media Encoder. That DOES work!