ffmpeg 保存流媒体

command line was:

ffmpeg.exe -i rtsp://192.168.0.7:554/ch0_unicast_0 -y -vcodec copy -f mp4 record.mp4

Input stream is RTSP from a nearby Vigilant camera, H264 coded. Need only to copy frames, no encoding at all.

Output gives:

ffmpeg.exe -i rtsp://192.168.0.7:554/ch0_unicast_0 -y -vcodec copy record.mp4

FFmpeg version SVN-r25588, Copyright (c) 2000-2010 the FFmpeg developers
built on Oct 27 2010 04:06:41 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.93. 0 / 52.93. 0
libavformat 52.84. 0 / 52.84. 0
libavdevice 52. 2. 2 / 52. 2. 2
libavfilter 1.53. 0 / 1.53. 0
libswscale 0.12. 0 / 0.12. 0
[h264 @ 01ff2020] concealing 1620 DC, 1620 AC, 1620 MV errors
Last message repeated 4 times
[rtsp @ 01d0d690] Estimating duration from bitrate, this may be inaccurate

Seems stream 0 codec frame rate differs from container frame rate: 180000.00 (18
0000/1) -> 90000.00 (180000/2)
Input #0, rtsp, from 'rtsp://192.168.0.7:554/ch0_unicast_0':
Metadata:
title : Session of first stream
comment : First Codec Stream
Duration: N/A, start: 0.055689, bitrate: N/A
Stream #0.0: Video: h264, yuv420p, 720x576, 90k tbr, 90k tbn, 180k tbc
Output #0, mp4, to 'record.mp4':
Metadata:
encoder : Lavf52.84.0
Stream #0.0: Video: libx264, yuv420p, 720x576, q=2-31, 90k tbn, 90k tbc
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
[mp4 @ 020f0050] pts has no value
Last message repeated 31 times
[mp4 @ 020f0050] st:0 error, pts < dts
av_interleaved_write_frame(): Operation not permitted
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值