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

Segmentation fault (core dumped) #22

Open
JesseYang-CQ opened this issue May 4, 2018 · 1 comment
Open

Segmentation fault (core dumped) #22

JesseYang-CQ opened this issue May 4, 2018 · 1 comment

Comments

@JesseYang-CQ
Copy link

hi, use the generated software trans to transform the ERP to ERPtiled,the problem happens in the end,as following:
1 jpg
and i use the ini file like the bellowing shows:
[Global]
;The number of frame per second
fps=30
displayFinalPict=true
videoOutputName=./test.mp4
videoOutputCodec=libx265
videoOutputBitRate=0
qualityOutputName=
qualityToComputeList = ["MS-SSIM", "SSIM", "PSNR", "S-PSNR-NN", "S-PSNR-I", "WS-PSNR"]
startFrame=0
nbFrames= 50
layoutFlow= [["/usr/local/transformation/build/outputjumping.mp4", "Equirectangular", "EquirectangularTiledLower"]]
;layoutFlow= [["/usr/local/transformation/build/outputjumping.mp4", "Equirectangular", "EquirectangularTiledLower"], ["/usr/local/transformation/build/outputjumping.mp4", "Equirectangular", "CubeMapLower", "FlatFixed"]]

[Equirectangular]
type=equirectangular
;Width of the reference equirectangular video
refWidth=3840
;Width of the reference equirectangular video
refHeight=2048
yaw=0
pitch=0
roll=0
relativeResolution=false
width=1
height=1
bitrate=1

[FlatFixed]
type=flatFixed
relativeResolution=false
dynamicPositions=false
;The path to the position trace file. Used if dynamicPositions is set to true
positionTrace=pathToPositionTrace
yaw=0
pitch=0
roll=0
width=1920
height=1080
;Horizontal angle of the display device (in degree)
horizontalAngleOfVision=110
;Vertical angle of the display device (in degree)
verticalAngleOfVision=90

[CubeMapLower]
;type of the layout: cube map layout
type=cubeMap
;Size of the reference cube map video (ie if all faces have a size ratio of 1)
refWidth=3840
refHeight=2048
;use relative resolution for the face resolutions
relativeResolution=true
yaw=0
pitch=0
roll=0
cubeEdgeLengthFront=1
cubeEdgeLengthLeft=1
cubeEdgeLengthRight=1
cubeEdgeLengthTop=1
cubeEdgeLengthBottom=1
cubeEdgeLengthBack=1
;if useTile is set to true, each face will be encoded into an independent video with a target bitrate set by the bitrateFront, bitrateLeft, etc. parameters
;if useTile is set to false, the whole projection will be encoded into a unique video (all faces on the same frame) and a global bitrate target set by the bitrate parameter
useTile=false
;Relative bitrate of each face (if final layout encoded). A ratio r means rvideoOutputBitRate/6
bitrateFront=1
bitrateLeft=1
bitrateRight=1
bitrateTop=1
bitrateBottom=1
bitrateBack=1
;bitrate is used only if useTile=false. A ratio r means a bitrate of r
videoOutputBitRate
bitrate=1
;indicate the position and the orientation of each face in the packed picture. position 1 is top left, 2 top right, 3 bottom left and 5 bottom right. Rotation can be 0, 90, -90 or 180.
facesPosition={"face1":"right", "face1Rotation":0, "face2":"back", "face2Rotation":0, "face3":"left", "face3Rotation":0, "face4":"top", "face4Rotation":-90, "face5":"front", "face5Rotation":-90, "face6":"bottom", "face6Rotation":-90}

[EquirectangularTiledLower]
type=equirectangularTiled
;Size of the reference input equirectangular video
refWidth=3840
refHeight=2048
;use relative resolution for the face resolutions
relativeResolution=true
;The rotation used to get the center of the front face: type = "euler" or "quaternion" or "angleAxis".
; if type is "euler" you have to give the yaw, pitch and roll angle in degree
; if type is "quaternion" you have to give the w, x, y, z value of the quaternion that represente the rotation. A normalization is performed by the software.
; if type is "angleAxis" you have to give an "angle" in degree and a direction vector x, y, z that generates the rotation axis (this vector should not be (0, 0, 0)).
yaw=0
pitch=0
roll=0
;rotation= {"type":"euler", "yaw":0.0, "pitch":0.0, "roll":0.0}
;rotation= {"type":"quaternion", "w":1.0, "x":0.0, "y":0.0, "z":0.0}
;rotation= {"type":"angleAxis", "angle":90, "x":0, "y":0, "z":1}
;nbHTiles (resp. nbVTiles) indicate the number of horizontal (resp. vertical) tiles
;You have to compile the software with the RANGE_NB_H_TILES and RANGE_NB_V_TILES macro to be able to use this layout.
;For instance in this example the value 8 should be in the macro RANGE_NB_H_TILES and RANGE_NB_V_TILES otherwise a runtime error will be raised
nbHTiles=8
nbVTiles=8
;hTileRation_X and vTileRation_X indicate the relative horizontal and vertical ratio of the tile X. In this example each tile get 1/8 of the equirectangular picture
hTileRation_0=1
hTileRation_1=1
hTileRation_2=1
hTileRation_3=1
hTileRation_4=1
hTileRation_5=1
hTileRation_6=1
hTileRation_7=1
vTileRation_0=1
vTileRation_1=1
vTileRation_2=1
vTileRation_3=1
vTileRation_4=1
vTileRation_5=1
vTileRation_6=1
vTileRation_7=1
;if upscale is set to true, all the tiles will be upscaled to the original tile resolution
upscale=false
;if useTile is set to true, each face will be encoded into an independent video with a target bitrate set by the equirectangularTileBitrate_0_0, equirectangularTileBitrate_0_1, etc. parameters
;if useTile is set to false, the whole projection will be encoded into a unique video (all faces on the same frame) and a global bitrate target set by the bitrate parameter
useTile=true
;resolution of the tile (i,j)=(0,0)
equirectangularTile_0_0=1
; bitrate of the tile (i,j) = (0,0). Ratio of r means rvideoOutputBitRate/64
equirectangularTileBitrate_0_0=0.25
equirectangularTile_0_1=1
equirectangularTileBitrate_0_1=0.25
equirectangularTile_0_2=1
equirectangularTileBitrate_0_2=0.25
equirectangularTile_0_3=1
equirectangularTileBitrate_0_3=0.25
equirectangularTile_0_4=1
equirectangularTileBitrate_0_4=0.25
equirectangularTile_0_5=1
equirectangularTileBitrate_0_5=0.25
equirectangularTile_0_6=1
equirectangularTileBitrate_0_6=0.25
equirectangularTile_0_7=1
equirectangularTileBitrate_0_7=0.25
equirectangularTile_1_0=1
equirectangularTileBitrate_1_0=0.25
equirectangularTile_1_1=1
equirectangularTileBitrate_1_1=0.25
equirectangularTile_1_2=1
equirectangularTileBitrate_1_2=0.25
equirectangularTile_1_3=1
equirectangularTileBitrate_1_3=0.25
equirectangularTile_1_4=1
equirectangularTileBitrate_1_4=0.25
equirectangularTile_1_5=1
equirectangularTileBitrate_1_5=0.25
equirectangularTile_1_6=1
equirectangularTileBitrate_1_6=0.25
equirectangularTile_1_7=1
equirectangularTileBitrate_1_7=0.25
equirectangularTile_2_0=1
equirectangularTileBitrate_2_0=0.25
equirectangularTile_2_1=1
equirectangularTileBitrate_2_1=1
equirectangularTile_2_2=1
equirectangularTileBitrate_2_2=1
equirectangularTile_2_3=1
equirectangularTileBitrate_2_3=1
equirectangularTile_2_4=1
equirectangularTileBitrate_2_4=1
equirectangularTile_2_5=1
equirectangularTileBitrate_2_5=1
equirectangularTile_2_6=1
equirectangularTileBitrate_2_6=0.25
equirectangularTile_2_7=1
equirectangularTileBitrate_2_7=0.25
equirectangularTile_3_0=1
equirectangularTileBitrate_3_0=0.25
equirectangularTile_3_1=1
equirectangularTileBitrate_3_1=1
equirectangularTile_3_2=1
equirectangularTileBitrate_3_2=1
equirectangularTile_3_3=1
equirectangularTileBitrate_3_3=1
equirectangularTile_3_4=1
equirectangularTileBitrate_3_4=1
equirectangularTile_3_5=1
equirectangularTileBitrate_3_5=1
equirectangularTile_3_6=1
equirectangularTileBitrate_3_6=0.25
equirectangularTile_3_7=1
equirectangularTileBitrate_3_7=0.25
equirectangularTile_4_0=1
equirectangularTileBitrate_4_0=0.25
equirectangularTile_4_1=1
equirectangularTileBitrate_4_1=1
equirectangularTile_4_2=1
equirectangularTileBitrate_4_2=1
equirectangularTile_4_3=1
equirectangularTileBitrate_4_3=1
equirectangularTile_4_4=1
equirectangularTileBitrate_4_4=1
equirectangularTile_4_5=1
equirectangularTileBitrate_4_5=1
equirectangularTile_4_6=1
equirectangularTileBitrate_4_6=0.25
equirectangularTile_4_7=1
equirectangularTileBitrate_4_7=0.25
equirectangularTile_5_0=1
equirectangularTileBitrate_5_0=0.25
equirectangularTile_5_1=1
equirectangularTileBitrate_5_1=1
equirectangularTile_5_2=1
equirectangularTileBitrate_5_2=1
equirectangularTile_5_3=1
equirectangularTileBitrate_5_3=1
equirectangularTile_5_4=1
equirectangularTileBitrate_5_4=1
equirectangularTile_5_5=1
equirectangularTileBitrate_5_5=1
equirectangularTile_5_6=1
equirectangularTileBitrate_5_6=0.25
equirectangularTile_5_7=1
equirectangularTileBitrate_5_7=0.25
equirectangularTile_6_0=1
equirectangularTileBitrate_6_0=0.25
equirectangularTile_6_1=1
equirectangularTileBitrate_6_1=1
equirectangularTile_6_2=1
equirectangularTileBitrate_6_2=1
equirectangularTile_6_3=1
equirectangularTileBitrate_6_3=1
equirectangularTile_6_4=1
equirectangularTileBitrate_6_4=1
equirectangularTile_6_5=1
equirectangularTileBitrate_6_5=1
equirectangularTile_6_6=1
equirectangularTileBitrate_6_6=0.25
equirectangularTile_6_7=1
equirectangularTileBitrate_6_7=0.25
equirectangularTile_7_0=1
equirectangularTileBitrate_7_0=0.25
equirectangularTile_7_1=1
equirectangularTileBitrate_7_1=0.25
equirectangularTile_7_2=1
equirectangularTileBitrate_7_2=0.25
equirectangularTile_7_3=1
equirectangularTileBitrate_7_3=0.25
equirectangularTile_7_4=1
equirectangularTileBitrate_7_4=0.25
equirectangularTile_7_5=1
equirectangularTileBitrate_7_5=0.25
equirectangularTile_7_6=1
equirectangularTileBitrate_7_6=0.25
equirectangularTile_7_7=1
equirectangularTileBitrate_7_7=0.25
;bitrate is used only if useTile=false. A ratio r means a bitrate of r
videoOutputBitRate
bitrate=1
can you give me some suggestions, thank you

@xmar
Copy link
Owner

xmar commented May 8, 2018

Hi @JesseYang-CQ ,

I did test your configuration file and indeed I also got an error on my side. But what I get is an exception indicating that the field rotation is mandatory for the type equirectangularTiled. So I added
rotation= {"type":"euler", "yaw":0.0, "pitch":0.0, "roll":0.0}"
at the end of the file (after "bitrate=1") and everything worked fine.
I got this error message:

Path to the ini file: ConfTest.ini
Error while parsing in configuration file the EquirectangularTiledLower layout: No such node (EquirectangularTiledLower.rotation)
Uncatched exception: std::exception
Options:
  -h [ --help ]         Produce this help message
  -c [ --config ] arg   Path to the configuration file

If this does not solve your problem, you may try to remove audio from your input video:
ffmpeg -i yourInputVideo.mkv -c:v copy -an youtOutputVideo.mkv
And you may try to also use mkv as output format. mp4 should work but I already got some still not explained situation when mp4 container was not working well as output format.

I hope this will help you,

Xavier

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

No branches or pull requests

2 participants