-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:ReproNim/reprostim
* 'master' of github.com:ReproNim/reprostim: Regenerated Singularity/Dockerfile, #122 Add sound dependencies to psychopy singularity container (system and python packages). Notes for recorded video file size with videocapture/ffmpeg, #68 Extend parse_wQR.py script with INFO mode to dump videos information like duration, rate, size in JSON format, #104 Increase ffmpeg bitrate/buffers in 4 times, closer to standard video quality, #68 Updated docs, optionally wrap executions of ffmpeg with duct #113 Added version information to reprostim-videocapture JSON metadata logs for informational purposes, #114 Readme notes to for con/duct setup, #113 Rename info/usage.json files produced by con/duct on ffmpeg process exit, #113 optionally wrap executions of ffmpeg with duct #113 Template for con/duct command wrapper, #113 Configuration stub/placeholder for con/duct, #113 Auto-recovery of ffmpeg process in reprostim-videocapture utility #114 Auto-recovery of ffmpeg process in reprostim-videocapture utility #114 Auto-recovery of ffmpeg process in reprostim-videocapture utility #114 Fixed issue - upon reloading config file prior main log file got overwritten, #112 CPU/resources usage statistics for ffmpeg with options we used before, #68 videocapture configuration and research to fix drop frames and encoding performance issues, #68 Generate QR info script to work with ReproNim session structure from https://github.com/ReproNim/reproflow-data-sync, #96 Generate QR info script to work with ReproNim session structure from https://github.com/ReproNim/reproflow-data-sync, #96
- Loading branch information
Showing
20 changed files
with
896 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#!/bin/bash | ||
|
||
#set VDEV=/dev/video1 | ||
#set MKV=./1.mkv | ||
|
||
#echo "Test 1" | ||
|
||
#rm $MKV | ||
#ffmpeg -f v4l2 -input_format yuyv422 -framerate 60 -video_size 1920x1080 -thread_queue_size 40960 -i $VDEV -c:v libx264 -flush_packets 1 -an $MKV | ||
|
||
#ffmpeg -f alsa -ac 2 -thread_queue_size 4096 -i hw:1,1 | ||
# -f v4l2 -input_format yuyv422 -framerate 60 -video_size 1920x1080 -thread_queue_size 4096 | ||
# -i /dev/video0 -c:v libx264 -flush_packets 1 | ||
# -acodec aac ./1.mkv 2>&1 | ||
|
||
# Simple 15 sec video capture with no audio | ||
#echo "Test 001" | ||
#rm output001.mp4 | ||
#/usr/bin/time -v ffmpeg -f v4l2 -framerate 60 -video_size 1920x1080 -t 15 -i /dev/video0 -an output001.mp4 | ||
|
||
# Simple 15 sec video capture with no audio and x264 codec | ||
#echo "Test 002" | ||
#rm output002.mp4 | ||
#/usr/bin/time -v ffmpeg -f v4l2 -framerate 60 -video_size 1920x1080 -t 15 -i /dev/video0 -c:v libx264 -an output002.mp4 | ||
|
||
# Simple video capture with audio and video and start time set to 0 for both audio and video | ||
#echo "Test 003" | ||
#rm output003.mp4 | ||
#ffmpeg -f alsa -ac 2 -thread_queue_size 4096 -i hw:1,1 -f v4l2 -framerate 60 -video_size 1920x1080 -i /dev/video0 -c:v libx264 -acodec aac -vf setpts=PTS-STARTPTS -af asetpts=PTS-STARTPTS output003.mp4 | ||
|
||
# video capture with x264 optimizations: fast 2M bit rate | ||
#echo "Test 004" | ||
#rm output004.mp4 | ||
#/usr/bin/time -v ffmpeg -f alsa -t 15 -ac 2 -thread_queue_size 4096 -i hw:1,1 -f v4l2 -t 15 -framerate 60 -video_size 1920x1080 -i /dev/video0 -c:v libx264 -b:v 2M -preset fast -acodec aac -vf setpts=PTS-STARTPTS -af asetpts=PTS-STARTPTS output004.mp4 | ||
|
||
# video capture with x264 optimizations: ultrafast | ||
#echo "Test 005" | ||
#rm output005.mp4 | ||
#/usr/bin/time -v ffmpeg -f alsa -t 15 -ac 2 -thread_queue_size 4096 -i hw:1,1 -f v4l2 -t 15 -framerate 60 -video_size 1920x1080 -i /dev/video0 -c:v libx264 -b:v 2M -preset ultrafast -acodec aac -vf setpts=PTS-STARTPTS -af asetpts=PTS-STARTPTS output005.mp4 | ||
|
||
# video capture with x264 optimizations: ultrafast, crf=18 r-60? | ||
#echo "Test 006" | ||
#rm output006.mp4 | ||
#/usr/bin/time -v ffmpeg -f alsa -t 15 -ac 2 -thread_queue_size 4096 -i hw:1,1 -f v4l2 -t 15 -framerate 60 -video_size 1920x1080 -i /dev/video0 -c:v libx264 -r 60 -b:v 2M -preset ultrafast -crf 18 -acodec aac -vf setpts=PTS-STARTPTS -af asetpts=PTS-STARTPTS output006.mp4 | ||
|
||
# video capture with x264 optimizations: ultrafast, crf=18 zerolatency | ||
# 470M/hour | ||
#echo "Test 007" | ||
#rm output007.mp4 | ||
#/usr/bin/time -v ffmpeg -f alsa -t 600 -ac 2 -thread_queue_size 4096 -i hw:1,1 -f v4l2 -t 600 -framerate 60 -video_size 1920x1080 -i /dev/video0 -c:v libx264 -flush_packets 1 -preset ultrafast -crf 18 -r 60 -tune zerolatency -b:v 2M -maxrate 2M -bufsize 4M -acodec aac -vf setpts=PTS-STARTPTS -af asetpts=PTS-STARTPTS output007.mp4 | ||
|
||
# video capture with x264 optimizations: ultrafast, crf=18 zerolatency | ||
#echo "Test 008" | ||
#rm output008.mp4 | ||
#/usr/bin/time -v ffmpeg -f alsa -t 15 -ac 2 -thread_queue_size 4096 -i hw:1,1 -f v4l2 -t 15 -framerate 60 -video_size 1920x1080 -i /dev/video0 -c:v libx264 -flush_packets 1 -preset ultrafast -crf 18 -r 60 -tune zerolatency -b:v 2M -maxrate 2M -bufsize 4M -acodec aac -vf setpts=PTS-STARTPTS -af asetpts=PTS-STARTPTS output008.mp4 | ||
|
||
# video capture similar to initial one we have before changes | ||
echo "Test 009" | ||
rm output009.mp4 | ||
/usr/bin/time -v ffmpeg -f alsa -t 15 -ac 2 -thread_queue_size 4096 -i hw:1,1 -f v4l2 -t 15 -input_format yuyv422 -framerate 60 -video_size 1920x1080 -thread_queue_size 4096 -i /dev/video0 -c:v libx264 -flush_packets 1 output009.mkv |
Oops, something went wrong.