I am using Aforge.Net FFMPEG to read the frames from some video files.
I am able to read several files without issues. After repeated use (about 6 files and 9k frames later) I get an ArgumentException.
An unhandled exception of type 'System.ArgumentException' occurred in System.Drawing.dll
Additional information: Parameter is not valid.
The effected code is public int LoadVideo(string fileName) VideoData data = new VideoData(); VideoFileReader reader = new VideoFileReader(); reader.Open(fileName); data.FrameCount = reader.FrameCount; data.FrameRate = reader.FrameRate; data.FileName = (...)
I have a problem. I need get correct framerate from ffmpeg libs..
I tried use pFormatCtx->streams[videoStream]->avg_frame_rate.num
return of avg_frame_rate is 2997. But when I dumped meta info, I got: Input #0, avi, from '/test.avi': Metadata: encoder : MEncoder SVN-r33883(20110719-gcc4.5.2) Duration: 00:49:47.70, start: 0.000000, bitrate: 1294 kb/s Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 856x480 [SAR 1:1 DAR 107:60], 1090 kb/s, SAR 491520:492521 DAR 8192:4603, 23.98 fps, 23.98 tbr, 23.98 tbn, 23.98 tbc Stream #0:1: Audio: mp3 (...)
I have a few IP cameras that stream 720 X264 video over rtsp. The streams are really unreliable when viewing on Android. They also fail if more then 2 connections are made.
I have a ubuntu server that I can use to connect and restream as mjpeg or something else. There are tons of different commands out there but they all seem to involve transcoding the video.
How can I simply restream the live rtsp feed as a mjpeg without doing anything to the video itself? Theres no audio so no worries (...)
I thought this would work but I'm getting errors. ffmpeg -loop 1 -i "ARTWORK.jpg" -filter_complex "overlay=80:0" -i "MUSIC.mp3" -i "WATERMARK.gif" -filter_complex "overlay=10:350" -s 640x480 -shortest -vcodec libx264 -acodec aac -strict experimental -movflags faststart "CONVERTED.mp4"
If I do not put the -filter_complex "overlay=80:0" part (to place the artwork "in the middle") it works, but the artwork does not center (it is a 480x480 jpeg)
The error i am getting is Cannot find a matching stream for unlabeled input pad 0 on filter Parsed_overlay_0
It has something to do with there (...)
I need to create a custom reading callback function that can read contents of a file in the form of a std::string into a uint8_t * buf. I tried multiple different methods found around the internet and on stackoverflow but sometimes it works and other the the program infinitely loops or stops execution half way.
I have no problems with amr/3gp files but all wav/pcm files are causing some problems for some reason. All I know its something to do with the reading function I have so far.
Ideally I would like to be able to give the program any type of file and then it converts it.
This is (...)