Re: [FFmpeg-user] Extracting forced subtitles from a DVD.

2022-04-29 Thread Nicolas George
Michael Mueck via ffmpeg-user (12022-04-28):
> In addition to the question below about the wrong subtitle track
> ending up in the output, I've also been looking into dvd2concat (which
> it looks like you wrote!). I was able to use it to make file.concat,
> but I'm having some trouble figuring out what to do with that file.
> I'd very much appreciate you pointing me in the right direction.
> Thanks!

The script is self-documenting:

NAME
dvd2concat - create a concat script for a DVD title

SYNOPSIS
tools/dvd2concat *path/to/dvd/structure* > *file.concat*

DESCRIPTION
This script uses lsdvd to produce concat script for a DVD title. The
resulting script can be used to play the DVD using ffplay, to transcode
it using ffmpeg or any other similar use.

*path/to/dvd/structure* is the path to the DVD structure hierarchy; it
normally contains a directory named VIDEO_TS. It must not be encrypted
with CSS.

*file.concat* is the output file. It can be used as an input to ffmpeg.
It will require the -safe 0 and -protocol_whitelist file,subfile,concat
options.

Then you need to peruse the documentation about concat scripts:

https://ffmpeg.org/ffmpeg-all.html#concat-1

> > On 2022.0428, at 16:19, Michael Mueck  wrote:

Please remember that top-posting is strictly forbidden on this list.

Regards,

-- 
  Nicolas George


signature.asc
Description: PGP signature
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-user] SRT stream input settings

2022-04-29 Thread Matt C
I have an app that will take an ffmpeg line as an input, trying to get SRT to 
input correctly.
The app defaults with this line using rtmp:


-f live_flv -listen 1 -i rtmp://localhost:1936/live/stream

The stream I am looking to input is from OBS, that stream output is set to:


srt://127.0.0.1:1?mode=listener


I can open the stream in VLC> open network stream>

srt://127.0.0.1:1

The stream from OBS is 720p, encoder- x264, CBR 2500 Kbps.

I can change the output in OBS also to- encoder- ffmpeg VAAPI H.264 codec..



What OBS output should I use- x264 or ffmpeg?

What would be the correct line for input into the app?


Tried with no success:

-f live_flv -listen 1 -i srt://127.0.0.1:1

Thanks!


___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-user] 10-bit color x11grab

2022-04-29 Thread amindfv--- via ffmpeg-user
With the latest git version on Debian, I try and screen record.

My system is set up for 10-bit color, which I assume is the "mapping pixmap 
format" issue.

Is anyone working on - or willing to work on - adding support for this pixel 
format? It would be very appreciated!

Thanks,
Tom

$ ./ffmpeg -video_size 1024x768 -framerate 25 -f x11grab -i :0.0+100,200 
output.mp4
ffmpeg version N-106747-g3415028d13 Copyright (c) 2000-2022 the FFmpeg 
developers
  built with gcc 10 (Debian 10.2.1-6)
  configuration:
  libavutil  57. 24.101 / 57. 24.101
  libavcodec 59. 27.100 / 59. 27.100
  libavformat59. 23.100 / 59. 23.100
  libavdevice59.  6.100 / 59.  6.100
  libavfilter 8. 37.100 /  8. 37.100
  libswscale  6.  6.100 /  6.  6.100
  libswresample   4.  6.100 /  4.  6.100
[x11grab @ 0x5574a7e12140] Mapping this pixmap format is not implemented. 
Update your FFmpeg version to the newest one from Git. If the problem still 
occurs, it means that your file has a feature which has not been implemented.
:0.0+100,200: Not yet implemented in FFmpeg, patches welcome
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-user] Single-field deinterlace with nnedi

2022-04-29 Thread Alexander Zhang

Hello,

I'm trying to use nnedi to deinterlace a 29.97 fps video without 
doubling the frame rate. I added the fields=a option which I thought was 
supposed to make nnedi only use one of the two fields, but the output is 
still 59.94 fps. Is this a bug or am I misunderstanding something?


Here's the command and the output:
$ ffmpeg -i foo.mkv -vf nnedi=weights=nnedi3_weights.bin:field=a bar.mkv
ffmpeg version 4.4.2 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 11 (GCC)
  configuration: --prefix=/usr --bindir=/usr/bin 
--datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg 
--incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man 
--arch=x86_64 --optflags='-O2 -flto=auto -ffat-lto-objects -fexceptions 
-g -grecord-gcc-switches -pipe -Wall -Werror=format-security 
-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS 
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong 
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic 
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' 
--extra-ldflags='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now 
-specs=/usr/lib/rpm/redhat/redhat-hardened-ld 
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 ' --extra-cflags=' 
-I/usr/include/rav1e' --enable-libopencore-amrnb 
--enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 
--enable-bzlib --enable-chromaprint --disable-crystalhd 
--enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls 
--enable-ladspa --enable-libaom --enable-libdav1d --enable-libass 
--enable-libbluray --enable-libbs2b --enable-libcdio --enable-libdrm 
--enable-libjack --enable-libfreetype --enable-libfribidi 
--enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libmysofa 
--enable-nvenc --enable-openal --enable-opencl --enable-opengl 
--enable-libopenjpeg --enable-libopenmpt --enable-libopus 
--enable-libpulse --enable-librsvg --enable-librav1e --enable-librtmp 
--enable-librubberband --enable-libsmbclient --enable-version3 
--enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt 
--enable-libssh --enable-libsvtav1 --enable-libtesseract 
--enable-libtheora --enable-libtwolame --enable-libvorbis 
--enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-version3 
--enable-vapoursynth --enable-libvpx --enable-vulkan --enable-libglslang 
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid 
--enable-libxml2 --enable-libzimg --enable-libzmq --enable-libzvbi 
--enable-lv2 --enable-avfilter --enable-avresample --enable-libmodplug 
--enable-postproc --enable-pthreads --disable-static --enable-shared 
--enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 
--enable-lto --enable-libmfx --enable-runtime-cpudetect

  libavutil  56. 70.100 / 56. 70.100
  libavcodec 58.134.100 / 58.134.100
  libavformat58. 76.100 / 58. 76.100
  libavdevice58. 13.100 / 58. 13.100
  libavfilter 7.110.100 /  7.110.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale  5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc55.  9.100 / 55.  9.100
Input #0, matroska,webm, from 'foo.mkv':
  Metadata:
ENCODER : Lavf58.76.100
  Duration: 00:00:15.02, start: 0.00, bitrate: 9479 kb/s
  Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, top coded first 
(swapped)), 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 1k tbn, 
59.94 tbc (default)

Metadata:
  DURATION: 00:00:15.01500
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 0x55ee59541800] using SAR=1/1
[libx264 @ 0x55ee59541800] using cpu capabilities: MMX2 SSE2Fast SSSE3 
SSE4.2 AVX FMA3 BMI2 AVX2

[libx264 @ 0x55ee59541800] profile High, level 4.2, 4:2:0, 8-bit
[libx264 @ 0x55ee59541800] 264 - core 163 r3060 5db6aa6 - H.264/MPEG-4 
AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html - 
options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 
psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 
8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 
lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 
bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 
b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 
keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf 
mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 
aq=1:1.00

Output #0, matroska, to 'bar.mkv':
  Metadata:
encoder : Lavf58.76.100
  Stream #0:0: Video: h264 (H264 / 0x34363248), yuv420p(tv, bt709, 
progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 59.94 fps, 1k tbn 
(default)

Metadata:
  DURATION: 00:00:15.01500
  encoder : Lavc58.134.100 libx264
Side data:
  cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
frame=  450 fps= 20 q=-1.0 Lsize=1847kB time=00:00:14.91 
bitr