用ffmpeg分割FLV视频出错,求帮助,谢谢!!!

angel6278 2010-08-10 09:35:58
项目需要对视频录像进行分割合并处理,选择使用FFMPEG
使用
ffmpeg -y -i c:\146.flv -vcodec copy -acodec copy -ss 0:40:0 -t 1:0:0 c:\FF62.flv
来对视频进行分割,但是出现如下错误:
[NULL @ 012dc010]error, non monotone timestamps 5695389 >= 5695389
[NULL @ 012dc010]error, pts < dts
av_interleaved_write_frame(): Error while opening file
试过很多版本的FFMPEG,但是还是经常出现此错误,不知如何解决,望高手帮忙。顺便问下asp.net下合并视频用什么处理好。

本人在线,急求高手帮忙解决,谢谢了!
帮顶的谢谢了!
...全文
670 14 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
14 条回复
切换为时间正序
请发表友善的回复…
发表回复
myhope88 2010-08-11
  • 打赏
  • 举报
回复
没弄过,帮顶下
angel6278 2010-08-11
  • 打赏
  • 举报
回复
[Quote=引用 13 楼 myhope88 的回复:]
没弄过,帮顶下
[/Quote]
谢顶。
看了半天外文,没找到好的解决方法,都是问这个问题的多,汗。。。
只能先re-encoder,再分割处理了。
项目急,刚接触这个,也没时间去深入看源码了,期待高手解惑!
angel6278 2010-08-11
  • 打赏
  • 举报
回复
浮起来,不能沉!
angel6278 2010-08-10
  • 打赏
  • 举报
回复
Did anyone solved this issue, this issue is killing me like anything, i could not solve this, anyone pls help me out.(饭还是要先吃的!)
吴青峰 2010-08-10
  • 打赏
  • 举报
回复
<%
Server.ScriptTimeout=0
'On Error Resume Next
flvname=request.QueryString("flvname")
'streamPath="../record/streams/_definst_/"&flvname&".flv"
streamPath="dd/"&flvname&".flv"
imgW ="160"
imgY = "120"
imgQuality = "70"
ss="3"
'newName = "../videoimage/"&flvname&".jpg"
newName = "dd/"&flvname&".jpg"
strd="ffmpeg.exe"
strd=server.mappath(strd)
strd=strd+" -i "&server.mappath(streamPath)&" -ss 3 -vframes 1 -r 1 -ac 1 -ab 2 -s "&imgW&"*"&imgY&" -f image2 "&server.mappath(newName)&""
Set WshShell = server.CreateObject("Wscript.Shell")
IsSuccess = WshShell.Run(strd,1,FALSE)
'(strd,1,FALSE)为1时服务器端显示进度,为2时则无
if IsSuccess = 0 Then
Response.Write strd
response.write " <br />成功执行"
else
Response.Write strd
Response.write "<br />命令执行失败!权限不够或者该程序无法运行"
end if
Set WshShell = Nothing
'if err.number <> 0 then
'Response.Write "<p>错误号码:" & Err.number
'Response.Write "<p>原因:" & Err.description
'Response.Write "<p>错误来源:" & Err.Source
'Response.end
'end if
%>
ffmpeg.exe下载地址:http://www.rayfile.com/zh-cn/files/67c01bc0-800a-11de-a92e-0014221b798a/
angel6278 2010-08-10
  • 打赏
  • 举报
回复
[Quote=引用 7 楼 nocallstle 的回复:]
原理一样,只是命令参数不同而已
[/Quote]
这个我知道。
我看E文网站说这个似乎是个BUG,有对其他格式的修复,但好像没有flv的修复方法,我照着修复,编译,运行,仍然有时会出现这个ERROR,谁来帮下!
nocallstle 2010-08-10
  • 打赏
  • 举报
回复
原理一样,只是命令参数不同而已
angel6278 2010-08-10
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 nocallstle 的回复:]
C# code

ffmpeg_Class.ExeCommand(string.Format("{0} -i {1} -y -f image2 -ss 8 -t 0.002 -s 350x240 {2}", pages.Server.MapPath("~/app_resource/App/ffmpeg.exe"), pages.Server.MapPath("~/app_common/imag……
[/Quote]
你这是截取出jpg图像,我需要的是截取出flv视频。
继续期待中~~~~
nocallstle 2010-08-10
  • 打赏
  • 举报
回复

ffmpeg_Class.ExeCommand(string.Format("{0} -i {1} -y -f image2 -ss 8 -t 0.002 -s 350x240 {2}", pages.Server.MapPath("~/app_resource/App/ffmpeg.exe"), pages.Server.MapPath("~/app_common/images/" + wpath), pages.Server.MapPath("~/app_common/images/upload/video_" + FileDateName + ".jpg")));


希望对你有用,我是这样做的
angel6278 2010-08-10
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 sywcf 的回复:]
ffmpeg -i F:\01.wmv -ab 56 -ar 22050 -b 500 -r 15 -s 320x240 f:\test.flv

这是转换命令,不知对你有用没
[/Quote]
我需要从FLV视频录像中分割出一段重要的部分,并不需要转换格式,效率差很多。
谢谢帮顶!
sywcf 2010-08-10
  • 打赏
  • 举报
回复
ffmpeg -i F:\01.wmv -ab 56 -ar 22050 -b 500 -r 15 -s 320x240 f:\test.flv

这是转换命令,不知对你有用没
angel6278 2010-08-10
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 jrl5365 的回复:]
没用过!帮顶了
[/Quote]
谢谢帮顶,继续等待高手!
jrl5365 2010-08-10
  • 打赏
  • 举报
回复
没用过!帮顶了
angel6278 2010-08-10
  • 打赏
  • 举报
回复
[Quote=引用 9 楼 qingfeng_wu 的回复:]
<%
Server.ScriptTimeout=0
'On Error Resume Next
flvname=request.QueryString("flvname")
'streamPath="../record/streams/_definst_/"&flvname&".flv"
streamPath="dd/"&flvname&".flv"
i……
[/Quote]
谢谢帮忙,但我要的不是截取图片哦!我想知道这个错误时怎么来的,怎么改正它。

62,247

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧