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

How to control video start time and end time #9

Open
JenishaDalin opened this issue Dec 12, 2019 · 14 comments
Open

How to control video start time and end time #9

JenishaDalin opened this issue Dec 12, 2019 · 14 comments

Comments

@JenishaDalin
Copy link

Hi @duanyao

Is there any possibility to control video properties like video start time or end time from worker js.

@duanyao
Copy link
Owner

duanyao commented Dec 17, 2019

Do you mean seeking in a video? It is not implemented yet.

@JenishaDalin
Copy link
Author

JenishaDalin commented Dec 17, 2019

Thanks @duanyao ,
Yes, is there any possibilities to add seek time functionality myself or will it be available in next release?

@duanyao
Copy link
Owner

duanyao commented Dec 30, 2019

It is possible to implement seeking by calling ffmpeg API. e.g.
http://dranger.com/ffmpeg/tutorial07.html
You need some C/C++ skills.

This is a hobby project and has been out of my radar for a while. If people do need a new release, I'll consider it.

@duanyao duanyao mentioned this issue Dec 30, 2019
@JenishaDalin
Copy link
Author

Hi @duanyao ,

Yes we understand it is hobby project for you. but we need your help to complete this issue so even if you need any requirement from us we will do it and we are ready to pay for your time.

@duanyao
Copy link
Owner

duanyao commented Dec 31, 2019

So I will try to implement seeking this weekend.

@duanyao
Copy link
Owner

duanyao commented Dec 31, 2019

I found a similar project and it does support seeking:

https://github.com/sonysuqin/WasmVideoPlayer/
https://roblin.cn/wasm/

Is it enough for you?

@JenishaDalin
Copy link
Author

Hi @duanyao ,

Happy New year!!

Thanks for your reference.We will try to implement your reference.
meanwhile,
We built the codec-box successfully but I just have beginner level experience in c++.so if in case you have time kindly implement the start and end time option like trim.This is enough for our project requirement.

@JenishaDalin
Copy link
Author

Hi @duanyao ,

The reference which you give above link for decode the video is not suitable for our project.

Reason

  1. They support the h265 also called (High Efficient Video Coding) type of video to decode.

  2. Other types of video format is not supported in that.

If it is possible try to complete this issue within this weekend .

Is it Possible to contact you directy ?

@duanyao
Copy link
Owner

duanyao commented Jan 3, 2020

It is relatively easy to add support of other video formats (what formats do you need to support?). Just edit this file: https://github.com/sonysuqin/WasmVideoPlayer/blob/master/build_decoder.sh

--enable-decoder=hevc --enable-decoder=h264 --enable-decoder=aac # decoders
--enable-demuxer=mov # container formats. mov=.mov, .mp4, .3gp

I could start to implement seeking this weekend, but can't promise completion.

@JenishaDalin
Copy link
Author

Hi @duanyao,

I had cloned the github repo which you have mentioned above and build without error. Then am running the demo in my local machine but the demo didn't working.

After I tried the above compilation with --enable-demuxer=mov,mp4 and decoder --enable-decoder=h264 (https://github.com/sonysuqin/WasmVideoPlayer/blob/master/build_decoder.sh)

The build was completed without error. But the demo is not working and also the github demo url which you have mentioned above (#9 (comment)) not working

This one is not suitable for our project. So i will wait for your compilation.

@JenishaDalin
Copy link
Author

Hi @duanyao

Sorry for troubling,

Is there any possibility to contact you personally?

@duanyao
Copy link
Owner

duanyao commented Jan 7, 2020

My time budget on this project is limited. If you are looking for good tech support, I'd suggest you contact the author of https://github.com/sonysuqin/WasmVideoPlayer/ . I don't known this guy, but most Chinese programmers can speak English, so don't worry.

@JenishaDalin
Copy link
Author

JenishaDalin commented Jan 10, 2020

Hi, @duanyao,

Okay, thank you for spending your valuable time. Your coordination with me in past few days was very useful.

@JenishaDalin
Copy link
Author

Hi @duanyao ,

I have tried to implement seek functionalities in codecbxodecoder.cpp file but i can't implement yet. Kindly guide me where do implement seek method called av_seek_frame.

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

2 participants