-
Notifications
You must be signed in to change notification settings - Fork 43
C-1606 C-1609 C-1610 Share to IG Story QA #2359
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ buildscript { | |
targetSdkVersion = 31 | ||
castFrameworkVersion = "21.0.0" | ||
ndkVersion = "21.4.7075529" | ||
ffmpegKitPackage = "https-lts" | ||
ffmpegKitPackage = "https-gpl-lts" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i guess this too? need GPL version for android? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah so we needed to use the libx264 encoder to produce the properly formatted video with H.264/AAC, which is included in the GPL version but not the regular one. then i also needed to add There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Awesome finds, wow |
||
} | ||
repositories { | ||
google() | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -248,13 +248,12 @@ export const useShareToStory = ({ | |
|
||
try { | ||
session = await FFmpegKit.execute( | ||
`${audioStartOffsetConfig}-i ${streamMp3Url} -filter_complex "gradients=s=720x1280:c0=${dominantColorHex1}:c1=${dominantColorHex2}:x0=360:y0=0:x1=360:y1=1280:duration=10:speed=0.042:rate=30[bg];[0:a]aformat=channel_layouts=mono,showwaves=mode=cline:n=1:s=720x135:scale=cbrt:colors=#ffffff[fg];[bg][fg]overlay=format=auto:x=0:y=H-h-100" -vb 5M -t 10 ${storyVideoPath}` | ||
`${audioStartOffsetConfig}-i ${streamMp3Url} -filter_complex "gradients=s=540x960:x0=270:y0=2:x1=270:y1=958:c0=${dominantColorHex1}:c1=${dominantColorHex2}:duration=10:speed=0.042:rate=30[bg];[0:a]aformat=channel_layouts=mono,showfreqs=s=540x80:fscale=log:colors=#ffffff[fg];[bg][fg]overlay=format=auto:x=0:y=H-h-80" -pix_fmt yuv420p -c:v libx264 -preset ultrafast -c:a aac -t 10 ${storyVideoPath}` | ||
) | ||
} catch (e) { | ||
handleError(e, 'Share to IG Story error') | ||
return | ||
} | ||
|
||
if (cancelRef.current) { | ||
// The job was cancelled. | ||
cleanup() | ||
|
@@ -274,7 +273,7 @@ export const useShareToStory = ({ | |
|
||
// Step 4: Put everything together and push to IG | ||
const shareOptions = { | ||
backgroundVideo: storyVideoPath, | ||
backgroundVideo: `file://${storyVideoPath}`, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nice |
||
stickerImage: stickerUri, | ||
attributionURL: Config.AUDIUS_URL, | ||
social: Share.Social.INSTAGRAM_STORIES, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wild, whats the tldr here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh this was just to fix this issue where two of our packages included
libc++_shared.so