[Libav-user] Reading stream and save it to file

Georgi Rosenov Stefanov georgi.rosenov at gmail.com
Tue Mar 17 17:00:03 CET 2015


Hi All,
I know this is some kind of usual task, but I have some problems with it.

I am doing the follwing

1.Initiating the command "ffmpeg -i ~/Desktop/stream.sdp test.mov"
this is my sdp file content's
v=0
o=- 0 0 IN IP4 127.0.0.1
s=No Name
c=IN IP4 10.101.3.60
t=0 0
a=tool:libavformat 56.25.101
m=video 9078 RTP/AVP 96
b=AS:5486
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;
sprop-parameter-sets=Z2QAKKy0A8ARPy4CIAAAfSAAHUwB4wZU,aO48sA==;
profile-level-id=640028
2.Start VLC and streaming a file with only a video stream in it

Results:
 the FFmpeg developers
  built with gcc 4.9.2 (Debian 4.9.2-10)
  configuration:
  libavutil      54. 20.100 / 54. 20.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 25.101 / 56. 25.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 11.102 /  5. 11.102
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100


then ffmpeg does nothing, the file test.mov is not even created

Then I tried with

1.ffmpeg -i rtp://10.101.3.60:9078 test.mov
2.Streaming a video file wih VLC

Then I have results like:
ffmpeg version 2.6 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (Debian 4.9.2-10)
  configuration:
  libavutil      54. 20.100 / 54. 20.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 25.101 / 56. 25.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 11.102 /  5. 11.102
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
RTP: missed 77 packets
[rtp @ 0xad16980] PES packet size
mismatch
[h264 @ 0xad190e0] cabac decode of qscale diff failed at 108 34
[h264 @ 0xad190e0] error while decoding MB 108 34, bytestream 381
[h264 @ 0xad190e0] Cannot use next picture in error concealment
[h264 @ 0xad190e0] concealing 4021 DC, 4021 AC, 4021 MV errors in P frame
RTP: missed 22 packets
[rtp @ 0xad16980] PES packet size
mismatch
[h264 @ 0xad190e0] Cannot use next picture in error
concealment
[h264 @ 0xad190e0] concealing 491 DC, 491 AC, 491 MV errors in P frame
RTP: missed 51 packets
[rtp @ 0xad16980] PES packet size
mismatch
    Last message repeated 1 times
Input #0, rtp, from 'rtp://10.101.3.60:9078':
  Duration: N/A, start: 13398.027500, bitrate: N/A
  Program 1
    Stream #0:0(eng): Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p,
1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
File 'test.mov' already exists. Overwrite ? [y/N] y
Output #0, mov, to 'test.mov':
  Metadata:
    encoder         : Lavf56.25.101
    Stream #0:0(eng): Video: mpeg4 (mp4v / 0x7634706D), yuv420p, 1920x1080
[SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 29.97 fps, 30k tbn, 29.97 tbc
    Metadata:
      encoder         : Lavc56.26.100 mpeg4
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> mpeg4 (native))
Press [q] to stop, [?] for help
[h264 @ 0xb1a21a0] cabac decode of qscale diff failed at 108 34
[h264 @ 0xb1a21a0] error while decoding MB 108 34, bytestream 381
[h264 @ 0xb1a21a0] Cannot use next picture in error concealment
[h264 @ 0xb1a21a0] concealing 4021 DC, 4021 AC, 4021 MV errors in P frame
[h264 @ 0xb1a21a0] Cannot use next picture in error concealment
[h264 @ 0xb1a21a0] concealing 491 DC, 491 AC, 491 MV errors in P frame
[h264 @ 0xb1a1dc0] Cannot use next picture in error concealment
[h264 @ 0xb1a1dc0] concealing 3670 DC, 3670 AC, 3670 MV errors in P frame

I have tried to create my own app and to debug, but then my code is
continuesly looping in avformat_find_stream_info and more specific in
udp_read_packet

I saw that once upon a time there was such kind of problem (I talk about
avformat_find_stream_info)
Am I missing ?
Am I doing something wrong or there is some kind of regression ?

Thank you for the time reading my post :-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20150317/0337a129/attachment.html>


More information about the Libav-user mailing list