Error: ffmpeg exited with code 69: Conversion failed!

See original GitHub issue

Fluent-ffmpeg is no longer working with ytdl-core. My code was working before but now impossible to save as mp3 or even stream audio using ffmpeg.

My code using one flow for downloading and ffmpeg processing is here

My code using the accepted example is here

both have the same issue below

events.js:173
      throw er; // Unhandled 'error' event
      ^
Error: ffmpeg exited with code 69: frame=    0 fps=0.0 q=0.0 Lsize=       1kB time=00:00:00.00 bitrate=N/A speed=   0x    
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
Conversion failed!
    at ChildProcess.<anonymous> (/Users/medoror/workspace/slackbot/audio_clipper/node_modules/fluent-ffmpeg/lib/processor.js:182:22)
    at ChildProcess.emit (events.js:188:13)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
Emitted 'error' event at:
    at emitEnd (/Users/medoror/workspace/slackbot/audio_clipper/node_modules/fluent-ffmpeg/lib/processor.js:424:16)
    at endCB (/Users/medoror/workspace/slackbot/audio_clipper/node_modules/fluent-ffmpeg/lib/processor.js:544:13)
    at handleExit (/Users/medoror/workspace/slackbot/audio_clipper/node_modules/fluent-ffmpeg/lib/processor.js:170:11)
    at ChildProcess.<anonymous> (/Users/medoror/workspace/slackbot/audio_clipper/node_modules/fluent-ffmpeg/lib/processor.js:182:11)
    at ChildProcess.emit (events.js:188:13)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
fentcommented, Apr 15, 2020

np

the function looks looks. I would change it to a lambda for style purposes

filter: format => format.container === 'webm' && format.audioBitrate
0reactions
medororcommented, Apr 15, 2020

Ahhh I see that format.resolution being replaced by qualityLabel here. I made that swap. The video downloaded and was processed through ffmpeg but then there was no sound. Seemed like the formats that were being chosen had audioBitrate values set to null. So I ended up changing my filter function to the following which DID WORK

                        ytdl(this.link, {
                            filter: function (format) {
                                if (format.container === 'webm' && format.audioBitrate) {
                                    return true;
                                }
                            }
                        })

Feel free to close this issue. Thanks for your help and quick responses. If you have an clarifying explanations about the logic for chooseFormat and what configurations are ideal for audio only downloads please share!

Read more comments on GitHub >

github_iconTop Results From Across the Web

"FFmpeg failed to perform the conversion" error - how to fix?
Hi all,. My aim is to create a noise sensor, that will give some sort of output if a sound is recorded that...
Read more >
Video merge using ffmpeg issue - Stack Overflow
Error ffmpeg exited with code 1: Error reinitializing filters! Failed to inject frame into filter network: Invalid argument Error while ...
Read more >
Conversion fail – ffmpeg 4x - WordPress.org
The message you're getting from FFMPEG is that it's running out of RAM. I assume you don't have less RAM on your new...
Read more >
4268 (ffmpeg exits with zero exit code for partial input file)
I have this when passing a http input. ffmpeg -i ​http://some/thing ... If the source URI terminates prematurely, such as by me shutting...
Read more >
ffmpeg Conversion failed - Laracasts
i googled it but no answer yet. can someone help me out!! controller responsible for chunked file. Copy Code $receiver = new FileReceiver( ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found