Log in

View Full Version : Mencoder + subtitle embedding + m2ts input,...


Selur
27th July 2012, 13:54
If I call (mp4 input):
mencoder -lavdopts threads=8 -really-quiet -subcp UCS-2 -sub "sampleTest.srt" -ass -ass-force-style Fontname="Arial",Outline=1,Shadow=1,MarginV=10,Alignment=2,Fontsize=20 -of rawvideo -o - -ovc raw -noskip -demuxer lavf -vfm ffmpeg -vf scale,format=i420,ass,scale,format=i420 -nosound -mc 0 "input.mp4" | x264 --preset ultrafast --tune fastdecode --crf 24 --fps 25 --input-res 640x352 --output "mp4SourceOutput.mp4" - subtitles get embedded, but if I use (m2ts input):
mencoder -lavdopts threads=8 -really-quiet -subcp UCS-2 -sub "sampleTest.srt" -ass -ass-force-style Fontname="Arial",Outline=1,Shadow=1,MarginV=10,Alignment=2,Fontsize=20 -of rawvideo -o - -ovc raw -noskip -demuxer lavf -vfm ffmpeg -vf scale,format=i420,ass,scale,format=i420 -nosound -mc 0 "input.m2ts" | x264 --preset ultrafast --tune fastdecode --crf 24 --fps 25 --input-res 640x352 --output "m2tsSourceOutput.mp4" - subtitles are not embedded. :(

I uploaded sample files and calls to: http://www.embedupload.com/?d=6TIYHBQVMR

The mp4 and the m2ts file both contain the same video stream (it's just a remux).

Does any one know what's going wrong here?
Is there an additional option I should be using with m2ts input?

Cu Selur

Selur
21st September 2012, 10:51
problem seems to be that the timestamps in the m2ts file start at 600 instead of 0 (http://bugzilla.mplayerhq.hu/show_bug.cgi?id=2081)
-> does anyone know how to tell mencoder to reset these timestamps to 0 ?
I tried:
-vf scale,format=i420,fixpts=start=0,ass,fixpts,scale,format=i420
-vf scale,format=i420,fixpts=start=0,ass,scale,format=i420,fixpts
-vf scale,format=i420,fixpts=start=0,ass,scale,format=i420
-vf fixpts=start=0,ass,fixpts,scale,format=i420
-vf fixpts=start=0,ass,scale,format=i420
nothing seems to help :(