Error of ffmpeg when output movies using bview on HPC

392 views
Skip to first unread message

HUI WANG

unread,
Jun 4, 2020, 11:27:02 AM6/4/20
to basilisk-fr
Dear all,

When I include the view.h and outpout some movies of the simulation on a super computer, I received the following error. I have loaded the yasm, x264, fdk-acc, lame, ffmpeg modules from the HPC's system
ffmpeg version 2.5.4 Copyright (c) 2000-2015 the FFmpeg developers
  built on
May  2 2018 08:52:19 with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-16)
  configuration
: --prefix=/opt/build/TMP/ffmpeg-2.5.4-3.x86_64//opt/apps/ffmpeg/2.5.4 --enable-shared
  libavutil      
54. 15.100 / 54. 15.100
  libavcodec    
56. 13.100 / 56. 13.100
  libavformat    
56. 15.102 / 56. 15.102
  libavdevice    
56.  3.100 / 56.  3.100
  libavfilter    
5.  2.103 /  5.  2.103
  libswscale      
3.  1.101 /  3.  1.101
  libswresample  
1.  1.100 /  1.  1.100
Unrecognized option 'preset'.
Error splitting the argument list: Option not found

I also tried to install ffmpeg myself on the home foder myself using the following compiling command, but I got the same error
 ./configure --enable-shared --enable-gpl --enable-libx264 --prefix=/home/hui/path/ffmpeg/

Does anyone encountered this problem before?

Cheers
Hui

Pranav Mohan

unread,
Jun 29, 2020, 5:50:15 PM6/29/20
to basilisk-fr
I have encountered this problem before. 

I usually try to increase the fov parameter in view(). 

Pranav

HUI WANG

unread,
Jul 5, 2020, 10:21:27 AM7/5/20
to basilisk-fr
Hello Pranav,

Thanks for the reply. I have tried to increase the fov, but it did not work. Have you changed other parameters for fixing this problem? Could you tell me which exact fov number you are using for outputting movies on HPC? 

By the way, I think the problem is not about view.h or fov. For example, this problem exists too when i use output_ppm to generate movies.
   event movie(i++)
   
{
   
static FILE * fp = popen ("ppm2mp4 f.mp4","w");
   output_ppm
(f, fp, n = 1024,  min = 0, max = 1, linear = true);
   
}
 Then i got the messages below
ffmpeg version 2.5.4 Copyright (c) 2000-2015 the FFmpeg developers
  built on
May  2 2018 08:52:19 with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-16)
  configuration
: --prefix=/opt/build/TMP/ffmpeg-2.5.4-3.x86_64//opt/apps/ffmpeg/2.5.4 --enable-shared
  libavutil      
54. 15.100 / 54. 15.100
  libavcodec    
56. 13.100 / 56. 13.100
  libavformat    
56. 15.102 / 56. 15.102
  libavdevice    
56.  3.100 / 56.  3.100
  libavfilter    
5.  2.103 /  5.  2.103
  libswscale      
3.  1.101 /  3.  1.101
  libswresample  
1.  1.100 /  1.  1.100
Unrecognized option 'preset'.
Error splitting the argument list: Option not
found
srun
: error: ca185: task 0: Broken pipe
srun
: Terminating job step 412816.0
slurmstepd
: error: *** STEP 412816.0 ON ca185 CANCELLED AT 2020-07-05T09:34:56 ***
srun
: error: ca185: task 1: Terminated
srun
: error: ca185: task 6: Terminated
srun
: error: ca185: tasks 2-5,7-31: Terminated
srun
: Force Terminated job step 412816.0

Best
Hui

在 2020年6月29日星期一 UTC+2下午11:50:15,Pranav Mohan写道:

Pranav Mohan

unread,
Jul 5, 2020, 10:48:10 AM7/5/20
to basilisk-fr
Hello Hui, 

Could you please try checking how much space you have available? You might have run out of space.

Thanks, 
Pranav

HUI WANG

unread,
Jul 5, 2020, 11:10:39 AM7/5/20
to basilisk-fr
Hi Pranav,

You mean the storage space of my account on HPC ? I still have plentty of storage memory
It works fine on my desktop. For outputting movies, I use the code below, then load the ffmpeg module from HPC and  then run the simulation. Am I missing something ? 
event movie(i++)
   
{
   
static FILE * fp = popen ("ppm2mp4 f.mp4","w");
   output_ppm
(f, fp, n = 1024,  min = 0, max = 1, linear = true);
   
}

Thanks 
Hui 

在 2020年7月5日星期日 UTC+2下午4:48:10,Pranav Mohan写道:

Pranav Mohan

unread,
Jul 5, 2020, 11:18:30 AM7/5/20
to basilisk-fr
May be you can try these two things.

Change n=256 or smaller.
Also I believe it is "ppm2mpeg > f.mp4". You might be missing >

Pranav

HUI WANG

unread,
Jul 6, 2020, 5:09:49 AM7/6/20
to basilisk-fr
Hi Pranav,

Thanks for your help. This problem has been solved. 
It's beacuse of the version of ffmpeg on HPC is too.

Hui

在 2020年7月5日星期日 UTC+2下午5:18:30,Pranav Mohan写道:

Yashika

unread,
Feb 27, 2021, 4:32:01 AM2/27/21
to basilisk-fr
Dear Hui,

I update basilisk in my PC, still I am getting same errors. How you solved it??

Yashika

HUI WANG

unread,
Feb 28, 2021, 6:41:24 AM2/28/21
to basilisk-fr
Hello Yashika, 

My problem was outputting pics/movies on a supercomputer. The problem disappeared after updating the version of ffmpeg in supercomputer's system

Cheers
Hui

Yashika

unread,
Mar 11, 2021, 1:26:13 AM3/11/21
to basilisk-fr
Dear Hui,

I apologies for late reply, (My problem was outputting pics/movies on a supercomputer.) I also had similar problem, I did update 'ffmpeg' in my PC but I am getting similar errors. I was trying to figure out if I could do something else to solve it. Whereas I could successfully generate .ppm on supercomputer system, it worked there. It serve my purpose for now.

Thank you for your kind help.
Yashika
Reply all
Reply to author
Forward
Message has been deleted
0 new messages