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

Export Video Failed #146

Open
iamkhan001 opened this issue Oct 11, 2022 · 0 comments
Open

Export Video Failed #146

iamkhan001 opened this issue Oct 11, 2022 · 0 comments

Comments

@iamkhan001
Copy link

Hi there,

When I'm trying to export the video, I'm getting an error,

Export parse: /storage/emulated/0/Android/data/com.faimsoft.videoeditor/cache/video.mp4 error: * Line 1, Column 1
      Syntax error: value, object or array expected.

below is my code to export the video

   val draftPath = externalCacheDir?.absolutePath + "/video.mp4"

    val exportVideoInfo = VideoExportInfo(draftPath)
    exportVideoInfo.mediaCodecDecode = true
    exportVideoInfo.mediaCodecEncode = true
    exportVideoInfo.width = 544
    exportVideoInfo.height = 960
    exportVideoInfo.frameRate = 25
    exportVideoInfo.videoBitRate = 2000
    exportVideoInfo.sampleRate = 44100
    exportVideoInfo.channelCount = 1
    exportVideoInfo.audioBitRate = 128

    mVideoExport = TrinityCore.createExport(draftPath)
    mVideoExport.export(exportVideoInfo, this)

I'm using trinity version 0.3.2.

Please help on this

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

1 participant