VLC plays stream, won't record
Posted: 25 Nov 2023 20:55
I'm begging for help here, I'm getting severe anxiety because I'm copying command lines from the documentation and can't get them to work.
My goal is to record a stream at a given time. There are examples of this, which I have tried to follow, but none of the steps work for me. I'm probably making a simple mistake, but can't figure it out, and a search of the previous topics here isn't helping.
The simplest command would seem to be this:
vlc -vvv https://i.mjh.nz/SamsungTVPlus/GBBC2700001CK.m3u8 --sout=file/ps:UKMB.mpg
This command would seem to be the way to do this. It starts up an instance of VLC, which opens and plays the stream. But no matter what I do, the --sout part doesn't work: it does not record any sort of file, and does not appear to even try. The input is AVI so a PS or TS file (I've tried both) should work. I've also tried:
vlc -vvv https://i.mjh.nz/PlutoTV/5f15e32b297f96 ... 8-alt.m3u8 --sout="#std{access=file,mux=ps,dst=I:\\Downloads\\Pluto.mpg}"
with no results. I don't see any error messages that mean anything in the Message window, and there are no errors reported on the command line.
I can play the stream just fine in VLC, and if I press the "Record" button the stream does record properly in the directory I have set in Preferences.
I also found this article on the web which would seem to give directions for exactly what I want to do:
https://superuser.com/questions/287222/ ... g-a-stream
Superuser is usually reliable. I have (I think) followed the example given there, and got this as the generated stream:
:sout=#transcode{vcodec=h264,scale=2,acodec=mp4a,ab=128,channels=2,samplerate=44100,scodec=none}:file{dst=i:\\downloads\\stream.mp4,no-overwrite} :no-sout-all :sout-keep
I tried that, but got no results either.
I have also stumbled on the extra options available for streaming and found the start and end time options, but I'm not getting anywhere with those either. I set a time in the future, I saw VLC pop up at the specified start time, it created a 4 second file with no content, and just sat there.
There "should" be some sort of beginner level explanation of how to do this somewhere, but I can't find it anywhere in this forum or anywhere else, and I'm usually pretty good with web searches. Could someone please give an example here that is actually tested and known to work? Or could someone please point me to the exact location where simple instructions that have actually been tested and are known to work are available? Or can someone at least explain why none of my commands will write an output file?
My goal is to record a stream at a given time. There are examples of this, which I have tried to follow, but none of the steps work for me. I'm probably making a simple mistake, but can't figure it out, and a search of the previous topics here isn't helping.
The simplest command would seem to be this:
vlc -vvv https://i.mjh.nz/SamsungTVPlus/GBBC2700001CK.m3u8 --sout=file/ps:UKMB.mpg
This command would seem to be the way to do this. It starts up an instance of VLC, which opens and plays the stream. But no matter what I do, the --sout part doesn't work: it does not record any sort of file, and does not appear to even try. The input is AVI so a PS or TS file (I've tried both) should work. I've also tried:
vlc -vvv https://i.mjh.nz/PlutoTV/5f15e32b297f96 ... 8-alt.m3u8 --sout="#std{access=file,mux=ps,dst=I:\\Downloads\\Pluto.mpg}"
with no results. I don't see any error messages that mean anything in the Message window, and there are no errors reported on the command line.
I can play the stream just fine in VLC, and if I press the "Record" button the stream does record properly in the directory I have set in Preferences.
I also found this article on the web which would seem to give directions for exactly what I want to do:
https://superuser.com/questions/287222/ ... g-a-stream
Superuser is usually reliable. I have (I think) followed the example given there, and got this as the generated stream:
:sout=#transcode{vcodec=h264,scale=2,acodec=mp4a,ab=128,channels=2,samplerate=44100,scodec=none}:file{dst=i:\\downloads\\stream.mp4,no-overwrite} :no-sout-all :sout-keep
I tried that, but got no results either.
I have also stumbled on the extra options available for streaming and found the start and end time options, but I'm not getting anywhere with those either. I set a time in the future, I saw VLC pop up at the specified start time, it created a 4 second file with no content, and just sat there.
There "should" be some sort of beginner level explanation of how to do this somewhere, but I can't find it anywhere in this forum or anywhere else, and I'm usually pretty good with web searches. Could someone please give an example here that is actually tested and known to work? Or could someone please point me to the exact location where simple instructions that have actually been tested and are known to work are available? Or can someone at least explain why none of my commands will write an output file?