Opened 14 years ago

Closed 14 years ago

#1639 closed defect (invalid)

mencoder resample type 1 or 2 causes 100% cpu usage, never finishes.

Reported by: tmhikaru@… Owned by: reimar
Priority: normal Component: demuxer
Version: HEAD Severity: normal
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

Using mencoder with resample type of 1 or 2 causes 100% cpu usage.

I'm making a blind stab in the dark with the component type, I tried to send the bug without it selected but it wants something to be there. Feel free to correct that...

An example of something that works:

mencoder -o "halo.pcm" -of rawaudio -oac pcm -ofps 30000/1001 -af channels=2,volnorm,resample=48000:0:0 -vf harddup -ovc copy "halo 2010-01-20 00-04-33-62.avi"

MEncoder git-9118a5d-4.3.3 (C) 2000-2010 MPlayer Team
success: format: 0 data: 0x0 - 0x352a5e0
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
Detected NON-INTERLEAVED AVI file format.
VIDEO: [FPS1] 512x384 24bpp 30.000 fps 61691.5 kbps (7530.7 kbyte/s)
[V] filefmt:3 fourcc:0x31535046 size:512x384 fps:30.000 ftime:=0.0333
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
Ignoring video stream!
videocodec: framecopy (512x384 24bpp fourcc=31535046)
Pos: 0.7s 22f ( 9%) 0.00fps Trem: 0min 2mb A-V:0.070 [0:1536]
Skipping frame!
Pos: 1.0s 32f (43%) 0.00fps Trem: 0min 0mb A-V:0.070 [61657:1536]
Skipping frame!
Pos: 1.3s 42f (19%) 0.00fps Trem: 0min 1mb A-V:0.070 [61637:1536]
Skipping frame!
Pos: 1.6s 52f (23%) 0.00fps Trem: 0min 1mb A-V:0.070 [61618:1536]
Skipping frame!
Pos: 1.9s 62f (28%) 0.00fps Trem: 0min 1mb A-V:0.070 [61601:1536]
Skipping frame!
Pos: 2.2s 72f (33%) 0.00fps Trem: 0min 1mb A-V:0.070 [61621:1536]
Skipping frame!
Pos: 2.5s 82f (37%) 0.00fps Trem: 0min 1mb A-V:0.070 [61640:1536]
Skipping frame!
Pos: 2.8s 92f (42%) 0.00fps Trem: 0min 1mb A-V:0.070 [61638:1536]
Skipping frame!
Pos: 3.1s 102f (47%) 0.00fps Trem: 0min 1mb A-V:0.070 [61639:1536]
Skipping frame!
Pos: 3.4s 112f (52%) 0.00fps Trem: 0min 1mb A-V:0.070 [61639:1536]
Skipping frame!
Pos: 3.7s 122f (56%) 0.00fps Trem: 0min 1mb A-V:0.070 [61638:1536]
Skipping frame!
Pos: 4.0s 132f (85%) 0.00fps Trem: 0min 1mb A-V:0.070 [61644:1536]
Skipping frame!
Pos: 4.3s 142f (66%) 0.00fps Trem: 0min 1mb A-V:0.070 [61654:1536]
Skipping frame!
Pos: 4.6s 152f (70%) 0.00fps Trem: 0min 1mb A-V:0.070 [61649:1536]
Skipping frame!
Pos: 5.1s 167f (78%) 0.00fps Trem: 0min 1mb A-V:0.068 [61638:1536]
Skipping frame!
Pos: 5.4s 177f (82%) 0.00fps Trem: 0min 1mb A-V:0.068 [61633:1536]
Skipping frame!
Pos: 6.5s 212f (99%) 0.00fps Trem: 0min 1mb A-V:-0.043 [61630:1536]
Video stream: 61630.693 kbit/s (7703836 B/s) size: 50382064 bytes 6.540 secs 212 frames

Audio stream: 1536.000 kbit/s (192000 B/s) size: 1356800 bytes 7.067 secs

That above command line works.

This and the following do not. Any ideas what's wrong?

mencoder -o "halo.pcm" -of rawaudio -oac pcm -ofps 30000/1001 -af channels=2,volnorm,resample=48000:0:1 -vf harddup -ovc copy "halo 2010-01-20 00-04-33-62.avi"

MEncoder git-9118a5d-4.3.3 (C) 2000-2010 MPlayer Team
success: format: 0 data: 0x0 - 0x352a5e0
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
Detected NON-INTERLEAVED AVI file format.
VIDEO: [FPS1] 512x384 24bpp 30.000 fps 61691.5 kbps (7530.7 kbyte/s)
[V] filefmt:3 fourcc:0x31535046 size:512x384 fps:30.000 ftime:=0.0333
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
Ignoring video stream!
videocodec: framecopy (512x384 24bpp fourcc=31535046)

*freezes at 100% cpu usage, does nothing else, have to ctrl-c or kill to make it go away*

mencoder -o "halo.pcm" -of rawaudio -oac pcm -ofps 30000/1001 -af channels=2,volnorm,resample=48000:0:2 -vf harddup -ovc copy "halo 2010-01-20 00-04-33-62.avi"

MEncoder git-9118a5d-4.3.3 (C) 2000-2010 MPlayer Team
success: format: 0 data: 0x0 - 0x352a5e0
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
Detected NON-INTERLEAVED AVI file format.
VIDEO: [FPS1] 512x384 24bpp 30.000 fps 61691.5 kbps (7530.7 kbyte/s)
[V] filefmt:3 fourcc:0x31535046 size:512x384 fps:30.000 ftime:=0.0333
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
Ignoring video stream!
videocodec: framecopy (512x384 24bpp fourcc=31535046)

*same as before, freezes at 100% cpu usage, have to ctrl -c or kill to stop it*

Change History (2)

comment:1 by reimar, 14 years ago

Owner: changed from r_togni@… to reimar

Only bug reports against SVN are accepted.
Apart from that, your command lines all work for me with the files I have (with SVN version of course).
If you can reproduce the version with SVN, I suggest you upload a sample to reproduce the issue with or find one in http://samples.mplayerhq.hu that shows the issue.
Lastly what you are trying to do probably would be easier with mplayer -noaudio -ao pcm:fast:file=halo.pcm or something like that.

comment:2 by tmhikaru@…, 14 years ago

Resolution: invalid
Status: newclosed

I'm really surprised by this, but by using the svn version instead of git the problem went completely away. I'm going to try to make a test case for the git version and am in contact with some of the developers on IRC. Let me know if you want me to post the test case here.

Note: See TracTickets for help on using tickets.