Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video capture either crashes or the video is unable to be played #684

Open
KydeSion opened this issue Feb 26, 2024 · 17 comments
Open

Video capture either crashes or the video is unable to be played #684

KydeSion opened this issue Feb 26, 2024 · 17 comments

Comments

@KydeSion
Copy link

I've been trying to capture video using webcamoid, with a Nexigo N60 FHD Webcam. I can hit record and it starts counting, when I hit stop it either hangs and then crashes or the file that it creates can't be played. I checked the file sizes and they vary based on the length of the video. I'm using VLC as my playback program, I've tried a bunch of the different video formats some of which cause the program to crash and some create the unviewable videos. Not sure where to go from here...

@hipersayanX
Copy link
Member

Hi, which operating system are you using? are you using Webcamoid from your distro repositories or the official binaries? are you using the latest version?

@hipersayanX
Copy link
Member

Also try the basic setup: set the camera resolution at 640x480, video format MP4, video codec libx264, audio codec AAC, does it works?

@KydeSion
Copy link
Author

Hi, which operating system are you using? are you using Webcamoid from your distro repositories or the official binaries? are you using the latest version?

Windows 10 and yes using the latest version

@KydeSion
Copy link
Author

Also try the basic setup: set the camera resolution at 640x480, video format MP4, video codec libx264, audio codec AAC, does it works?

I will try this tonight and let you know

@KydeSion
Copy link
Author

Ok, I tried it with the basic setup you requested and when I hit stop recording the program crashes and I am left with a 1kb file that can't be played, VLC will open it but it doesn't have any video to play if that makes sense.

@hipersayanX
Copy link
Member

Sorry for the late response, will check, but its going to take some time because I'm very busy with the Android port right now.

@TheFalldog
Copy link

Any update? Having the same issue as a new user.

@KydeSion
Copy link
Author

I tested with a Logitech webcam and it worked great, but testing with a second different model Nexigo webcam, it seems like it might have something to do with different devices or drivers

@hipersayanX
Copy link
Member

I did a quick test and for me its working, both capture and recording with the basic setup, did tried with both MP4 and Webm. Maybe could it be a problem of a capturing a non standard resolution? (resolution not multiple of 32, ie. 1367x***)

@TheFalldog I'm planning to make a new release near to June (if possible), but I don't guarantee that this issue will be fixed because I don't know what is causing it, yet.

@hipersayanX
Copy link
Member

hipersayanX commented May 5, 2024

I been thinking, does the same situation happens when recording the screen and setting the audio source to silent? (when recording)

@KydeSion
Copy link
Author

KydeSion commented May 6, 2024

I am able to record the screen without any errors or issues

@hipersayanX
Copy link
Member

@KydeSion Try recording the camera with audio source to silent. If that works, try setting Matroska/libx264/PCM signed 16-bit little endian, and set the audio source to the mic.

@KydeSion
Copy link
Author

KydeSion commented May 7, 2024

Resulted in the same error when attempting to play back the video.

@hipersayanX
Copy link
Member

hipersayanX commented May 8, 2024

@KydeSion same error with the audio in silence, right?
In the camera properties (where you have the camera controls), you have 3 comboboxes: Format, resolution and FPS, does it show the FPS value?

@KydeSion
Copy link
Author

KydeSion commented May 8, 2024

Yes the audio is set to silence, the FPS shows 30

@hipersayanX
Copy link
Member

I have a slight idea what the problem could be. Just in case, you are using MediaFoundation for camera capture, right?

@hipersayanX
Copy link
Member

I did applied the changes to the master branch, that maybe, could fix this problem. Once I finish with the current changes, I will ask you to test it before release.

@hipersayanX hipersayanX self-assigned this May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants