Open anarkrypto opened 2 years ago
This issue seems to be related to the VOD task runner so I've moved this to the appropriate repo. If this is not the case, feel free to update accordingly.
So I actually had this same problem yesterday with a BBB video, first because it had 3 tracks, being 2 of them audio tracks. I've fixed this immediate issue here: https://github.com/livepeer/task-runner/pull/23 That's not currently in production yet, but we should be deploying it sometime this week.
The other issue, which you would encounter next with that file, is that we only support the AAC audio codec. So you would have to transcode your file audio to AAC instead, which can be one with ffmpeg
as well. You can use a command like this, keeping all the audio tracks:
ffmpeg -i bbb_sunflower_1080p_30fps_normal.mp4 -map 0 -c:a aac -strict -2 -c:v copy -f mp4 bbb_1080p30fps_aac.mp4
While we don't deploy #23 to production, you can also remove one of the audio tracks from the file (as well as transcoding it to aac
). For that, you can simply remove the -map 0
flag to the command above, running instead:
ffmpeg -i bbb_sunflower_1080p_30fps_normal.mp4 -c:a aac -strict -2 -c:v copy -f mp4 bbb_1080p30fps_aac_1.mp4
Transcoding audio is also much cheaper than video, so these commands should be relatively quick (26s for that file on my run) 😄
Let me know if this fixes your issues!
Error Transcoding:
Using livepeer.com API:
import task failed. error: error processing ffprobe output: too many tracks in file: 3
Using livepeer-trascode:
Can't get info about file: 'aacparser: parse MPEG4AudioConfig failed(EOF)',
Video download: http://ftp.vim.org/ftp/ftp/pub/graphics/blender/demo/movies/BBB/bbb_sunflower_1080p_30fps_normal.mp4
MP4 Info: