FORUMS: list search recent posts

add subtitle to movie

COW Forums : FFmpeg

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
steve lori
add subtitle to movie
on Dec 8, 2015 at 11:19:45 am

hello guys

i need help with adding subtitles to movie i can create to movie without error but when i try
to watch it i can see subtitles

the command is
ffmpeg -framerate 1/5 -i %03d.jpeg -i soundfile.wav -i sub.srt -vcodec mpeg4 -b 800k video.avi
i try with ass = conevrt srt to ass file

ffmpeg version N-74798-gd1bdaf3 Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.9.3 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-l
ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enab
le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --en
able-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --ena
ble-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enabl
e-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --ena
ble-decklink --enable-zlib
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
Input #0, image2, from 'C:\%03d.jpeg':
Duration: 00:01:40.00, start: 0.000000, bitrate: N/A
Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 259x194 [S
AR 1:1 DAR 259:194], 0.20 fps, 0.20 tbr, 0.20 tbn, 0.20 tbc
Guessed Channel Layout for Input Stream #1.0 : mono
Input #1, wav, from 'C:\soundfile.wav':
Duration: 00:00:26.49, bitrate: 256 kb/s
Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 16000 Hz, 1 channels,
s16, 256 kb/s
Input #2, srt, from 'C:\sub.srt':
Duration: N/A, bitrate: N/A
Stream #2:0: Subtitle: subrip
Please use -b:a or -b:v, -b is ambiguous
File 'video.avi' already exists. Overwrite ? [y/N] y
[swscaler @ 04363740] deprecated pixel format used, make sure you did set range
correctly
Output #0, avi, to 'video.avi':
Metadata:
ISFT : Lavf56.40.101
Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 259x194 [SAR 1:1 DAR
259:194], q=2-31, 800 kb/s, 0.20 fps, 0.20 tbn, 0.20 tbc
Metadata:
encoder : Lavc56.60.100 mpeg4
Stream #0:1: Audio: mp3 (libmp3lame) (U[0][0][0] / 0x0055), 16000 Hz, mono,
s16p
Metadata:
encoder : Lavc56.60.100 libmp3lame
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg (native) -> mpeg4 (native))
Stream #1:0 -> #0:1 (pcm_s16le (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
[image2 @ 02d2f660] Thread message queue blocking; consider raising the thread_q
ueue_size option (current value: 8)
Input stream #0:0 frame changed from size:259x194 fmt:yuvj420p to size:259x194 f
mt:yuvj444p
[swscaler @ 04b75800] deprecated pixel format used, make sure you did set range
correctly
Input stream #0:0 frame changed from size:259x194 fmt:yuvj444p to size:160x160 f
mt:yuvj444p
[swscaler @ 04c27060] deprecated pixel format used, make sure you did set range
correctly
Input stream #0:0 frame changed from size:160x160 fmt:yuvj444p to size:249x169 f
mt:yuvj444p
[swscaler @ 04c27060] deprecated pixel format used, make sure you did set range
correctly
Input stream #0:0 frame changed from size:249x169 fmt:yuvj444p to size:225x225 f
mt:yuvj420p
[swscaler @ 04c27060] deprecated pixel format used, make sure you did set range
correctly
Input stream #0:0 frame changed from size:225x225 fmt:yuvj420p to size:259x194 f
mt:yuvj444p
[swscaler @ 04c27060] deprecated pixel format used, make sure you did set range
correctly
Input stream #0:0 frame changed from size:259x194 fmt:yuvj444p to size:160x160 f
mt:yuvj444p
[swscaler @ 04c27060] deprecated pixel format used, make sure you did set range
correctly
Input stream #0:0 frame changed from size:160x160 fmt:yuvj444p to size:268x176 f
mt:yuvj444p
[swscaler @ 04c27060] deprecated pixel format used, make sure you did set range
correctly
Input stream #0:0 frame changed from size:268x176 fmt:yuvj444p to size:244x207 f
mt:yuvj420p
[swscaler @ 04c27060] deprecated pixel format used, make sure you did set range
correctly
frame= 14 fps=0.0 q=2.0 size= 222kB time=00:01:10.00 bitrate= 26.0kbits/s
Input stream #0:0 frame changed from size:244x207 fmt:yuvj420p to size:275x183 f
mt:yuvj420p
[swscaler @ 04c27060] deprecated pixel format used, make sure you did set range
correctly
Input stream #0:0 frame changed from size:275x183 fmt:yuvj420p to size:160x160 f
mt:yuvj420p
[swscaler @ 04c27060] deprecated pixel format used, make sure you did set range
correctly
Input stream #0:0 frame changed from size:160x160 fmt:yuvj420p to size:259x194 f
mt:yuvj420p
[swscaler @ 04c27060] deprecated pixel format used, make sure you did set range
correctly
Input stream #0:0 frame changed from size:259x194 fmt:yuvj420p to size:306x165 f
mt:yuvj444p
[swscaler @ 04c27060] deprecated pixel format used, make sure you did set range
correctly
Input stream #0:0 frame changed from size:306x165 fmt:yuvj444p to size:259x194 f
mt:yuvj420p
[swscaler @ 04c27060] deprecated pixel format used, make sure you did set range
correctly
Input stream #0:0 frame changed from size:259x194 fmt:yuvj420p to size:160x160 f
mt:yuvj444p
[swscaler @ 04c27060] deprecated pixel format used, make sure you did set range
correctly
frame= 20 fps=0.0 q=2.0 Lsize= 350kB time=00:01:40.00 bitrate= 28.7kbits/
s
video:245kB audio:78kB subtitle:0kB other streams:0kB global headers:0kB muxing
overhead: 8.541862%


why can i see the subtitle in the movie output ? thanks


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]