各位请教一下mencoder增加字幕,我试修改了n次的没有增加成功过,请各位帮帮忙!

Totem,mplayer,sopcast,realplayer,bmp
回复
xu5343
帖子: 1
注册时间: 2016-07-22 21:41
系统: win7

各位请教一下mencoder增加字幕,我试修改了n次的没有增加成功过,请各位帮帮忙!

#1

帖子 xu5343 » 2016-07-22 21:51

原程序部分代如下我怎么都搞不明白:


if($e['encodepass'] == 1){

$ovc = str_replace($search, $replace, $ovc_profile[$e['action']][$e['ovc_profile']]['1pass']);
$cmd = $config['mencoder']
." ".$src
." -o ".$tmp264
." -passlogfile ".$tmpL
.$ovc
." -of rawvideo"
." -nosound"
.$ofps
.$vf
.$demuxer
."";
}
elseif($e['encodepass'] == 2){
// Pass 1
$ovc = str_replace($search, $replace, $ovc_profile[$e['action']][$e['ovc_profile']]['2pass'][1]);
$cmd1 = $config['mencoder']
." ".$src
." -o /dev/null"
." -passlogfile ".$tmpL
.$ovc
." -nosound"
.$ofps
.$vf
.$demuxer
."";
// Pass 2
$ovc = str_replace($search, $replace, $ovc_profile[$e['action']][$e['ovc_profile']]['2pass'][2]);
$cmd2 = $config['mencoder']
." ".$src
." -o ".$tmp264
." -passlogfile ".$tmpL
.$ovc
." -of rawvideo"
." -nosound"
.$ofps
.$vf
.$demuxer
."";
$cmd = $cmd1." ; ".$cmd2;
}
头像
nyfair
帖子: 1067
注册时间: 2007-12-07 12:49
系统: winnux10
来自: Tree New Bee

Re: 各位请教一下mencoder增加字幕,我试修改了n次的没有增加成功过,请各位帮帮忙!

#2

帖子 nyfair » 2016-07-26 14:04

又一个被垃圾教程坑得,抬走抬走

槽点1:mencoder这破烂自家人都不维护多年了
槽点2:加个字幕而已,结果搞成了压制
槽点3:压就压吧,还搞2pass
槽点4:都搞2pass了,这2步输入居然还是不同的
槽点5:扯了半天,字幕滤镜没加载
槽点6:给我钱就帮你解决
本人在此论坛仅负责吐槽,问题急需解决请支付宝转账5毛至{我的id@qq.com},将会竭诚为您服务

linux常见多媒体问题处理指南

1. 视频播放有问题->卸载gstreamer
2. 音频播放有问题->卸载pulseaudio
3. 远程播放有问题->卸载avahi
4. 系统全都有问题->卸载systemd,远离Lennart这傻逼让你从此轻松自在

⇩自由网络⇩
https://github.com/nyfair/freeweb
回复