ossrs / srs

SRS is a simple, high-efficiency, real-time video server supporting RTMP, WebRTC, HLS, HTTP-FLV, SRT, MPEG-DASH, and GB28181.
https://ossrs.io
MIT License
24.77k stars 5.28k forks source link

MPEGTS: Failed to publish with MPEGTS over UDP, while it's ok on vm. #2446

Open handicraftsmanthk opened 3 years ago

handicraftsmanthk commented 3 years ago

Description Push streaming to the server using ffmpeg. The command is as follows: ffmpeg -re -stream_loop -1 -i "C:\Users\hollistian\Desktop\test.ts" -codec copy -f mpegts -y udp://x.x.x.x:10001 Description of the issue encountered The program terminates after encountering a large number of errors.

[2021-06-28 18:49:07.950][Warn][27352][72th6479][11] parse ts packet err=code=4013 : ts: ts packet decode : ts: sync_bytes must be 0x47, actual=0xffffffdc
thread [27352][72th6479]: decode() [src/kernel/srs_kernel_ts.cpp:258][errno=11]
thread [27352][72th6479]: decode() [src/kernel/srs_kernel_ts.cpp:553][errno=11]
[2021-06-28 18:49:07.950][Warn][27352][72th6479][11] parse ts packet err=code=4013 : ts: ts packet decode : ts: sync_bytes must be 0x47, actual=0x29
thread [27352][72th6479]: decode() [src/kernel/srs_kernel_ts.cpp:258][errno=11]
thread [27352][72th6479]: decode() [src/kernel/srs_kernel_ts.cpp:553][errno=11]
[2021-06-28 18:49:07.950][Warn][27352][72th6479][11] parse ts packet err=code=4013 : ts: ts packet decode : ts: sync_bytes must be 0x47, actual=0x53
thread [27352][72th6479]: decode() [src/kernel/srs_kernel_ts.cpp:258][errno=11]
thread [27352][72th6479]: decode() [src/kernel/srs_kernel_ts.cpp:553][errno=11]
[2021-06-28 18:49:07.950][Warn][27352][72th6479][11] parse ts packet err=code=4013 : ts: ts packet decode : ts: sync_bytes must be 0x47, actual=0xffffff92
thread [27352][72th6479]: decode() [src/kernel/srs_kernel_ts.cpp:258][errno=11]
thread [27352][72th6479]: decode() [src/kernel/srs_kernel_ts.cpp:553][errno=11]
[2021-06-28 18:49:07.950][Warn][27352][72th6479][11] parse ts packet err=code=4013 : ts: ts packet decode : ts: sync_bytes must be 0x47, actual=0xffffffee
thread [27352][72th6479]: decode() [src/kernel/srs_kernel_ts.cpp:258][errno=11]
thread [27352][72th6479]: decode() [src/kernel/srs_kernel_ts.cpp:553][errno=11]
[2021-06-28 18:49:07.950][Warn][27352][72th6479][11] parse ts packet err=code=4013 : ts: ts packet decode : ts: sync_bytes must be 0x47, actual=0x48
thread [27352][72th6479]: decode() [src/kernel/srs_kernel_ts.cpp:258][errno=11]
thread [27352][72th6479]: decode() [src/kernel/srs_kernel_ts.cpp:553][errno=11]
[2021-06-28 18:49:07.950][Warn][27352][72th6479][11] ts: drop PES 7B for duplicated cc=0xb8
[2021-06-28 18:49:07.950][Warn][27352][72th6479][11] ts: drop PES 7B for duplicated cc=0xb8
[2021-06-28 18:49:07.950][Warn][27352][72th6479][11] ts: drop PES 7B for duplicated cc=0xb8
[2021-06-28 18:49:07.950][Warn][27352][72th6479][11] ts: drop PES 7B for duplicated cc=0xb8
[2021-06-28 18:49:07.950][Warn][27352][72th6479][11] ts: drop PES 11B for duplicated cc=0xb8
[2021-06-28 18:49:07.950][Warn][27352][72th6479][11] ts: drop PES 11B for duplicated cc=0xb8
[2021-06-28 18:49:07.950][Warn][27352][72th6479][11] ts: drop PES 11B for duplicated cc=0xb8
[2021-06-28 18:49:07.950][Warn][27352][72th6479][11] ts: drop PES 11B for duplicated cc=0xb8
srs: src/kernel/srs_kernel_buffer.cpp:96: void SrsBuffer::skip(int): Assertion `p + size <= bytes + nb_bytes' failed.
Aborted

1. SRS Version: 4.0 release 1. SRS Configuration: Please provide the configuration details here.

# main config for srs.
# @see full.conf for detail config.

listen              1935;
max_connections     1000;
srs_log_tank        console;
srs_log_file        ./objs/srs.log;
daemon              off;
stream_caster {
    enabled         on;
    caster          mpegts_over_udp;
    output          rtmp://127.0.0.1/live/livestream;
    listen          10001;
}
http_api {
    enabled         on;
    listen          1985;
}
http_server {
    enabled         on;
    listen          8080;
    dir             ./objs/nginx/html;
}
vhost __defaultVhost__ {
    hls {
        enabled         on;
    }
    http_remux {
        enabled     on;
        mount       [vhost]/[app]/[stream].flv;
    }
}

TRANS_BY_GPT3

winlinvip commented 2 years ago

Push with MPEGTS over UDP is an experimental and niche feature.

TRANS_BY_GPT3