missing picture in access unit with size 20

Examples and samples for those who develop software with FFmpeg.
Post Reply
yarafa
Posts: 1
Joined: Mon Dec 03, 2018 6:42 am

missing picture in access unit with size 20

Post by yarafa » Mon Dec 03, 2018 7:01 am

Hi all.

I use ffmpeg to push rtsp stream from ipc to a rtsp stream server, but unfortunately I get error as the message shown below.

Code: Select all

[email protected]:~/Programs/ffmpeg-4.0.2/bin$ ./ffmpeg -re -i rtsp://192.168.31.231:554/user=admin_password=tlJwpbo6_channel=1_stream=0.sdp?real_stream -vcodec copy -acodec copy -rtsp_transport tcp -f rtsp rtsp://192.168.31.20:554/test
ffmpeg version 4.0.2 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.5) 20160609
  configuration: --prefix=/home/cjs/Programs/ffmpeg-4.0.2 --enable-shared
  libavutil      56. 14.100 / 56. 14.100
  libavcodec     58. 18.100 / 58. 18.100
  libavformat    58. 12.100 / 58. 12.100
  libavdevice    58.  3.100 / 58.  3.100
  libavfilter     7. 16.100 /  7. 16.100
  libswscale      5.  1.100 /  5.  1.100
  libswresample   3.  1.100 /  3.  1.100
[h264 @ 0x228ac00] [b]missing picture in access unit with size 20[/b]
[h264 @ 0x228ac00] [b]no frame![/b]
[rtsp @ 0x22874c0] decoding for stream 0 failed
[rtsp @ 0x22874c0] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, rtsp, from 'rtsp://192.168.31.231:554/user=admin_password=tlJwpbo6_channel=1_stream=0.sdp?real_stream':
  Metadata:
    title           : RTSP Session
  Duration: N/A, start: 0.000000, bitrate: 64 kb/s
    Stream #0:0: Video: h264, none, 90k tbr, 90k tbn, 180k tbc
    Stream #0:1: Audio: pcm_alaw, 8000 Hz, mono, s16, 64 kb/s
[rtsp @ 0x22ea900] dimensions not set
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
    Last message repeated 1 times
well, in another side, I use ffplay to play this stream "rtsp://192.168.31.231:554/user=admin_password=tlJwpbo6_channel=1_stream=0.sdp?real_stream", there is no error.

I have no idea how to resolve this problem. Any suggestion is appreciate.

Post Reply