Open RexRoper opened 5 years ago
First I would try cutting down the camera resolution: try adding "-w 1920 -h 1080" to your raspivid command and see if that works.
Next I would try disabling the viewfinder: try adding "-n" to your raspivid command. That's likely why you're seeing that PortSettingsChanged.
Let us know how it goes.
Can you show the exact raspivid command you are entering?
You appear to have a file testvid.h264
containg mjpeg video which seems surprising.
issued the command raspivid -t 1000 -o testvid.h264
testvid.h264 is the test video file that is installed with Raspbian and can be found in /opt/vc/src/hello_pi/hello_video/ folder. I cannot explain why the h264 extension is used for an mjpeg. Maybe someone more familiar with why the Raspberry Pi Foundation provides the file in this manner can provide an answer.
$ mediainfo ~/rootfs/opt/vc/src/hello_pi/hello_video/test.h264
General
Complete name : /home/dom/rootfs/opt/vc/src/hello_pi/hello_video/test.h264
Format : AVC
Format/Info : Advanced Video Codec
File size : 29.6 MiB
Video
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L4.1
Format settings : 2 Ref Frames
Format settings, CABAC : No
Format settings, ReFrames : 2 frames
Format settings, GOP : M=2, N=24
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
The hello_video test.h264 file contains h.264 and not mjpeg.
Hello to All, I have a new Pi Zero W and I have loaded the latest Stretch Lite and attached an RPi Camera v2.1. I have performed sudo apt-get update and then sudo apt-get upgrade and also set memory split to 256. I then issued the command raspivid -t 1000 -o testvid.h264 to capture a 10 second video from the RPi Camera.
When I issue the command omxplayer testvid.h264, I receive the following: pi@CamSolarLab1:~ $ omxplayer testvid.h264 _Video codec omx-mjpeg width 3280 height 2464 profile -99 fps 25.000000 Subtitle count: 0, state: off, index: 1, delay: 0 V:PortSettingsChanged: 3280x2464@25.00 interlace:0 deinterlace:0 anaglyph:0 par:1.00 display:0 layer:0 alpha:255 aspectMode:0 COMXVideo::Decode timeout omxplayer.bin: OMXCore.cpp:786: OMX_ERRORTYPE COMXCoreComponent::FreeInputBuffers(): Assertion `m_omx_input_buffers.size() == m_omx_input_avaliable.size()' failed. /usr/bin/omxplayer: line 67: 4829 Aborted LD_LIBRARY_PATH="$OMXPLAYER_LIBS${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" $OMXPLAYERBIN "$@" pi@CamSolarLab1:~ $
I have tried numerous attempts to resolve this issue with no positive results. Changing memory split to all other values has no effect. Uninstalling and reinstalling omxplayer has no effect.
I see a line in the Error that indicates: V:PortSettingsChanged: 3280x2464@25.00...my monitor settings are HDMI 1600x900 60Hz. Is 3280x2464@25.00 a standard setting for OMXPlayer or do I need to match my monitor settings?
Any additional insight or suggestions will be greatly appreciated. Thank you