Re: [FFmpeg-user] Get exact duration of an mpeg1 file

2018-12-21 Thread Carl Eugen Hoyos
2018-12-20 14:22 GMT+01:00, Robert Krüger : > On Tue, Dec 18, 2018 at 11:40 PM Carl Eugen Hoyos > wrote: > >> 2018-12-18 21:49 GMT+01:00, Robert Krüger : >> > On Fri, Dec 14, 2018 at 5:28 PM Carl Eugen Hoyos >> wrote: >> > >> >> 2018-12-14 17:19 GMT+01:00, Robert Krüger : >> >> > On Fri, Dec 14,

Re: [FFmpeg-user] Get exact duration of an mpeg1 file

2018-12-20 Thread Robert Krüger
On Tue, Dec 18, 2018 at 11:40 PM Carl Eugen Hoyos wrote: > 2018-12-18 21:49 GMT+01:00, Robert Krüger : > > On Fri, Dec 14, 2018 at 5:28 PM Carl Eugen Hoyos > wrote: > > > >> 2018-12-14 17:19 GMT+01:00, Robert Krüger : > >> > On Fri, Dec 14, 2018 at 3:03 AM Carl Eugen Hoyos > >> wrote: > >> > >

Re: [FFmpeg-user] Get exact duration of an mpeg1 file

2018-12-18 Thread Carl Eugen Hoyos
2018-12-18 21:49 GMT+01:00, Robert Krüger : > On Fri, Dec 14, 2018 at 5:28 PM Carl Eugen Hoyos wrote: > >> 2018-12-14 17:19 GMT+01:00, Robert Krüger : >> > On Fri, Dec 14, 2018 at 3:03 AM Carl Eugen Hoyos >> wrote: >> > >> >> 2018-12-13 17:10 GMT+01:00, Robert Krüger : >> >> >> >> > is there a

Re: [FFmpeg-user] Get exact duration of an mpeg1 file

2018-12-18 Thread Robert Krüger
On Fri, Dec 14, 2018 at 5:31 PM Carl Zwanzig wrote: > On 12/14/2018 8:19 AM, Robert Krüger wrote: > > Just a comparison: This approach gives me the duration information for a > > 180 minute file in 1.8 seconds while mediainfo does it in 0.25 seconds > > (being exact while ffmpeg is a few frames

Re: [FFmpeg-user] Get exact duration of an mpeg1 file

2018-12-18 Thread Robert Krüger
On Fri, Dec 14, 2018 at 5:28 PM Carl Eugen Hoyos wrote: > 2018-12-14 17:19 GMT+01:00, Robert Krüger : > > On Fri, Dec 14, 2018 at 3:03 AM Carl Eugen Hoyos > wrote: > > > >> 2018-12-13 17:10 GMT+01:00, Robert Krüger : > >> > >> > is there a way to get the exact duration of a raw mpeg1 file using

Re: [FFmpeg-user] Get exact duration of an mpeg1 file

2018-12-14 Thread Carl Zwanzig
On 12/14/2018 8:19 AM, Robert Krüger wrote: Just a comparison: This approach gives me the duration information for a 180 minute file in 1.8 seconds while mediainfo does it in 0.25 seconds (being exact while ffmpeg is a few frames off, but that's a different topic), so there must be a faster way

Re: [FFmpeg-user] Get exact duration of an mpeg1 file

2018-12-14 Thread Carl Eugen Hoyos
2018-12-14 17:19 GMT+01:00, Robert Krüger : > On Fri, Dec 14, 2018 at 3:03 AM Carl Eugen Hoyos wrote: > >> 2018-12-13 17:10 GMT+01:00, Robert Krüger : >> >> > is there a way to get the exact duration of a raw mpeg1 file using the >> > ffmpeg command line? For testing I created a 30 minute test

Re: [FFmpeg-user] Get exact duration of an mpeg1 file

2018-12-14 Thread Robert Krüger
On Fri, Dec 14, 2018 at 3:03 AM Carl Eugen Hoyos wrote: > 2018-12-13 17:10 GMT+01:00, Robert Krüger : > > > is there a way to get the exact duration of a raw mpeg1 file using the > > ffmpeg command line? For testing I created a 30 minute test file using > > ffmpeg (using -c:v mpeg1video -f

Re: [FFmpeg-user] Get exact duration of an mpeg1 file

2018-12-13 Thread Carl Eugen Hoyos
2018-12-13 17:10 GMT+01:00, Robert Krüger : > is there a way to get the exact duration of a raw mpeg1 file using the > ffmpeg command line? For testing I created a 30 minute test file using > ffmpeg (using -c:v mpeg1video -f mpeg1video), then verified the duration > using VLC and mediainfo and it

Re: [FFmpeg-user] Get exact duration of an mpeg1 file

2018-12-13 Thread Carl Zwanzig
On 12/13/2018 9:07 AM, Robert Krüger wrote: Sorry, I have to take that back as I used the wrong file and got something mixed up when looking at it. -probesize doesn't change the behaviour at all. I set it to a value larger than the file and still got the warning and the incorrect number. So for

Re: [FFmpeg-user] Get exact duration of an mpeg1 file

2018-12-13 Thread Robert Krüger
Hi again, On Thu, Dec 13, 2018 at 6:01 PM Robert Krüger wrote: > Hi Carl, > > On Thu, Dec 13, 2018 at 5:31 PM Carl Zwanzig wrote: > >> On 12/13/2018 8:10 AM, Robert Krüger wrote: >> > Are there command line parameters to make it compute the exact size or >> is >> > this a design or

Re: [FFmpeg-user] Get exact duration of an mpeg1 file

2018-12-13 Thread Carl Zwanzig
On 12/13/2018 8:10 AM, Robert Krüger wrote: Are there command line parameters to make it compute the exact size or is this a design or implementation limitation? IIRC (and I could be wrong), the generic "info" uses metadata whereas mediainfo actually counts frames and applies the frame rate

[FFmpeg-user] Get exact duration of an mpeg1 file

2018-12-13 Thread Robert Krüger
Hi, is there a way to get the exact duration of a raw mpeg1 file using the ffmpeg command line? For testing I created a 30 minute test file using ffmpeg (using -c:v mpeg1video -f mpeg1video), then verified the duration using VLC and mediainfo and it is indeed exactly 30 minutes long but ffmpeg -i