Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP Live MPEG2-TS #543

Open
pigscanflyyy opened this issue Dec 2, 2024 · 0 comments
Open

HTTP Live MPEG2-TS #543

pigscanflyyy opened this issue Dec 2, 2024 · 0 comments

Comments

@pigscanflyyy
Copy link

I don't know if this is a stream url problem or the app itself. It stops recording the livestream after several seconds.

Command:

./N_m3u8DL-RE \
--live-keep-segments false \
--live-pipe-mux \
--live-real-time-merge \
--del-after-done \
--auto-select \
--save-dir hls/ \
--tmp-dir hls/tmp/ \
http://apkandweb.ddns.net/6377635294/6663568605/1413807

Output:

23:21:24.730 INFO : N_m3u8DL-RE (Beta version) 20241201
23:21:24.739 INFO : Loading URL: http://apkandweb.ddns.net/6377635294/6663568605/1413807
23:21:27.200 INFO : Content Matched: HTTP Live MPEG2-TS
23:21:27.201 INFO : Parsing streams...
23:21:27.205 WARN : Writing meta json
23:21:27.205 INFO : Extracted, there are 1 streams, with 1 basic streams, 0 audio streams, 0 subtitle streams
23:21:27.205 INFO : Vid Kbps | <RE_LIVE_TS> | | ~00m00s
23:21:27.206 INFO : Selected streams:
23:21:27.206 INFO : Vid Kbps | <RE_LIVE_TS> | | ~00m00s
23:21:27.206 WARN : Writing meta json
23:21:27.206 INFO : Save Name: 1413807_2024-12-02_23-21-27
23:21:30.919 INFO : Program Id: 1                               
23:21:30.919 INFO : Service Name: Service01                     
23:21:30.919 INFO : Service Provider: FFmpeg                    
23:21:37.168 INFO : File Size: 2.47MB                           
23:21:37.168 INFO : Done

Running it with mpv with reconnects produces this output:

mpv http://apkandweb.ddns.net/6377635294/6663568605/1413807 --stream-lavf-o-append=reconnect_on_http_error=4xx,5xx --stream-lavf-o-append=reconnect_delay_max=30 --stream-lavf-o-append=reconnect_streamed=yes --stream-lavf-o-append=reconnect_on_network_error=yes

Output:

[ffmpeg/video] h264: non-existing SPS 0 referenced in buffering period
[ffmpeg/video] h264: non-existing SPS 0 referenced in buffering period
 (+) Video --vid=1 (h264 1280x720 59.940fps)
 (+) Audio --aid=1 (aac 2ch 44100Hz)
Using hardware decoding (vaapi).
 (+) Video --vid=1 (h264 1280x720 59.940fps)
 (+) Audio --aid=1 (aac 2ch 44100Hz)
     Subs  --sid=1 (*) (eia_608)
AO: [pipewire] 44100Hz stereo 2ch floatp
VO: [gpu] 1280x720 vaapi[nv12]
Audio device underrun detected.
Audio device underrun detected.
Audio device underrun detected.
Audio device underrun detected.
Audio device underrun detected.
Audio device underrun detected.
[ffmpeg] http: Stream ends prematurely at 16471016, should be 18446744073709551615
[ffmpeg] http: Will reconnect at 16471016 in 0 second(s), error=Input/output error.
Audio device underrun detected.
[ffmpeg/demuxer] mpegts: Packet corrupt (stream = 0, dts = 328783453).
Invalid audio PTS: 21.408798 -> 40.031200
Reset playback due to audio timestamp reset.
Audio device underrun detected.
Audio device underrun detected.
Audio device underrun detected.
Audio device underrun detected.

Might be because of this [ffmpeg] http: Stream ends prematurely at 16471016, should be 18446744073709551615 that make the recording stopped. I would like to note that the stream is quite choppy that is why I added reconnect flags in mpv.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant