Comments (7)
@dero could you please provide Quân with a few examples of the commands you’re using to generate the manifests when you’re back online.
from kino.
@derekherman I was following this tutorial to generate 3 different representations. I dont have much experience with video encoding so I just pretty much copied the script
Here's the link to the tutorial:
https://blog.infireal.com/2018/04/mpeg-dash-with-only-ffmpeg/
Here's the generated ffmpeg command for segmenting into chunks and generating manifest file:
ffmpeg -i D:\Hoc Tap\Project III\VideoStreaming\react-node-video-streaming\server\tmp\file_example_MP4_1920_18MG-
1639910101254\file_example_MP4_1920_18MG-1639910101255.mp4 -y -acodec aac -ac 2 -ar 44100 -vcodec libx264 -f dash
-preset veryfast -keyint_min 60 -g 60 -sc_threshold 0 -profile:v main -use_template 1 -use_timeline 1 -b_strategy 0 -bf 1 -map
0:a? -b:a 96k -filter_complex [0]format=pix_fmts=yuv420p[temp0];[temp0]scale=-2:240[A0] -map [A0]:v -b:v:0 350k
-filter_complex [0]format=pix_fmts=yuv420p[temp1];[temp1]scale=-2:480[A1] -map [A1]:v -b:v:1 700k
-filter_complex [0]format=pix_fmts=yuv420p[temp2];[temp2]scale=-2:720[A2] -map [A2]:v -b:v:2 2500k
D:\Hoc Tap\Project III\VideoStreaming\react-node-video-streaming\server\tmp\file_example_MP4_1920_18MG-1639910101254\file_example_MP4_1920_18MG-1639910101255.mpd
I honestly don't understand most of the things inside the command and just managed to run and generate the segments and manifest which I thought would run. Maybe there's something wrong with this command ? I'd be best if you could share some sample commands to correctly generate the segments and manifest :D
from kino.
@derekherman i'm really sorry if i keep asking for ffmpeg commands that you used but i really need them now to have a look since i'm doing a school project and the deadline is about to be due :( The streaming part is the core part of my project so I managed to set up everything but could not load chunk to the buffer. I'd very much appreciate it if you could provide (or ask s.o handling this part) some examples of the commands soon. Thank you for replying my issue!
from kino.
@quanhoang288 The commands used to generate the sample videos are a part of the posts that explain streaming:
See the "Example FFmpeg command" section in both of those posts. Do those help?
from kino.
@dero thanks a lot, i'll check it out and see if it works xD
from kino.
@dero I'm sorry for bothering again but it didn't seem to work for me. I was able to encode the video but it throws this error when trying to load the initialization segment to the buffer:
When I use the media tool in Chrome it gives me this error:
Invalid top-level ISO BMFF box type 0xbfbd6d6f
Could you give me some insights on this ? Thank you
from kino.
@derekherman could you help me take a look at the problem for a bit ? I reference kino generated manifests and they look similar to mine but somehow it still didnt work. Any insight would be appreciated
from kino.
Related Issues (20)
- Offline to Online: Partially downloaded file is paused when SW goes offline, but UI indicates download is continuing
- Video greyed out and cannot click "remove offline version" after hard reload (Ctrl-Shift-R) in offline mode HOT 2
- IndexDB not being freed up when removing offline video from within webapp HOT 3
- The app needs to handle 404s correctly
- Improve Lighthouse scores HOT 10
- Add code highlighting
- Create a guide for contributors
- Fix CORS issues HOT 5
- Improve firebase init command in README.md file HOT 5
- Display video artwork in the Media Session API
- Add linter for the Markdown with frontmatter support
- Autoplay research and implementation
- Button "Resume download" is not displayed when internet connection is cut while downloading a video HOT 1
- Multiple videos can be played at the same time when they're being played in PiP mode HOT 1
- Hide "Cast" button when there are no devices to cast HOT 1
- Continue download and cancel download buttons become irresponsive
- Stop first video when second video starts playing HOT 2
- Hard refresh required to get new content.
- HTML Samples are encoded when they shouldn't be
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kino.