Sout duplicating stream time by factor of 6

About encoding, codec settings, muxers and filter usage
elderhoard
New Cone
New Cone
Posts: 3
Joined: 28 Sep 2019 20:04

Sout duplicating stream time by factor of 6

Postby elderhoard » 28 Sep 2019 20:12

So I am trying to record a stream for 5 hours but ran into an issue with it not stopping at the end. To do some testing I was messing around with the --run-time and --stop-time commands at 15 seconds but now its recording the stream 6 times over. One file with the same 15 second clip 6 times. This scales with the time I set as well. When adjusted to 30 seconds, it is the same 30 second clip 6 times.

Here is the code I am using to test with. Is this an issue with me recording a mono stream as stereo or something?

Code: Select all

@echo off set CUR_YYYY=%date:~10,4% set CUR_MM=%date:~4,2% set CUR_DD=%date:~7,2% set SUBFILENAME=Test_%CUR_YYYY%-%CUR_MM%-%CUR_DD%.mp4 start "" "C:\Program Files\VideoLAN\VLC\vlc.exe" "http://playerservices.streamtheworld.com/pls/KUSC.pls" --sout=#transcode{vcodec=none,acodec=mp3,ab=56,channels=2,samplerate=22050,scodec=none}:std{access=file,mux=mp3,dst='.../%SUBFILENAME%'} --sout-keep --run-time=15 --stop-time=15 vlc://quit

elderhoard
New Cone
New Cone
Posts: 3
Joined: 28 Sep 2019 20:04

Re: Sout duplicating stream time by factor of 6

Postby elderhoard » 30 Sep 2019 21:41

I seemed to have figured it out by playing around with all of the options.

"--sout-keep" keeps the stream open and I guess somehow translates to recording the set amount of time 6 times over. Not sure if something else affects how many times but whether it was 15 seconds or 60, it would always duplicate it 6 times.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 30 guests