• 0 Posts
  • 331 Comments
Joined 1 year ago
cake
Cake day: February 15th, 2025

help-circle


  • # CUT (fast, keyframe-aligned, no re-encode)
    ffmpeg -ss 00:01:30 -to 00:02:10 -i input.mp4 -c copy cut.mp4
    
    # CUT (accurate, re-encode)
    ffmpeg -i input.mp4 -ss 00:01:30 -to 00:02:10 -c:v libx264 -c:a aac cut.mp4
    
    
    # MERGE / CONCATENATE (same codecs, no re-encode)
    printf "file 'a.mp4'\nfile 'b.mp4'\n" > list.txt
    ffmpeg -f concat -safe 0 -i list.txt -c copy merged.mp4
    
    
    # MERGE (different formats, re-encode)
    ffmpeg -i a.mp4 -i b.mp4 -filter_complex \
    "[0:v][0:a][1:v][1:a]concat=n=2:v=1:a=1[v][a]" \
    -map "[v]" -map "[a]" merged.mp4
    
    
    # TRANSITION (video crossfade, keep audio from first clip)
    ffmpeg -i a.mp4 -i b.mp4 -filter_complex \
    "[0:v][1:v]xfade=transition=fade:duration=1:offset=4[v]" \
    -map "[v]" -map 0:a transition.mp4
    
    
    # ADD TEXT (overlay)
    ffmpeg -i input.mp4 -vf \
    "drawtext=text='Hello world':x=20:y=20:fontsize=32:fontcolor=white" \
    -c:a copy text.mp4
    
    
    # ADD AUDIO TRACK (replace existing audio)
    ffmpeg -i input.mp4 -i music.mp3 \
    -map 0:v -map 1:a -c:v copy -shortest out.mp4
    
    
    # ADD AUDIO TRACK (mix with existing audio)
    ffmpeg -i input.mp4 -i music.mp3 -filter_complex \
    "[0:a][1:a]amix=inputs=2:duration=shortest[a]" \
    -map 0:v -map "[a]" out.mp4
    
    
    # CHANGE SPEED (2x video, drop audio)
    ffmpeg -i input.mp4 -vf "setpts=0.5*PTS" -an fast.mp4
    
    
    # SCALE / RESIZE
    ffmpeg -i input.mp4 -vf scale=1280:720 resized.mp4
    
    
    # SUBTITLES (burn in)
    ffmpeg -i input.mp4 -vf subtitles=subs.srt out.mp4
    

    Check out the docs for more https://ffmpeg.org/ffmpeg-doc.html


  • hard disagree, it depends on where you live.

    Which is at the current stage of globalism mostly a personal choise. I have friends that got here by hitchhiking on a container ship by asking the crew nicely and other who literally walked here for half a year, begging for food along the way.

    I moved countries with nothing but my documents and a backpack full of clothes. And I am off way better now, by using my brain and not being an asshole.

    And yeah, bit of survivorship bias, ngl. But it’s far from the bleak picture you drew. If you live in a shithole, go somewhere else.


  • I agree with the sentiment, but a 4 day work week(or 6h/day) won’t help at all, exactly because of this. Most people will just do more passive entertainment consumption in their newly increased freetime instead of informing themselves about some complex issues or learning something new.

    And at least where I live, the people that are smart enough to do what you want them to, already make enough money to work however they like and have more than enough free tkme for this kind of stuff. (I personally know some who are well off financially and all they do is <20h per week or freelance 3-5 months per year)





  • You are the exception, not the norm.

    Most people are on the bandwagon of buying the shiny new thing with a bigger version number once every year or two (even when the old one still works perfectly).

    The mecha comet is one of those devices that get hyped up among the nerds, but after a month 90%of them will either gather dust on a shelf or end up on the second hand market for cheap. You can see the same pattern in many nieche hardware subcultures, linux phones, flipper zero, raspberry pis, various digital music gadgets, AI bs hardware etc.

    (I have like 20 random things like that rotting in a box, just to be transparent)








  • Magic earth is great

    is was

    1 Star rating in the play store since december update

    And even before that, it had wrong POI all the time and didn’t update osm data to stay up to date.

    I tried every open source app I could find, but none of the open source ones have live traffic, which makes them completely useless for where I live. I honestly don’t understand why we can’t opt-in crowdsource that.




  • It does sound like one, but it isn’t. Ignoring the differences in UX:

    Passkey

    • Per-service key pair, unique per domain, Identity bound only to that specific account on that site
    • Challengeresponse via WebAuthn
    • Trust anchored only in the target service (no external CA)
    • Private key sealed in OS / secure hardware keystore

    Certificate login

    • Single global identity usable across many services
    • TLS client authentication with certificates
    • Trust established via certificate authorities and chain validation
    • Private key stored in exportable file or smartcard