Skip to content

Instantly share code, notes, and snippets.

@eyalzek
Created September 7, 2014 08:04
Show Gist options
  • Save eyalzek/b20653e197e6c6b44c2c to your computer and use it in GitHub Desktop.
Save eyalzek/b20653e197e6c6b44c2c to your computer and use it in GitHub Desktop.
windows pipeline
1. Install ffmpeg.
2. Add UnixUtils to path (http://unxutils.sourceforge.net/ both the bin/ and usr/local/wbin/ folders).
2. Create a directory and put inside a sample video file.
3. Create an empty video file in the same dir: touch interm.avi
4. Run the following pipe in one cmd prompt:
tail -f interm.avi | ffmpeg -y -i - -c:v libx264 -c:a libfaac encoded.avi
5. In a different prompt run this ffmpeg line:
ffmpeg -y -i <sample_file> -c:v mjpeg -c:a libfaac interm.avi
6. Watch encoded.avi for results.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment