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

Livebooks 1.0 #267

Merged
merged 8 commits into from
Jan 29, 2024
Merged

Livebooks 1.0 #267

merged 8 commits into from
Jan 29, 2024

Conversation

bartkrak
Copy link
Contributor

@bartkrak bartkrak commented Jan 25, 2024

@bartkrak bartkrak self-assigned this Jan 25, 2024
@bartkrak bartkrak marked this pull request as draft January 25, 2024 13:18
@bartkrak bartkrak marked this pull request as ready for review January 25, 2024 14:28
@bartkrak bartkrak requested a review from FelonEkonom January 25, 2024 14:28
Comment on lines 1 to 12
# Livebook examples

This folder contains interactive livebook examples. To launch them you need to install livebook first.

## Installation

1. Install Livebook

It is recommended to install Livebook via command line ([see official installation guide](https://github.com/livebook-dev/livebook#escript)).

If livebook was installed directly from the official page, one should add `$PATH` variable to the Livebook environment:
![Setting path](./assets/path_set.png "Title")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this in guide? 1. in line 7 looks little bit weird

pipeline = RC.Pipeline.start!()
RC.Pipeline.exec_actions(pipeline, spec: structure, playback: :playing)
pipeline = RC.start!()
RC.exec_actions(pipeline, spec: structure)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
RC.exec_actions(pipeline, spec: structure)
RC.exec_actions(pipeline, spec: spec)

Comment on lines 20 to 24
def_output_pad(:output,
mode: :push,
flow_control: :push,
accepted_format: _any
)

Copy link
Member

@FelonEkonom FelonEkonom Jan 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the brackets from all pad definitions

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did it, but Livebook does some kind of auto-formatting and adds these brackets every time you just open the file in Livebook.

})
|> via_in(:video)
|> get_child(:player)

player = child(:player, %Membrane.Kino.Player.Sink{kino: kino})

structure = [source, playing_audio, playing_video, player]
{[spec: structure, playback: :playing], %{}}
{[spec: structure], %{}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{[spec: structure], %{}}
{[spec: spec], %{}}

You can rename structure to spec in similar places as well


audio_source =
child(:audio_source, %Membrane.Hackney.Source{
location: @audio_url,
hackney_opts: [follow_redirect: true]
})
|> child(:audio_parser, %Membrane.AAC.Parser{
in_encapsulation: :ADTS,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not a specialist, when it comes to AAC, but make sure, that it is safe, to remove this option

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In current version of acc parser this field no longer exists. Documentation says, correct acc stream format is supplied with the stream. And it works just fine

@bartkrak bartkrak requested a review from FelonEkonom January 25, 2024 17:28
Copy link
Member

@FelonEkonom FelonEkonom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Branch livebooks-1.0 can be merged into master

@bartkrak bartkrak merged commit f271baf into livebooks-0.11 Jan 29, 2024
@bartkrak bartkrak deleted the livebooks-1.0 branch January 29, 2024 11:50
@bartkrak bartkrak restored the livebooks-1.0 branch January 29, 2024 11:52
@bartkrak bartkrak deleted the livebooks-1.0 branch January 29, 2024 11:55
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

Successfully merging this pull request may close these issues.

2 participants