Merging from command line only writes the first file

About encoding, codec settings, muxers and filter usage
Harry6217
New Cone
New Cone
Posts: 3
Joined: 30 May 2023 21:36

Merging from command line only writes the first file

Postby Harry6217 » 30 May 2023 21:54

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15272
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Merging from command line only writes the first file

Postby Rémi Denis-Courmont » 31 May 2023 13:16

Are you sure the files have exact same set of tracks with exact same track formats? MP4 can't change track formats mid-stream.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Harry6217
New Cone
New Cone
Posts: 3
Joined: 30 May 2023 21:36

Re: Merging from command line only writes the first file

Postby Harry6217 » 31 May 2023 14:37

Both were recorded within minutes of one another using XBox Game Bar.

Harry6217
New Cone
New Cone
Posts: 3
Joined: 30 May 2023 21:36

Re: Merging from command line only writes the first file

Postby Harry6217 » 02 Jun 2023 16:20

Does anyone else have a suggestion?

Thanks,
Harry

BobRadil
New Cone
New Cone
Posts: 2
Joined: 15 Jun 2023 17:25

VLC audio streaming difficulty

Postby BobRadil » 15 Jun 2023 20:37

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 ???

BobRadil
New Cone
New Cone
Posts: 2
Joined: 15 Jun 2023 17:25

Re: VLC audio streaming difficulty

Postby BobRadil » 21 Jun 2023 18:00

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!


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 11 guests