Close Menu
  • Home
  • AI
  • Big Data
  • Cloud Computing
  • iOS Development
  • IoT
  • IT/ Cybersecurity
  • Tech
    • Nanotechnology
    • Green Technology
    • Apple
    • Software Development
    • Software Engineering

Subscribe to Updates

Get the latest technology news from Bigteetechhub about IT, Cybersecurity and Big Data.

    What's Hot

    One Day with Our Customers: Driving better outcomes through customer centricity

    April 20, 2026

    DTCoreText 2.0 | Cocoanetics

    April 20, 2026

    Vercel confirms breach as hackers claim to be selling stolen data

    April 19, 2026
    Facebook X (Twitter) Instagram
    Facebook X (Twitter) Instagram
    Big Tee Tech Hub
    • Home
    • AI
    • Big Data
    • Cloud Computing
    • iOS Development
    • IoT
    • IT/ Cybersecurity
    • Tech
      • Nanotechnology
      • Green Technology
      • Apple
      • Software Development
      • Software Engineering
    Big Tee Tech Hub
    Home»iOS Development»javascript – Client-side video crop + audio mux on iOS Safari with HEVC — any viable approach?
    iOS Development

    javascript – Client-side video crop + audio mux on iOS Safari with HEVC — any viable approach?

    big tee tech hubBy big tee tech hubMarch 22, 2026002 Mins Read
    Share Facebook Twitter Pinterest Copy Link LinkedIn Tumblr Email Telegram WhatsApp
    Follow Us
    Google News Flipboard
    javascript – Client-side video crop + audio mux on iOS Safari with HEVC — any viable approach?
    Share
    Facebook Twitter LinkedIn Pinterest Email Copy Link


    I’m building a web app where users upload a video, the app crops the first 60 seconds client-side, extracts audio for server-side AI processing, then muxes the returned audio back into the cropped video. This must work on mobile including iOS.

    The problem

    iPhones record HEVC (H.265) by default. Every client-side approach I’ve tried fails on iOS Safari for large HEVC files:

    WebCodecs:

    VideoDecoder.isConfigSupported({ codec: "hev1..." }) → false
    ffmpeg.wasm:    fetchFile() copies entire file to JS heap → OOM (tab crash) 
    captureStream:  video.captureStream() not supported on iOS Safari
    canvas:         must decode HEVC frames → ~8MB × 5 frame buffer → OOM
    

    File.slice() works for byte-level cropping with no decode, but I still need to mux a new audio track in afterward — which brings the same memory constraints back.

    What works

    – iOS + H.264: WebCodecs pipeline works fine (decode → re-encode at 720p via VideoEncoder → mp4box.js mux)
    – Android Chrome: WebCodecs or ffmpeg.wasm both work

    What I’ve considered

    1. Extract audio-only via mp4box.js + AudioDecoder (AAC is always supported even on iOS HEVC) — solves the crop step, not the mux step
    2. Server-side mux — works but adds latency and bandwidth
    3. mp4box.js container-level audio track replacement — still requires loading moov + mdat into memory

    Question

    Is there any iOS Safari 16.4+ web API that allows replacing the audio track in an MP4/MOV container without decoding video frames? Or any memory-safe approach to mux new audio into a large HEVC file client-side?

    Or is server-side mux the only realistic option here?



    Source link

    Approach audio Clientside Crop HEVC iOS JavaScript mux Safari viable Video
    Follow on Google News Follow on Flipboard
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email Copy Link
    tonirufai
    big tee tech hub
    • Website

    Related Posts

    DTCoreText 2.0 | Cocoanetics

    April 20, 2026

    ios – Xcode can’t find headers file from added frameworks

    April 19, 2026

    How I use FlowDeck to let my AI agent build and run my apps – Donny Wals

    April 18, 2026
    Add A Comment
    Leave A Reply Cancel Reply

    Editors Picks

    One Day with Our Customers: Driving better outcomes through customer centricity

    April 20, 2026

    DTCoreText 2.0 | Cocoanetics

    April 20, 2026

    Vercel confirms breach as hackers claim to be selling stolen data

    April 19, 2026

    The 12-month window | TechCrunch

    April 19, 2026
    Timer Code
    15 Second Timer for Articles
    20
    About Us
    About Us

    Welcome To big tee tech hub. Big tee tech hub is a Professional seo tools Platform. Here we will provide you only interesting content, which you will like very much. We’re dedicated to providing you the best of seo tools, with a focus on dependability and tools. We’re working to turn our passion for seo tools into a booming online website. We hope you enjoy our seo tools as much as we enjoy offering them to you.

    Don't Miss!

    One Day with Our Customers: Driving better outcomes through customer centricity

    April 20, 2026

    DTCoreText 2.0 | Cocoanetics

    April 20, 2026

    Subscribe to Updates

    Get the latest technology news from Bigteetechhub about IT, Cybersecurity and Big Data.

      • About Us
      • Contact Us
      • Disclaimer
      • Privacy Policy
      • Terms and Conditions
      © 2026 bigteetechhub.All Right Reserved

      Type above and press Enter to search. Press Esc to cancel.