Open reijin90 opened 2 months ago
Description The log output does not align with the one on a local device. It adds an extra line and breaks the logs into further lines.
Expected behavior What you expected to happen.
Current behavior What happened.
To Reproduce Steps to reproduce the behaviour.
Screenshots If applicable, add screenshots to help explain your problem.
Logs Post logs here or paste them to Ghostbin and insert the link here.
Environment
iOS
ReactNative
arm64-simulator
v6.0.02
release?
13.4.1
1.10.3
4.0
r25b
Other Example Code:
const generateMetadata = async (filePath) => { const command = `-i ${filePath} -vf "showinfo" -f null -`; console.log(`Running command: ${command} on file: ${filePath}`); const session = await FFmpegKit.execute(command); const returnCode = await session.getReturnCode(); if (ReturnCode.isSuccess(returnCode)) { const output = await session.getOutput(); return output; } else { console.error(`Error generating metadata got: ${returnCode}`); const failStackTrace = await session.getFailStackTrace(); console.error(`Error generating metadata: ${failStackTrace}`); setStep(1); return ''; } };
Here is an example output from getOutput():
[Parsed_showinfo_0 @ 0x60000352a1b0] 0AF18017[Parsed_showinfo_0 @ 0x60000352a1b0] ] mean:[[Parsed_showinfo_0 @ 0x60000352a1b0] 99[Parsed_showinfo_0 @ 0x60000352a1b0] 123[Parsed_showinfo_0 @ 0x60000352a1b0] 133[Parsed_showinfo_0 @ 0x60000352a1b0] ] stdev:[[Parsed_showinfo_0 @ 0x60000352a1b0] 50.0[Parsed_showinfo_0 @ 0x60000352a1b0] 4.8[Parsed_showinfo_0 @ 0x60000352a1b0] 9.4[Parsed_showinfo_0 @ 0x60000352a1b0] ][Parsed_showinfo_0 @ 0x60000352a1b0] [Parsed_showinfo_0 @ 0x60000352a1b0] color_range:unknown[Parsed_showinfo_0 @ 0x60000352a1b0] color_space:unknown[Parsed_showinfo_0 @ 0x60000352a1b0] color_primaries:unknown[Parsed_showinfo_0 @ 0x60000352a1b0] color_trc:unknown[Parsed_showinfo_0 @ 0x60000352a1b0] [Parsed_showinfo_0 @ 0x60000352a1b0] n:1841 pts: 942592 pts_time:63.4828 duration: 512 duration_time:0.0344828 pos: 5385838 fmt:yuv420p sar:1/1 s:720x1280 i:P iskey:0 type:B [Parsed_showinfo_0 @ 0x60000352a1b0] checksum:210B7FDD plane_checksum:[B913B6F2[Parsed_showinfo_0 @ 0x60000352a1b0] 786334DA[Parsed_showinfo_0 @ 0x60000352a1b0] B0519402[Parsed_showinfo_0 @ 0x60000352a1b0] ] mean:[[Parsed_showinfo_0 @ 0x60000352a1b0] 100[Parsed_showinfo_0 @ 0x60000352a1b0] 123
And here is a log that I would expect:
[Parsed_showinfo_0 @ 0x6000013f8000] n: 1 pts: 512 pts_time:0.0344828 duration: 512 duration_time:0.0344828 fmt:yuv420p cl:left sar:1/1 s:720x1280 i:P iskey:0 type:B checksum:967EA408 plane_checksum:[E0213243 C263A741 2B9ACA75] mean:[100 124 133] stdev:[47.1 7.0 11.8] [Parsed_showinfo_0 @ 0x6000013f8000] color_range:unknown color_space:unknown color_primaries:unknown color_trc:unknown [Parsed_showinfo_0 @ 0x6000013f8000] n: 2 pts: 1024 pts_time:0.0689655 duration: 512 duration_time:0.0344828 fmt:yuv420p cl:left sar:1/1 s:720x1280 i:P iskey:0 type:B checksum:36490889 plane_checksum:[E47CD22D E6CA8BAE E735AA90] mean:[100 124 133] stdev:[47.1 7.0 11.8] [Parsed_showinfo_0 @ 0x6000013f8000] color_range:unknown color_space:unknown color_primaries:unknown color_trc:unknown [Parsed_showinfo_0 @ 0x6000013f8000] n: 3 pts: 1536 pts_time:0.103448 duration: 512 duration_time:0.0344828 fmt:yuv420p cl:left sar:1/1 s:720x1280 i:P iskey:0 type:B checksum:4AB055B3 plane_checksum:[3128072B B4AA9401 15FABA78] mean:[100 124 133] stdev:[47.1 7.0 11.8] [Parsed_showinfo_0 @ 0x6000013f8000] color_range:unknown color_space:unknown color_primaries:unknown color_trc:unknown [Parsed_showinfo_0 @ 0x6000013f8000] n: 4 pts: 2048 pts_time:0.137931 duration: 512 duration_time:0.0344828 fmt:yuv420p cl:left sar:1/1 s:720x1280 i:P iskey:0 type:P checksum:41CFCA69 plane_checksum:[7064AC3F FEA37DB9 9484A062] mean:[100 124 133] stdev:[47.2 7.0 11.8] [Parsed_showinfo_0 @ 0x6000013f8000] color_range:unknown color_space:unknown color_primaries:unknown color_trc:unknown [Parsed_showinfo_0 @ 0x6000013f8000] n: 5 pts: 2560 pts_time:0.172414 duration: 512 duration_time:0.0344828 fmt:yuv420p cl:left sar:1/1 s:720x1280 i:P iskey:0 type:B checksum:B7BF040D plane_checksum:[F122BDF6 66D2961F 7DD8AFDA] mean:[100 124 133] stdev:[47.4 7.0 11.8] [Parsed_showinfo_0 @ 0x6000013f8000] color_range:unknown color_space:unknown color_primaries:unknown color_trc:unknown [Parsed_showinfo_0 @ 0x6000013f
I made this workaround:
const cleanOutput = (output: string) => { const regex = /\[Parsed_showinfo_0\s+\@\s+0x\w+\]/g; return output.replace(regex, ''); };
Description The log output does not align with the one on a local device. It adds an extra line and breaks the logs into further lines.
Expected behavior What you expected to happen.
Current behavior What happened.
To Reproduce Steps to reproduce the behaviour.
Screenshots If applicable, add screenshots to help explain your problem.
Logs Post logs here or paste them to Ghostbin and insert the link here.
Environment
iOS
/ReactNative
arm64-simulator
v6.0.02
release?
13.4.1
1.10.3
4.0
r25b
Other Example Code:
Here is an example output from getOutput():
And here is a log that I would expect: