Skip to content

Instantly share code, notes, and snippets.

@stevenlafl
Last active June 6, 2024 22:18
Show Gist options
  • Save stevenlafl/729562c22c3c4a370afefc5ae59af3f7 to your computer and use it in GitHub Desktop.
Save stevenlafl/729562c22c3c4a370afefc5ae59af3f7 to your computer and use it in GitHub Desktop.
Jellyfin FFmpeg log on RK3588
{"Protocol":0,"Id":"cc14f3d11b7c692840fae5e876a226d7","Path":"/movies/sample.mp4","EncoderPath":null,"EncoderProtocol":null,"Type":0,"Container":"mov,mp4,m4a,3gp,3g2,mj2","Size":2120761216,"Name":"Sample","IsRemote":false,"ETag":"1b6cb4cb9840e93d22d38239668b053b","RunTimeTicks":76072001536,"ReadAtNativeFramerate":false,"IgnoreDts":false,"IgnoreIndex":false,"GenPtsInput":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"OpenToken":null,"RequiresClosing":false,"LiveStreamId":null,"BufferMs":null,"RequiresLooping":false,"SupportsProbing":true,"VideoType":0,"IsoType":null,"Video3DFormat":null,"MediaStreams":[{"Codec":"hevc","CodecTag":"hev1","Language":"und","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Comment":null,"TimeBase":"1/24000","CodecTimeBase":null,"Title":null,"VideoRange":1,"VideoRangeType":1,"VideoDoViTitle":null,"AudioSpatialFormat":0,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"LocalizedHearingImpaired":null,"DisplayTitle":"1080p HEVC SDR","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":null,"BitRate":2000766,"BitDepth":10,"RefFrames":1,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Height":800,"Width":1920,"AverageFrameRate":23.976025,"RealFrameRate":23.976025,"Profile":"Main 10","Type":1,"AspectRatio":"2.40:1","Index":0,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":"yuv420p10le","Level":120,"IsAnamorphic":null},{"Codec":"aac","CodecTag":"mp4a","Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Comment":null,"TimeBase":"1/48000","CodecTimeBase":null,"Title":null,"VideoRange":0,"VideoRangeType":0,"VideoDoViTitle":null,"AudioSpatialFormat":0,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"LocalizedHearingImpaired":null,"DisplayTitle":"English - AAC - 5.1 - Default","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":"5.1","BitRate":224000,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":6,"SampleRate":48000,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":"LC","Type":0,"AspectRatio":null,"Index":1,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null}],"MediaAttachments":[],"Formats":[],"Bitrate":2230267,"Timestamp":null,"RequiredHttpHeaders":{},"TranscodingUrl":null,"TranscodingSubProtocol":0,"TranscodingContainer":null,"AnalyzeDurationMs":null,"DefaultAudioStreamIndex":null,"DefaultSubtitleStreamIndex":null}
/usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -probesize 1G -init_hw_device rkmpp=rk -hwaccel rkmpp -hwaccel_output_format drm_prime -afbc rga -noautorotate -i file:"/movies/sample.mp4" -noautoscale -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 libsvtav1 -preset 10 -b:v 4001532 -bufsize 8003064 -svtav1-params:0 rc=1:tune=0:film-grain=0:enable-overlays=1:enable-tf=0 -g:v:0 72 -keyint_min:v:0 72 -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale_rkrga=format=nv12,hwdownload,format=nv12" -codec:a:0 copy -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type fmp4 -hls_fmp4_init_filename "84a4ef0cb1c7164bf667e99fd1db13fc-1.mp4" -start_number 0 -hls_segment_filename "/config/transcodes/84a4ef0cb1c7164bf667e99fd1db13fc%d.mp4" -hls_playlist_type vod -hls_list_size 0 -y "/config/transcodes/84a4ef0cb1c7164bf667e99fd1db13fc.m3u8"
ffmpeg version 6.0.1-Jellyfin Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 12 (Debian 12.2.0-14)
configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --disable-static --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto --enable-gpl --enable-version3 --enable-shared --enable-gmp --enable-gnutls --enable-chromaprint --enable-opencl --enable-libdrm --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libdav1d --enable-libsvtav1 --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=arm64 --cross-prefix=/usr/bin/aarch64-linux-gnu- --toolchain=hardened --enable-cross-compile --enable-rkmpp --enable-rkrga
libavutil 58. 2.100 / 58. 2.100
libavcodec 60. 3.100 / 60. 3.100
libavformat 60. 3.100 / 60. 3.100
libavdevice 60. 1.100 / 60. 1.100
libavfilter 9. 3.100 / 9. 3.100
libswscale 7. 1.100 / 7. 1.100
libswresample 4. 10.100 / 4. 10.100
libpostproc 57. 1.100 / 57. 1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:/movies/sample.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
creation_time : 2022-09-26T20:44:08.000000Z
title : Sample
encoder : Lavf58.20.100
comment : Sample
Duration: 02:06:47.20, start: 0.000000, bitrate: 2230 kb/s
Stream #0:0[0x1](und): Video: hevc (Main 10) (hev1 / 0x31766568), yuv420p10le(tv), 1920x800 [SAR 1:1 DAR 12:5], 2000 kb/s, 23.98 fps, 23.98 tbr, 24k tbn (default)
Metadata:
creation_time : 2022-09-26T20:44:08.000000Z
handler_name : VideoHandler
vendor_id : [0][0][0][0]
Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 224 kb/s (default)
Metadata:
creation_time : 2022-09-26T20:44:08.000000Z
handler_name : SoundHandler
vendor_id : [0][0][0][0]
Stream mapping:
Stream #0:0 -> #0:0 (hevc (hevc_rkmpp) -> av1 (libsvtav1))
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]: SVT-AV1 Encoder Lib v2.1.0
Svt[info]: SVT [build] : GCC 12.2.0 64 bit
Svt[info]: LIB Build date: May 25 2024 11:13:41
Svt[info]: -------------------------------------------
Svt[info]: Number of logical cores available: 8
Svt[info]: Number of PPCS 71
Svt[info]: [asm level on system : up to neon]
Svt[info]: [asm level selected : up to neon]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile tier (auto) level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator : 1920 / 800 / 24000 / 1001
Svt[info]: SVT [config]: bit-depth / color format : 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct : 10 / VQ / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type : 72 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / target bitrate (kbps) : VBR / 4001
Svt[info]: SVT [config]: AQ mode / variance boost : 2 / 0
Svt[info]: -------------------------------------------
Svt[warn]: Failed to set thread priority: Invalid argument
[hls @ 0xaaaad993c770] Opening '/config/transcodes/84a4ef0cb1c7164bf667e99fd1db13fc-1.mp4' for writing
Output #0, hls, to '/config/transcodes/84a4ef0cb1c7164bf667e99fd1db13fc.m3u8':
Metadata:
encoder : Lavf60.3.100
Stream #0:0: Video: av1, yuv420p(tv, bt709, progressive), 1920x800 [SAR 1:1 DAR 12:5], q=2-31, 4001 kb/s, 23.98 fps, 24k tbn (default)
Metadata:
encoder : Lavc60.3.100 libsvtav1
Side data:
cpb: bitrate max/min/avg: 0/0/4001532 buffer size: 8003064 vbv_delay: N/A
Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 224 kb/s (default)
frame= 0 fps=0.0 q=0.0 size=N/A time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size=N/A time=00:00:00.89 bitrate=N/A speed=1.72x
frame= 1 fps=1.0 q=3.0 size=N/A time=00:00:03.02 bitrate=N/A speed=2.97x
frame= 11 fps=6.9 q=6.0 size=N/A time=00:00:03.52 bitrate=N/A speed=2.22x
frame= 70 fps= 32 q=1.0 size=N/A time=00:00:05.90 bitrate=N/A speed= 2.7x
[hls @ 0xaaaad993c770] Opening '/config/transcodes/84a4ef0cb1c7164bf667e99fd1db13fc0.mp4' for writing
frame= 99 fps= 36 q=1.0 size=N/A time=00:00:07.16 bitrate=N/A speed= 2.6x
frame= 118 fps= 36 q=1.0 size=N/A time=00:00:07.95 bitrate=N/A speed=2.44x
frame= 143 fps= 36 q=1.0 size=N/A time=00:00:09.02 bitrate=N/A speed= 2.3x
[hls @ 0xaaaad993c770] Opening '/config/transcodes/84a4ef0cb1c7164bf667e99fd1db13fc1.mp4' for writing
frame= 156 fps= 34 q=2.0 size=N/A time=00:00:09.49 bitrate=N/A speed=2.05x
frame= 211 fps= 40 q=5.0 size=N/A time=00:00:11.79 bitrate=N/A speed=2.26x
[hls @ 0xaaaad993c770] Opening '/config/transcodes/84a4ef0cb1c7164bf667e99fd1db13fc2.mp4' for writing
frame= 234 fps= 41 q=2.0 size=N/A time=00:00:12.82 bitrate=N/A speed=2.22x
frame= 251 fps= 40 q=3.0 size=N/A time=00:00:13.50 bitrate=N/A speed=2.14x
frame= 286 fps= 42 q=5.0 size=N/A time=00:00:14.91 bitrate=N/A speed=2.18x
[hls @ 0xaaaad993c770] Opening '/config/transcodes/84a4ef0cb1c7164bf667e99fd1db13fc3.mp4' for writing
frame= 314 fps= 43 q=9.0 size=N/A time=00:00:16.12 bitrate=N/A speed=2.19x
frame= 319 fps= 40 q=9.0 size=N/A time=00:00:16.32 bitrate=N/A speed=2.07x
frame= 343 fps= 41 q=23.0 size=N/A time=00:00:17.34 bitrate=N/A speed=2.06x
frame= 355 fps= 31 q=19.0 size=N/A time=00:00:17.83 bitrate=N/A speed=1.57x
[hls @ 0xaaaad993c770] Opening '/config/transcodes/84a4ef0cb1c7164bf667e99fd1db13fc4.mp4' for writing
frame= 361 fps= 30 q=1.0 size=N/A time=00:00:18.09 bitrate=N/A speed=1.49x
frame= 381 fps= 30 q=8.0 size=N/A time=00:00:18.92 bitrate=N/A speed=1.47x
frame= 414 fps= 31 q=7.0 size=N/A time=00:00:20.24 bitrate=N/A speed=1.51x
[hls @ 0xaaaad993c770] Opening '/config/transcodes/84a4ef0cb1c7164bf667e99fd1db13fc5.mp4' for writing
frame= 433 fps= 30 q=1.0 size=N/A time=00:00:21.07 bitrate=N/A speed=1.47x
frame= 448 fps= 30 q=1.0 size=N/A time=00:00:21.76 bitrate=N/A speed=1.47x
frame= 462 fps= 30 q=9.0 size=N/A time=00:00:22.29 bitrate=N/A speed=1.42x
frame= 502 fps= 30 q=8.0 size=N/A time=00:00:24.00 bitrate=N/A speed=1.43x
[hls @ 0xaaaad993c770] Opening '/config/transcodes/84a4ef0cb1c7164bf667e99fd1db13fc6.mp4' for writing
frame= 513 fps= 30 q=9.0 size=N/A time=00:00:24.46 bitrate=N/A speed=1.41x
frame= 541 fps= 30 q=11.0 size=N/A time=00:00:25.64 bitrate=N/A speed=1.44x
frame= 564 fps= 31 q=10.0 size=N/A time=00:00:26.64 bitrate=N/A speed=1.45x
frame= 574 fps= 30 q=7.0 size=N/A time=00:00:27.00 bitrate=N/A speed=1.41x
[hls @ 0xaaaad993c770] Opening '/config/transcodes/84a4ef0cb1c7164bf667e99fd1db13fc7.mp4' for writing
frame= 591 fps= 30 q=11.0 size=N/A time=00:00:27.71 bitrate=N/A speed= 1.4x
frame= 610 fps= 30 q=14.0 size=N/A time=00:00:28.48 bitrate=N/A speed= 1.4x
frame= 632 fps= 30 q=7.0 size=N/A time=00:00:29.44 bitrate=N/A speed=1.41x
frame= 644 fps= 30 q=6.0 size=N/A time=00:00:29.93 bitrate=N/A speed=1.38x
[hls @ 0xaaaad993c770] Opening '/config/transcodes/84a4ef0cb1c7164bf667e99fd1db13fc8.mp4' for writing
frame= 659 fps= 30 q=13.0 size=N/A time=00:00:30.67 bitrate=N/A speed=1.38x
frame= 693 fps= 30 q=11.0 size=N/A time=00:00:31.93 bitrate=N/A speed= 1.4x
frame= 714 fps= 30 q=15.0 size=N/A time=00:00:32.81 bitrate=N/A speed= 1.4x
[hls @ 0xaaaad993c770] Opening '/config/transcodes/84a4ef0cb1c7164bf667e99fd1db13fc9.mp4' for writing
frame= 728 fps= 30 q=24.0 size=N/A time=00:00:33.51 bitrate=N/A speed=1.38x
frame= 744 fps= 30 q=17.0 size=N/A time=00:00:34.09 bitrate=N/A speed=1.37x
[q] command received. Exiting.
[hls @ 0xaaaad993c770] Opening '/config/transcodes/84a4ef0cb1c7164bf667e99fd1db13fc10.mp4' for writing
[hls @ 0xaaaad993c770] Opening '/config/transcodes/84a4ef0cb1c7164bf667e99fd1db13fc11.mp4' for writing
[hls @ 0xaaaad993c770] Opening '/config/transcodes/84a4ef0cb1c7164bf667e99fd1db13fc12.mp4' for writing
frame= 867 fps= 30 q=9.0 Lsize=N/A time=00:00:35.92 bitrate=N/A speed=1.26x
video:11918kB audio:993kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment