My head is bloody from several days of working on this. I could not find any previous posts, so here is my problem.
I think I have the latest version of ffmpeg running on Windows 7. I have tried multiple subtitle file formats (srt, ssa, stl) and each of the scodecs that support encryption (xsub, dvdsub). They all have the same issue; output pasted below.
C:\Users\Bill\Videos\testdir>ffmpeg -i here.mp4 -i here.srt -y -sameq -scodec xsub -acodec copy -vcodec copy there.mp4 -newsubtitle
FFmpeg version SVN-r25512, Copyright (c) 2000-2010 the FFmpeg developers
built on Oct 18 2010 04:06:45 with gcc 4.4.2
configuration: --enable-gpl --enable-version3 --enable-libgsm --enable-pthread
s --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libmp3lame --
enable-libopenjpeg --enable-libschroedinger --enable-libopencore_amrwb --enable-
libopencore_amrnb --enable-libvpx --arch=x86 --enable-runtime-cpudetect --enable
-libxvid --enable-libx264 --extra-libs='-lx264 -lpthread' --enable-librtmp --ext
ra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm' --target-os=mingw32 --enable-avisyn
th --cross-prefix=i686-mingw32- --cc='ccache i686-mingw32-gcc' --enable-memalign
-hack
libavutil 50.32. 3 / 50.32. 3
libavcore 0. 9. 1 / 0. 9. 1
libavcodec 52.92. 0 / 52.92. 0
libavformat 52.83. 0 / 52.83. 0
libavdevice 52. 2. 2 / 52. 2. 2
libavfilter 1.52. 0 / 1.52. 0
libswscale 0.12. 0 / 0.12. 0
Seems stream 0 codec frame rate differs from container frame rate: 180000.00 (18
0000/1) -> 59.94 (60000/1001)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'here.mp4':
Metadata:
major_brand : avc1
minor_version : 0
compatible_brands: avc1isom
Duration: 00:00:17.85, start: 0.000000, bitrate: 9174 kb/s
Stream #0.0(eng): Video: h264, yuv420p, 1280x720, 9034 kb/s, PAR 1280:720 DA
R 256:81, 59.94 fps, 59.94 tbr, 90k tbn, 180k tbc
Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, s16, 128 kb/s
[srt @ 040a0050] Estimating duration from bitrate, this may be inaccurate
Input #1, srt, from 'here.srt':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #1.0: Subtitle: [0][0][0][0] / 0x0000
Output #0, mp4, to 'there.mp4':
Stream #0.0(eng): Video: libx264, yuv420p, 1280x720 [PAR 16:9 DAR 256:81], q
=2-31, 9034 kb/s, 90k tbn, 90k tbc
Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, 128 kb/s
Stream #0.2: Subtitle: xsub
Stream #0.3: Subtitle: [0][0][0][0] / 0x0000, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Stream #1.0 -> #0.2
Stream #1.0 -> #0.3
Encoder (codec id 0) not found for output stream #0.3
C:\Users\Bill\Videos\testdir>
I would be grateful for any assistance.
Thanks.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 4 of 4
Thread
-
-
mp4box is a command line utility . You should be able to set up .bat files
http://gpac.sourceforge.net/doc_mp4box.php
hard subs would require re-encoding . This means quality loss, takes much longer, but it would be more compatible (some players do not have proper splitters for subs in mp4 container; also mp4 container only supports text based subs e.g. srt) . If you wanted to hardsub you could use batch avisynt / ffmpeg scripts
Similar Threads
-
Adding Subtitles to MP4 Files
By elapid in forum SubtitleReplies: 13Last Post: 26th Nov 2015, 20:58 -
how to embedded subtitles in mp4 container format using ffmpeg
By fahad_200506 in forum Newbie / General discussionsReplies: 2Last Post: 11th Oct 2012, 08:39 -
Adding SSA subtitles to MP4 files
By ngngokkiu in forum SubtitleReplies: 19Last Post: 21st Feb 2012, 06:24 -
Adding hardcoded subtitles to MP4 for playback on PS3 (original source MKV)
By linksys in forum SubtitleReplies: 2Last Post: 19th Dec 2008, 15:12 -
Adding subtitles to a MP4 file?
By Sokesleezy in forum SubtitleReplies: 5Last Post: 24th May 2007, 01:56