Главная > Работа > Save a stream with VLC from IpCam

Save a stream with VLC from IpCam

Для этого в настройках камеры нужно включить RTSP по умолчанию 554 порт и в случае с моей камерой включить гостевой доступ, потому что кроме родного софта больше ничем авторизоваться на ней я не смог

Далее
Ставим VLC если еще нет, я давно уже использую для просмотра видео эту чудную программу.

Возможны 2 варианта сохранения потока:
1. С интерфейса программы Вид-Дополнительные элементы программы-Запись
2. С коммандной строки vlc your_input_file_or_stream_here —sout=file/ps:go.mpg
Все тоже самое с официальной вики на английском.

VLC can save the stream to the disk. In order to do this, use the Stream Output of VLC : you can do it via the graphical interface (Media [menu] -> streaming) or use the record button, or you can add to the command line the following argument:
—sout file/muxer:stream.xyz

where:
muxer is one of the formats supported by VLC’s stream output, i.e. :
ogg for OGG format,
ps MPEG2-PS format,
ts for MPEG2-TS format.
and stream.xyz is the name of the file you want to save the stream to, with the right extension.

For example:
vlc your_input_file_or_stream_here —sout=file/ps:go.mpg

This is short hand for the more verbose
vlc your_input_file_or_stream_here —sout=»#std{access=file,mux=ps,dst=go.mpg}»

NB that you must choose a muxer that supports your stream type. See Transcode#Compatibility_issues

It can also be quite helpful to look at the settings VLC uses when it records using its record button. For example, in the logs you might see something like this:

…: Using record output `std{access=file,mux=’ps’,dst=’C:\vlc-record-2010__E-.mpg’}’

Which gives you a hint/clue as to how to record your current stream. In this case this would translate into —sout «#std{access=file… on the command line.

Categories: Работа Tags: ,
  1. Пока что нет комментариев.
  1. Пока что нет уведомлений.