I'm using Video for Windows to record screen grabs to AVI files. Usually it works fine, but some users report the error:
AVI error (80044066): Bad format
Any explanations of what this error means and what might be causing it would be gratefully accepted.
Is it possible that some machines have the right codec installed but others do not?
Related
Using AudioKit v5-main. I'm going out of my mind, as I can't seem to get any MIDI inputs to work in my project (MacOS). I simply get no input.
I have run the MIDI Monitor in Cookbook successfully.
I have copied the MIDIMonitor to a new clean project successfully.
To figure out what's wrong, I have copied the MIDIMonitor.swift into my own project, stripped it down so all it runs is the MIDI monitor. No luck.
When I close MIDI Monitor (the one that's embedded in my project) I get the following error, which I don't get when I close the version embedded in CookBook:
MIDI+Receiving.swift:closeInput(uid:):450:Error disconnecting MIDI port: -50 (MIDI+Receiving.swift:closeInput(uid:):450)
MIDI+Receiving.swift:closeInput(uid:):456:Error displosing MIDI port: -50 (MIDI+Receiving.swift:closeInput(uid:):456)
(B.t.w., there seems to be a typo in MIDI+Receiving.swift, should have been "disposing" and no extra space).
It seems somehow that the MIDI input was never properly initialised, but I get no error when I open the MIDI inputs.
Anyway, anybody has a clue on what could provoke this error?
Project setting?
MacOS 11.2.3
Xcode 12.4
Make sure you have background modes audio checked as below:
I am attempting to extract PNG's from a video (.avi) using ffmpeg. My code is:
ffmpeg -i vidx.avi -f image2 imgx_%d.png
Normally that would work fine, but just now it has been causing ffmpeg to crash, a box appears telling me 'ffmpeg.exe has stopped working .. etc...', however changing from png's to jpeg's and the problem goes away.
The format of the video doesn't seem to matter, an mp4 and mpg also have the same issue as the avi.
This has only just happened (in the past day) on a Windows 10(x64)PC so, could it be related to a MS/Windows Update.. is that possible? Does anyone know what else could cause this?
Looking at recently installed programs, realised I'd installed ImageMagick, which has a command-line interface and the Environmental Variable, which was automatically set, is for the folder that not only includes the "magick.exe" but also an "ffmpeg.exe" (version 3.4), and as this was on the Environmental Variables list first, Windows assumed that was the version to use, and not the standalone version that I normally use (a nightly-build from http://ffmpeg.zeranoe.com/builds/).
So just moving the standalone version above the ImageMagick entry did the trick.
I have some JavaCV code that works on windows and I'm trying to get it to work on Ubuntu. All of the image processing is working fine, but I can't get any video to work.
When I call cvCreateFileCapture on Ubuntu it always returns null. I can verify the file is present (java.io.File.exists returns true on the line before), so I assume this is a codec problem.
However, I have tried using video files with MPEG-2, H.264, AVI, and basic mjpeg encodings and get the same result for all of them. The same code works fine on my windows machine.
My question is what are the next debugging steps to figure out my problem. Randomly trying further codecs doesn't seem productive. Is there some way to figure out which codecs are available and why they are not getting selected?
It is picking up the opencv libraries by having opencv-linux-x86_64.jar and ffmpeg-linux-x86_64.jar in the path.
Backstory:
I have a VB.net program (that is using a much older COM object accessing a DVR) to create sequentially numbered AVI files each 15 seconds in length. A new AVI is created every 15 seconds with the most recent 15 seconds of video in it. I know the exact datetime that correlates to each file. So files may be named (20121008-133445.avi, so yyyyMMdd-hhmmss.avi).
Question: Using ffmpeg/ffserver (preferably but I'm open), how can I create a stream such that when a person accesses it that they are presented a continuous video that starts at a position that is as recent as possible and continues to stream the avi files as they are created?
I don't have a problem shipping these files off to a Linux box via a samba share (or have the linux box access a share on the windows box) if Linux is more capable. I am however stuck with Windows for the actual generation of the original AVI files.
The ultimate goal is to be able to view these streams on an iPad, but that process seems pretty well documented elsewhere.
I found a question that reads similar to my needs but didn't seem to go anywhere: FFmpeg make mpeg2 ts without discontinuity
Thanks in advance!
Why don't you write a small program that simply reads these files one after another continously and dumps them to a named pipe. Ffmpeg can then read from the named pipe and it will think it is one file.
The more complex solution is to use multifilesrc from gstreamer.
Hi
i am working for a broadcasting company, we have a PC with TV tuner Card (windows xp), this PC is recording channel TV 24h/24 no stop.
the output are video files "wmv" each one has a duration of an hour.
The video files are copied automatically to a NAS, then final users works on them.
the problem is sometimes, there is no signal in the antenna, or there is just video without sound, then the video files recorded are no more exploitables.
i am searching for a way to write a script that can check a file after being recorded before being transfered to the NAS, the script must check the presence of the sound (perhaps volume statistics) to be sure the sounds exists really, same thing of video.
(for video i am using a script checking the size of the file)
is there anyway to do so ?
is there any command line in vlc, mplayer, media player classic, ..... ?
Thanks
Perhaps you can use ffmpeg (http://linux.byexamples.com/archives/229/extract-audio-from-video-or-online-stream/) to dump the audio to a seperate file in a compressed state, and the filesize can give you some information about the amount of data?