Coder Social home page Coder Social logo

Comments (7)

leandromoreira avatar leandromoreira commented on June 9, 2024

I was able to at least generate a playable vod mpd and its resource. :)

# vod - not segmented
packager input=/dkctf.mp4,stream=audio,output=dkctfa.mp4 input=/dkctf.mp4,stream=video,output=dkctfv.mp4 --profile on-demand --mpd_output dkctf.mpd

from shaka-packager.

kqyang avatar kqyang commented on June 9, 2024

Cool. Yes, there is actually an example for vod 1 input to 1 mpd.

packager \
  input=sintel.mp4,stream=audio,output=sintel_audio.mp4 \
  input=sintel.mp4,stream=video,output=sintel_video.mp4 \
--profile on-demand \
--mpd_output sintel_vod.mpd

As for (1), you'll need to use ffmpeg to transcode the input first.

edash-packager does not support rtmp yet. A rtmp protocol parser implementation similar to https://github.com/google/edash-packager/blob/master/packager/media/file/udp_file_posix.cc needs to be implemented. You are welcomed to contribute to this project if you know how to do it :)

For input (file in loop), are you saying playing the same file in loop? That is not really live. But You can generate a simulated "live" stream from the file using vlc: (I don't know if you can do the same thing with ffmpeg)

vlc input.mp4 --sout '#transcode{vcodec=h264,scale=Auto}:udp{mux=ts,dst=239.255.0.1:1234}'

Then you can package it, e.g.

packager 'input=udp://239.255.0.1:1234,stream=audio,init_segment=live-audio.mp4,segment_template=live-audio-$Number$.mp4'  \
         'input=udp://239.255.0.1:1234,stream=video,init_segment=live-video.mp4,segment_template=live-video-$Number$.mp4'  \
         --profile live --mpd_output live.mpd

from shaka-packager.

leandromoreira avatar leandromoreira commented on June 9, 2024

Thanks @kqyang , to implement rtmp I have to overcome two challenges:

  • learn rtmp better, maybe get some understanding from nginx-rtmp.
  • learn and apply c++

Anyway, thanks a lot and I'll try to find time to, at least, try it. ;)

from shaka-packager.

kqyang avatar kqyang commented on June 9, 2024

Thanks.

from shaka-packager.

kqyang avatar kqyang commented on June 9, 2024

Ooops, I forgot to reply to the other comments you have on distro package. No, that is not on purpose. I didn't create it just because I am not familiar with package distribution under Linux. It will be awesome if you can contribute your script and advise how to use it.

from shaka-packager.

leandromoreira avatar leandromoreira commented on June 9, 2024

@kqyang I'm gonna create a PR with the Dockerfile and some advices on how to use (README)

from shaka-packager.

kqyang avatar kqyang commented on June 9, 2024

Cool. Thanks.

from shaka-packager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.