[FFmpeg-user] Dear, I need your help when using ffmpeg

高庆官 gaoqg at net-east.com
Tue Jul 12 11:24:43 CEST 2011


Dear all:

 

I have some troubles in ffmpeg.

 

I want to translate rmvb, avi, mkv, flv, f4v etc. to mp4 with ffmpeg. When
translating, I find the efficiency is very low. Some time, one 100M video
may need more than 20 minutes. I try to modify the parameters of ffmpeg to 

Improve the efficiency, finally, I failed.

 

The CPU is following: 2X4cores 2.40GHZ, it also supports ht.

 

When translating, I open the flag of threads as following:

 

time ./ffmpeg -threads 4 -i  b7_00110.avi  -s 640*480 -y test.mp4

 

I check the threads of ffmpeg, details is following:

 

[root at CRMC2 tools]# ps -Lf 17193

UID        PID  PPID   LWP  C NLWP STIME TTY      STAT   TIME CMD

root     17193 20500 17193 97   17 16:29 pts/1    Rl+    0:22 ./ffmpeg
-threads 4 -i b7_00110.avi -s 640*480 -y test.mp4

root     17193 20500 17194  0   17 16:29 pts/1    Sl+    0:00 ./ffmpeg
-threads 4 -i b7_00110.avi -s 640*480 -y test.mp4

root     17193 20500 17195  0   17 16:29 pts/1    Sl+    0:00 ./ffmpeg
-threads 4 -i b7_00110.avi -s 640*480 -y test.mp4

root     17193 20500 17196  0   17 16:29 pts/1    Sl+    0:00 ./ffmpeg
-threads 4 -i b7_00110.avi -s 640*480 -y test.mp4

root     17193 20500 17197  0   17 16:29 pts/1    Sl+    0:00 ./ffmpeg
-threads 4 -i b7_00110.avi -s 640*480 -y test.mp4

root     17193 20500 17198  0   17 16:29 pts/1    Sl+    0:00 ./ffmpeg
-threads 4 -i b7_00110.avi -s 640*480 -y test.mp4

root     17193 20500 17199  0   17 16:29 pts/1    Sl+    0:00 ./ffmpeg
-threads 4 -i b7_00110.avi -s 640*480 -y test.mp4

root     17193 20500 17200  0   17 16:29 pts/1    Sl+    0:00 ./ffmpeg
-threads 4 -i b7_00110.avi -s 640*480 -y test.mp4

root     17193 20500 17201  0   17 16:29 pts/1    Sl+    0:00 ./ffmpeg
-threads 4 -i b7_00110.avi -s 640*480 -y test.mp4

root     17193 20500 17202  1   17 16:29 pts/1    Sl+    0:00 ./ffmpeg
-threads 4 -i b7_00110.avi -s 640*480 -y test.mp4

root     17193 20500 17203  1   17 16:29 pts/1    Sl+    0:00 ./ffmpeg
-threads 4 -i b7_00110.avi -s 640*480 -y test.mp4

root     17193 20500 17204  1   17 16:29 pts/1    Sl+    0:00 ./ffmpeg
-threads 4 -i b7_00110.avi -s 640*480 -y test.mp4

root     17193 20500 17205  1   17 16:29 pts/1    Sl+    0:00 ./ffmpeg
-threads 4 -i b7_00110.avi -s 640*480 -y test.mp4

root     17193 20500 17206  0   17 16:29 pts/1    Sl+    0:00 ./ffmpeg
-threads 4 -i b7_00110.avi -s 640*480 -y test.mp4

root     17193 20500 17207  0   17 16:29 pts/1    Sl+    0:00 ./ffmpeg
-threads 4 -i b7_00110.avi -s 640*480 -y test.mp4

root     17193 20500 17208  0   17 16:29 pts/1    Sl+    0:00 ./ffmpeg
-threads 4 -i b7_00110.avi -s 640*480 -y test.mp4

root     17193 20500 17209  0   17 16:29 pts/1    Sl+    0:00 ./ffmpeg
-threads 4 -i b7_00110.avi -s 640*480 -y test.mp4

 

I find that the threads do not work. 

 

 

What’s wrong? Need other parameters?

 

 

 

Thanks! 



More information about the ffmpeg-user mailing list