Merge pull request #32 from leandromoreira/master

introduces docker for testing/development fixes #31
This commit is contained in:
Kongqun Yang 2015-09-30 15:21:44 -07:00
commit 5782ffdc81
4 changed files with 65 additions and 0 deletions

View File

@ -14,4 +14,5 @@
# Please keep the list sorted.
Google Inc. <*@google.com>
Leandro Moreira <leandro.ribeiro.moreira@gmail.com>
The Chromium Authors <*@chromium.org>

View File

@ -23,6 +23,7 @@
# Please keep the list sorted.
Joey Parrish <joeyparrish@google.com>
Leandro Moreira <leandro.ribeiro.moreira@gmail.com>
Kongqun Yang <kqyang@google.com>
Rintaro Kuroiwa <rkuroiwa@google.com>
Thomas Inskip <tinskip@google.com>

27
Dockerfile Normal file
View File

@ -0,0 +1,27 @@
FROM ubuntu:latest
ENV DEBIAN_FRONTEND noninteractive
# update, upgrade and install basic packages
RUN apt-get update && apt-get upgrade -y && apt-get clean
RUN apt-get install -y \
build-essential \
wget \
git \
python \
subversion
# install depot_tools http://www.chromium.org/developers/how-tos/install-depot-tools
RUN git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
ENV PATH /depot_tools:$PATH
# install edash-packager
RUN mkdir edash_packager
WORKDIR edash_packager
RUN gclient config https://www.github.com/google/edash-packager.git --name=src
RUN gclient sync
RUN cd src && ninja -C out/Release
ENV PATH /edash_packager/src/out/Release:$PATH
# your media for testing
RUN mkdir /medias

View File

@ -55,6 +55,42 @@ We have a [public mailing list](https://groups.google.com/forum/#!forum/edash-us
See https://github.com/google/edash-packager/blob/master/CONTRIBUTING.md for details.
# Using docker for testing/development #
[Docker](https://www.docker.com/whatisdocker) is a tool that can package an application and its dependencies in a virtual container that can run on different host operating systems.
1. [Install Docker.](https://docs.docker.com/installation/)
2. Build the image
```Shell
docker build -t edash github.com/google/edash-packager.git
```
3. Run the container (`your_media_path` should be your media folder)
```Shell
docker run -v /your_media_path/:/medias -it --rm edash
```
4. Make tests/experimentations
```Shell
# make sure you run step 3 and you're inside the container
# go to /medias folder
cd /medias
# VOD: mp4 --> dash
packager input=/medias/example.mp4,stream=audio,output=audio.mp4 \
input=/medias/example.mp4,stream=video,output=video.mp4 \
--profile on-demand --mpd_output example.mpd
# then you can leave the container
exit
# now you can access the mpd at `your_media_path`
```
#Design overview#