VLC Recording Automation Issues
by nimane9 from LinuxQuestions.org on (#6DFGA)
Hi All,
I'm working for a startup right now that requires us to be able to automatically record video from an external camera upon a raspberry pi booting up. I have very limited experience and understanding of linux, and I've hit a couple walls lately.
For background, I'm using an E-COM camera for recording. I went through their driver setup guide and am able to view the camera output. It might be worth noting that it seems to run off of the following "v4l2:///dev/video0". Due to my lack of comfort with command line interfaces, I've decided to use VLC as my recording software. When using the UI to record video it seems to work perfectly, but I won't have access to this when it's powered on in our payload.
This has lead me to believe that starting a recording from the command line through VLC would be the most manageable route for me to navigate, which leads me to the problem I'm facing now. I have hacked together the following line of code from the VLC documentation:
vlc v4l2:///dev/video0 #transcode{vcodec=h264,acodec=mpga,ab=128,channels=2,samplerate=44100,scodec=none}:file{dst=.mp4,no-overwrite}
Which does open the camera view in VLC, but I then get the following errors:
[9ed03290] v4l2 demux error: cannot get streaming parameters: Inappropriate ioctl for device
[9ed29d60] mmal_xsplitter vout display error: Failed to open Xsplitter:mmal_vout module
[9e303f60] main input error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 300 ms)
I've began with trying to troubleshoot the first line but I'm totally lost at this point. It seems like it has something to do with the v4l2 drivers, but I can't seem to put together a specific fix based off of the diagnostics others have followed.
I would really appreciate any input. I'm totally out of my comfort zone here and want to just get this working for the company.
Thank you so much,
Nick
I'm working for a startup right now that requires us to be able to automatically record video from an external camera upon a raspberry pi booting up. I have very limited experience and understanding of linux, and I've hit a couple walls lately.
For background, I'm using an E-COM camera for recording. I went through their driver setup guide and am able to view the camera output. It might be worth noting that it seems to run off of the following "v4l2:///dev/video0". Due to my lack of comfort with command line interfaces, I've decided to use VLC as my recording software. When using the UI to record video it seems to work perfectly, but I won't have access to this when it's powered on in our payload.
This has lead me to believe that starting a recording from the command line through VLC would be the most manageable route for me to navigate, which leads me to the problem I'm facing now. I have hacked together the following line of code from the VLC documentation:
vlc v4l2:///dev/video0 #transcode{vcodec=h264,acodec=mpga,ab=128,channels=2,samplerate=44100,scodec=none}:file{dst=.mp4,no-overwrite}
Which does open the camera view in VLC, but I then get the following errors:
[9ed03290] v4l2 demux error: cannot get streaming parameters: Inappropriate ioctl for device
[9ed29d60] mmal_xsplitter vout display error: Failed to open Xsplitter:mmal_vout module
[9e303f60] main input error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 300 ms)
I've began with trying to troubleshoot the first line but I'm totally lost at this point. It seems like it has something to do with the v4l2 drivers, but I can't seem to put together a specific fix based off of the diagnostics others have followed.
I would really appreciate any input. I'm totally out of my comfort zone here and want to just get this working for the company.
Thank you so much,
Nick