download video stream without playback on VLC - command-line

I want to keep streaming video stream from server without playback.
Can I use VLC to do so?
I am using Windows VLC. I tried the following but playback will still pop up.
vlc -I dummy --dummy-quiet http://www.nasa.gov/multimedia/nasatv/NTV-Public-IPS.m3u8
Thank you

-I dummy is the right idea, but you want to direct the output to a file with --sout:
vlc -I dummy --sout file/ts:output.ts http://www.nasa.gov/multimedia/nasatv/NTV-Public-IPS.m3u8

Related

RTMP request with body

I used to watch online streaming videos by using mobile app, and would like to get its real streaming url for playing in VLC media player on my computer.
The following is the screenshot of captured network packet of the streaming video:
RTMP streaming scrrenshot
I tried to use VLC media player to play "tcUrl" part of the screenshot, but it failed to open this MRL...
I noticed that when mobile app sends out this RTMP request, it has RTMP body.
Is there any way that I can send out RTMP request with Body in VLC player? or is there any other tool capable to do that?
Thanks.
You should take a look at the play command, which specifies the stream.
The tcUrl is similar to a directory, and the play command specifies the stream like file.
Compare to the HTTP URL:
http://server/dir/livestream.flv
rtmp://server/dir/livestream
The tcUrl is rtmp://server/dir and the stream is livestream. Then you could play or forward if you get the entire url, for example:
ffplay rtmp://server/dir/livestream
ffmpeg -f flv -i rtmp://server/dir/livestream -c copy dvr.mp4
You could use VLC to play the RTMP url also.

how to save stream as mp4 and play it?

I need to play a live stream of my computer screen with a play that knows only to play MP4 files
any ideas for how to save the stream to MP4 file and play is in the player ?
VLC is the only tool you need to capture your screen and save it to MP4 file. Then you can play it wherever you want.
Everything you want to do is well described here: http://www.howtogeek.com/120202/how-to-record-your-desktop-to-a-file-or-stream-it-over-the-internet-with-vlc/
You can also directly capture your screen and immediately stream it via multi/unicast stream.
Works great both on Nix and Win platforms.

Omxplayer Stop "Have a nice day"

I have a C# code developed to stream a video file encoded to raw H264 and stream using UDP protocol when I receive that stream using omxplayer it played about 30s and then stopped and display 'have a nice day'. But I can receive that stream using ffplay and vlc player (in windows) without any problem.
Then i tried to stream using vlc player. And also i got same issue. Stream stopped and displayed 'have a nice day'.If any one can help me to figure this out, it is very grateful.
code used to receive stream in omxplayer
omxplayer udp://224.1.1.1:1234
I have given a screen shot of omxplayer when receiving the stream. According to this the buffer size of the omxplayer becomes 0 after playing some time. I tried changing the url of the stream as given below.
omxplayer -s udp://224.1.1.1:1234?overrun_nonfatal=1
Then that problem was alright. But the stream was not smoothly running. Can you suggest any better solution for this problem.
Thank You!

Linux server vlc to restream rtsp feed from ip cam

Im new i streaming so sorry for stupid questions, I tried to find info in web but nothing seems to work.
What Im trying to do
I have IP Cam that puts out RTSP stream to internet its IP is: rtsp://89.79.16.127:2550
When Im accessing that stream in windows VLC (win xp) every thing works (you can tryit for yourself)
Now I have dedicated linux debian serwer with ip: 109.95.153.133
I want to setup VLC serwer that will grap rtsp feed from camera IP and restream it via my serwer, so I can show that stream on my website (located on that dedicated serwer)
Can You help mi accomplish that?
Open VLC, select Open location from clipboard
Enter the proper camera url. For example, the axis M7014 streams in H264 so its url will look like rtsp://Camera-IP/axis-media/media.amp?codec=h264
Enter the login at the prompt or encode it to the rtsp link
rtsp://user:pass#Camera-IP/axis-media/media.amp?codec=INFO.)
If the stream is playing on the screen it means you support this codec. If not, then you shouldn't try to transcode it. For example, the axis M7014 uses an H264 variant that only quicktime fully supports.
The previous steps were to determine if you can transcode or if you should just forward the traffic.
Menu-Stream, select your RTSP as a source, then add an RTSP destination and stream. If you cant see the video play you can only forward it to a player that can. beware, some RTSP headers might get tweaked and disable the ability to pause video. I can looking for a fix right now.

Saving RTSP stream with VLC

I'm trying to save 5 seconds .mov segments of an RTSP stream with VLC. First I tried openRTSP and ffmpeg but both of them gives incorrect output (Index missing etc). I've read a lot of the VLC cli, but havn't had any luck of saving an RTSP stream as segments.
If I use the VLC GUI I can both save segments as saving snapshots (PNGs) but I need to do this via CLI.
mov files are not streamable. [they are right in saying index file missing]. I don't even know how you are sending them over rtsp there is no rtp payloader i am aware of for mov/mp4 format.