Skip to content
This repository has been archived by the owner on Feb 12, 2021. It is now read-only.

SaveToAvi example is not working for H264 format #5

Open
koukhtiev opened this issue Jan 14, 2021 · 0 comments
Open

SaveToAvi example is not working for H264 format #5

koukhtiev opened this issue Jan 14, 2021 · 0 comments

Comments

@koukhtiev
Copy link

Recently I started using Spinnaker library version: 2.2.0.48.

Trying example "SaveToAvi" from Src folder of Spinnaker SDK distribution, it worked for UNCOMPRESSED and MJPG formats, but for H264 it did not work.

My system:
OS Name Microsoft Windows 10 Enterprise LTSC
Version 10.0.17763 Build 17763
Available Physical Memory 55.1 GB
730 GB free space on hard drive.

I'm using Visual Studio 19 Professional.

Could you please give me a tip what might be wrong?
Thank you!
Val
Bellow is the standard output after running this example:

Application build date: Jan 14 2021 10:13:57

Spinnaker library version: 2.2.0.48

Number of cameras detected: 1

Running example for camera 0...

*** DEVICE INFORMATION ***

DeviceID : USB\VID_1E10&PID_3300&MI_00\7&1C3606A&0&0000
DeviceSerialNumber : 20258618
DeviceVendorName : Point Grey Research
DeviceModelName : Blackfly BFLY-U3-20S4M
DeviceType : USB3Vision
DeviceDisplayName : Point Grey Research Blackfly BFLY-U3-20S4M
DeviceAccessStatus : OpenReadWrite
DeviceVersion : FW:v1.6.3.00 FPGA:v2.02
DeviceDriverVersion : PGRUSBCam.sys : 2.7.3.235
DeviceUserID :
DeviceIsUpdater : 0
DeviceInstanceId : USB\VID_1E10&PID_3300&MI_00\7&1C3606A&0&0000
DeviceLocation : 0000.0014.0000.006.003.002.000.000.000
DeviceCurrentSpeed : HighSpeed
GUIXMLLocation : Device
GUIXMLPath : Input.xml
GenICamXMLLocation : Device
GenICamXMLPath :
DeviceU3VProtocol : 1

*** IMAGE ACQUISITION ***

Acquisition mode set to continuous...
Acquiring images...

Grabbed image 0, width = 1624, height = 1224
Grabbed image 1, width = 1624, height = 1224
Grabbed image 2, width = 1624, height = 1224
Grabbed image 3, width = 1624, height = 1224
Grabbed image 4, width = 1624, height = 1224
Grabbed image 5, width = 1624, height = 1224
Grabbed image 6, width = 1624, height = 1224
Grabbed image 7, width = 1624, height = 1224
Grabbed image 8, width = 1624, height = 1224
Grabbed image 9, width = 1624, height = 1224
Grabbed image 10, width = 1624, height = 1224
Grabbed image 11, width = 1624, height = 1224
Grabbed image 12, width = 1624, height = 1224
Grabbed image 13, width = 1624, height = 1224
Grabbed image 14, width = 1624, height = 1224
Grabbed image 15, width = 1624, height = 1224
Grabbed image 16, width = 1624, height = 1224
Grabbed image 17, width = 1624, height = 1224
Grabbed image 18, width = 1624, height = 1224
Grabbed image 19, width = 1624, height = 1224
Grabbed image 20, width = 1624, height = 1224
Grabbed image 21, width = 1624, height = 1224
Grabbed image 22, width = 1624, height = 1224
Grabbed image 23, width = 1624, height = 1224
Grabbed image 24, width = 1624, height = 1224
Grabbed image 25, width = 1624, height = 1224
Grabbed image 26, width = 1624, height = 1224
Grabbed image 27, width = 1624, height = 1224
Grabbed image 28, width = 1624, height = 1224
Grabbed image 29, width = 1624, height = 1224

*** CREATING VIDEO ***

Device serial number retrieved as 20258618...
Frame rate to be set to 15...
FFMPEGVideoEncoder:PtGreyGreeting:c:\hudson\workspace\spinnaker - release_v2_2 - pipeline - windows - build - vs2015 - git\src\spinvideo\ffmpegvideoencoder.c:107:Info > Greetings.
FFMPEGVideoEncoder:SpinnakerCreateVideoEncoder:c:\hudson\workspace\spinnaker - release_v2_2 - pipeline - windows - build - vs2015 - git\src\spinvideo\ffmpegvideoencoder.c:300:Info > Src: 1624 x 1224 Dst: 1624 x 1224
[libx264 @ 079dd280] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 079dd280] profile High, level 4.0
Output #0, avi, to 'SaveToAvi-H264-20258618.avi':
Stream #0:0: Video: h264 (libx264), yuv420p, 1624x1224, q=-1--1, 1000 kb/s, 15 tbc
[avi @ 079dc600] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead.
Appending 30 images to video file: SaveToAvi-H264-20258618.avi...

FFMPEGVideoEncoder:SpinnakerWriteFrame:c:\hudson\workspace\spinnaker - release_v2_2 - pipeline - windows - build - vs2015 - git\src\spinvideo\ffmpegvideoencoder.c:582:Info > Source line size: 4872
FFMPEGVideoEncoder:SpinnakerWriteFrame:c:\hudson\workspace\spinnaker - release_v2_2 - pipeline - windows - build - vs2015 - git\src\spinvideo\ffmpegvideoencoder.c:631:Info > Image was not buffered.
Appended image 0...
FFMPEGVideoEncoder:SpinnakerWriteFrame:c:\hudson\workspace\spinnaker - release_v2_2 - pipeline - windows - build - vs2015 - git\src\spinvideo\ffmpegvideoencoder.c:582:Info > Source line size: 4872
FFMPEGVideoEncoder:SpinnakerWriteFrame:c:\hudson\workspace\spinnaker - release_v2_2 - pipeline - windows - build - vs2015 - git\src\spinvideo\ffmpegvideoencoder.c:631:Info > Image was not buffered.
Appended image 1...
FFMPEGVideoEncoder:SpinnakerWriteFrame:c:\hudson\workspace\spinnaker - release_v2_2 - pipeline - windows - build - vs2015 - git\src\spinvideo\ffmpegvideoencoder.c:582:Info > Source line size: 4872
FFMPEGVideoEncoder:SpinnakerWriteFrame:c:\hudson\workspace\spinnaker - release_v2_2 - pipeline - windows - build - vs2015 - git\src\spinvideo\ffmpegvideoencoder.c:631:Info > Image was not buffered.
Appended image 2...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant