transcoding divbyzero on rtsp stream
When I launch VLC (linux version) in vlm mode with these parameters:
vlc -I dummy --ttl 12 -vvv --color -I telnet --telnet-host 127.0.0.1 --telnet-port 4212 --telnet-password videolan --rtsp-host localhost --rtsp-port 5554 --rtsp-timeout 0 --live-caching 0 --dscp 0xC0 --rt-priority
And I create a broadcast channel with this transcoding chain:
output :
#transcode{vcodec=mp4v,venc=ffmpeg{keyint=7,qmax=10,strict=1,strict-rc}}:std{access=file,mux=mp4,dst=video_root/broadcast_demo_0.mp4}
then VLC crashes in a similar way than ticket #14646 (closed).
That's the output of GDB in the moment of the crash:
[00007fffd8000f78] core encoder debug: removing module "avcodec"
[00007fffe80313d8] [Medio: demo_0] core input debug: Buffering 73%
[00007fffe80313d8] [Medio: demo_0] core input debug: Buffering 76%
[00007fffe80313d8] [Medio: demo_0] core input debug: Buffering 79%
[00007fffe80313d8] [Medio: demo_0] core input debug: Buffering 86%
[00007fffe80313d8] [Medio: demo_0] core input debug: Buffering 89%
[00007fffe80313d8] [Medio: demo_0] core input debug: Buffering 93%
[00007fffe80313d8] [Medio: demo_0] core input debug: Buffering 96%
[00007fffe80313d8] [Medio: demo_0] core input debug: Buffering 99%
[00007fffe80313d8] [Medio: demo_0] core input debug: Buffering 99%
[00007fffe80313d8] [Medio: demo_0] core input debug: Buffering 99%
[00007fffe80313d8] [Medio: demo_0] core input debug: Stream buffering done (1065 ms in 667 ms)
[00007fffe80313d8] [Medio: demo_0] core input debug: Decoder wait done in 0 ms
[00007fffd8000b18] avcodec generic debug: available hardware decoder output format 109 (vdpau)
[00007fffd8000b18] avcodec generic debug: available hardware decoder output format 53 (vaapi_vld)
[00007fffd8000b18] avcodec generic debug: available software decoder output format 0 (yuv420p)
[00007fffd80b1438] core generic debug: looking for hw decoder module matching "none": 2 candidates
[00007fffd80b1438] core generic debug: no hw decoder modules matched
[00007fffd8000b18] avcodec generic warning: plane 0 not aligned
[00007fffd8000b18] avcodec generic warning: disabling direct rendering
[00007fffe0003c18] stream_out_transcode stream out debug: decoder aspect is 1,658031:1
[00007fffe0003c18] stream_out_transcode stream out debug: source pixel aspect is 0,932642:1
[00007fffe0003c18] stream_out_transcode stream out debug: scaled pixel aspect is 0,932642:1
[00007fffe0003c18] stream_out_transcode stream out debug: source 640x360, destination 640x360
[00007fffe0003c18] stream_out_transcode stream out debug: source fps 0/0, destination 25/1
Thread 8 "vlc" received signal SIGFPE, Arithmetic exception.
[Cambiando a Thread 0x7fffec10e700 (LWP 22242)]
0x00007fffeeeb0036 in transcode_video_encoder_init (p_stream=p_stream@entry=0x7fffe0003c18, id=id@entry=0x7fffd80071e0) at transcode/video.c:552
552 id->i_input_frame_interval = id->p_decoder->fmt_out.video.i_frame_rate_base * CLOCK_FREQ / id->p_decoder->fmt_out.video.i_frame_rate;
(gdb)
I'm using a v2.2.5 git snapshot:
I have tested the issue backwards and it is happening in every version from 2.2.0
. In 2.1.6
the issue is not occuring.
Edited by Filip Roséen