Code Monkey home page Code Monkey logo

Comments (9)

SamuelScheit avatar SamuelScheit commented on August 16, 2024

i'll have a look tomorrow

from puppeteer-stream.

SamuelScheit avatar SamuelScheit commented on August 16, 2024

You are writing to a .mp4file however the default format is webm.
Also can you send the pathToPageWithVideo value

from puppeteer-stream.

tiagocostafdm avatar tiagocostafdm commented on August 16, 2024

@Flam3rboy I've tried with webm and din't work either.
The pathToPageWithVideo I was testing with was https://www.rtp.pt/play/p8157/e518677/telejornal

from puppeteer-stream.

SamuelScheit avatar SamuelScheit commented on August 16, 2024

also note that chrome doesn't support mimeType video/mp4.
Have a look at the HTML5 MediaRecorder Options

from puppeteer-stream.

SamuelScheit avatar SamuelScheit commented on August 16, 2024

weirdly enough everything works with video/webm as mimeType and saving it as an .webm file

from puppeteer-stream.

tiagocostafdm avatar tiagocostafdm commented on August 16, 2024

so you got it to save a file with audio and video by setting the mimeType to video/webm and saving as webm?

from puppeteer-stream.

SamuelScheit avatar SamuelScheit commented on August 16, 2024

yes everything the same

from puppeteer-stream.

dazzzed avatar dazzzed commented on August 16, 2024

@Flam3rboy yes I got it just opened it with another player, thanks.
One more thing, how can I save it as mp3 audio only?

from puppeteer-stream.

SamuelScheit avatar SamuelScheit commented on August 16, 2024

only if the browser supports mp3 just specify the mimeType

from puppeteer-stream.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.