Giter VIP home page Giter VIP logo

Comments (10)

Anime4000 avatar Anime4000 commented on September 17, 2024

This likely issue on FFmpeg and Filesystem currently, setting Temp folder on FAT32 not recommended

from ifme.

 avatar commented on September 17, 2024

I'm running on NTFS. I think the error is with the wav format itself. Looking at the ffmpeg code it just spits out an error if the wav file size reaches a defined limit in the header.

Anyways this is an interesting problem, any DTS audio in a 2+ hour movie will not be processed correctly.

from ifme.

Anime4000 avatar Anime4000 commented on September 17, 2024

WAV files are usually stored uncompressed, which means that they can get quite large, but they cannot exceed 4 gigabytes due to the fact that the file size header field is a 32-bit unsigned integer (32 bit file length means a maximum of 4 gigs).

I think, change to need pipe method directly to audio encoder, instead of generate wav first.

from ifme.

 avatar commented on September 17, 2024

Yep, that would be a good solution.

from ifme.

Anime4000 avatar Anime4000 commented on September 17, 2024

Yea... before I plan to do this, found out some encoder didn't support pipe/stdin.
Now best time to change, cons is, cannot show current %

for audio, I think no need to worry about progress and time remaining

from ifme.

thefinaldegree avatar thefinaldegree commented on September 17, 2024

Maybe do some simple maths first before starting encode, to select whether to pipe or not? Or you could split the audio file when it hits 4 GB?

from ifme.

thefinaldegree avatar thefinaldegree commented on September 17, 2024

By simple maths I mean something like:
Estimated Filesize in KB = ( ( Num-channels * Average-KbpsBitrate-for-single-channel ) * length-in-seconds ) / 8

The Bitrate might be something around 1100Kbps for a single channel? You might have to do some testing, but using that number and a movie that's 2hr14min43sec long with 6.1:

( ( 7 * 1100 ) * 8023 ) / 8 = 7,722,137.5 KB = 7.3644 GB

Then you'd know to either split the file, or pipe it instead.

from ifme.

Anime4000 avatar Anime4000 commented on September 17, 2024

That also good solution, but with pipe also reduce Disk I/O.
Doom9 forums says:

No stdin = useless for me if I can't use with Virtualdub's external encoder.

from ifme.

Anime4000 avatar Anime4000 commented on September 17, 2024

From now on, IFME using pipe (signed & little endian)

from ifme.

Anime4000 avatar Anime4000 commented on September 17, 2024

instruct FFmpeg to use -acodec pcm_s16le -f wav for example, pipe with wav header

from ifme.

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.