ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Vladimir D. Seleznev" <vseleznv@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] Q: mpv update
Date: Thu, 23 Jul 2020 12:27:01 +0300
Message-ID: <20200723092701.GA2723441@portlab> (raw)
In-Reply-To: <m3zh7rov7n.fsf@latitude.evg-krsk.dyndns.org>

On Thu, Jul 23, 2020 at 08:50:52AM +0700, Евгений Терешков wrote:
> Konstantin Lepikhov пишет:
> 
> > On 07/21/2020, at 02:15:05 PM you wrote:
> >> > Я тоже пробовал собрать 0.32, но выкладывать никуда не стал потому что там
> >> > отломали tv:// а av:// у меня так и не заработал (возможно, по вине
> >> > libavformat):
> >> > =8<=============================================================================
> >> > #  ~ mpv av://v4l2:/dev/video0 --profile=low-latency --untimed
> >> > Playing: av://v4l2:/dev/video0
> >> > [lavf] Unknown lavf format v4l2
> >> > Failed to recognize file format.
> >> > Exiting... (Errors when loading file)
> >> > =8<=============================================================================
> >> > (это 0.29.1, в 0.32 так же)
> >> Мне кажется, это что-то в нашем ffmpeg отсутствует, т.к.
> >> https://wiki.archlinux.org/index.php/Webcam_setup упоминает, что ffmpeg
> >> должен быть собран с поддержкой v4l2.
> 
> Судя по флагам (ffmpeg -h 2>&1 |egrep 4l даёт --enable-libv4l2) он и
> собран. Поэтому я не уверен, точно ли проблема в libavformat.

Точно не в libavformat.

$ mpv tv://
ffmpeg library versions:
   libavutil       56.31.100 (runtime 56.51.100)
   libavcodec      58.54.100 (runtime 58.91.100)
   libavformat     58.29.100 (runtime 58.45.100)
   libswscale      5.5.100 (runtime 5.7.100)
   libavfilter     7.57.100 (runtime 7.85.100)
   libswresample   3.5.100 (runtime 3.7.100)
ffmpeg version: 4.3.1-alt1

mpv was compiled against a different version of FFmpeg/Libav than the shared
library it is linked against. This is most likely a broken build and could
result in misbehavior and crashes.

mpv does not support this configuration and will not run - rebuild mpv instead.

$ mplayer tv://
MPlayer SVN-r38184-snapshot-9 (C) 2000-2020 MPlayer Team
226 audio & 469 video codecs

Playing tv://.
Cache fill:  0.00% (0 bytes)   

TV file format detected.
Selected driver: v4l2
 name: Video 4 Linux 2 input
 author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
 comment: first try, more to come ;-)
v4l2: your device driver does not support VIDIOC_G_STD ioctl, VIDIOC_G_PARM was used instead.
Selected device: Integrated Camera: Integrated C
 Capabilities:  video capture  streaming
...

Работает.

> > Евгений, а вы можете проверить это еще раз со сборкой выше,
> > работает ли оно если указать --demuxer-lavf-format=video4linux2 ?
> > $ mpv --demuxer-lavf-format=video4linux2
> > --demuxer-lavf-o-set=input_format=mjpeg av://v4l2:/dev/video0
> > $ mpv --demuxer-lavf-format=video4linux2 av://v4l2:/dev/video0
> > --profile=low-latency --untimed
> 
> Я читал арчвики и в моей сборке это не работало с такими же симптомами.
> Сейчас только добрался проверить таск и там это выглядит точно также:
> =8<==================================================================
> ➜  ~ mpv --demuxer-lavf-format=video4linux2 --demuxer-lavf-o-set=input_format=mjpeg av://v4l2:/dev/video0
> [lavf] Unknown lavf format video4linux2
> Failed to recognize file format.
> 
> Exiting... (Errors when loading file)
> ➜  ~ mpv --demuxer-lavf-format=video4linux2 av://v4l2:/dev/video0 --profile=low-latency --untimed
> [lavf] Unknown lavf format video4linux2
> Failed to recognize file format.
> 
> Exiting... (Errors when loading file)
> =8<==================================================================
> 

-- 
   WBR,
   Vladimir D. Seleznev


  parent reply	other threads:[~2020-07-23  9:27 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-21 11:23 Konstantin Lepikhov
2020-07-21 11:38 ` Sergey Bolshakov
2020-07-21 11:49   ` Alexey V. Vissarionov
2020-07-21 11:51   ` Konstantin Lepikhov
2020-07-21 11:48 ` Евгений Терешков
2020-07-21 12:15   ` Konstantin Lepikhov
2020-07-21 13:30     ` Konstantin Lepikhov
2020-07-23  1:50       ` Евгений Терешков
2020-07-23  8:12         ` Konstantin Lepikhov
2020-11-24 17:21           ` Konstantin Lepikhov
2020-07-23  9:27         ` Vladimir D. Seleznev [this message]
2020-07-23 13:09           ` Евгений Терешков

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200723092701.GA2723441@portlab \
    --to=vseleznv@altlinux.org \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git