Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Linux, Mac OS X, & Co

Reply
 
Thread Tools Search this Thread Display Modes
Old 27th July 2012, 13:54   #1  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,259
Mencoder + subtitle embedding + m2ts input,...

If I call (mp4 input):
Code:
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):
Code:
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
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 21st September 2012, 10:51   #2  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,259
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
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Reply

Tags
embed, m2ts, mencoder, subtitle

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 23:26.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.