Gyan writes:
If a framerate value has been set then
-vf setpts=N/FR/TB
It worked!!! Thank you so much for your help, this is awesome.
I'm building an application that splits user-supplied videos into
frames - what
would I look for / did you look for in ffprobe output that
indicated
Right. I was under the impression that TB was not always available in
setpts because I tried the incorrect formula 'N*TB" on a short video and
I obtained pts=0 in all the frames. I forgot that TB is typically a very
small value and that the pts is rounded down to an integer value. Facepalm!
On 17-07-2019 12:08 AM, Stéphane Chauveau wrote:
It seems that the pts value depends of the stream time_base so the
formula 'N*30' is probably not valid in the general case.
So if FR is not available in you meg file then I propose the following:
Find the time_base value with
ffprobe
It seems that the pts value depends of the stream time_base so the
formula 'N*30' is probably not valid in the general case.
So if FR is not available in you meg file then I propose the following:
Find the time_base value with
ffprobe -hide_banner -show_streams -select_streams v input.mpg |
> On Jul 16, 2019, at 3:29 AM, Gyan wrote:
>
> On 16-07-2019 12:05 PM, Carl Eugen Hoyos wrote:
>>
>> Am 16.07.2019 um 03:26 schrieb Ted Park :
>>
$ ffmpeg -i video.mpg
...
Input #0, mpeg, from 'video.mpg':
Duration: 00:03:17.53, start: 95444.217689, bitrate: 3602 kb/s
>>>
The documenation to setpts says that the FR value may is only defined in
constant frame-rate videos.
If its does not exists in your mpeg file then you could try something
like 'setpts=N*30'
ps: the -vf argument in the first command in my previous message was
supposed to be showideo (so
In your ffmpeg output, all frames have the same time=26:19:06.00 and
that could indicate an overflow in the PTS (presentation time stamp)
values probably because your video is part of a very long video stream.
Add the filter showinfo to your command.
ffmpeg -i input.mpg -vf
Really? That is strange because your original log seems to indicate that
mutiple frames are decoded.
Did you try to generate a raw file instead of using a pipe as shown in
my first comment?
If so, what is the size of that raw file and can you successfully
inspect its content using the ffplay
Griffin Smith (12019-07-16):
> Unfortunately I can't legally.
The output of
ffprobe -show_streams -show_format -show_packets -show_frames FILE
would be the next best thing. You can add "-of compact" and trim similar
lines if there are.
Regards,
--
Nicolas George
signature.asc
On Mon, Jul 15 at 2:42 AM Carl Eugen Hoyos wrote:
>
> Am Mo., 15. Juli 2019 um 20:08 Uhr schrieb Griffin Smith :
> > I've got a few hundred video files I'm working with that have an issue
> > where ffmpeg -i reports them as having a duration of a few minutes,
> > but when I try to split them into
In my previous comment, the change of framerate is done during the
transcoding to raw yuv which could be problematic with your mpeg
stream. An alternative could be to convert all frames to YUV and then
drop some of them during the second transcoding. Of course, the
intermediate raw file
I am no expert but something is obviously messing up with the frame
number (a bug in ffmpeg?)
So looking at your dump, it seems to me that the frames are produced
correctly except that they all have the frame number 1.
A solution to your problem could be to drop the frame information by
On 16-07-2019 12:05 PM, Carl Eugen Hoyos wrote:
Am 16.07.2019 um 03:26 schrieb Ted Park :
$ ffmpeg -i video.mpg
...
Input #0, mpeg, from 'video.mpg':
Duration: 00:03:17.53, start: 95444.217689, bitrate: 3602 kb/s
The start time on the input file seems strange.
Start times != 0 are not
> $ ffmpeg -i video.mpg
> ...
> Input #0, mpeg, from 'video.mpg':
> Duration: 00:03:17.53, start: 95444.217689, bitrate: 3602 kb/s
The start time on the input file seems strange.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
Per a suggestion, I also tried re-encoding as h.264 and the resulting video
had a duration of .03 seconds:
$ ffmpeg -i video.mpg -codec:v libx264 output.mp4
ffmpeg version n4.1.3 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 8.2.1 (GCC) 20181127
configuration: --prefix=/usr
Hey all,
Hoping someone can help with this issue without me sharing the video file,
since I unfortunately can't - I've got a few hundred video files I'm
working with that have an issue where ffmpeg -i reports them as having a
duration of a few minutes, but when I try to split them into frames, I
16 matches
Mail list logo