Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All transcoding jobs result in an error: Output format mp4 is not available #6426

Closed
CorpulentBrony opened this issue May 30, 2024 · 5 comments
Labels
Status: Waiting for answer Waiting issue author answer

Comments

@CorpulentBrony
Copy link

Describe the current behavior

Currently, all newly uploaded videos are failing transcoding with the message, "Output format mp4 is not available." I've attempted to do a simple re-encode and output to mp4 using ffmpeg but it does not fail, it only seems to fail when PeerTube processes them.

I was running version 6.0.1 but upgraded to version 6.1.0 hoping that would fix this issue but it did not have any effect.

Job: 8ce294ce-86b9-41b2-ab72-a221b1cc1868 Type: video-transcoding Processed on 5/30/24, 3:01:18.619 PM Finished on 5/30/24, 3:01:18.761 PM
--
{   "type": "new-resolution-to-hls",   "videoUUID": "388582ab-3dc0-4157-8a12-83702d0a6306",   "resolution": 360,   "fps": 25,   "copyCodecs": false,   "isNewVideo": false,   "deleteWebVideoFiles": false }
Error: Output format mp4 is not available
    at /var/www/peertube/versions/peertube-v6.1.0/node_modules/fluent-ffmpeg/lib/capabilities.js:589:21
    at nextTask (/var/www/peertube/versions/peertube-v6.1.0/node_modules/async/dist/async.js:5791:13)
    at next (/var/www/peertube/versions/peertube-v6.1.0/node_modules/async/dist/async.js:5799:13)
    at /var/www/peertube/versions/peertube-v6.1.0/node_modules/async/dist/async.js:329:20
    at proto.availableFormats.proto.getAvailableFormats (/var/www/peertube/versions/peertube-v6.1.0/node_modules/fluent-ffmpeg/lib/capabilities.js:513:14)
    at /var/www/peertube/versions/peertube-v6.1.0/node_modules/fluent-ffmpeg/lib/capabilities.js:568:14
    at nextTask (/var/www/peertube/versions/peertube-v6.1.0/node_modules/async/dist/async.js:5791:13)
    at Object.waterfall (/var/www/peertube/versions/peertube-v6.1.0/node_modules/async/dist/async.js:5802:9)
    at Object.awaitable [as waterfall] (/var/www/peertube/versions/peertube-v6.1.0/node_modules/async/dist/async.js:212:32)
    at proto._checkCapabilities (/var/www/peertube/versions/peertube-v6.1.0/node_modules/fluent-ffmpeg/lib/capabilities.js:565:11)
    at /var/www/peertube/versions/peertube-v6.1.0/node_modules/fluent-ffmpeg/lib/processor.js:298:14
    at nextTask (/var/www/peertube/versions/peertube-v6.1.0/node_modules/async/dist/async.js:5791:13)
    at Object.waterfall (/var/www/peertube/versions/peertube-v6.1.0/node_modules/async/dist/async.js:5802:9)
    at Object.awaitable [as waterfall] (/var/www/peertube/versions/peertube-v6.1.0/node_modules/async/dist/async.js:212:32)
    at proto._prepare (/var/www/peertube/versions/peertube-v6.1.0/node_modules/fluent-ffmpeg/lib/processor.js:295:11)
    at proto.exec.proto.execute.proto.run (/var/www/peertube/versions/peertube-v6.1.0/node_modules/fluent-ffmpeg/lib/processor.js:431:10)

Steps to reproduce

  1. Upload video
  2. Transcoding fails

Describe the expected behavior

Transcoding succeeds

Additional information

  • PeerTube instance:

    • URL: https://pony.tube/
    • Version: 6.1.0
    • NodeJS version: 18.16.0
    • Ffmpeg version: N-70079-gdf868bae23-static May 4 build (downgraded to this suspecting it was the issue, but it was not; issue also occurred in May 24 build)
  • Browser name, version and platforms on which you could reproduce the bug:

  • Link to browser console log if relevant:

  • Link to server log if relevant (journalctl or /var/www/peertube/storage/logs/):

@Chocobozzz
Copy link
Owner

Hi,

Can you try the latest ffmpeg stable version instead?

@Chocobozzz Chocobozzz added the Status: Waiting for answer Waiting issue author answer label May 31, 2024
@CorpulentBrony
Copy link
Author

I downgraded to ffmpeg 4.2.7 which is the newest version in apt for the version of Ubuntu I have.

I am getting the same error message.

@Chocobozzz
Copy link
Owner

Can you enable debug logs and find the line where PeerTube dumps the ffmpeg it uses?

@CorpulentBrony
Copy link
Author

CorpulentBrony commented Jun 4, 2024

Is it possible peertube somehow caches something to do with ffmpeg?
Upon restarting the peertube process to load the updated log.level parameter, it began working again.

@Chocobozzz
Copy link
Owner

Is it possible peertube somehow caches something to do with ffmpeg?

Yes, I think it's possible that ffmpeg-fluent, the library we use cached your ffmpeg capabilities (and so without the mp4 output support).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Waiting for answer Waiting issue author answer
Projects
None yet
Development

No branches or pull requests

2 participants