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

Create Equal Size Video Chunks Command Fails With Scoped Storage #66

Closed
muzeasd opened this issue Jun 5, 2021 · 6 comments
Closed

Create Equal Size Video Chunks Command Fails With Scoped Storage #66

muzeasd opened this issue Jun 5, 2021 · 6 comments
Assignees
Labels
android Affect Android platform library Affects the library no-issue-activity question Further information is requested saf Issue about storage access framework v4.4 Affects v4.4 release

Comments

@muzeasd
Copy link

muzeasd commented Jun 5, 2021

Hello there. Without scoped storage, creating equal size video chunks command is working absolutely fine. But when I try to create equal size video chunks using scoped storage, it fails with following stack trace showing in Logcat.

SAF FileName: saf:176/2021-06-06_03_18_57-chunk%03d.mp4
Command Used: -i "/data/user/0/com.projects.vcd/files/file.mp4" -c copy -map 0 -segment_time 60 -f segment "saf:176/2021-06-06_03_18_57-chunk%03d.mp4"

2021-06-06 03:01:39.034 9463-9792/com.projects.vcd I/------------------->: [segment @ 0x75ced83800] Opening 'saf:176/2021-06-06_03_18_57-chunk000.mp4' for writing
2021-06-06 03:01:39.034 9463-9792/com.projects.vcd I/------------------->: [segment @ 0x75ced83800] Failed to open segment 'saf:176/2021-06-06_03_18_57-chunk000.mp4'
2021-06-06 03:01:39.034 9463-9792/com.projects.vcd I/------------------->: Could not write header for output file #0 (incorrect codec parameters ?): Protocol not found
2021-06-06 03:01:39.034 9463-9792/com.projects.vcd I/------------------->: Error initializing output stream 0:1 --
2021-06-06 03:01:39.034 9463-9792/com.projects.vcd I/------------------->: Stream mapping:
2021-06-06 03:01:39.035 9463-9792/com.projects.vcd I/------------------->: Stream #0:0 -> #0:0
2021-06-06 03:01:39.035 9463-9792/com.projects.vcd I/------------------->: (copy)
2021-06-06 03:01:39.035 9463-9792/com.projects.vcd I/------------------->: Stream #0:1 -> #0:1
2021-06-06 03:01:39.035 9463-9792/com.projects.vcd I/------------------->: (copy)

Please check what am I doing wrong? Thanks

@tanersener tanersener added android Affect Android platform library Affects the library saf Issue about storage access framework v4.4 Affects v4.4 release labels Jun 7, 2021
@tanersener
Copy link
Collaborator

saf: implementation released in v4.4 does not cover all use cases. There are still some filters/muxers which cannot use the saf: protocol. It was first reported in #39. I suspect your case is one of them.

I suggest building the development branch and testing your app with the .aar file created from that branch. It includes a more complete saf: solution.

@tanersener tanersener self-assigned this Jun 7, 2021
@muzeasd
Copy link
Author

muzeasd commented Jun 7, 2021

@tanersener Can I ask when new build, with this feature, will be available?

@tanersener
Copy link
Collaborator

You can see when the next release will be published from the projects page. Currently it is set for July.

@tanersener tanersener added enhancement New feature or request question Further information is requested labels Jun 8, 2021
@muzeasd
Copy link
Author

muzeasd commented Jun 8, 2021

Thanks a lot

@muzeasd muzeasd closed this as completed Jun 8, 2021
@tanersener tanersener removed the enhancement New feature or request label Aug 15, 2021
@muzeasd muzeasd reopened this Aug 18, 2021
@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@tanersener
Copy link
Collaborator

I suggest trying this case on v4.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android Affect Android platform library Affects the library no-issue-activity question Further information is requested saf Issue about storage access framework v4.4 Affects v4.4 release
Projects
None yet
Development

No branches or pull requests

2 participants