[FFmpeg-user] subtitle issue
Ivan Galičič
i.galicic at gmail.com
Thu Mar 28 13:28:51 EET 2019
Hi,
thanks for quick response
below you can find requested output
root at polans-tesla:/home/polans/ffmpeg-4.1.2# ./ffmpeg -v 32 -i "udp://
232.2.6.3:5002?overrun_nonfatal=1&fifo_size=229376&buffer_size=67108864&localaddr=192.168.245.234"
-map 0:s:0 -c:s copy -map 0:v:0 -map 0:a:0 -c:a aac -ac 2 -c:v libx264
-qmin 1 -qmax 69 -b:v 2500k -minrate:v 2500k -maxrate:v 2500k -bufsize:v
2500k -g 50 -cbr 1 -sc_threshold 0 -filter:v yadif -s 1280x720 -preset:v
slow -threads 8 -f mpegts "udp://
232.7.1.3:5002?pkt_size=1316&localaddr=192.168.245.234"
ffmpeg version 4.1.2 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
configuration: --pkg-config-flags=--static
--extra-cflags=-I/root/ffmpeg_build/include
--extra-ldflags=-L/root/ffmpeg_build/lib
--extra-ldflags=-Lusr/local/lib/pkgconfig
--extra-cflags=-I/usr/local/cuda/include
--extra-ldflags=-L/usr/local/cuda/lib64 --arch=x86_64 --cpu='native iirc'
--extra-libs='-lpthread -lm' --bindir=/root/bin --enable-cuda
--enable-cuvid --enable-nvenc --enable-libnpp --enable-opengl
--enable-opencl --enable-libzvbi --enable-libfontconfig --enable-cuda-sdk
--enable-libfribidi --enable-libmp3lame --enable-gpl --enable-libass
--enable-fontconfig --enable-libfdk-aac --enable-libfreetype
--enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx
--enable-libx264 --enable-libx265 --enable-nonfree
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100
[udp @ 0x558f5f017840] attempted to set receive buffer to size 67108864 but
it only ended up set as 425984SPS unavailable in decode_picture_timing
[h264 @ 0x558f5f03e380] non-existing PPS 0 referenced
[h264 @ 0x558f5f03e380] SPS unavailable in decode_picture_timing
[h264 @ 0x558f5f03e380] non-existing PPS 0 referenced
[h264 @ 0x558f5f03e380] decode_slice_header error
[h264 @ 0x558f5f03e380] no frame!
[h264 @ 0x558f5f03e380] SPS unavailable in decode_picture_timing
[h264 @ 0x558f5f03e380] non-existing PPS 0 referenced
[h264 @ 0x558f5f03e380] SPS unavailable in decode_picture_timing
[h264 @ 0x558f5f03e380] non-existing PPS 0 referenced
[h264 @ 0x558f5f03e380] decode_slice_header error
[h264 @ 0x558f5f03e380] no frame!
[h264 @ 0x558f5f03e380] SPS unavailable in decode_picture_timing
[h264 @ 0x558f5f03e380] non-existing PPS 0 referenced
[h264 @ 0x558f5f03e380] SPS unavailable in decode_picture_timing
[h264 @ 0x558f5f03e380] non-existing PPS 0 referenced
[h264 @ 0x558f5f03e380] decode_slice_header error
[h264 @ 0x558f5f03e380] no frame!
[h264 @ 0x558f5f03e380] SPS unavailable in decode_picture_timing
[h264 @ 0x558f5f03e380] non-existing PPS 0 referenced
[h264 @ 0x558f5f03e380] SPS unavailable in decode_picture_timing
[h264 @ 0x558f5f03e380] non-existing PPS 0 referenced
[h264 @ 0x558f5f03e380] decode_slice_header error
[h264 @ 0x558f5f03e380] no frame!
[h264 @ 0x558f5f03e380] SPS unavailable in decode_picture_timing
[h264 @ 0x558f5f03e380] non-existing PPS 0 referenced
[h264 @ 0x558f5f03e380] SPS unavailable in decode_picture_timing
[h264 @ 0x558f5f03e380] non-existing PPS 0 referenced
[h264 @ 0x558f5f03e380] decode_slice_header error
[h264 @ 0x558f5f03e380] no frame!
[h264 @ 0x558f5f03e380] SPS unavailable in decode_picture_timing
[h264 @ 0x558f5f03e380] non-existing PPS 0 referenced
[h264 @ 0x558f5f03e380] SPS unavailable in decode_picture_timing
[h264 @ 0x558f5f03e380] non-existing PPS 0 referenced
[h264 @ 0x558f5f03e380] decode_slice_header error
[h264 @ 0x558f5f03e380] no frame!
[h264 @ 0x558f5f03e380] SPS unavailable in decode_picture_timing
[h264 @ 0x558f5f03e380] non-existing PPS 0 referenced
[h264 @ 0x558f5f03e380] SPS unavailable in decode_picture_timing
[h264 @ 0x558f5f03e380] non-existing PPS 0 referenced
[h264 @ 0x558f5f03e380] decode_slice_header error
[h264 @ 0x558f5f03e380] no frame!
[h264 @ 0x558f5f03e380] SPS unavailable in decode_picture_timing
[h264 @ 0x558f5f03e380] non-existing PPS 0 referenced
[h264 @ 0x558f5f03e380] SPS unavailable in decode_picture_timing
[h264 @ 0x558f5f03e380] non-existing PPS 0 referenced
[h264 @ 0x558f5f03e380] decode_slice_header error
[h264 @ 0x558f5f03e380] no frame!
[h264 @ 0x558f5f03e380] SPS unavailable in decode_picture_timing
[h264 @ 0x558f5f03e380] non-existing PPS 0 referenced
[h264 @ 0x558f5f03e380] SPS unavailable in decode_picture_timing
[h264 @ 0x558f5f03e380] non-existing PPS 0 referenced
[h264 @ 0x558f5f03e380] decode_slice_header error
[h264 @ 0x558f5f03e380] no frame!
Input #0, mpegts, from 'udp://
232.2.6.3:5002?overrun_nonfatal=1&fifo_size=229376&buffer_size=67108864&localaddr=192.168.245.234
':
Duration: N/A, start: 43876.322578, bitrate: N/A
Program 770
Metadata:
service_name : Nat Geo HD
service_provider: Telekom Slovenije
Stream #0:0[0x44e](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
stereo, fltp, 192 kb/s
Stream #0:1[0x456](slv): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
Stream #0:2[0x5dd]: Video: h264 (Main) ([27][0][0][0] / 0x001B),
yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50
tbr, 90k tbn, 50 tbc
Stream #0:3[0x19e1](mac): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
Stream mapping:
Stream #0:1 -> #0:0 (copy)
Stream #0:2 -> #0:1 (h264 (native) -> h264 (libx264))
Stream #0:0 -> #0:2 (mp2 (native) -> aac (native))
Press [q] to stop, [?] for help
[h264 @ 0x558f5f02fa00] mmco: unref short failure
[libx264 @ 0x558f5f030400] using SAR=1/1
[libx264 @ 0x558f5f030400] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0x558f5f030400] profile High, level 3.1
Output #0, mpegts, to 'udp://
232.7.1.3:5002?pkt_size=1316&localaddr=192.168.245.234':
Metadata:
encoder : Lavf58.20.100
Stream #0:0(slv): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
Stream #0:1: Video: h264 (libx264), yuv420p, 1280x720 [SAR 1:1 DAR
16:9], q=1-69, 2500 kb/s, 25 fps, 90k tbn, 25 tbc
Metadata:
encoder : Lavc58.35.100 libx264
Side data:
cpb: bitrate max/min/avg: 2500000/0/2500000 buffer size: 2500000
vbv_delay: -1
Stream #0:2(eng): Audio: aac (LC), 48000 Hz, stereo, fltp, 128 kb/s
Metadata:
encoder : Lavc58.35.100 aac
frame= 1255 fps= 22 q=-1.0 Lsize= 16589kB time=00:00:51.28
bitrate=2650.0kbits/s speed=0.903x
video:14330kB audio:792kB subtitle:68kB other streams:0kB global
headers:0kB muxing overhead: 9.204000%
[libx264 @ 0x558f5f030400] frame I:26 Avg QP:20.05 size: 48362
[libx264 @ 0x558f5f030400] frame P:345 Avg QP:24.42 size: 19705
[libx264 @ 0x558f5f030400] frame B:884 Avg QP:26.70 size: 7486
[libx264 @ 0x558f5f030400] consecutive B-frames: 4.2% 4.3% 3.8% 87.6%
[libx264 @ 0x558f5f030400] mb I I16..4: 13.5% 71.6% 14.9%
[libx264 @ 0x558f5f030400] mb P I16..4: 9.1% 20.9% 1.2% P16..4: 41.7%
11.9% 4.4% 0.0% 0.0% skip:10.8%
[libx264 @ 0x558f5f030400] mb B I16..4: 1.4% 2.3% 0.1% B16..8: 40.6%
7.4% 0.9% direct: 6.3% skip:41.1% L0:47.3% L1:46.4% BI: 6.4%
[libx264 @ 0x558f5f030400] 8x8 transform intra:66.7% inter:86.2%
[libx264 @ 0x558f5f030400] direct mvs spatial:99.5% temporal:0.5%
[libx264 @ 0x558f5f030400] coded y,uvDC,uvAC intra: 47.1% 52.2% 13.1%
inter: 16.8% 26.5% 0.8%
[libx264 @ 0x558f5f030400] i16 v,h,dc,p: 25% 33% 6% 37%
[libx264 @ 0x558f5f030400] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 14% 10% 6%
8% 11% 9% 11% 9%
[libx264 @ 0x558f5f030400] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 38% 6% 4%
6% 7% 7% 5% 6%
[libx264 @ 0x558f5f030400] i8c dc,h,v,p: 53% 23% 14% 9%
[libx264 @ 0x558f5f030400] Weighted P-Frames: Y:2.0% UV:1.7%
[libx264 @ 0x558f5f030400] ref P L0: 51.1% 10.2% 20.3% 10.0% 8.3% 0.1%
0.0%
[libx264 @ 0x558f5f030400] ref B L0: 75.2% 16.4% 6.4% 2.0%
[libx264 @ 0x558f5f030400] ref B L1: 94.1% 5.9%
[libx264 @ 0x558f5f030400] kb/s:2338.40
[aac @ 0x558f5f046f40] Qavg: 156.329
Exiting normally, received signal 2.
On Thu, Mar 28, 2019 at 11:53 AM Carl Eugen Hoyos <ceffmpeg at gmail.com>
wrote:
> 2019-03-28 10:16 GMT+01:00, Ivan Galičič <i.galicic at gmail.com>:
>
> > ./configure \
> > --pkg-config-flags="--static" \
> > --extra-cflags="-I$HOME/ffmpeg_build/include" \
> > --extra-ldflags="-L$HOME/ffmpeg_build/lib" \
> > --extra-ldflags="-Lusr/local/lib/pkgconfig" \
> > --extra-cflags=-I/usr/local/cuda/include \
> > --extra-ldflags=-L/usr/local/cuda/lib64 \
>
> > --arch=x86_64 \
>
> This is unneeded, it has either no effect or breaks compilation.
>
> > --extra-cflags="-march=native -mtune=native" \
> > --extra-cxxflags="-march=native -mtune=native" \
> > --extra-ldflags="-march=native -mtune=native" \
> > --extra-objcflags="-march=native -mtune=native" \
> > --extra-ldexeflags="-march=native -mtune=native" \
> > --extra-ldsoflags="-march=native -mtune=native" \
>
> --cpu=native iirc
>
> > --extra-libs="-lpthread -lm" \
> > --bindir="$HOME/bin" \
> > --enable-gpl \
> > --enable-cuda-sdk --enable-cuvid --enable-nvenc --enable-libnpp \
> > --enable-libx264 \
> > --enable-avfilter \
> > --enable-libx265 \
> > --enable-nonfree \
> > --enable-libnpp \
> > --enable-opengl \
> > --enable-opencl \
> > --enable-libfreetype \
> > --enable-libzvbi \
> > --enable-libfontconfig \
> > --enable-libfreetype \
> > --enable-libfribidi \
> > --enable-libfdk-aac \
> > --enable-libmp3lame
>
> > Issue is the same for all ffmpeg versions.
>
> You tested several ten thousand binaries?
>
> > Any clue what I'm doing wrong?
>
> Please provide the command line you tested
> together with the complete, uncut console output
> and also test software encoding and subtitle
> re-encoding to help understand the issue.
> Feel free to provide a sample.
>
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
More information about the ffmpeg-user
mailing list