-
Notifications
You must be signed in to change notification settings - Fork 175
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
Update to latest LPMS with audio-only segment support #1608
Conversation
Do you know why audio-only segments with the |
@yondonfu Yes that is my suspicion as well but I'm not sure. Looking through the LPMS go module again, I think we can set the muxer/format name through the But the extension change still seems like a cleaner way to do it as it's done for input segments as well which can't be configured with a transcoder option. Unless there was a specific reason we were keeping the segments extension-less? |
Hm looks like the file type extension was removed in favor of Would the switch to a |
Ah that makes sense
No idea, will need to deep dive and check. I do think we shouldn't mess with the input segment's extension now that I know it might mess our own detection done by this hashmap, I'll update the commit for that at least. But re: changing the extension for the output segment - it does not seem to break any of the existing unit tests, but I wonder if this is even validated. Let me try to manually transcode with MP4.
I agree. Phew just when I thought it would work with a simple bypass! |
Current Status: Streams don't fail for our usecase of initial-segments-with-0-video-frames. But playing such streams back is weird on different players, as many rely on the first segment's video stream to figure out the decode settings. @iameli I would highly recommend to check if this even helps the API product's usecase. I now wonder if this approach (of using copy-transcoder for the 0-frame segments) even makes sense. Maybe the transcoder should just provide a profile option to force explicit black frames and let the upstream handle the logic of checking for bad video-stream and forcing that option for particular segments. But supporting blank-frames in the transcoder wouldn't be trivial either, will need to create a dummy source using libavfilter etc. |
10cd7fa
to
07a730f
Compare
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚢
What does this pull request do? Explain your changes. (required)
Updates the LPMS module to the latest commit. See livepeer/lpms#204 for details.
Specific updates (required)
.tempfile.ts
extension instead of simple.tempfile
for the temporary in/out segs on the transcoder. The audio-only segments were failing to transcode without this as FFmpeg did not know what format to output to without the file extension help.How did you test each of these updates (required)
On local B/O/T setup:
curl
as the first segment of a stream.Does this pull request close any open issues?
Closes #1607
Checklist:
README and other documentation updatedOSX and devenvlinux./test.sh
pass