continously add picture to video - linux

Every x minutes I grab an image from a network-cam. Now i want to add this picture to an existing video file - on the fly.
I don't want to keep numerous image files and then encode them once in a while with e.g.
mencoder mf://#${LIST} -mf type=jpg:fps=${FPS} ...
The video format/codec doesn't really matter, as long as standard tools (mplayer, ffmpeg, vlc, ...) can handle it.
Any ides or suggestions?
Thanks in advance!

One obvious way which should work (at least according to my first tests) is to just write the new jpeg image to the end of the video file - so the video is a mjpeg stream.
cat ${PIC} >> ${VIDEO}
This is an answer to my question, however i was looking for something consuming less space than the pictures stored each by its own would take up.
Other hints?

Related

Raw sound files editors, 8bit

I was wondering if anyone knows how to open and edit a raw sound file (raw unsigned 8-bit).
I am making my own game and trying to create original 8-bit music.
I could not open SoX, and all other editors I have cannot play these frequencies correctly.
I appreciate all help.
try using beep box. you can recover work from the past 30 days. or, you can try import a .mid file. you can have 4 base notes, and set the instrements to 8-bit sounds, crunches and waves. hope it works for you! --> beepbox.org or search it up if this link doesnt work
(Not sponsered)

Joining MP3's via commandline with background track

I'm already taking advatage of two command line utilities. I'm using ffmpeg to convert m4a to mp3, and then I'm combining a few mp3's into one large one using mp3wrap. The resulting file is something like this:
BackgroundMusic.mp3 > Audio1.mp3 > Audio2.mp3
I need something more like
Audio1.mp3 > Audio2.mp3
|_____________________|
|
BackgroundMusic.mp3
To where the background music runs continuously in the background. Would be nice to be able to change the volume of each track too.
Does anyone know a command line program like mp3wrap but can also add in a background track?
I will not be able to use a GUI program such as Audacity, as all of this will be automated on the server.
Thanks!
You can do this with FFmpeg alone.
ffmpeg -i input_audio1 -i input_audio2 -i input_background_audio -filter_complex "
aevalsrc=0:d=10[s1];
[0:a]volume=volume=0.1[volume0];
[1:a]volume=volume=0.1[volume1];
[2:a]volume=volume=0.1[volume2];
[s1][volume1]concat=n=2:v=0:a=1[ac1];
[volume0][ac1]amix=inputs=2[amixed1];
[amixed1][volume2]amix=inputs=2:duration=first" output_audio
You need to use filter_complex to chain all the filters that you are going to use for adjusting the volumes, silent spaces, concat, etc. filters.
As the first step you can concatenate two audio files that you need to play one after the other. To do that I have first created and silent audio using aevalsrc filter with the same duration as the first audio clip. Then use concat filter to concatenate silent audio and the second audio.
To adjust the audio I have used volume filter. You can adjust the volume values accordingly. To mix the audios you can use amix filter. You can specify duration attribute to get the first input which is [amixed1] duration. With that option you can stop the whole audio with the duration of audio1+audio2 without play it for the full duration of background audio duration.
Hope this helps!

QT-FastStart Windows how to run it?

So I have a lot of mp4 files on my computer and I read that QT-FastStart is for moving the metadata from the end of the files to the beginning but how do I use or run it ?
Every time I drag and drop a file into qt-faststart, nothing seems to happen?
I downloaded the 64bit version from here:
https://web.archive.org/web/20140206214912/http://ffmpeg.zeranoe.com/blog/?p=59
Do I need a batch file or something or a specific command line parameter to make it run?
Note, QT-FastStart is described here https://manpages.debian.org/stretch/ffmpeg/qt-faststart.1.en.html
qt-faststart is a utility that rearranges a Quicktime file such that
the moov atom is in front of the data, thus facilitating network
streaming.
It can be used (perhaps among other purposes), for making a sample file when demonstrating an issue. One can take a large file, fix it with QT-FastStart, then use dd to cut a sample. And the sample should play. Whereas if you did dd without doing that then it wouldn't or may not play.
See Neil's answer qt-faststart infile.mp4 outfile.mp4
However, QT-FastStart has now been integrated into ffmpeg.
ffmpeg -i original.3gp -codec copy -movflags +faststart fixed.3gp
List item
simple. in CMD prompt run qt-faststart infile.mp4 outfile.mp4

Auralise Audacity annotations / Generate audio click track from list of click times

I'm trying to annotate musical audio file in Audacity and then "listen" to annotations along with the file to check they are placed right. I haven't found an Audacity plugin that does it, but when I export Audacity labels I get a file like:
3.558390
4.248639
4.910771
5.632766
6.349320
...
This time of file (in seconds) where point labels were placed. Maybe there's a tool (or maybe you can do it programmatically (in C++ on Linux preferably)) to easily generate such a click track? I would be then able to mix it with original file and listen to inspect it.
I've found two ways to solve this issue:
Write your own plugin in Nyquist (what I'm trying to do), I received great help on the Audacity forum:
http://forum.audacityteam.org/viewtopic.php?f=39&t=68752
Use Sonic Visualiser:
http://www.sonicvisualiser.org/
This program combines two important features: insertion of annotations when audio is played and auralisation (different sounds available).

Server-side Audio Editor

I am looking for an audio editor that we can use server side (ASP + IIS)
We want users to be able to upload an audio file, and then offer a 10 second teaser clip to other users for download.
Ideally I would like our application to be able to specify Input and Output Filename, Start and End time (or Duration), and be able to fade-in and fade-out, and equalise the volume.
Maybe some audio editors have a batch edit facility, and it would just be a question of installing on the server?
All the keywords I have tried putting into Google have led me on a wild goose chase, hopefully someone can help me with suggestions. Thanks.
Try ffmpeg!
http://ffmpeg.org/
I've used it for all sorts of manipulations of video and audio.

Resources