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

FFmpeg H.264 decoder not found #95

Closed
anhtu-phan opened this issue Nov 12, 2023 · 4 comments
Closed

FFmpeg H.264 decoder not found #95

anhtu-phan opened this issue Nov 12, 2023 · 4 comments

Comments

@anhtu-phan
Copy link

anhtu-phan commented Nov 12, 2023

Hello,

I am trying to get video feed from one of other participant through track_subscribed event (as code below)

async def receive_frames(stream: rtc.VideoStream):
       async for frame in video_stream:
            print(len(frame))

@room.on("track_subscribed")
def on_track_subscribed(track: rtc.Track, publication: rtc.RemoteTrackPublication, participant: rtc.RemoteParticipant):
        if track.kind == rtc.TrackKind.KIND_VIDEO:
            nonlocal video_stream
            if video_stream is not None:
                # only process the first stream received
                return

            print(f"subscribed to track: {track.name} pub id {publication.sid}")
            video_stream = rtc.VideoStream(track)
            task = asyncio.create_task(receive_frames(video_stream))
            tasks.add(task)
            task.add_done_callback(tasks.remove)`

But I got the error below and does not receive any frame

[2023-11-12T12:03:51Z ERROR libwebrtc] (h264_decoder_impl.cc:312): FFmpeg H.264 decoder not found.
[2023-11-12T12:03:51Z ERROR libwebrtc] (decoder_database.cc:148): Failed to initialize decoder.

I am using python3.10 and latest version of LiveKit-sdk (install through pip install livekit and pip install livekit-api

Could you please guide me how to fix this error.

Thank you!

@davidzhao
Copy link
Member

related to livekit/rust-sdks#169

@anhtu-phan
Copy link
Author

anhtu-phan commented Nov 13, 2023

@davidzhao thanks for your answer,

it means that it is the bug of the library and have not yet had the solution yet?

@davidzhao
Copy link
Member

yes, we are aware of the issue and will have a fix soon.

@theomonnom
Copy link
Member

Fixed in rtc-v0.6.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants