[Cin] magicyuv encoding/screen capture in cinGG

Andrew Randrianasulu randrianasulu at gmail.com
Sun Oct 20 04:05:01 CEST 2019


Hello!

I tried magicyuv encoding in CinGG, it works with attached option file, and can be viewed in mplayer 
(compiled with latest ffmpeg git) after I modified .mplayer/codecs.conf

cat magicyuv.qt
mov magicyuv
pix_fmt=yuv444p
threads=2

(for some reason first pixel format in encoder's options in CinGG list still not what i tried to set as pix_fmt, so
just for being extra safe I set it manually)

add this into mplayer's codecs.conf:

videocodec ffmagicyuv
  info "FFmpeg Magicyuv"
  status working
  fourcc M8Y4
  ;format 0x3459384D
  driver ffmpeg
  dll "magicyuv"
  out YV12,422P,444P,422P10,444P10


After this, mplayer plays this file (24Mb/s for just 1440x900x24bpp_30 fps!)

mplayer /dev/shm/magicyuv.ff -vo x11
MPlayer SVN-r38152-5.5.0 (C) 2000-2019 MPlayer Team
224 audio & 466 video codecs

Playing /dev/shm/magicyuv.ff.
libavformat version 58.33.100 (internal)
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x575f59e0]Protocol name not provided, cannot determine if input is local or a network protocol, buffers and access patterns cannot be configured optimally without knowing the protocol
[lavf] stream 0: video (magicyuv), -vid 0
[lavf] stream 1: audio (pcm_s16le), -aid 0, -alang rus
VIDEO:  [M8Y4]  1440x900  24bpp  30.000 fps  197394.6 kbps (24096.0 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 58.59.102 (internal)
Selected video codec: [ffmagicyuv] vfm: ffmpeg (FFmpeg Magicyuv)
==========================================================================
Clip info:
 major_brand: qt
 minor_version: 512
 compatible_brands: qt
 encoder: Lavf58.29.100
Load subtitles in /dev/shm/
==========================================================================
Forced audio codec: mad
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 48000 Hz, 2 ch, s16le, 1536.0 kbit/100.00% (ratio: 192000->192000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 0x57889140]bicubic scaler, from yuv444p to bgra using MMXEXT
VO: [x11] 1440x900 => 1440x900 BGRA
[VD_FFMPEG] DRI failure.
Movie-Aspect is undefined - no prescaling applied.
VO: [x11] 1440x900 => 1440x900 BGRA
A:   0.2 V:   0.0 A-V:  0.171 ct:  0.000   0/  0 ??% ??% ??,?% 1 0
[VD_FFMPEG] DRI failure.
A:  30.0 V:  30.0 A-V:  0.027 ct:  0.110   0/  0  3% 70%  2.2% 15 0

I also tried dvcpro100 encoding, but it probably requires interlaced project (and patches, of course)....

Just in case you want to play with them, also attached (from ffmpeg mail list
see http://ffmpeg.org/pipermail/ffmpeg-devel/2019-September/249795.html )


-------------- next part --------------
mov magicyuv
pix_fmt=yuv444p
threads=2
-------------- next part --------------
mov dvvideo
vcodec=dvvideo
pixel_format=yuv422p
flags=+ildct+ilme
b=100000000
aspect=16:9
#threads=3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: correctly_decode_bottom_mb_row_1080i_dv.patch
Type: text/x-diff
Size: 6986 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20191020/8fbbc778/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: corretcly_set_interlaced_and_tff.patch
Type: text/x-diff
Size: 1144 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20191020/8fbbc778/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg_dvcprohd.patch
Type: text/x-diff
Size: 29877 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20191020/8fbbc778/attachment-0005.bin>


More information about the Cin mailing list