09:43
Add-Type -AssemblyName System.Windows.Forms
$ffmpegPath = "C:\\ffmpeg\\bin\\ffmpeg.exe"
$outputFilePrefix = "output"
$recordDuration = 10
$global:ffmpegProcess = $null
$global:recordingInProgress = $false
function Start-Recording
$global:recordingInProgress = $true
$recordIndex = 1
while ($global:recordingInProgress)
$outputFile = "$outputFilePrefix$recordIndex.mp4"
$processStartInfo = New-Object System.Diagnostics.ProcessStartInfo
$processStartInfo.FileName = $ffmpegPath
$processStartInfo.Arguments = "-f gdigrab (...)
06:45
Example code:
from moviepy.editor import *
clip = VideoFileClip('video.mp4')
clip.write_videofile('video2.mp4', fps=30)
After showing the following messages, showing that the video is being built and written,
Moviepy - Building video video2.mp4.
Moviepy - Writing video video2.mp4
The following error message occurs:
Traceback (most recent call last):
File "", line 1, in
File "C:\\Users\\User\\Anaconda3\\lib\\site-packages\\decorator.py", line 232, in fun
return caller(func, *(extras + args), **kw)
File (...)
07:13
from the stream i am getting metadata as below output
Input #0, mpegts, from 'stream_capture1.ts':
Duration: 20:56:00.19, start: 21971.910678, bitrate: 5 kb/s
Program 1
Metadata:
service_name : CS11G
service_provider: ABC
Stream #0:1[0x70]: Video: hevc (Rext) ([36][0][0][0] / 0x0024), yuv422p10le(tv, progressive), 1920x540 [SAR 1:2 DAR 16:9], 59.94 fps, 59.94 tbr, 90k tbn, 59.94 tbc
Stream #0:2[0x71]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, 5.1, fltp, 379 kb/s
Stream #0:3[0x72]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, (...)