How to display time stamp with circle player - time

I want to display total audio duration and remaining time of audio with Jplayer (Circle Player). Is there any specific class with div which I should add in my code?

Related

How to find the position of a given image in the video time frame

I was given two inputs one is an image taken with a cell phone. And the other is a video file. The image is taken from the monitor while video is playing.
If you have these two inputs can you find the exact location of the image in the video time frame.
as an example:
here is an image captured at the time 10:00 of the video:
https://www.youtube.com/watch?v=630Q9mVfE48
Thanks
Nuri

Can't change Animation frame number in unity3D

I am trying to create an button animation in unity
When i create the clip,
frame number stays on 60 by default
then i change the frame number, but after moving the mouse pointer it go back to 60
i tried in again again by deleting the clip and recreating the clip
but no effect
still the same
for better understanding
1. when i create the clip
2. changing the frame number 60 to 0
3. after moving mouse pointer it back again to 60
You're trying to change total frame number.
Yes, It's in Unity 5.6 and upper versions, so that can be confusing.
If you look above to your sample 60 bar, you can see a place where 0 is typed:
That's your current frame
and you can make your desired animation changing the current time frame.
That number is the Sampling Rate of the animation, i.e. how many frames of that animation clip are "executed" in a second.
60 means the animation runs at 60fps, or 1 frame every 16.6ms, so the general formula is:
Sample = Number of frames / second
Hence, you can't set that value to 0, an animation that runs at 0 fps is a still frame.
To get a specific frame of the animation, you need to move the red vertical line or click on a specific time on the timeline bar.

Delay an image transition in ffmpeg

How can I delay image left to right transition in ffmpeg?
[1:v]format=rgba,fade=in:st=30:d=0.3:alpha=1,fade=out:st=40:d=0.3:alpha=1[png];[vid][png]overlay=x='min(-(30-0.3)*w+2*w*t/3,15)':y=3*(H-h)/4-0.0:shortest=1
Because I start fade in at 30 sec, I set initial position of x to 27.7 and speed to 2*w*t/3. But the image does not appear at 30 seconds. What am I doing wrong?
Let's say that the image should be at x=15 when the fade-in finishes. So, at 30.3 s, it's at x=15, and it's traveling at w*2/3 /second. So, in 30+0.3 seconds, it will have traveled 30.3*w*(2/3), so starting point is 15 - (30+0.3)*w*2/3
Add the movement to that.
x='min(15-(30+0.3)*w*2/3+w*t*2/3,15)'

ffmpeg determine frame number for fade filter

I am looking for an easy way to set the time points for the fade filter. Particularly for the fade-out at the end. At best would be a time based format. I understand the fade filter works based on frames. But is there a way to change that to time stamp? Particularly in the end I have a hard time getting the number of the last frame. Some means to tell the fade filter to start the fade 0.5sec before the end would be awesome. Maybe something like:
-filter:v 'fade=out:-0.5:0.3'
Read : 'start fade out 0.5sec before end and have fade take 0.3sec. I.e. have 0.2sec of black at the end.
I would also be OK if this would be in frame number counts.
My grief right now is that the frame count i.e. reported by ffprobe seems to be somewhat half of what it really is. A fade filter applied on the count provided by ffprobe turn my video to black about half-way through the clip. I'm not sure what I'm missing there.
Again my primary question is: How to determine the correct frame number for the fade out filter?
Thanks,
Gert
The fade filter does take time input: e.g. -vf fade=out:st=23:d=2. This starts a 2-second fade-out at t=23 seconds

FFmpeg fade audio to volume

I have say 5 segments of audio and i want to set each segment to a specific volume but when i concat the segments i'd like there to be a fade from previous volume to the next volume.
I see afade filter is for simply fading in/out. I see acrossfade which would more than likely be desirable except that the video the audio will play over will not be cross-faded.
I'm wondering if this can be done with something like aeval or if there are any good ideas out there.
Maybe someone can explain this filter function or where to learn about the syntax:
Fade volume after time 10 with an annihilation period of 5 seconds:
volume='if(lt(t,10),1,max(1-(t-10)/5,0))':eval=frame
I realized i can use afade and just manipulate the start time of the fade by calculating the time it takes to fade out to the next volume on a linear scale.
So to fade to 50% volume on a 15 second video, i would do something like
afade=t=out:st=14:d=2
Meaning i start a 2 second linear fade with 1 second left of audio, therefor leaving it at 50% volume on finish.

Resources