Coder Social home page Coder Social logo

Comments (9)

lu-zero avatar lu-zero commented on July 3, 2024

from bmdtools.

calanor avatar calanor commented on July 3, 2024

I proved to disable audio clossing the audio parts with a if( audio.st ) but finally the video part also fails.
For now, I use an avconv audio filter to add audio silence to nut stream.

from bmdtools.

lad-admin avatar lad-admin commented on July 3, 2024

@calanor @lu-zero Can you share a solution to a play video file without audio ?

from bmdtools.

calanor avatar calanor commented on July 3, 2024

Add silence to input source:

avconv -vsync 1 -f lavfi -i aevalsrc=0 -i <source> -c:v rawvideo -pix_fmt uyvy422 -c:a pcm_s16le -ar 48000 -f nut -f_strict experimental -syncpoints none - | ./bmdplay -f pipe:0

from bmdtools.

lad-admin avatar lad-admin commented on July 3, 2024

Hi calanor,
Thank you for your suggestion, when I execute is this is the error I get.
Unknown input format: 'lavfi'
Segmentation fault (core dumped)

from bmdtools.

calanor avatar calanor commented on July 3, 2024

It seems that libav don't have aevalsrc audio filter.
Use ffmpeg instead avconv.

Tested without errors with ffmpeg .

from bmdtools.

lu-zero avatar lu-zero commented on July 3, 2024

You do not need to use any filter to have a silent audio though.

from bmdtools.

lad-admin avatar lad-admin commented on July 3, 2024

@calanor Hey thank you very much it solved the problem.

@lu-zero When ever I play a video file without audio I get no audio found and bmdplay will stop. After @calanor solution I was able to solve that.

from bmdtools.

lu-zero avatar lu-zero commented on July 3, 2024

The common way to add an audio track is to just take /dev/zero as audio input.
I agree that's sub-optimal.

from bmdtools.

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.