[
{
"attrs": {},
"bound": "full",
"children": [
{
"children": [],
"kind": "paragraph",
"spans": [
{
"kind": "plain-text",
"text": "Bluesky ffmpeg mp4 Cropping And Muting Command",
"type": "plain-text"
}
],
"template_list": [
"sections/paragraph/default.neoj"
],
"type": "block"
},
{
"children": [],
"kind": "paragraph",
"spans": [
{
"kind": "plain-text",
"text": "This is the ffmpeg command I use to process mp4s for posting on Bluesky",
"type": "plain-text"
},
{
"attrs": {},
"flags": [],
"kind": "footnote-shorthand",
"text": "1",
"type": "footnote-shorthand"
},
{
"kind": "plain-text",
"text": ". It removes any black bars",
"type": "plain-text"
},
{
"attrs": {},
"flags": [],
"kind": "footnote-shorthand",
"text": "2",
"type": "footnote-shorthand"
},
{
"kind": "plain-text",
"text": " and removes the audio.",
"type": "plain-text"
}
],
"template_list": [
"sections/paragraph/default.neoj"
],
"type": "block"
}
],
"end_section": null,
"flags": [],
"kind": "title",
"template_list": [
"sections/title/default.neoj",
"sections/basic/default.neoj"
],
"type": "basic"
},
{
"attrs": {},
"body": "INPUT_PATH=\"/Users/alan/GIFs/factory/Johnny Mnemonic/mp4s/raw/jonny-mnemonic-getting-ready.mp4\"\nOUTPUT_PATH=\"/Users/alan/GIFs/factory/Johnny Mnemonic/mp4s/cropped/jonny-mnemonic-getting-ready.mp4\"\n\nffmpeg -i \"${INPUT_PATH}\" -ss 0.1 \\\n-t 0.1 -vf cropdetect=limit=2 -f null - 2\u003e\u00261 | \\\nawk \u0027/crop/ { print $NF }\u0027 | \\\ntail -1 | xargs -I{CROP} \\\nffmpeg -loglevel error -hide_banner \\\n-i \"${INPUT_PATH}\" \\\n-vf \"{CROP}\" -an -y \"${OUTPUT_PATH}\"",
"bound": "full",
"end_section": null,
"flags": [
"bash"
],
"kind": "code",
"template_list": [
"sections/code/default.neoj",
"sections/raw/default.neoj"
],
"type": "raw"
},
{
"attrs": {},
"body": "",
"bound": "start",
"end_section": {
"attrs": {},
"bound": "end",
"children": [],
"flags": [],
"kind": "results-end",
"template_list": [
"sections/results-end/default.neoj",
"sections/end/default.neoj"
],
"type": "end"
},
"flags": [],
"kind": "results",
"template_list": [
"sections/results/default.neoj",
"sections/raw/default.neoj"
],
"type": "raw"
},
{
"attrs": {},
"bound": "full",
"children": [
{
"children": [],
"kind": "paragraph",
"spans": [
{
"kind": "plain-text",
"text": "The ",
"type": "plain-text"
},
{
"attrs": {},
"flags": [],
"kind": "code-shorthand",
"text": "cropdetect=limit=2",
"type": "code-shorthand"
},
{
"kind": "plain-text",
"text": " sets the threshold for what\u0027s considered a black bar. The default is 24, but I bump it to 2 generally. If you get a crop that isn\u0027t right it\u0027s the setting to play with",
"type": "plain-text"
}
],
"template_list": [
"sections/paragraph/default.neoj"
],
"type": "block"
}
],
"end_section": null,
"flags": [],
"kind": "endnote",
"template_list": [
"sections/endnote/default.neoj",
"sections/basic/default.neoj"
],
"type": "basic"
},
{
"attrs": {
"id": [
{
"spans": [
{
"kind": "plain-text",
"text": "1",
"type": "plain-text"
}
],
"text": "1"
}
],
"title": [
{
"spans": [
{
"kind": "plain-text",
"text": "My Bluesky Account",
"type": "plain-text"
}
],
"text": "My Bluesky Account"
}
],
"url": [
{
"spans": [
{
"kind": "plain-text",
"text": "https://bsky.app/profile/alanwsmith.com",
"type": "plain-text"
}
],
"text": "https://bsky.app/profile/alanwsmith.com"
}
]
},
"bound": "full",
"children": [
{
"children": [],
"kind": "paragraph",
"spans": [
{
"kind": "plain-text",
"text": "If you want to follow me there",
"type": "plain-text"
}
],
"template_list": [
"sections/paragraph/default.neoj"
],
"type": "block"
}
],
"end_section": null,
"flags": [],
"kind": "footnote",
"template_list": [
"sections/footnote/default.neoj",
"sections/basic/default.neoj"
],
"type": "basic"
},
{
"attrs": {
"id": [
{
"spans": [
{
"kind": "plain-text",
"text": "1",
"type": "plain-text"
}
],
"text": "1"
}
],
"title": [
{
"spans": [
{
"kind": "plain-text",
"text": "Cropping With DaVinci Resolve",
"type": "plain-text"
}
],
"text": "Cropping With DaVinci Resolve"
}
]
},
"bound": "full",
"children": [
{
"children": [],
"kind": "paragraph",
"spans": [
{
"kind": "plain-text",
"text": "I generally crop in to different parts of a frame when making clips in ",
"type": "plain-text"
},
{
"attrs": {},
"flags": [
"https://www.blackmagicdesign.com/products/davinciresolve"
],
"kind": "link-shorthand",
"text": "DaVinci Resolve",
"type": "link-shorthand"
},
{
"kind": "plain-text",
"text": ". This results in black bars replacing the areas I cropped out.",
"type": "plain-text"
}
],
"template_list": [
"sections/paragraph/default.neoj"
],
"type": "block"
}
],
"end_section": null,
"flags": [],
"kind": "footnote",
"template_list": [
"sections/footnote/default.neoj",
"sections/basic/default.neoj"
],
"type": "basic"
},
{
"attrs": {
"created": [
{
"spans": [
{
"kind": "plain-text",
"text": "2024-11-16T18:12:51-04:00",
"type": "plain-text"
}
],
"text": "2024-11-16T18:12:51-04:00"
}
],
"id": [
{
"spans": [
{
"kind": "plain-text",
"text": "2o/x6i/f1/n6",
"type": "plain-text"
}
],
"text": "2o/x6i/f1/n6"
}
],
"status": [
{
"spans": [
{
"kind": "plain-text",
"text": "scratch",
"type": "plain-text"
}
],
"text": "scratch"
}
],
"template": [
{
"spans": [
{
"kind": "plain-text",
"text": "post",
"type": "plain-text"
}
],
"text": "post"
}
],
"updated": [
{
"spans": [
{
"kind": "plain-text",
"text": "2024-11-16T18:12:51-04:00",
"type": "plain-text"
}
],
"text": "2024-11-16T18:12:51-04:00"
}
]
},
"bound": "full",
"data": {},
"end_section": null,
"error": null,
"flags": [],
"kind": "page",
"template_list": [
"sections/page/default.neoj",
"sections/json5/default.neoj"
],
"type": "json5"
}
]