#!/bin/sh
# /media/bill/ATA_WDC_500G/Video production/170930 DrumLibrary - kids science/video production/audio-video merge.sh
# www.BillHowell.ca  23Oct2017 initial

# 24Oct2017 - DOESN'T work!!  I don't know why as file size grows commensurately


# from vlc -> Menu -> Tools -> Codec information : 
#  stream 0
#		type: video
#		codec: Xiph.org's Theora video (theo)
#		resolution: 848x480
#		display resolution: 848x480
#		frame rate: 24
#		decoded format: Planar 4:2:0 YUV
#		RECORDMYDESKTOP: 0.3.8.1
#		ENCODER: Lavf56.25.101
#  stream 1
#		type: audio
#		codec: FLAC (Free Lossless Audio Codec) (flac)
#		resolution: 848x480
#		channels: mono
#		sample rate: 48000 Hz
#		bits per sample: 24


#************************
#23Oct2017 Summary - merge audio into video
#http://roxlu.com/2013/002/converting-video-audio-using-avconv
#Blog of roxlu, co-founder of Apollo Media. Contact info[shift+2]apollomedia.nl. 
#Combine audio and video file
#./avconv -i video_input.mov -i audio_input.mp3 -c copy audio_and_video.mov
#>> I tried this, but it lost the audio!!!


cd "/media/bill/ATA_WDC_500G/Video production/170930 DrumLibrary - kids science/Scenes/ExpandEarth_ContDrift"
avconv -i "Continental drift - Michael Sammartano video with audio 11m51s.ogv" -i "Continental drift - Michael Sammartano audio 11m51s.wav"  "Continental drift - Michael Sammartano video with audio 11m51s.ogv"


# 23Oct2017 options following audio filepath, I tried (but these failed!) :
# -ac 2  (set #channels to 2) ;  -c copy ;  


av_merge_done()
{  
""
}  


# to reun :  $ bash  "/media/bill/ATA_WDC_500G/Video production/170930 DrumLibrary - kids science/video production/audio-video merge.sh"

# enddoc