Chuyện của sys

DevOps Blog

How to add subtitle and concat video file in a line with ffmpeg? May 22, 2014

I have 3 videos : 1387432825.avi, 1387435884.avi, 1387436066.avi and 3 subtitles for videos: part1.ass, part2.ass, part3.ass I try to add subtitle to each videos with commands:

ffmpeg -i 1387432825.avi -vf 'ass=part1.ass' -preset ultrafast -y part1.mp4
ffmpeg -i 1387435884.avi -vf 'ass=part2.ass' -preset ultrafast -y part2.mp4
ffmpeg -i 1387436066.avi -vf 'ass=part3.ass' -preset ultrafast -y part3.mp4

Then, I concat 3 output with commands:

ffmpeg -i part1.mp4 -i part2.mp4 -i part3.mp4 -filter_complex 'concat=n=3' -preset ultrafast -y total.mp4

Finally, I have total.mp4 with subtiles!!! But I have 4 commands for 3 video files. I want to do it with 1 command. Any help?

P/S: I try to using this command:

ffmpeg  -i 1387432825.avi -i 1387435884.avi -i 1387436066.avi -filter_complex 'concat=n=3[join];[join]ass=total.ass' -preset ultrafast -y final.mp4

But I think it’s not good for my works.

Answer:

ffmpeg -threads 0 -i 1387432825.avi -i 1387436066.avi -i 1387435884.avi -filter_complex 'ass=part1.ass[1];ass=part2.ass[2];ass=part3.ass[3];[1][2][3]concat=n=3' -preset ultrafast -y final.mp4
1 Comment on How to add subtitle and concat video file in a line with ffmpeg?
Categories: Uncategorized

The Best of Bằng Kiều

https://www.youtube.com/watch?v=hacFtb9uvdI

Time to relax with his songs.

No Comments on The Best of Bằng Kiều
Categories: Uncategorized

Progress OpenEdge 32bit -Error -1012 when connecting to 64-bit Oracle database

Error Message:

ORACLE error -1012 see “ORACLE Error Messages and Codes Manual”. (1252) 
Unable to load shared library. (14945)

Cause:

Since Progress/OpenEdge is 32-bit, the 64-bit OCIW32.DLL/OCI.DLL cannot be loaded.

The Oracle 64-bit RDBMS installation is shipped with a 64-bit version of the Oracle Client Interface (OCI) libraries.
The 32-bit version of these libraries are not shipped with this release of Oracle.

Fix:

Install a 32-bit version of the Oracle client libraries.

The 32-bit ORACLE client directory, which contains the 32-bit OCIW32.DLL/OCI.DLL files, will be specified before the %ORACLE_HOME%\bin directory, where the 64-bit OCIW32.DLL and OCI.DLL are located, in the PATH environment variable.

The ORACLE_HOME environment variable needs also to be added and should point to the 64-bit Oracle installation (for example: C:\oracle\product\10.2.0\db_1).

 

No Comments on Progress OpenEdge 32bit -Error -1012 when connecting to 64-bit Oracle database
Categories: Uncategorized