Re: ffmpeg hang on 6.1-stable and -current with certain video files

2017-09-10 Thread Marcus MERIGHI
s...@spacehopper.org (Stuart Henderson), 2017.09.09 (Sat) 14:47 (CEST):
> On 2017/09/09 11:35, Juan Francisco Cantero Hurtado wrote:
> > On Sat, Sep 02, 2017 at 06:49:38PM +0200, Marcus MERIGHI wrote:
> > > i...@juanfra.info (Juan Francisco Cantero Hurtado), 2017.09.02 (Sat) 
> > > 00:42 (CEST):
> > > > On Mon, Aug 28, 2017 at 05:05:20PM +0200, Marcus MERIGHI wrote:
> > > > > fr...@frankgroeneveld.nl (Frank Groeneveld), 2017.08.28 (Mon) 14:33 
> > > > > (CEST):
> > > > > > When I try to convert certain video files using ffmpeg from ports on
> > > > > > 6.1-stable or -current it randomly hangs about one in three or four
> > > > > > tries. I've uploaded a sample movie at:
> > > > > > https://ivaldi.nl/wp-content/uploads/sample.mp4
> > > > > > 
> > > > > > The following command reproduces the problem:
> > > > > > ffmpeg -i sample.mp4 -acodec aac -strict experimental -vf
> > > > > > scale=1280:720,setdar=2:1 -y output.mp4
> > > > > > 
> > > > > > This is the output when it hangs: https://pastebin.com/mb0X3hU3
> > > > > > The process uses 100% cpu and doesn't seem to do anything else, the
> > > > > > output file doesn't grow either.
> > > > > 
> > > > > I am seeing something with the same symptoms. I need to start
> > > > > transcoding anywhere from one- to five times.
> > > > > 
> > > > > $ nice ffmpeg -n -stats -loglevel warning -threads 2 -ss 10 \
> > > > >   -i "input.mov" -map_metadata 0:s:0 -c:v libx264 -preset slow -crf 
> > > > > 23 \
> > > > >   -c:a aac -b:a 192k -pix_fmt yuvj420p output.mov
> > > > 
> > > > Can you both try to reproduce the bug using something else instead of
> > > > aac?
> > > 
> > > switching between "-c:a aac" and "-c:a mp3" I have: no fail with two
> > > dozen tries with mp3; one good go with aac after switching back,
> > > followed by two failures. 
> > 
> > Guys, ffmpeg 20170825p1 works for me. Give it a try.
> 
> What's in ports now works on amd64, but not i386.
 
Did six of my usual transcodings in a row without hang. Wouldn't have
expected this before. Thanks!

Marcus

OpenBSD 6.2-beta (GENERIC.MP) #85: Sat Sep  9 17:44:54 MDT 2017
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP



Re: ffmpeg hang on 6.1-stable and -current with certain video files

2017-09-09 Thread Stuart Henderson
On 2017/09/09 11:35, Juan Francisco Cantero Hurtado wrote:
> On Sat, Sep 02, 2017 at 06:49:38PM +0200, Marcus MERIGHI wrote:
> > i...@juanfra.info (Juan Francisco Cantero Hurtado), 2017.09.02 (Sat) 00:42 
> > (CEST):
> > > On Mon, Aug 28, 2017 at 05:05:20PM +0200, Marcus MERIGHI wrote:
> > > > fr...@frankgroeneveld.nl (Frank Groeneveld), 2017.08.28 (Mon) 14:33 
> > > > (CEST):
> > > > > When I try to convert certain video files using ffmpeg from ports on
> > > > > 6.1-stable or -current it randomly hangs about one in three or four
> > > > > tries. I've uploaded a sample movie at:
> > > > > https://ivaldi.nl/wp-content/uploads/sample.mp4
> > > > > 
> > > > > The following command reproduces the problem:
> > > > > ffmpeg -i sample.mp4 -acodec aac -strict experimental -vf
> > > > > scale=1280:720,setdar=2:1 -y output.mp4
> > > > > 
> > > > > This is the output when it hangs: https://pastebin.com/mb0X3hU3
> > > > > The process uses 100% cpu and doesn't seem to do anything else, the
> > > > > output file doesn't grow either.
> > > > 
> > > > I am seeing something with the same symptoms. I need to start
> > > > transcoding anywhere from one- to five times.
> > > > 
> > > > $ nice ffmpeg -n -stats -loglevel warning -threads 2 -ss 10 \
> > > >   -i "input.mov" -map_metadata 0:s:0 -c:v libx264 -preset slow -crf 23 \
> > > >   -c:a aac -b:a 192k -pix_fmt yuvj420p output.mov
> > > 
> > > Can you both try to reproduce the bug using something else instead of
> > > aac?
> > 
> > switching between "-c:a aac" and "-c:a mp3" I have: no fail with two
> > dozen tries with mp3; one good go with aac after switching back,
> > followed by two failures. 
> 
> Guys, ffmpeg 20170825p1 works for me. Give it a try.

What's in ports now works on amd64, but not i386.



Re: ffmpeg hang on 6.1-stable and -current with certain video files

2017-09-09 Thread Juan Francisco Cantero Hurtado
On Sat, Sep 02, 2017 at 06:49:38PM +0200, Marcus MERIGHI wrote:
> i...@juanfra.info (Juan Francisco Cantero Hurtado), 2017.09.02 (Sat) 00:42 
> (CEST):
> > On Mon, Aug 28, 2017 at 05:05:20PM +0200, Marcus MERIGHI wrote:
> > > fr...@frankgroeneveld.nl (Frank Groeneveld), 2017.08.28 (Mon) 14:33 
> > > (CEST):
> > > > When I try to convert certain video files using ffmpeg from ports on
> > > > 6.1-stable or -current it randomly hangs about one in three or four
> > > > tries. I've uploaded a sample movie at:
> > > > https://ivaldi.nl/wp-content/uploads/sample.mp4
> > > > 
> > > > The following command reproduces the problem:
> > > > ffmpeg -i sample.mp4 -acodec aac -strict experimental -vf
> > > > scale=1280:720,setdar=2:1 -y output.mp4
> > > > 
> > > > This is the output when it hangs: https://pastebin.com/mb0X3hU3
> > > > The process uses 100% cpu and doesn't seem to do anything else, the
> > > > output file doesn't grow either.
> > > 
> > > I am seeing something with the same symptoms. I need to start
> > > transcoding anywhere from one- to five times.
> > > 
> > > $ nice ffmpeg -n -stats -loglevel warning -threads 2 -ss 10 \
> > >   -i "input.mov" -map_metadata 0:s:0 -c:v libx264 -preset slow -crf 23 \
> > >   -c:a aac -b:a 192k -pix_fmt yuvj420p output.mov
> > 
> > Can you both try to reproduce the bug using something else instead of
> > aac?
> 
> switching between "-c:a aac" and "-c:a mp3" I have: no fail with two
> dozen tries with mp3; one good go with aac after switching back,
> followed by two failures. 

Guys, ffmpeg 20170825p1 works for me. Give it a try.


-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: ffmpeg hang on 6.1-stable and -current with certain video files

2017-09-02 Thread Frank Groeneveld
On Sat, Sep 2, 2017, at 00:42, Juan Francisco Cantero Hurtado wrote:
> Can you both try to reproduce the bug using something else instead of
> aac?

I tried Big Buck Bunny in mp4 format, which has AC3 audio
(http://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_surround-fix.avi).
Using the same command it doesn't hang a single time, so maybe the input
aac is the problem? Although Marcus' test seems to suggest the other way
around.

Frank



Re: ffmpeg hang on 6.1-stable and -current with certain video files

2017-09-02 Thread Marcus MERIGHI
i...@juanfra.info (Juan Francisco Cantero Hurtado), 2017.09.02 (Sat) 00:42 
(CEST):
> On Mon, Aug 28, 2017 at 05:05:20PM +0200, Marcus MERIGHI wrote:
> > fr...@frankgroeneveld.nl (Frank Groeneveld), 2017.08.28 (Mon) 14:33 (CEST):
> > > When I try to convert certain video files using ffmpeg from ports on
> > > 6.1-stable or -current it randomly hangs about one in three or four
> > > tries. I've uploaded a sample movie at:
> > > https://ivaldi.nl/wp-content/uploads/sample.mp4
> > > 
> > > The following command reproduces the problem:
> > > ffmpeg -i sample.mp4 -acodec aac -strict experimental -vf
> > > scale=1280:720,setdar=2:1 -y output.mp4
> > > 
> > > This is the output when it hangs: https://pastebin.com/mb0X3hU3
> > > The process uses 100% cpu and doesn't seem to do anything else, the
> > > output file doesn't grow either.
> > 
> > I am seeing something with the same symptoms. I need to start
> > transcoding anywhere from one- to five times.
> > 
> > $ nice ffmpeg -n -stats -loglevel warning -threads 2 -ss 10 \
> >   -i "input.mov" -map_metadata 0:s:0 -c:v libx264 -preset slow -crf 23 \
> >   -c:a aac -b:a 192k -pix_fmt yuvj420p output.mov
> 
> Can you both try to reproduce the bug using something else instead of
> aac?

switching between "-c:a aac" and "-c:a mp3" I have: no fail with two
dozen tries with mp3; one good go with aac after switching back,
followed by two failures. 

Marcus



Re: ffmpeg hang on 6.1-stable and -current with certain video files

2017-09-01 Thread Juan Francisco Cantero Hurtado
On Mon, Aug 28, 2017 at 05:05:20PM +0200, Marcus MERIGHI wrote:
> fr...@frankgroeneveld.nl (Frank Groeneveld), 2017.08.28 (Mon) 14:33 (CEST):
> > When I try to convert certain video files using ffmpeg from ports on
> > 6.1-stable or -current it randomly hangs about one in three or four
> > tries. I've uploaded a sample movie at:
> > https://ivaldi.nl/wp-content/uploads/sample.mp4
> > 
> > The following command reproduces the problem:
> > ffmpeg -i sample.mp4 -acodec aac -strict experimental -vf
> > scale=1280:720,setdar=2:1 -y output.mp4
> > 
> > This is the output when it hangs: https://pastebin.com/mb0X3hU3
> > The process uses 100% cpu and doesn't seem to do anything else, the
> > output file doesn't grow either.
> 
> I am seeing something with the same symptoms. I need to start
> transcoding anywhere from one- to five times.
> 
> $ nice ffmpeg -n -stats -loglevel warning -threads 2 -ss 10 \
>   -i "input.mov" -map_metadata 0:s:0 -c:v libx264 -preset slow -crf 23 \
>   -c:a aac -b:a 192k -pix_fmt yuvj420p output.mov

Can you both try to reproduce the bug using something else instead of
aac?


-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: ffmpeg hang on 6.1-stable and -current with certain video files

2017-09-01 Thread Frank Groeneveld
On Mon, Aug 28, 2017, at 14:33, Frank Groeneveld wrote:
> ...

Apparently my ports tree was outdated and ffmpeg was updated 3 days
before my email. Using that version I am still able to reproduce the
bug, which lead me to believe that it was somewhere in an OpenBSD port
specific patch. Some more builds later I now think it is not possible to
reproduce the problem after building a version without the following
patches:
patches/patch-libavcodec*
patches/patch-libavutil_internal_h

Meaning, the bug is probably in one of those files. Hopefully this is a
hint for somebody with more knowledge of those patches.

Thanks!
--
Frank



Re: ffmpeg hang on 6.1-stable and -current with certain video files

2017-08-28 Thread Marcus MERIGHI
fr...@frankgroeneveld.nl (Frank Groeneveld), 2017.08.28 (Mon) 14:33 (CEST):
> When I try to convert certain video files using ffmpeg from ports on
> 6.1-stable or -current it randomly hangs about one in three or four
> tries. I've uploaded a sample movie at:
> https://ivaldi.nl/wp-content/uploads/sample.mp4
> 
> The following command reproduces the problem:
> ffmpeg -i sample.mp4 -acodec aac -strict experimental -vf
> scale=1280:720,setdar=2:1 -y output.mp4
> 
> This is the output when it hangs: https://pastebin.com/mb0X3hU3
> The process uses 100% cpu and doesn't seem to do anything else, the
> output file doesn't grow either.

I am seeing something with the same symptoms. I need to start
transcoding anywhere from one- to five times.

$ nice ffmpeg -n -stats -loglevel warning -threads 2 -ss 10 \
  -i "input.mov" -map_metadata 0:s:0 -c:v libx264 -preset slow -crf 23 \
  -c:a aac -b:a 192k -pix_fmt yuvj420p output.mov

Marcus

OpenBSD 6.1-current (GENERIC.MP) #7: Tue Aug 15 21:08:10 MDT 2017
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8451125248 (8059MB)
avail mem = 8187994112 (7808MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xdae9c000 (66 entries)
bios0: vendor LENOVO version "8DET73WW (1.43 )" date 10/12/2016
bios0: LENOVO 429135G
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SLIC SSDT SSDT SSDT HPET APIC MCFG ECDT ASF! TCPA SSDT 
SSDT DMAR UEFI UEFI UEFI
acpi0: wakeup devices LID_(S3) SLPB(S3) IGBE(S4) EXP4(S4) EXP7(S4) EHC1(S3) 
EHC2(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz, 2691.67 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,ARAT
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: TSC frequency 2691670230 Hz
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.1.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz, 2691.26 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,ARAT
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz, 2691.26 MHz
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,ARAT
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 1, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz, 2691.26 MHz
cpu3: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,ARAT
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xf800, bus 0-63
acpiec0 at acpi0
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG_)
acpiprt2 at acpi0: bus 2 (EXP1)
acpiprt3 at acpi0: bus 3 (EXP2)
acpiprt4 at acpi0: bus -1 (EXP4)
acpiprt5 at acpi0: bus 13 (EXP5)
acpiprt6 at acpi0: bus 14 (EXP7)
acpicpu0 at acpi0: C3(350@104 io@0x415), C1(1000@1 halt), PSS
acpicpu1 at acpi0: C3(350@104 io@0x415), C1(1000@1 halt), PSS
acpicpu2 at acpi0: C3(350@104 io@0x415), C1(1000@1 halt), PSS
acpicpu3 at acpi0: C3(350@104 io@0x415), C1(1000@1 halt), PSS
acpipwrres0 at acpi0: PUBS, resource for EHC1, EHC2
acpitz0 at acpi0: critical temperature is 99 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
"LEN0020" at acpi0 not configured
acpibat0 at acpi0: BAT0 model "45N1172" serial 13541 type LION oem "SANYO"
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
acpidock0 at acpi0: GDCK not docked (0)
acpivideo0 at acpi0: VID_
acpivout at acpivideo0 not configured
acpivideo1 at acpi0: VID_
cpu0: Enhanced SpeedStep 2691 MHz: speeds: 2701, 2700, 2400, 2200, 2000, 1800, 
1600, 1400,