Welcome

Home

YXZ's Bio

Research

Publications

Teaching

Links

Resources

Miscellaneous

Miscellaneous

  1. Mac OS Terminal command for Matlab:

    • submit the code: nohup /Applications/MATLAB_R2013a.app/bin/matlab -nodesktop -nosplash < FileName.m > output.out &
    • check the job status: jobs
    • terminate the job: kill PID
    • terminate the job: kill %1
    • view job details: ps auxgww |head -1
    • read file: nano, or emacs
    • read lastest output: tail -f
  2. Mac OS Terminal command for ffmpeg:

  3. ~/Desktop/ffmpeg/ffmpeg -r 30 -i %d.png -vcodec mpeg4 -qscale 5 0movie.mp4
  4. Start from a specific image: ~/Desktop/ffmpeg/ffmpeg -framerate 1/5 -start_number 126 -i img%03d.png -c:v libx264 -r 30 -pix_fmt yuv420p 0movie.mp4
  5. Mac OS Terminal commands

    • create a new txt file: touch file_name.txt
  6. More...