Main page
MPlayer
DVDnav
OSD menu
CCTV
Teletext
Video Mixer
Squid
Mysql acl
AVR
Switch Card (HU)
Méterszámláló (HU)
News
Download
Contact us
Links
 
 
Current version Description Download files History

Video mixer with mencoder (2008.11.30 - only updated to r28053)

Download files...

I began development video mixer with mencoder.

At moment implemented and new function are:

  • Encodig video and audio to shmem:// (shared memory stream)
  • Export video frame filter to shmem:// (similar my CCTV)
    allowed settings: format, size and render OSD
  • Import video from shmem://
    allowed settings: import position, size, alpha and import to window in current video
    allowed 'pause' effect and on/off import
  • Import audio from shmem://
    allowed settings: master audio volume, import audio volume and mixing two audio
  • Dynamic filters
    allowed: all parameters control from master pts
  • Add blank stream to mencoder master stream (video and audio)
    allowed settings video: format, size, color, fps
    allowed settings audio: sample rate, channels
  • Automatic forker to more file mixing

Not implemented:

  • Automatic resamle import audio samplerate to master audio samplerate
  • Relative import postions

Samples: (sample video)

Sample video mixing:
mencoder file1.avi -o shmem://1 &
mencoder file2.avi -vf import=1:10.0:1:128:-160:-120:640:480:80:60:160:120 -af import=1:0.5:0.5 -o out.avi [options]
 
 
Automatic forker:
mencoder file2.avi -import-files 1:file1.avi -vc lavc -ac mp3lame \
    -vf import=1:10.0:1::0:0:160:120 -af import=1:0.5:1 -import-srate 1:48000

Dynamic filter:
mencoder blank://blue -blank w=640:h=480:rate=44100 -vc lavc -ac mp3lame -o out.avi \
   -import-files 1:file1.avi -import-srate 1:44100 \
   -import-files 2:file2.avi -import-srate 2:44100 \
   -vf import=1:0.0:0,import=2:0.5:0.5 \
   -af import=1:0.0:0,import=2:0.5:0.5 \
   -dfcmd file:dfcmd.txt \
   -endpos 1220

dfcmf.txt:
# 5-10 sec fade in file1.avi
1:0:static:import:05.00:1:0:0:0:640:480
1:0:dynamic:import:10.00::255
# 600-610 sec fade out file1.avi
1:0:static:import:600.00::255
1:0:dynamic:import:610.00::0
1:0:static:import:610.00:0
# 600-610 sec fade in file2.avi
2:0:static:import:600.00:1:0:0:0:640:480
2:0:dynamic:import:610::255
# 1200-1210 sec file2.avi move to left
2:0:static:import:1200:::0
2:0:static:import:1210:::640

I am sorry to say that my English knowledge isn't good.

Best regards! Ötvös Attila.

2008.11.30