Skip Navigation

Posts
124
Comments
254
Joined
5 yr. ago

cultural reviewer and dabbler in stylistic premonitions

  • just post it on lemmy world as a meme, copypaste a comment that makes the code better along with the original code into the AI agent

    I'm curious if you succeeded with this approach here - have you gotten your LLM to produce a bash function which you can use without needing to understand how to specify an ffmpeg filename pattern yet?

     
        
       segment, stream_segment, ssegment
           Basic stream segmenter.
    
           This  muxer  outputs  streams  to  a number of separate files of nearly
           fixed duration. Output filename pattern can be set in a fashion similar
           to image2, or by using a "strftime" template if the strftime option  is
           enabled.
    
           "stream_segment"  is  a variant of the muxer used to write to streaming
           output formats, i.e. which  do  not  require  global  headers,  and  is
           recommended  for  outputting  e.g.  to  MPEG transport stream segments.
           "ssegment" is a shorter alias for "stream_segment".
    
           Every segment starts with a keyframe of the selected reference  stream,
           which is set through the reference_stream option.
    
           Note  that if you want accurate splitting for a video file, you need to
           make the input key frames  correspond  to  the  exact  splitting  times
           expected  by  the  segmenter,  or  the segment muxer will start the new
           segment with the key frame found next after the specified start time.
    
           The segment muxer works best with a single constant frame rate video.
    
           Optionally it can generate a list of the created segments,  by  setting
           the   option   segment_list.   The   list  type  is  specified  by  the
           segment_list_type option. The entry filenames in the segment  list  are
           set by default to the basename of the corresponding segment files.
    
           See  also  the hls muxer, which provides a more specific implementation
           for HLS segmentation.
    
           Options
    
           The segment muxer supports the following options:
    
    [...]
    
      

    From the image2 section, here is how the filename pattern works:

     
        
               sequence
                   Select  a  sequence pattern type, used to specify a sequence of
                   files indexed by sequential numbers.
    
                   A sequence pattern may contain the string "%d" or "%0Nd", which
                   specifies  the  position  of  the  characters  representing   a
                   sequential  number  in each filename matched by the pattern. If
                   the form "%d0Nd" is used, the string representing the number in
                   each filename is 0-padded and N is the total number of 0-padded
                   digits representing the number. The literal character  '%'  can
                   be specified in the pattern with the string "%%".
    
                   If  the  sequence  pattern  contains  "%d" or "%0Nd", the first
                   filename of the file list specified by the pattern must contain
                   a  number  inclusively  contained  between   start_number   and
                   start_number+start_number_range-1,   and   all   the  following
                   numbers must be sequential.
    
                   For example the pattern "img-%03d.bmp" will match a sequence of
                   filenames  of   the   form   img-001.bmp,   img-002.bmp,   ...,
                   img-010.bmp,  etc.;  the  pattern "i%%m%%g-%d.jpg" will match a
                   sequence of filenames of  the  form  i%m%g-1.jpg,  i%m%g-2.jpg,
                   ..., i%m%g-10.jpg, etc.
    
      

    And btw, the ffmpeg-formats manual does also include examples:

     
        
           Examples
    
           •   Remux the content of file in.mkv to a list of segments out-000.nut,
               out-001.nut, etc., and write the  list  of  generated  segments  to
               out.list:
    
                       ffmpeg -i in.mkv -codec hevc -flags +cgop -g 60 -map 0 -f segment -segment_list out.list out%03d.nut
    
           •   Segment  input  and  set  output  format  options  for  the  output
               segments:
    
                       ffmpeg -i in.mkv -f segment -segment_time 10 -segment_format_options movflags=+faststart out%03d.mp4
    
           •   Segment the input file according to the split points  specified  by
               the segment_times option:
    
                       ffmpeg -i in.mkv -codec copy -map 0 -f segment -segment_list out.csv -segment_times 1,2,3,5,8,13,21 out%03d.nut
    
           •   Use  the  ffmpeg force_key_frames option to force key frames in the
               input at the specified location, together with the  segment  option
               segment_time_delta  to account for possible roundings operated when
               setting key frame times.
    
                       ffmpeg -i in.mkv -force_key_frames 1,2,3,5,8,13,21 -codec:v mpeg4 -codec:a pcm_s16le -map 0 \
                       -f segment -segment_list out.csv -segment_times 1,2,3,5,8,13,21 -segment_time_delta 0.05 out%03d.nut
    
               In order to force key frames on  the  input  file,  transcoding  is
               required.
    
           •   Segment the input file by splitting the input file according to the
               frame numbers sequence specified with the segment_frames option:
    
                       ffmpeg -i in.mkv -codec copy -map 0 -f segment -segment_list out.csv -segment_frames 100,200,300,500,800 out%03d.nut
    
           •   Convert  the  in.mkv  to  TS segments using the "libx264" and "aac"
               encoders:
    
                       ffmpeg -i in.mkv -map 0 -codec:v libx264 -codec:a aac -f ssegment -segment_list out.list out%03d.ts
    
           •   Segment the input file, and create an M3U8 live  playlist  (can  be
               used as live HLS source):
    
                       ffmpeg -re -i in.mkv -codec copy -map 0 -f segment -segment_list playlist.m3u8 \
                       -segment_list_flags +live -segment_time 10 out%03d.mkv
    
    
      

    It is actually possible to figure out how to do this and many other ffmpeg tasks even without internet access :)

  • it's not obvious but, i'm pretty sure this meme (and its creator's vehement opposition to rust) is in fact substantially motivated by queerphobia.

  • Deleted

    Permanently Deleted

    Jump
  • Cut off from several instances

    which instances?

  • I can tell you that the GitHub code isn’t the code that’s used

    really? given that the license is AGPL and they do have some external contributors, they shouldn't be running an unpublished branch of the code!

  • look at their responses in the .ml cross-post,

    that post is now deleted, but you can see their modlog here

  • i guess "bring your watch" implies a lack of good tools for profiling C++ on Linux?

  • It’s because it’s got Roman in the name, isn’t it?

    also Calibri is a humanist sans-serif font

  • edit: this post title said 'que' when i first posted this comment, but was later edited

  • yeah, but i don't understand why this site isn't republishing in full all the files they've obtained and instead is only making the data available to query through them

  • in b4 haveibeenhaveibeenflocked.

    they have a list of their current collection of 239 .csv files but sadly don't appear to let you actually download them to query offline

  • Deleted

    Permanently Deleted

    Jump
  • Phew! I am extremely relieved to find out those videos are fake.

    It's pretty fucked up of TikTok to have tricked us like that, but I'm sure under Larry Ellison's new leadership they'll sort things out.

  • WHY???

    Jump
  • Deleted

    Permanently Deleted

    Jump
  • not the first time OP is raising questions like this 🤔

  • Go ahead and post the same link for Google job listings. I’ll wait.

    My comment was in response to your comments (bolded below) in this thread:

    I was already thinking of getting a Linux phone next, this is helping to seal the deal. Fuck Apple the genocide enablers.

    please do explain how Apple is doing anything here. If Israel wants to provide their military with iPhones they’re going to no matter what Apple does.

    They don’t have to do business with/in Israel.

    That still will not stop a nation state (especially Israel) from getting their hands on Apple devices.

    My point was not to say that Google is better than Apple here - in fact, unlike Apple (as far as I know), Google has actually built AI tools specifically tailored for Israel's genocidal business requirements.

    My point is that if Apple wanted to boycott a country (which in the case of Israel they obviously don't, which job listings at their R&D centers are just one of many points of evidence of) it would actually make it difficult-to-impossible for any substantial part of the boycotted country's government to rely on using iPhones.

    (Unlike Android derivatives which can easily be used without direct reliance on Google's services...)

    As an aside, while I would not use iOS (due to it being proprietary), it is hard to dispute that (for most adversaries, at least) compromising it is generally much more expensive/difficult/unlikely than Android. So, given that Apple is very friendly to them, the IDF's policy decision to use iPhones makes sense.

  • Physically obtaining the devices is insufficient; they need ongoing software updates and other network services too.

    The IDF could/would absolutely not be doing this if they did not trust that Apple is a very committed partner.

    You can also observe from Apple's job listings that they are.

  • Linux @lemmy.ml

    2024 Linux and free software timeline

    lwn.net /Articles/1004204/
  • RISC-V @lemmy.ml

    China to publish policy to boost RISC-V chip use nationwide, sources say

    www.reuters.com /technology/china-publish-policy-boost-risc-v-chip-use-nationwide-sources-2025-03-04/
  • Technology @lemmy.world

    Microsoft has pulled back on over a gigawatt of planned data center capacity, suggesting that they do not think there is a growth future in generative AI

    www.wheresyoured.at /power-cut/
  • Technology @lemmy.ml

    Microsoft has pulled back on over a gigawatt of planned data center capacity, suggesting that they do not think there is a growth future in generative AI

    www.wheresyoured.at /power-cut/
  • Comics @lemmy.ml

    Wacky 90s fads

  • Technology @lemmy.ml

    The Shape of a Mars Mission

    idlewords.com /2025/02/the_shape_of_a_mars_mission.htm
  • Self Hosted - Self-hosting your services. @lemmy.ml

    two OpenSSH vulnerabilities fixed: one allowed MITM against clients which had enabled VerifyHostKeyDNS, the other allowed pre-auth DoS

    blog.qualys.com /vulnerabilities-threat-research/2025/02/18/qualys-tru-discovers-two-vulnerabilities-in-openssh-cve-2025-26465-cve-2025-26466
  • Technology @lemmy.world

    "Building a Safer Matrix" - an update from The Matrix.org Foundation about "Trust & Safety", content moderation, and their evolving anti-abuse efforts

    matrix.org /blog/2025/02/building-a-safer-matrix/
  • Technology @lemmy.world

    AI Needs Your Help!

    savethe.ai
  • politics @lemmy.world

    You Didn’t Build That: How NPR's "How I Built This" podcast contributes to the devaluation of workers’ lives

    www.currentaffairs.org /news/2018/12/you-didnt-build-that
  • RISC-V @lemmy.ml

    China's SpacemiT develops "VitalStone V100" 64-core RISC-V datacenter CPU on 12nm

    www.tomshardware.com /pc-components/cpus/chinas-spacemit-develops-64-core-risc-v-datacenter-cpu-12nm-chip-allegedly-performs-like-a-10-year-old-xen-or-opteron-but-with-higher-core-count
  • Not The Onion @lemmy.world

    US Senator introduces legislation which would make it illegal to download AI models from China, with penalties of up to 20 years in jail, a million dollar fine, or both

    www.404media.co /senator-hawley-proposes-jail-time-for-people-who-download-deepseek/
  • Fediverse @lemmy.world

    Free Our Feeds: "it will take independent funding and governance to turn Bluesky’s underlying tech—the AT Protocol—into something more powerful than a single app"

    freeourfeeds.com
  • Not The Onion @lemmy.world

    WordPress.org's login page demands you pledge loyalty to pineapple pizza

    mashable.com /article/wordpress-pineapple-pizza-lawsuit
  • World News @lemmy.ml

    Philippine Vice President Sara Duterte said Saturday she has contracted an assassin to kill President Ferdinand Marcos Jr, his wife, and the House of Representatives speaker, if she herself is killed

    www.cbsnews.com /news/sara-duterte-ferdinand-marcos-jr-philippines-assassination-threat/
  • Not The Onion @lemmy.world

    RFK Jr. Says He’ll Send People Taking Adderall to Labor Camps

    futurism.com /neoscope/rfk-jr-adderall-labor-camps
  • Not The Onion @lemmy.world

    Joe Biden bites several babies at Halloween event

    www.newsweek.com /joe-biden-bites-several-babies-halloween-event-1977799
  • Cryptography @lemmy.ml

    "The sins of the 90s": Questioning a puzzling claim by Meredith Whittaker about mass surveillance

    blog.cr.yp.to /20241028-surveillance.html
  • Cryptography @lemmy.ml

    NIST Announces 14 Candidates to Advance to the Second Round of the Additional Digital Signatures for the Post-Quantum Cryptography Standardization Process

    csrc.nist.gov /News/2024/pqc-digital-signature-second-round-announcement
  • Technology @lemmy.world

    China’s infosec leads accuse Intel of NSA backdoor, cite chip security flaws

    www.theregister.com /2024/10/16/china_intel_chip_security/