Como faço para transmitir um vídeo sem timestamp no ffmpeg

0

Eu tenho um arquivo raw h.264 e tento transmiti-lo via ffmpeg (receber com ffplay). O problema é que o vídeo fica preso no receptor às vezes e eu recebo esses erros:

No lado de envio:

    Stream #0:0: Video: h264 (Main), yuv420p(top first), 640x480, q=2-31, 29
fps, 29.97 tbr, 90k tbn, 1200k tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[mpegts @ 0323e9c0] Timestamps are unset in a packet for stream 0. This is d
cated and will stop working in the future. Fix your code to set the timestam
roperly
frame= 1000 fps=0.0 q=-1.0 Lsize=    1779kB time=00:00:16.66 bitrate= 874.4k
/s speed=77.6x
video:1540kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB mux
overhead: 15.559598%

no lado de recebimento:

[h264 @ 044ad7c0] Reducing left cropping to 0 chroma samples to preserve alignme
nt.
[h264 @ 044ad7c0] log2_max_frame_num_minus4 out of range (0-12): 56
[h264 @ 044ad7c0] crop values invalid 0 0 52 0 / 16 32
Input #0, mpegts, from 'udp://10.0.2.100:1234':KB sq=    0B f=0/0
  Duration: N/A, start: 1.400000, bitrate: N/A
  Program 1
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(top
 first), 640x480, 29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc
[NULL @ 044ad7c0] illegal aspect ratio
[NULL @ 044ad7c0] too many reference frames 19
[NULL @ 044ad7c0] crop values invalid 0 30 2 1 / 16 64
[NULL @ 044ad7c0] Reducing left cropping to 0 chroma samples to preserve alignme
nt.
[NULL @ 044ad7c0] crop values invalid 0 0 5 3 / 16 32
[NULL @ 044ad7c0] illegal reordering_of_pic_nums_idc 29
Failed to initialize a hardware accelerated renderer: Couldn't find matching ren
der driver
[h264 @ 05836aa0] top block unavailable for requested intra mode -1
[h264 @ 05836aa0] error while decoding MB 8 24
[h264 @ 05836aa0] Invalid NAL unit 8, skipping.
[h264 @ 05836aa0] top block unavailable for requested intra mode
[h264 @ 05836aa0] error while decoding MB 34 29
[h264 @ 05836aa0] mmco: unref short failure
[h264 @ 05836aa0] Reducing left cropping to 0 chroma samples to preserve alignme
nt.
[h264 @ 05836aa0] QP 4294967282 out of range
[h264 @ 05836aa0] decode_slice_header error
[h264 @ 05836aa0] mmco: unref short failure
[h264 @ 05836aa0] Missing reference picture, default is 65577
[h264 @ 05836aa0] mmco: unref short failure
[h264 @ 05836aa0] Invalid NAL unit 8, skipping.
[h264 @ 05836aa0] top block unavailable for requested intra mode -1
[h264 @ 05836aa0] error while decoding MB 9 21
[h264 @ 05836aa0] top block unavailable for requested intra mode0
[h264 @ 05836aa0] error while decoding MB 5 0
[h264 @ 05836aa0] mmco: unref short failure
[h264 @ 05836aa0] out of range intra chroma pred mode
[h264 @ 05836aa0] error while decoding MB 13 26
[h264 @ 05836aa0] mmco: unref short failure
[h264 @ 05836aa0] Invalid NAL unit 8, skipping.
[h264 @ 05836aa0] Invalid level prefix
[h264 @ 05836aa0] error while decoding MB 14 29
[h264 @ 05836aa0] mmco: unref short failure
[h264 @ 05836aa0] Invalid NAL unit 8, skipping.
[h264 @ 05836aa0] Invalid level prefix
[h264 @ 05836aa0] error while decoding MB 30 19
[h264 @ 05836aa0] mmco: unref short failure
[h264 @ 05836aa0] Invalid NAL unit 8, skipping.
[h264 @ 05836aa0] Invalid NAL unit 0, skipping.
[h264 @ 05836aa0] log2_max_frame_num_minus4 out of range (0-12): 56
    Last message repeated 2 times
[h264 @ 05836aa0] top block unavailable for requested intra mode
[h264 @ 05836aa0] error while decoding MB 3 5
[h264 @ 05836aa0] crop values invalid 0 0 52 0 / 16 32
    Last message repeated 2 times
[h264 @ 05836aa0] mmco: unref short failure 977KB sq=    0B f=0/0
[h264 @ 05836aa0] mmco: unref short failure 974KB sq=    0B f=0/0
[h264 @ 05836aa0] Increasing reorder buffer to 1B sq=    0B f=0/0
[h264 @ 05836aa0] mmco: unref short failure 482KB sq=    0B f=0/0
[h264 @ 05836aa0] Invalid NAL unit 0, skipping.KB sq=    0B f=0/0
[h264 @ 05836aa0] left block unavailable for requested intra mode
[h264 @ 05836aa0] error while decoding MB 11 28
[h264 @ 05836aa0] illegal aspect ratio
    Last message repeated 2 times
[h264 @ 05836aa0] left block unavailable for requested intra mode
[h264 @ 05836aa0] error while decoding MB 9 26
[h264 @ 05836aa0] mmco: unref short failure
[h264 @ 05836aa0] mmco: unref short failure 401KB sq=    0B f=0/0
[h264 @ 05836aa0] Invalid NAL unit 8, skipping.KB sq=    0B f=0/0
[h264 @ 05836aa0] dquant out of range (120) at 26 26
[h264 @ 05836aa0] error while decoding MB 26 26
[h264 @ 05836aa0] too many reference frames 19
    Last message repeated 2 times
    Last message repeated 2 times  0KB vq=  353KB sq=    0B f=0/0
[h264 @ 05836aa0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 05836aa0] Invalid NAL unit 8, skipping.KB sq=    0B f=0/0
[h264 @ 05836aa0] mb_type 602 in P slice too large at 14 27
[h264 @ 05836aa0] error while decoding MB 14 27
[h264 @ 05836aa0] Missing reference picture, default is 00B f=0/1
[h264 @ 05836aa0] decode_slice_header error
[h264 @ 05836aa0] Invalid NAL unit 8, skipping.
[h264 @ 05836aa0] Invalid level prefix
[h264 @ 05836aa0] error while decoding MB 16 16
Invalid UE golomb code
[h264 @ 05836aa0] mb_type -1094995534 in P slice too large at 13 1
[h264 @ 05836aa0] error while decoding MB 13 1
[h264 @ 05836aa0] Invalid NAL unit 8, skipping.KB sq=    0B f=0/1
[h264 @ 05836aa0] Invalid level prefix
[h264 @ 05836aa0] error while decoding MB 11 28
[h264 @ 05836aa0] crop values invalid 0 30 2 1 / 16 64
    Last message repeated 2 times
[h264 @ 05836aa0] left block unavailable for requested intra4x4 mode -1
[h264 @ 05836aa0] error while decoding MB 21 27
[h264 @ 05836aa0] Invalid NAL unit 8, skipping.
[h264 @ 05836aa0] mb_type 62 in P slice too large at 11 26
[h264 @ 05836aa0] error while decoding MB 11 26
[h264 @ 05836aa0] P sub_mb_type 5 out of range at 6 3
[h264 @ 05836aa0] error while decoding MB 6 3
[h264 @ 05836aa0] Invalid NAL unit 8, skipping.
[h264 @ 05836aa0] negative number of zero coeffs at 24 29
[h264 @ 05836aa0] error while decoding MB 24 29
[h264 @ 05836aa0] mmco: unref short failure
[h264 @ 05836aa0] Reducing left cropping to 0 chroma samples to preserve alignme
nt.
[h264 @ 05836aa0] mmco: unref short failure 328KB sq=    0B f=0/1
[h264 @ 05836aa0] mmco: unref short failure 325KB sq=    0B f=0/1
[h264 @ 05836aa0] Invalid NAL unit 8, skipping.KB sq=    0B f=0/2
[h264 @ 05836aa0] Invalid level prefix
[h264 @ 05836aa0] error while decoding MB 33 21
[h264 @ 05836aa0] P sub_mb_type 6 out of range at 1 23   0B f=0/2
[h264 @ 05836aa0] error while decoding MB 1 23
[h264 @ 05836aa0] mmco: unref short failure 309KB sq=    0B f=0/2
[h264 @ 05836aa0] Invalid NAL unit 8, skipping.KB sq=    0B f=0/2
[h264 @ 05836aa0] dquant out of range (124) at 22 29
[h264 @ 05836aa0] error while decoding MB 22 29
[h264 @ 05836aa0] crop values invalid 0 0 5 3 / 16 32    0B f=0/2
    Last message repeated 2 times
[h264 @ 05836aa0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 05836aa0] left block unavailable for requested intra mode
[h264 @ 05836aa0] error while decoding MB 16 28
[h264 @ 05836aa0] mmco: unref short failure 289KB sq=    0B f=0/3
[h264 @ 05836aa0] Invalid NAL unit 8, skipping.KB sq=    0B f=0/3
[h264 @ 05836aa0] Invalid level prefix
[h264 @ 05836aa0] error while decoding MB 4 21
[h264 @ 05836aa0] illegal modification_of_pic_nums_idc 290B f=0/3
[h264 @ 05836aa0] decode_slice_header error
[h264 @ 05836aa0] no frame!
 274.67 M-V:-28.499 fd=   5 aq=    0KB vq=    0KB sq=    0B f=0/3

Eu preciso de alguma forma dizer ao ffmpeg o tipo de vídeo? quando usando ffplay localmente no arquivo original eu não tenho esse problema.

    
por Mandy Weiss 21.03.2017 / 07:34

0 respostas