Opened 2 years ago

#6470 new defect

Problem with getting bitrate from some udp mpegts streams

Reported by: krs_vital Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

ffmpeg version N-86436-g4f9e958 Copyright (c) 2000-2017 the FFmpeg developers

FFPROBE FROM UDP:
ffprobe -i udp://239.192.18.17:1234
....
Input #0, mpegts, from 'udp://239.192.18.17:1234':
Duration: N/A, start: 39884.335356, bitrate: N/A

Program 1680

Metadata:

service_name : MIR HD
service_provider: GeoTelecon?

Stream #0:0[0x691]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc
Stream #0:1[0x692](rus): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 320 kb/s

but if i do same from file result is:

ffprobe -i ./mir.ts
...
[mpegts @ 0x260ab00] PES packet size mismatch
Input #0, mpegts, from './mir.ts':

Duration: 00:01:22.39, start: 38807.791356, bitrate: 8018 kb/s
Program 1680

Metadata:

service_name : MIR HD
service_provider: GeoTelecon?

Stream #0:0[0x691]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc
Stream #0:1[0x692](rus): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 320 kb/s

then if i want to stream this file to UDP stream then bitrate checked filed

ffmpeg -re -i ./mir.ts -f mpegts -c copy udp://239.192.66.66:1234
...
[mpegts @ 0x23b93c0] PES packet size mismatch
Input #0, mpegts, from './mir.ts':
Duration: 00:01:14.90, start: 38580.079356, bitrate: 8014 kb/s

Program 1680

Metadata:

service_name : MIR HD
service_provider: GeoTelecon?

Stream #0:0[0x691]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc
Stream #0:1[0x692](rus): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 320 kb/s

Output #0, mpegts, to 'udp://239.192.66.66:1234':

Metadata:

encoder : Lavf57.73.100
Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(top first), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 50 tbr, 90k tbn, 90k tbc
Stream #0:1(rus): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 320 kb/s

Stream mapping:

Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)

Press [q] to stop, ? for help
frame= 0 fps=0.0 q=-1.0 Lsize= 471kB time=00:00:10.92
bitrate= 353.6kbits/s speed=0.982x

Main problem is when i want to create hls from this udp mpegts stream...no chunks been creating

/usr/local/bin/ffmpeg -copytb 1 -avoid_negative_ts make_zero -overrun_nonfatal 1 -i udp://239.192.18.17:1234 -sn -dn -c copy -hls_allow_cache 0 -hls_base_url /ts/MIR_HD/ -hls_list_size 5 -hls_time 5 -hls_flags delete_segments+omit_endlist -map 0 -ignore_unknown -r 50 -strict -2 -use_localtime 1 -hls_segment_filename /hls/ts/MIR_HD/stream_%s.ts /hls/pl/MIR_HD.m3u8

Link to recorded stream with VLC Multicat software:
https://mycloud.g-service.ru/owncloud/index.php/s/RgeAY6aiUJSxi2E

Change History (0)

Note: See TracTickets for help on using tickets.