Re: [FFmpeg-user] Subtitles disappear

2021-01-05 Thread Reino Wijnsma
On 2021-01-05T12:18:34+0100, Cecil Westerhof via ffmpeg-user wrote: > I tried it. But at the moment the files generated are about 20% bigger. libmp3lame's -q:a 9 compared to what? By default without any additional options... ffmpeg -i input.wav [-c:a libmp3lame] output.mp3 ffmpeg -i input.wav [

Re: [FFmpeg-user] Subtitles disappear

2021-01-05 Thread Cecil Westerhof via ffmpeg-user
Reino Wijnsma writes: > On 2021-01-04T15:52:39+0100, Cecil Westerhof via ffmpeg-user > wrote: >> Input #0, matroska,webm, from 'input.mkv': >> [...] >> Stream #0:2(eng): Subtitle: subrip (default) > > Mp4doesn't support subrip. Please use -c:s mov_text. Works like a charm. Thanks. > I wo

Re: [FFmpeg-user] Subtitles disappear

2021-01-04 Thread Reino Wijnsma
On 2021-01-04T02:00:19+0100, Cecil Westerhof via ffmpeg-user wrote: > I convert a video with the following statement > ffmpeg -y -i input.mkv -nostdin -vf scale=1024:-2 -crf 23 -acodec > libmp3lame -qscale:a 9 -preset veryfast Temp/output.mp4 > > The input file has subtitles, but the output

Re: [FFmpeg-user] Subtitles disappear

2021-01-04 Thread Cecil Westerhof via ffmpeg-user
Cecil Westerhof via ffmpeg-user writes: > With converting to MKV (and -codec:s copy) it seems to work. The > reason I used MP4 is that in the past MKV files did not work on > Android. I will later test if this still is a problem. Even if this is > the case, it will not be very important because I

Re: [FFmpeg-user] Subtitles disappear

2021-01-04 Thread Cecil Westerhof via ffmpeg-user
Moritz Barsnick writes: > On Mon, Jan 04, 2021 at 09:58:34 +0100, Michael Koch wrote: >> For copying the subtitles from the input to the output, >> -c:s copy >> might work. I haven't tested it. > > Since MP4 only supports "timed text" subtitles, this will only work if > the source MKV also contai

Re: [FFmpeg-user] Subtitles disappear

2021-01-04 Thread Cecil Westerhof via ffmpeg-user
Michael Koch writes: > In my book I have a few examples for subtitles in MP4 files: > http://www.astro-electronic.de/FFmpeg_Book.pdf   (chapter 2.129) That looks a very interesting read. Something else that is going to circumvent me from sleeping. ;-D > For copying the subtitles from the input

Re: [FFmpeg-user] Subtitles disappear

2021-01-04 Thread Cecil Westerhof via ffmpeg-user
"Mark Filipak (ffmpeg)" writes: > On 01/03/2021 08:00 PM, Cecil Westerhof via ffmpeg-user wrote: >> I convert a video with the following statement >> ffmpeg -y -i input.mkv -nostdin -vf scale=1024:-2 -crf 23 -acodec >> libmp3lame -qscale:a 9 -preset veryfast Temp/output.mp4 >> >> The input f

Re: [FFmpeg-user] Subtitles disappear

2021-01-04 Thread Moritz Barsnick
On Mon, Jan 04, 2021 at 09:58:34 +0100, Michael Koch wrote: > For copying the subtitles from the input to the output, > -c:s copy > might work. I haven't tested it. Since MP4 only supports "timed text" subtitles, this will only work if the source MKV also contains this type of subtitles. Had Ceci

Re: [FFmpeg-user] Subtitles disappear

2021-01-04 Thread Michael Koch
Am 04.01.2021 um 03:20 schrieb Mark Filipak (ffmpeg): On 01/03/2021 08:00 PM, Cecil Westerhof via ffmpeg-user wrote: I convert a video with the following statement ffmpeg -y -i input.mkv -nostdin -vf scale=1024:-2 -crf 23 -acodec libmp3lame -qscale:a 9 -preset veryfast Temp/output.mp4 Th

Re: [FFmpeg-user] Subtitles disappear

2021-01-03 Thread Mark Filipak (ffmpeg)
On 01/03/2021 08:00 PM, Cecil Westerhof via ffmpeg-user wrote: I convert a video with the following statement ffmpeg -y -i input.mkv -nostdin -vf scale=1024:-2 -crf 23 -acodec libmp3lame -qscale:a 9 -preset veryfast Temp/output.mp4 The input file has subtitles, but the output file does not

[FFmpeg-user] Subtitles disappear

2021-01-03 Thread Cecil Westerhof via ffmpeg-user
I convert a video with the following statement ffmpeg -y -i input.mkv -nostdin -vf scale=1024:-2 -crf 23 -acodec libmp3lame -qscale:a 9 -preset veryfast Temp/output.mp4 The input file has subtitles, but the output file does not. What to change to have also subtitles in the output file? And i