Re: ffmpeg Fails After MacPorts Migration to Catalina Version

2019-12-14 Thread Michael Newman via macports-users
There are two recent tickets which, I believe, involve the same error:

ffmpeg and ffmpeg-devel immediately crash with segfault 11 when input is mp4:
https://trac.macports.org/ticket/59750 

ffmpeg @4.2.1 crash using -vcodec libx264:
https://trac.macports.org/ticket/59390 



Re: ffmpeg Fails After MacPorts Migration to Catalina Version

2019-12-14 Thread Michael Newman via macports-users
These work:

/usr/local/bin/avconv -y -r 10 -i $inpath -r 10 -vcodec libx264 -q:v 3 $vfile;

/usr/local/bin/ffmpeg -y -r 10 -i $inpath -r 10 -vcodec libx264 -q:v 3 $vfile;

This doesn’t:

/opt/local/bin/ffmpeg -y -r 10 -i $inpath -r 10 -vcodec libx264 -q:v 3 $vfile;

Both ffmpegs are version 4.2.1

It seems to be a MacPorts issue.

Re: ffmpeg Fails After MacPorts Migration to Catalina Version

2019-12-13 Thread Andrew Udvare


> On 2019-12-13, at 23:51, Michael Newman via macports-users 
>  wrote:
> 
> I tried uninstalling all ports and reinstalling again. That didn’t work.
> 
> I did manage to get my time-lapse videos working with avconv.

I tested a similar ffmpeg command and it fails with the same segfault. This is 
a bug in ffmpeg.

https://trac.ffmpeg.org/ticket/8073

As a workaround, the port could use --extra-cflags="-fno-stack-check" and it 
would work, I guess.

Andrew

Re: ffmpeg Fails After MacPorts Migration to Catalina Version

2019-12-13 Thread Michael Newman via macports-users
I tried uninstalling all ports and reinstalling again. That didn’t work.

I did manage to get my time-lapse videos working with avconv.

Re: ffmpeg Fails After MacPorts Migration to Catalina Version

2019-12-13 Thread Michael Newman via macports-users
I saved the version of ffmpeg that was built before I migrated and which worked 
fine before migration.

It also now fails with the same error message. So, I think there’s something 
else going on here

> On Dec 14, 2019, at 08:16, Andrew Udvare  wrote:
> 
> It's built so it seems more likely this is a bug in ffmpeg.
> 
> Sent from my iPhone



Re: ffmpeg Fails After MacPorts Migration to Catalina Version

2019-12-13 Thread Andrew Udvare
It's built so it seems more likely this is a bug in ffmpeg.

Sent from my iPhone

> On Dec 13, 2019, at 18:56, Michael Newman  wrote:
> 
> I’m not positive, but I believe it was built from source. This is what I got 
> when I removed and reinstalled it:
> 
> MrMuscle:bin mnewman$ sudo port install ffmpeg
> --->  Computing dependencies for ffmpeg
> --->  Fetching archive for ffmpeg
> --->  Attempting to fetch ffmpeg-4.2.1_2+gpl2.darwin_19.x86_64.tbz2 from 
> http://lil.fr.packages.macports.org/ffmpeg
> --->  Attempting to fetch ffmpeg-4.2.1_2+gpl2.darwin_19.x86_64.tbz2 from 
> http://cph.dk.packages.macports.org/ffmpeg
> --->  Attempting to fetch ffmpeg-4.2.1_2+gpl2.darwin_19.x86_64.tbz2 from 
> http://jog.id.packages.macports.org/macports/packages/ffmpeg
> --->  Fetching distfiles for ffmpeg
> --->  Verifying checksums for ffmpeg
> --->  Extracting ffmpeg
> --->  Applying patches to ffmpeg
> --->  Configuring ffmpeg
> --->  Building ffmpeg
> --->  Staging ffmpeg into destroot
> --->  Installing ffmpeg @4.2.1_2+gpl2
> --->  Activating ffmpeg @4.2.1_2+gpl2
> --->  Cleaning ffmpeg
> --->  Updating database of binaries
> --->  Scanning binaries for linking errors
> --->  No broken files found.
> --->  No broken ports found.
> 
> 
>> On Dec 14, 2019, at 06:49, Andrew Udvare  wrote:
>> 
>> 
>> 
>> Sent from my iPhone
>> 
 On Dec 13, 2019, at 18:28, Michael Newman via macports-users 
  wrote:
>>> 
>>> I’ve been using ffmpeg daily for several years to generate time lapse 
>>> videos from a series of JPEGs.
>>> 
>>> After I updated my 2017 iMac to Catalina, it still worked.
>>> 
>>> However, after migrating MacPorts to the Catalina version, it fails:
>>> 
>>> ./skyvideo.sh: line 38:  5438 Donecat $ipath
>>> 5439 Segmentation fault: 11  | /opt/local/bin/ffmpeg -f image2pipe 
>>> -framerate 10 -vcodec mjpeg -i - -vcodec libx264 -preset veryslow 
>>> -hide_banner -loglevel panic -r 10 -crf 28 -y -pix_fmt yuv420p "$vfile" >> 
>>> "$log"
>> 
>> Is this a premade binary or built from source? If it's a binary you should 
>> try building from source.
>> 
>> I'm not sure MacPorts provides a binary of ffmpeg.
>> 
>> Andrew
> 


Re: ffmpeg Fails After MacPorts Migration to Catalina Version

2019-12-13 Thread Michael Newman via macports-users
I’m not positive, but I believe it was built from source. This is what I got 
when I removed and reinstalled it:

MrMuscle:bin mnewman$ sudo port install ffmpeg
--->  Computing dependencies for ffmpeg
--->  Fetching archive for ffmpeg
--->  Attempting to fetch ffmpeg-4.2.1_2+gpl2.darwin_19.x86_64.tbz2 from 
http://lil.fr.packages.macports.org/ffmpeg
--->  Attempting to fetch ffmpeg-4.2.1_2+gpl2.darwin_19.x86_64.tbz2 from 
http://cph.dk.packages.macports.org/ffmpeg
--->  Attempting to fetch ffmpeg-4.2.1_2+gpl2.darwin_19.x86_64.tbz2 from 
http://jog.id.packages.macports.org/macports/packages/ffmpeg
--->  Fetching distfiles for ffmpeg
--->  Verifying checksums for ffmpeg
--->  Extracting ffmpeg
--->  Applying patches to ffmpeg
--->  Configuring ffmpeg
--->  Building ffmpeg
--->  Staging ffmpeg into destroot
--->  Installing ffmpeg @4.2.1_2+gpl2
--->  Activating ffmpeg @4.2.1_2+gpl2
--->  Cleaning ffmpeg
--->  Updating database of binaries
--->  Scanning binaries for linking errors
--->  No broken files found.
--->  No broken ports found.


> On Dec 14, 2019, at 06:49, Andrew Udvare  wrote:
> 
> 
> 
> Sent from my iPhone
> 
>> On Dec 13, 2019, at 18:28, Michael Newman via macports-users 
>>  wrote:
>> 
>> I’ve been using ffmpeg daily for several years to generate time lapse 
>> videos from a series of JPEGs.
>> 
>> After I updated my 2017 iMac to Catalina, it still worked.
>> 
>> However, after migrating MacPorts to the Catalina version, it fails:
>> 
>> ./skyvideo.sh: line 38:  5438 Donecat $ipath
>>  5439 Segmentation fault: 11  | /opt/local/bin/ffmpeg -f image2pipe 
>> -framerate 10 -vcodec mjpeg -i - -vcodec libx264 -preset veryslow 
>> -hide_banner -loglevel panic -r 10 -crf 28 -y -pix_fmt yuv420p "$vfile" >> 
>> "$log"
> 
> Is this a premade binary or built from source? If it's a binary you should 
> try building from source.
> 
> I'm not sure MacPorts provides a binary of ffmpeg.
> 
> Andrew



Re: ffmpeg Fails After MacPorts Migration to Catalina Version

2019-12-13 Thread Andrew Udvare



Sent from my iPhone

> On Dec 13, 2019, at 18:28, Michael Newman via macports-users 
>  wrote:
> 
> I’ve been using ffmpeg daily for several years to generate time lapse videos 
> from a series of JPEGs.
> 
> After I updated my 2017 iMac to Catalina, it still worked.
> 
> However, after migrating MacPorts to the Catalina version, it fails:
> 
> ./skyvideo.sh: line 38:  5438 Donecat $ipath
>   5439 Segmentation fault: 11  | /opt/local/bin/ffmpeg -f image2pipe 
> -framerate 10 -vcodec mjpeg -i - -vcodec libx264 -preset veryslow 
> -hide_banner -loglevel panic -r 10 -crf 28 -y -pix_fmt yuv420p "$vfile" >> 
> "$log"

Is this a premade binary or built from source? If it's a binary you should try 
building from source.

I'm not sure MacPorts provides a binary of ffmpeg.

Andrew

ffmpeg Fails After MacPorts Migration to Catalina Version

2019-12-13 Thread Michael Newman via macports-users
I’ve been using ffmpeg daily for several years to generate time lapse videos 
from a series of JPEGs.

After I updated my 2017 iMac to Catalina, it still worked.

However, after migrating MacPorts to the Catalina version, it fails:

./skyvideo.sh: line 38:  5438 Donecat $ipath
  5439 Segmentation fault: 11  | /opt/local/bin/ffmpeg -f image2pipe 
-framerate 10 -vcodec mjpeg -i - -vcodec libx264 -preset veryslow -hide_banner 
-loglevel panic -r 10 -crf 28 -y -pix_fmt yuv420p "$vfile" >> "$log"

Version information:

MrMuscle:bin mnewman$ port -v
MacPorts 2.6.2
MrMuscle:bin mnewman$ ffmpeg -version
ffmpeg version 4.2.1 Copyright (c) 2000-2019 the FFmpeg developers

The MacOS Problem Report is here:

https://pastebin.com/G6cN0t7Y 

I had saved a pre-migration version of ffmpeg that I know worked, but it now 
fails in the same way.