[FFmpeg-user] Complex filtering

Mitja Pirih mitja at alternet.si
Fri Jan 8 14:45:19 CET 2016


Hi,

I have a stream like this (source DVB-S):
Stream #0:0[0x6a5]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
yuv420p(tv, bt470bg), 720x576 [SAR 64:45 DAR 16:9], Closed Captions,
max. 8000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x6a6]: Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz,
stereo, s16p, 192 kb/s
Stream #0:2[0x6a7]: Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz,
stereo, s16p, 192 kb/s
Stream #0:3[0x6a8]: Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz,
stereo, s16p, 192 kb/s
Stream #0:4[0x6a9]: Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz,
stereo, s16p, 192 kb/s
Stream #0:5[0x6ae](slv): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
Stream #0:6[0x6af](srp): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
Stream #0:7[0x6b0](scr): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)

What I am trying to accomplish is to use complex filtering to burn
subtitles into video stream and grab just one audio.
So this is what I am using:  -filter_complex "[0:0][0:5]overlay[v]" -map
"[v]" -map 0:1
And it works as expected. Now I do want to add some deinterlacing on to
that, here a couple of questions: what should I use yadiff or decimate?
I am experimenting with: -filter_complex
"yadif=0:-1:0;[0:0][0:5]overlay[v]" -map "[v]" -map 0:1  ...and the
result is that I loose subtitles but the picture looks deinterlaced. Any
ideas why my subtitles are gone?

Thanks


Regards,
Mitja




More information about the ffmpeg-user mailing list