0

I am using OFXVideoRecord and hacking it for offline video recording:

execThread: starting command: bash --login -c 'ffmpeg -y -i ../../../data/beat.wav -r 30 -s 1280x720 -f rawvideo -pix_fmt rgb24 -i "/Users/mikegao/Documents/Visual/shapes/bin/data/ofxvrpipe0" -r 30  -vcodec mpeg4 -b 3200k -acodec mp3 -ab 128k "/Users/mikegao/Documents/Visual/shapes/bin/data/result2019-04-30-03-52-00-078.mp4"' &

If I leave out the first -i beat.wav, it generates a regular video just fine and closes after it's done.
If I add the -i beat.wav, it will keep printing:

frame= 3687 fps= 38 q=26.9 size=   50046kB time=00:02:02.86 bitrate=3336.8kbits/s speed=1.26x    
frame= 3687 fps= 38 q=26.9 size=   50046kB time=00:02:02.86 bitrate=3336.8kbits/s speed=1.25x    
frame= 3687 fps= 37 q=26.9 size=   50046kB time=00:02:02.86 bitrate=3336.8kbits/s speed=1.25x    
frame= 3687 fps= 37 q=26.9 size=   50046kB time=00:02:02.86 bitrate=3336.8kbits/s speed=1.24x    
frame= 3687 fps= 37 q=26.9 size=   50046kB time=00:02:02.86 bitrate=3336.8kbits/s speed=1.24x    
frame= 3687 fps= 37 q=26.9 size=   50046kB time=00:02:02.86 bitrate=3336.8kbits/s speed=1.23x    
frame= 3687 fps= 37 q=26.9 size=   50046kB time=00:02:02.86 bitrate=3336.8kbits/s speed=1.22x    
frame= 3687 fps= 37 q=26.9 size=   50046kB time=00:02:02.86 bitrate=3336.8kbits/s speed=1.22x    
frame= 3687 fps= 36 q=26.9 size=   50046kB time=00:02:02.86 bitrate=3336.8kbits/s speed=1.21x    
frame= 3687 fps= 36 q=26.9 size=   50046kB time=00:02:02.86 bitrate=3336.8kbits/s speed= 1.2x    
frame= 3687 fps= 36 q=26.9 size=   50046kB time=00:02:02.86 bitrate=3336.8kbits/s speed= 1.2x    
frame= 3687 fps= 36 q=26.9 size=   50046kB time=00:02:02.86 bitrate=3336.8kbits/s speed=1.19x    
frame= 3687 fps= 36 q=26.9 size=   50046kB time=00:02:02.86 bitrate=3336.8kbits/s speed=1.19x    
frame= 3687 fps= 35 q=26.9 size=   50046kB time=00:02:02.86 bitrate=3336.8kbits/s speed=1.18x    
frame= 3687 fps= 35 q=26.9 Lsize=   50228kB time=00:02:02.88 bitrate=3348.5kbits/s speed=1.18x    

until I press stop in Xcode a second time (to kill the other command on other thread probably), then the video is written perfect:

video:48220kB audio:1920kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.175411%
  • the ofxvrpipe is me drawing from OFX and filling it – Mike Gao Apr 30 at 11:04
  • 1
    Does it happen when run from shell? Dump your pipe data to a file or named pipe and check. – Gyan Apr 30 at 11:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.