ffmpeg how to get start_time and start_pst to 0 - ffmpeg

ffprobe showed that one of our videos has a start time that is incorrect, 2.1 (it has to be 0).
Does anybody know hot go get start_pst and start_time to 0?
I have been searching for hours and i did not yet find a way to force that to become 0.

Related

average miscalculated on pagination/export

I am having trouble when using aggregators with avg because it keeps dividing the last result by the quantity every time pagination goes back or export occurs.
So the 1st time on the page/export the avg is right and every subsequent export/page back the last result gets divided again by the number of rows.
That only happens with more than one xDimension.
Also in the export at each export each summary header is repeated X times exported.
Anyone experienced that? jqgrid 5.3.0.
Edit: (image removed, example removed)
The example help to resolve the problem. Thank you. This was a bug and it is fixed. You can get the fix from GitHub the code is rebuild ed

What is opt_initialTime relative to?

I am calling player.load(protocol, 17800) for live audio stream (duration Infinity). I want to start 17800 seconds after the timestamp of the first segment based on (#EXT-X-PROGRAM-DATE-TIME).
The player is not starting in 17800 seconds. I am off by about 7 minutes. The playlist manifest is 5 hours long. I want to start close to live but not necessarily at the live point. Is there a way to do this?
I do not know what opt_initialTime is relative to? I assume the first segment of the playlist that is pulled. Can someone from Google explain how the google cast media player handles that second parameter of load?
Based from this documentation, opt_initialTime is the time from which to start the playback in seconds. This parameter is used in load and preload methods.
From this link, it discussed how are the load(opt_protocol, opt_initialTime) and preload(opt_protocol, opt_initialTime) supposed to work in the Media Player Library.
Our testing shows that load with an initial time specified works. Preload with an initial time works by downloading segments as specified by the initial time. If that is then followed by a load then that takes precedent and will start the playback from the beginning.

AVAudioPlayer not playing from start of file

I have an application using AVFoundation that plays use an mp3 sound file as a sound effect. It's recorded length is 90 seconds long. However, I play it repeatedly, on and off dependant upon varying things, for different lengths of time by utilising the tickingSounds.play() and tickingSounds.stop(). It seems however once I get to 90 seconds that it won't play anymore. I am assuming the play() command resumes from where I last stopped it?
My question is how do I reset it play position or am I missing something else?
You should set:
numberOfLoops
Set the Property numberOfLoops to -1 and it would go into infinite loop.
numberOfLoops
The number of times a sound will return to the beginning, upon reaching the end, to repeat playback.
#property NSInteger numberOfLoops Discussion A value of 0, which is the default, means to play the sound once. Set a positive integer value to specify the number of times to return to the start and play again. For example, specifying a value of 1 results in a total of two plays of the sound. Set any negative integer value to loop the sound indefinitely until you call the stop method.
Availability Available in iOS 2.2 and later. Declared In AVAudioPlayer.h

VLCj get Snapshot at the last millisecond

I'm using VLCj 2.4.1 and want to take screenshot at the last millisecond of the video. Usually I just do
getMediaPlayer().setTime(someTime);
getMediaPlayer().getSnapshot();
and it works. But if someTime is >= getMediaPlayer().getLength()-120 (I get to 120ms through experimentation) VLCj doesn't respond (video position stays the same).
If however someTime is in range 0-getMediaPlayer().getLength()-120 everything works as expected.
Where is the problem? Why are those ~120ms "missing"?
I "solved" the problem with completely different program/library - Xuggle for Java. It works flawlessly - see DecodeAndCaptureFrames.java

How can I slow down .avi files when creating them from Mathematica?

I have created a list of plots that I want to run as a movie.
list11 = {pic0, pic001, pic01, pic02, pic05, pic1, pic2, pic5, pic10};
First I created an animation which I slowed down to 1 frame per second using the following code:
ListAnimate[list11, AnimationRate -> 1]
I now wanted to export this to an avi file so I tried the following:
Export["periodic.avi", ListAnimate[list11, 1]]
However the result of this was a movie that played too fast (I think it was playing at the default total duration of 5 seconds rather than the 9 that I wanted)
I then tried to export the list directly:
Export["periodic2.avi", list11]
This however went even faster again (the whole thing was finished in about 1 second)
Looking in the help files it said that there was an advanced export option called "framerate", so I tried:
Export["periodic2.avi", list11,"framerate"->1]
But this just gave me the exact same output as the previous .avi file (it seemed that the framrate option was completely ignored because I tried different values instead of 1 but the output was always the same speed).
Can anyone enlighten me on how I can control the animation speed of the .avi file?
Mathematica is case sensitive."framerate" should be written as "FrameRate".

Resources