21:00
I launch FFmpeg in boost::process and get data from it every n seconds.
If I terminate the app or FFmpeg in the console using Ctrl+C, FFmpeg flushes all data it has to stdout.
But, if I terminate boost::process using the terminate() function, I don't get any data flushed. So I need to send Ctrl+C signal to the process before terminating it to get flushed data from FFmpeg.
I tried:
GenerateConsoleCtrlEvent(CTRL_C_EVENT, c.id())
But, it seems to have no (...)
16:46
I am using the ffmpeg C library. I need to intercept RTCP packets from the camera in order to get the timestamp from the Sender Report. Is there any method or structure in the ffmpeg that gives me this information? I am completely stuck but I am not able to solve that problem.
Any help will be appreciated. Thanks in advance,
15:43
I'm generating a multicast stream with this command:
ffmpeg -hwaccel_device 1 -format_code Hi50 -re -f decklink -i 'DeckLink Duo (1)' -pix_fmt yuv420p -c:v h264_nvenc -profile:v high -b:v 3500k -rc 2 -cbr true -maxrate 3500k -bufsize 7000k -c:a mp2 -b:a 192k -f mpegts "udp://239.1.1.2:5000?ttl=2&pkt_size=1316"
My problem is that if I open this stream on a device with a 100Mb/s connection, it's heavily pixelated. The same stream on a 1Gb/s device displays fine.
I have other multicast streams from our ISP and they display fine regardless of (...)
04:17
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 (...)