{"id":7079,"date":"2020-06-01T10:55:18","date_gmt":"2020-06-01T08:55:18","guid":{"rendered":"https:\/\/monodes.com\/predaelli\/?p=7079"},"modified":"2020-06-01T10:55:19","modified_gmt":"2020-06-01T08:55:19","slug":"cura-dimagrante","status":"publish","type":"post","link":"https:\/\/monodes.com\/predaelli\/2020\/06\/01\/cura-dimagrante\/","title":{"rendered":"Cura dimagrante"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code class=\"\" data-line=\"\">ffmpeg -i Palme\\ 2020.mp4 -vcodec libx265  -crf 28 -vf scale=1280:-1 Domenica-delle-palme.mp4<\/code><\/pre>\n\n\n\n<p>Per far dimagrire un video da 402Mb a 9,9Mb.<\/p>\n\n\n\n<p>Ok, ok, chi si loda s&#8217;imbroda, tanto pi\u00f9 che fa tutto ffmpeg, mica io! Ma vediamo il perch\u00e9 dopo aver visto il percome:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>il video in origine era codificato in H264 con risoluzione 1920\u00d71080, a 30 fotogrammi al secondo, con un bitrate video di quasi 18MBit, ed audio MPEG-4 AAC a 192kbps<\/li><li>il video convertito \u00e8 stato ricodificato in H26<strong>5<\/strong>  sempre a 30 fotogrammi al secondo, riducendo la risoluzione a 1280\u00d7720. Cos\u00ec il bitrate  \u00e8 solo 300kbps. L&#8217;audio \u00e8 sempre in AAC, a 129kbps<\/li><\/ol>\n\n\n\n<p>I barbatrucchi sono essensialmente due:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>ho abbassato la risoluzione da Full HD ad HD &#8220;liscio&#8221;:  (1980\u00d71080) \/ (1280\u00d7720) = 2,32 ossia abbiamo 2,32 volte dati video in meno. Saremmo passati da 402 a circa 173. <\/li><li>ho cambiato il formato di codifica: l&#8217;H265 (cinque) \u00e8 un formato molto pi\u00f9 compatto. Perch\u00e9 \u00e8 pi\u00f9 &#8220;moderno&#8221;, perch\u00e9 \u00e8 molto pi\u00f9 &#8220;raffinato&#8221;. Ma questa &#8220;raffinatezza&#8221; e questa &#8220;modernit\u00e0&#8221; richiede molta pi\u00f9 potenza di calcolo per essere riprodotto (e prima ancora codificato). Scordatevi di riprodurlo sul vostro Amiga , anche con una Vampire \ud83d\ude42 <\/li><\/ol>\n\n\n\n<p>Poi c&#8217;\u00e8 da aggiungere che ho evitato di metter mano alla codifica audio, un po&#8217; per pigrizia, un po&#8217; perch\u00e9 l&#8217;AAC \u00e8 &#8211; ahim\u00e8! &#8211; presente un po&#8217; ovunque. <\/p>\n","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\">Per far dimagrire un video da 402Mb a 9,9Mb. Ok, ok, chi si loda s&#8217;imbroda, tanto pi\u00f9 che fa tutto ffmpeg, mica io! Ma vediamo il perch\u00e9 dopo aver visto il percome: il video in origine era codificato in H264 con risoluzione 1920\u00d71080, a 30 fotogrammi al secondo, con un bitrate video di quasi 18MBit,&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/monodes.com\/predaelli\/2020\/06\/01\/cura-dimagrante\/\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":"","jetpack_publicize_message":"Cura dimagrante per video sovrappeso","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[72],"tags":[],"class_list":["post-7079","post","type-post","status-publish","format-standard","hentry","category-documentations"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6daft-1Qb","jetpack-related-posts":[{"id":8347,"url":"https:\/\/monodes.com\/predaelli\/2021\/04\/11\/ffmpeg-to-youtube-live\/","url_meta":{"origin":7079,"position":0},"title":"FFMPEG to Youtube Live","author":"Paolo Redaelli","date":"2021-04-11","format":false,"excerpt":"video - FFMPEG to Youtube Live - Stack Overflow After a lot of trial and error the solution below works pretty much perfectly. To make sure it runs 24\/7 wrap it inside a service of some description. This is with an up to date version of FFMPEG to include -stream_loop\u2026","rel":"","context":"In &quot;Documentations&quot;","block_context":{"text":"Documentations","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":6834,"url":"https:\/\/monodes.com\/predaelli\/2020\/03\/04\/useful-ffmpeg-commands-for-working-with-audio-and-video-files-digital-inspiration\/","url_meta":{"origin":7079,"position":1},"title":"Useful FFmpeg Commands for Working with Audio and Video Files &#8211; Digital Inspiration","author":"Paolo Redaelli","date":"2020-03-04","format":"link","excerpt":"Useful FFmpeg Commands for Working with Audio and Video Files - Digital Inspiration Useful FFmpeg Commands FFmpeg supports all popular audio and video formats. Or you can running the command .\/ffmpeg -formats to get a list of every format that is supported by your FFmpeg installation. If you are just\u2026","rel":"","context":"In &quot;Documentations&quot;","block_context":{"text":"Documentations","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":8990,"url":"https:\/\/monodes.com\/predaelli\/2021\/12\/19\/how-to-do-noise-reduction-using-ffmpeg-and-sox-articulating-ideas\/","url_meta":{"origin":7079,"position":2},"title":"How To Do Noise Reduction Using ffmpeg And sox &#8211; Articulating ideas","author":"Paolo Redaelli","date":"2021-12-19","format":"link","excerpt":"How To Do Noise Reduction Using ffmpeg And sox - Articulating ideas by Zohar Babin Need a quick, easy and free way of cleaning up a video\u2019s audio from background noise ? Follow the steps below to remove background audio from videos. First get and\u00a0install the tools: FFMPEG. SoX \u2013\u2026","rel":"","context":"In &quot;Senza categoria&quot;","block_context":{"text":"Senza categoria","link":"https:\/\/monodes.com\/predaelli\/category\/senza-categoria\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":7993,"url":"https:\/\/monodes.com\/predaelli\/2021\/01\/03\/audio-how-to-transform-live-rtmp-video-to-live-mp3-icecast-stream-stack-overflow\/","url_meta":{"origin":7079,"position":3},"title":"audio &#8211; how to transform live RTMP video to live mp3 Icecast stream &#8211; Stack Overflow","author":"Paolo Redaelli","date":"2021-01-03","format":false,"excerpt":"Source: audio - how to transform live RTMP video to live mp3 Icecast stream - Stack Overflow I have RTMP live stream with video and audio. I can get ogg audio live stream from RTMP and translate it to Icecast2 and get it on my site using JPlayer. Now i\u2026","rel":"","context":"In &quot;Basilica's website&quot;","block_context":{"text":"Basilica's website","link":"https:\/\/monodes.com\/predaelli\/category\/basilicas-website\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":13797,"url":"https:\/\/monodes.com\/predaelli\/2025\/07\/20\/13797\/","url_meta":{"origin":7079,"position":4},"title":"I visited Terence blog to\u2026","author":"Paolo Redaelli","date":"2025-07-20","format":false,"excerpt":"I visited Terence blog to read about some Easy ways to add watermarks to images and videos in Linux but I found a very nice and clean to take inspiration from! Mostly notes to myself :-) Here is a quick way to add watermarks to photos and videos. All Linux\u2026","rel":"","context":"In &quot;Senza categoria&quot;","block_context":{"text":"Senza categoria","link":"https:\/\/monodes.com\/predaelli\/category\/senza-categoria\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/shkspr.mobi\/blog\/wp-content\/litespeed\/avatar\/af6a5dd8373bf52386c67599d3a74158.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":6743,"url":"https:\/\/monodes.com\/predaelli\/2020\/02\/25\/muses-radio-player-the-html5-mp3-ogg-aac-live-stream-player\/","url_meta":{"origin":7079,"position":5},"title":"Muses Radio Player &#8211; The HTML5 MP3\/OGG\/AAC Live Stream Player!","author":"Paolo Redaelli","date":"2020-02-25","format":"link","excerpt":"Muses Radio Player - The HTML5 MP3\/OGG\/AAC Live Stream Player!","rel":"","context":"In &quot;Basilica's website&quot;","block_context":{"text":"Basilica's website","link":"https:\/\/monodes.com\/predaelli\/category\/basilicas-website\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/7079","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/comments?post=7079"}],"version-history":[{"count":0,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/7079\/revisions"}],"wp:attachment":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/media?parent=7079"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/categories?post=7079"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/tags?post=7079"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}