Ffmpeg/Example

From ScientificComputing
Revision as of 07:30, 6 December 2016 by Sfux (talk | contribs) (Created page with "As an example for an ffmpeg job, we are creating an mpeg movie out of a series of jpeg pictures. [leonhard@euler05 ~]$ '''ls''' T_L0U0_var0000.png T_L0U0_var0017.png T_L0...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

As an example for an ffmpeg job, we are creating an mpeg movie out of a series of jpeg pictures.

[leonhard@euler05 ~]$ ls
T_L0U0_var0000.png  T_L0U0_var0017.png  T_L0U0_var0034.png  T_L0U0_var0051.png  T_L0U0_var0068.png  T_L0U0_var0085.png
T_L0U0_var0001.png  T_L0U0_var0018.png  T_L0U0_var0035.png  T_L0U0_var0052.png  T_L0U0_var0069.png  T_L0U0_var0086.png
T_L0U0_var0002.png  T_L0U0_var0019.png  T_L0U0_var0036.png  T_L0U0_var0053.png  T_L0U0_var0070.png  T_L0U0_var0087.png
T_L0U0_var0003.png  T_L0U0_var0020.png  T_L0U0_var0037.png  T_L0U0_var0054.png  T_L0U0_var0071.png  T_L0U0_var0088.png
T_L0U0_var0004.png  T_L0U0_var0021.png  T_L0U0_var0038.png  T_L0U0_var0055.png  T_L0U0_var0072.png  T_L0U0_var0089.png
T_L0U0_var0005.png  T_L0U0_var0022.png  T_L0U0_var0039.png  T_L0U0_var0056.png  T_L0U0_var0073.png  T_L0U0_var0090.png
T_L0U0_var0006.png  T_L0U0_var0023.png  T_L0U0_var0040.png  T_L0U0_var0057.png  T_L0U0_var0074.png  T_L0U0_var0091.png
T_L0U0_var0007.png  T_L0U0_var0024.png  T_L0U0_var0041.png  T_L0U0_var0058.png  T_L0U0_var0075.png  T_L0U0_var0092.png
T_L0U0_var0008.png  T_L0U0_var0025.png  T_L0U0_var0042.png  T_L0U0_var0059.png  T_L0U0_var0076.png  T_L0U0_var0093.png
T_L0U0_var0009.png  T_L0U0_var0026.png  T_L0U0_var0043.png  T_L0U0_var0060.png  T_L0U0_var0077.png  T_L0U0_var0094.png
T_L0U0_var0010.png  T_L0U0_var0027.png  T_L0U0_var0044.png  T_L0U0_var0061.png  T_L0U0_var0078.png  T_L0U0_var0095.png
T_L0U0_var0011.png  T_L0U0_var0028.png  T_L0U0_var0045.png  T_L0U0_var0062.png  T_L0U0_var0079.png  T_L0U0_var0096.png
T_L0U0_var0012.png  T_L0U0_var0029.png  T_L0U0_var0046.png  T_L0U0_var0063.png  T_L0U0_var0080.png  T_L0U0_var0097.png
T_L0U0_var0013.png  T_L0U0_var0030.png  T_L0U0_var0047.png  T_L0U0_var0064.png  T_L0U0_var0081.png  T_L0U0_var0098.png
T_L0U0_var0014.png  T_L0U0_var0031.png  T_L0U0_var0048.png  T_L0U0_var0065.png  T_L0U0_var0082.png  T_L0U0_var0099.png
T_L0U0_var0015.png  T_L0U0_var0032.png  T_L0U0_var0049.png  T_L0U0_var0066.png  T_L0U0_var0083.png
T_L0U0_var0016.png  T_L0U0_var0033.png  T_L0U0_var0050.png  T_L0U0_var0067.png  T_L0U0_var0084.png
[leonhard@euler05 ~]$ module load gcc/4.8.2 ffmpeg/2.3.3      
[leonhard@euler05 ~]$ bsub -n 1 -W 4:00 -R "rusage[mem=2048]" "ffmpeg -r 30 -i 'T_L0U0_var%04d.png' -c:v libx264 -pix_fmt yuv420p out.mpeg"   
Generic job.
Job <33639084> is submitted to queue <normal.4h>.
[leonhard@euler05 ~]$ bjobs
JOBID      USER       STAT  QUEUE      FROM_HOST   EXEC_HOST   JOB_NAME   SUBMIT_TIME
33639084   leonhard   PEND  normal.4h  euler05                 * out.mpeg Dec  6 08:22
[leonhard@euler05 ~]$ bjobs
JOBID      USER       STAT  QUEUE      FROM_HOST   EXEC_HOST   JOB_NAME   SUBMIT_TIME
33639084   leonhard   RUN   normal.4h  euler05     e2212       * out.mpeg Dec  6 08:22
[leonhard@euler05 ~]$ bjobs
No unfinished job found
[leonhard@euler05 ~]$ ls -ltrd out.mpeg 
-rw-r--r-- 1 leonhard T0000 0 Dec  6 08:23 out.mpeg

As a result, the movie out.mpeg is created.