index.html

DIY 360 degree video


About my DIY 360 degree camcorder

Video rig and related stitching problems

360 video recording and synchronisation

Audio.

Auto vs Manual White Balance.

360 degree video assembling.

Preparing series of images.

Geometric template.

Shrinking images.

Stitching images to 360 video frames.

RAM disk as a working directory.

Coverting frames to a 360 video and publishing.

Multiblend on my Linux box

Software



Google+ Youtube 360Cities





Converting videos to series of images.



MOV to MKV using Handbrake.



Top of Page









Synchronisation of .mkv videos using Kdenlive.



Top of Page



 # avconv 
 avconv -i filename.mp4 -filter:v 'transpose=1' -compression_level 0 ime_%d.png 

 # ffmpeg
 ffmpeg -i filename.mp4 -filter:v 'transpose=1' -compression_level 0 ime_%d.png
    

 # dir structure before the script is used, "500_dir" is the working directory

  oo@chip:~/home_/500_dir$ pwd
  /home/oo/home_/500_dir
  
  oo@chip:~/home_/500_dir$ ls
  R01.mp4  R02.mp4  R03.mp4  R04.mp4  R05.mp4  R06.mp4  R07.mp4  R08.mp4  R09.mp4  R10.mp4 qqq

    

 # the "qqq" shell script that creates directory structure and exctracts frames

  # structure needed
  mkdir ./hscript ;
  mkdir ./img ;
  mkdir ./arch ;
  
  # keeping order ...
  mv *.MOV ./arch ;
  mv *.mkv ./arch ;

  # R01, R02, ...
  for line in $( ls ./*.mp4 | sed '1,$ s/\(.*\).mp4/\1/' ) ; do
  echo $line ;
        mkdir $line ;
        mv $line.mp4 $line/ ;
  done

  # extracting and rotating frames, ffmpeg or avconv is to be commented out
  for line in $( ls -d ./R* ) ; do
        cd $line ;
        ffmpeg -i $line.mp4 -filter:v 'transpose=1' -compression_level 0 ime_%d.png ;
        # avconv -i $line.mp4 -filter:v 'transpose=1' -compression_level 0 ime_%d.png ;
        cd .. ;
  done
  
    

 # after the "qqq" script has finished extracting:
    
  oo@chip:~/home_/500_dir$ ls -la

  drwxrwxr-x  2 oo oo    4096 Mar 29 11:55 arch
  drwxrwxr-x  2 oo oo    4096 Mar 29 11:55 hscript
  drwxrwxr-x  2 oo oo    4096 Mar 29 11:55 img
  -rwxr-xr-x  1 oo oo    1497 Mar 29 11:55 qqq
  drwxrwxr-x  2 oo oo    4096 Mar 29 11:52 R01
  drwxrwxr-x  2 oo oo    4096 Mar 29 11:52 R02
  drwxrwxr-x  2 oo oo    4096 Mar 29 11:52 R03
  drwxrwxr-x  2 oo oo    4096 Mar 29 11:52 R04
  drwxrwxr-x  2 oo oo    4096 Mar 29 11:52 R05
  drwxrwxr-x  2 oo oo    4096 Mar 29 11:52 R06
  drwxrwxr-x  2 oo oo    4096 Mar 29 11:52 R07
  drwxrwxr-x  2 oo oo    4096 Mar 29 11:52 R08
  drwxrwxr-x  2 oo oo    4096 Mar 29 11:52 R09
  drwxrwxr-x  2 oo oo    4096 Mar 29 11:52 R10

  oo@chip:~/home_/500_dir$ ls -la R01
  
  -rw-rw-r--  1 oo oo    6241956 Mar 29 11:52 ime_10.png
  -rw-rw-r--  1 oo oo    6241956 Mar 29 11:52 ime_11.png
  -rw-rw-r--  1 oo oo    6241956 Mar 29 11:52 ime_12.png
  -rw-rw-r--  1 oo oo    6241956 Mar 29 11:52 ime_13.png
  -rw-rw-r--  1 oo oo    6241956 Mar 29 11:52 ime_1.png
  -rw-rw-r--  1 oo oo    6241956 Mar 29 11:52 ime_2.png
  -rw-rw-r--  1 oo oo    6241956 Mar 29 11:52 ime_3.png
  -rw-rw-r--  1 oo oo    6241956 Mar 29 11:52 ime_4.png
  -rw-rw-r--  1 oo oo    6241956 Mar 29 11:52 ime_5.png
  -rw-rw-r--  1 oo oo    6241956 Mar 29 11:52 ime_6.png
  -rw-rw-r--  1 oo oo    6241956 Mar 29 11:52 ime_7.png
  -rw-rw-r--  1 oo oo    6241956 Mar 29 11:52 ime_8.png
  -rw-rw-r--  1 oo oo    6241956 Mar 29 11:52 ime_9.png
  ...
  ...
  ...
  -rwxrwxr-x  1 oo oo 2444801616 Mar 29 11:26 R01.mp4

    


Top of Page