Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8262437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T03:45:20+00:00 2026-06-08T03:45:20+00:00

I saving video stream from camera to file using VLC like this: cvlc -vvv

  • 0

I saving video stream from camera to file using VLC like this:

cvlc -vvv rtsp://xxx.xxx.xxx.xxx/xxx --sout '#transcode{vcodec="h263"}:standart{mux="ts",access="file",dst="cam_XXX_hour_$(date +%H).ts"}'

So at the end of the day broadcast I expected to see a few files, like:

cam_XXX_hour_05.ts
cam_XXX_hour_06.ts
....
cam_XXX_hour_23.ts
cam_XXX_hour_24.ts

But it’s not. I’ve got one BIG file named by first hour while VLC start.
How can I get the desired result? Any BASH or VLC/VLM setting?
(I’m planning to port this script to VLM schedule)

Even if not by time, then by max file size..

Thanks.

P.S. Please, do not offer to split a large file at the end of the day.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T03:45:22+00:00Added an answer on June 8, 2026 at 3:45 am

    I don’t find automatic solution for this problem, but got a key idea:

    1. Create VLM config with start file:

      new cam broadcast enabled

      setup cam input rtsp://xxx:xxx@xxx.xxx.xxx.xxx:xxx/xxx

      setup cam output #transcode{vcodec=”h264″}:std{mux=ts,dst=/xxx/FIRST_FILE}

      control cam play

    2. Change file via telnet interface (by cron or some script)

      setup cam output #transcode{vcodec=”h264″}:std{mux=ts,dst=/xxx/SECOND_FILE}

      control cam stop

      control cam play

    Two controls commands needed for update VLM config.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to stream video from an iPhone camera to an app running
I use until now this code for saving video that i get from UIImagePickerController
I am tasked with recording a live video stream from the camera on a
I am getting frame buffer one by one from video file using AVAssetReader and
i am recording video from webcam using DirectshowLib2005.dll in C#.net..i have this code to
between saving a key name like this for(var key in this.data) { var key_name
I get from server images and videos by stream. Now I'm saving it: Stream
I'm just trying to read a video Stream out of an IP Camera (Basler
In one of my applications I am saving a YouTube video's id... Like "A4fR3sDprOE".
I'm using CMTime for AVAssets for video clip. To trim the video without saving

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.