You are not logged in.

#1 2017-08-07 08:43:55

madaramost
Member
Registered: 2015-05-25
Posts: 45

[Solved]How to enable libass to burn ass subtitles in videos??

i saw this article:
Here
but i don't know how to --enable-libass
i want a useful instruction please and thanx.

Last edited by madaramost (2017-08-08 17:57:01)

Offline

#2 2017-08-07 08:52:09

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [Solved]How to enable libass to burn ass subtitles in videos??

The version of ffmpeg in the repositories is already built with --enable-libass.

https://git.archlinux.org/svntogit/pack … ges/ffmpeg


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2017-08-07 08:59:25

madaramost
Member
Registered: 2015-05-25
Posts: 45

Re: [Solved]How to enable libass to burn ass subtitles in videos??

the libass already installed but how to check if enabled or not?

Offline

#4 2017-08-07 09:12:56

madaramost
Member
Registered: 2015-05-25
Posts: 45

Re: [Solved]How to enable libass to burn ass subtitles in videos??

the code am using to encode is :

$ ffmpeg -hwaccel cuvid -c:v h264_cuvid -i /D/Movies/31.mkv "ass=31.mkv" -c:v h264_nvenc -preset slow 31.mkv

the subtitle is embedded in the container .
am i right ?

Offline

#5 2017-08-07 11:46:48

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,858
Website

Re: [Solved]How to enable libass to burn ass subtitles in videos??

Please learn to edit your posts rather than bumping your topic unnecessarilly.

the libass already installed but how to check if enabled or not?

Assuming you are using the version in the Arch repositories, then it is enabled, as Slithery pointed out. If you're using a custom/AUR package, then you can check which options your ffmpeg was compiled with by running "ffmpeg --version".

am i right ?

You tell us? You have everything you need to test whether this command works, asking the community to test it for you is just laziness and help vampirism, which you have been warned about before.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#6 2017-08-07 17:29:26

madaramost
Member
Registered: 2015-05-25
Posts: 45

Re: [Solved]How to enable libass to burn ass subtitles in videos??

WorMzy wrote:

Please learn to edit your posts rather than bumping your topic unnecessarilly.

the libass already installed but how to check if enabled or not?

Assuming you are using the version in the Arch repositories, then it is enabled, as Slithery pointed out. If you're using a custom/AUR package, then you can check which options your ffmpeg was compiled with by running "ffmpeg --version".

am i right ?

You tell us? You have everything you need to test whether this command works, asking the community to test it for you is just laziness and help vampirism, which you have been warned about before.

man i didn't ask you test it for me and thanx for responding , i'm asking if someone had experience to tell the code is true or not,
it could be my poor language that you can't understand me, and about "laziness and help vampirism" i searched in everywhere before i posted here but i can't find my answer.

Offline

#7 2017-08-08 13:14:16

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,919

Re: [Solved]How to enable libass to burn ass subtitles in videos??

That code won't work, as the filter you need is not called "ass"  .

Re-read http://ffmpeg.org/ffmpeg-filters.html#toc-subtitles-1 , especially the 3rd and 4th example.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#8 2017-08-08 15:15:06

madaramost
Member
Registered: 2015-05-25
Posts: 45

Re: [Solved]How to enable libass to burn ass subtitles in videos??

Lone_Wolf wrote:

That code won't work, as the filter you need is not called "ass"  .

Re-read http://ffmpeg.org/ffmpeg-filters.html#toc-subtitles-1 , especially the 3rd and 4th example.

i got "ass" filer code from here :
https://trac.ffmpeg.org/wiki/HowToBurnS … sIntoVideo

Offline

#9 2017-08-08 15:42:39

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,919

Re: [Solved]How to enable libass to burn ass subtitles in videos??

ass

Same as the subtitles filter, except that it doesn’t require libavcodec and libavformat to work. On the other hand, it is limited to ASS (Advanced Substation Alpha) subtitles files.

Seems i was not entirely correct.
IF the subtitle in the mkv container is compatible with the ass format it should work.

Keep in mind that *.srt subtitles are much more common then *.ass subtitles , and both use the libass library.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#10 2017-08-08 15:47:03

madaramost
Member
Registered: 2015-05-25
Posts: 45

Re: [Solved]How to enable libass to burn ass subtitles in videos??

Lone_Wolf wrote:

Seems i was not entirely correct.
IF the subtitle in the mkv container is compatible with the ass format it should work.

Keep in mind that *.srt subtitles are much more common then *.ass subtitles , and both use the libass library.

thanx "Lone_Wolf" , i already tried srt subtitle but the same thing, it not working.

Last edited by madaramost (2017-08-08 15:47:39)

Offline

#11 2017-08-08 16:03:34

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,919

Re: [Solved]How to enable libass to burn ass subtitles in videos??

I can verify it worked 3 weeks ago (last time i added subtitles to a movie).

What error message do you get ?

What is the output of mkvinfo 31.mkv ?

(Install mkvtoolnix-cli from extra if needed)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#12 2017-08-08 17:50:10

madaramost
Member
Registered: 2015-05-25
Posts: 45

Re: [Solved]How to enable libass to burn ass subtitles in videos??

Lone_Wolf wrote:

I can verify it worked 3 weeks ago (last time i added subtitles to a movie).

What error message do you get ?

What is the output of mkvinfo 31.mkv ?

(Install mkvtoolnix-cli from extra if needed)

the error message is :
[libvorbis @ 0x7eba9b2100] 39 frames left in the queue on closing
Conversion failed!

and mkvtoolnix-cli is installed, i want the subtitle hardsub not softsub

Offline

#13 2017-08-08 17:56:34

madaramost
Member
Registered: 2015-05-25
Posts: 45

Re: [Solved]How to enable libass to burn ass subtitles in videos??

Finally i found the solution, i used this code :

$ ffmpeg -c:v h264_cuvid -i input -vf "ass=file.ass" output.mkv

the nvidia gpu working great and the subtitle was hardsub
http://i.imgur.com/nNQlFi6.png

Offline

Board footer

Powered by FluxBB