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

  • SEARCH
  • Home
  • 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 8108929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T01:15:44+00:00 2026-06-06T01:15:44+00:00

I have a file called video_2.m4v on my computer, which is being used by

  • 0

I have a file called video_2.m4v on my computer, which is being used by another program to write data there (video), so the file size is increasing each second. What i want to do is to make something like a streaming upload:
While file is being writed it uploads it to the server. I am using this bash script under windows 7:

@echo off
echo user USER_NAME> ftpcmd.dat
echo PASSWORD>> ftpcmd.dat
echo bin>> ftpcmd.dat
echo cd ROOT_PATH>> ftpcmd.dat
echo put %1>> ftpcmd.dat

ftp -n -s:ftpcmd.dat ftp.example.com
del ftpcmd.dat

This works fine but it captures current file state (size) and just uploads it. Please don’t tell me i need to use RTMP server :).

VLC actually does what i want but i can’t switch to binary mode.
I am using following code:

set VLC_EXE=C:\Program Files (x86)\VideoLAN\VLC\vlc.exe
set SOUT_FTP_DOMAIN=ftp.example.com
set SOUT_FTP_PORT=21

set SOUT_FTP_USERNAME=user
set SOUT_FTP_PASSWORD=password
set SOUT_FTP_PATH=www/example.com
set SOUT_FILENAME=test

"%VLC_EXE%"  D:\video_1.m4v :sout=#std{access=ftp,mux=mp4,dst=ftp://%SOUT_FTP_USERNAME%:%SOUT_FTP_PASSWORD%@%SOUT_FTP_DOMAIN%:%SOUT_FTP_PORT%/%SOUT_FTP_PATH%/%SOUT_FILENAME%.mp4} :sout-keep vlc://quit
  • 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-06T01:15:45+00:00Added an answer on June 6, 2026 at 1:15 am

    As this is a programming community, I’ll answer from this point of view. Technically you can implement an FTP client which will do what you want (in other words the protocol allows this) BUT your client needs to be aware of possibility that the file changes its size on the fly. The uploading code of the client can be written in two ways: (1) get file size to X and upload X bytes, and (2) read data blocks from the file and upload them until something indicates end of file.

    In your particular case I can hardly understand what can be a command to stop transmission, as the data is generated by another application.

    And if you are looking to do what you need via just a batch file, then you are in wrong community and in any way what you want is not possible with http://ftp.exe.

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

Sidebar

Related Questions

I have subfolder called Video in Documents folder. And there is somevideo.mp4 file. I
I have a file called webpart.cs which is called by one of my masterpages
i have file called data_out.xml which contains this xml code: <?xml version=1.0 ?> -
I have a file called build_properties.xml in my Java project, which is not a
I have successfully written a video processing program. I used ubuntu and Netbeans for
I have a file called middle.config that is deployed in the same directory as
I have a file (called print_1012720.txt ) that looks like the text shown below.
I have a file called file1.txt: dir1 dir2 dir3 ... I wanted to use
I have a file called header.php that I am including on every page on
I have a file called header.html and it is included by base.html . In

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.