I have switched my current video project from command prompt to PowerShell so that I can take full advantage of the Tee-Object
for a multi output code.
Currently, I have a version of my code working in batch, but I need to add one more feature through a tee. This is my first time using PowerShell, so this is probably a simple fix...
Currently I have figured out how to run ffmpeg
and ffplay
in PowerShell, and I have a program in batch which takes an ffmpeg
output and pipes it to ffplay
, and this works just fine. I can also play through ffplay
in PS just fine. In PS, this code works:
ffplay -video_size 1280x720 -pixel_format uyvy422 -framerate 60 -i video="Decklink Video Capture"
And as a batch, this code works fine for what I'm doing:
ffmpeg -video_size 1280x720 -pixel_format uyvy422 -framerate 60 -i video="Decklink Video Capture" -c:v libx265 -preset ultrafast -mpegts pipe: | ffplay pipe:
It takes the video I want and plays it through the pipe to the screen. When played through PowerShell, though, the video doesn't even pop up. I don't get any warnings or anything, and it seems to run fine, but I don't get the picture to display.
End goal is to be able to play the video on the host display in full resolution, and publish a lower bitrate to the network, if that helps.
$ErrorActionPreference = 'Stop'
before yourff
calls to see if something's being thrown but not displayed. – Eba$_ | Format-List * -Force; Pause
in the catch block to see the error record – Eba