Jellyfin Forum
SOLVED: Remuxing? - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: SOLVED: Remuxing? (/t-solved-remuxing)

Pages: 1 2


Remuxing? - Alliyance - 2024-07-21

Since server version 10.9.2, I get those from time to time on Android tv app. Trying to know the reason why it's being transcoded but it doesn't say in the log file.  Can someone know why? 
It also happened on Chromecast and android box, both using 0.16.11 version

Log:

[2024-07-21 15:25:32.708 +00:00] [INF] [53] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for "serge". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: False EnableAudioPlaybackTranscoding: False
[2024-07-21 15:25:33.846 +00:00] [INF] [77] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: "/usr/bin/ffmpeg" "-analyzeduration 200M -probesize 1G -fflags +genpts -f matroska  -i file:\"/home/alliyance/files/Movies/Kingdom.of.the.Planet.of.the.Apes.2024.mkv\" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 copy -bsf:v h264_mp4toannexb -start_at_zero -codec:a:0 copy -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 6 -hls_segment_type mpegts -start_number 0 -hls_segment_filename \"/dev/shm/1011/jellyfin/transcodes/9d4501c0916f740ed179b83701ef6804%d.ts\" -hls_playlist_type vod -hls_list_size 0 -y \"/dev/shm/1011/jellyfin/transcodes/9d4501c0916f740ed179b83701ef6804.m3u8\""
[2024-07-21 15:26:09.466 +00:00] [INF] [22] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: FFmpeg exited with code 0
[2024-07-21 15:47:42.136 +00:00] [WRN] [203] Jellyfin.Networking.Manager.NetworkManager: IPv6 is disabled in Jellyfin, but enabled in the OS. This may affect how the interface is selected.
[2024-07-21 16:00:19.374 +00:00] [WRN] [205] Jellyfin.Networking.Manager.NetworkManager: IPv6 is disabled in Jellyfin, but enabled in the OS. This may affect how the interface is selected.
[2024-07-21 16:39:03.285 +00:00] [INF] [72] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: "/usr/bin/ffmpeg" "-analyzeduration 200M -probesize 1G -ss 00:42:00.542 -fflags +genpts -f matroska  -i file:\"/home/alliyance/files/Movies/Kingdom.of.the.Planet.of.the.Apes.2024.mkv\" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 copy -bsf:v h264_mp4toannexb -start_at_zero -codec:a:0 copy -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 6 -hls_segment_type mpegts -start_number 420 -hls_segment_filename \"/dev/shm/1011/jellyfin/transcodes/9d4501c0916f740ed179b83701ef6804%d.ts\" -hls_playlist_type vod -hls_list_size 0 -y \"/dev/shm/1011/jellyfin/transcodes/9d4501c0916f740ed179b83701ef6804.m3u8\""
[2024-07-21 16:39:27.232 +00:00] [INF] [72] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: FFmpeg exited with code 0



RE: Transcoding? - Alliyance - 2024-07-21

/usr/bin/ffmpeg -analyzeduration 200M -probesize 1G -ss 01:30:48.542 -fflags +genpts -f matroska -i file:"/home/alliyance/files/Movies/Kingdom.of.the.Planet.of.the.Apes.2024.mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 copy -bsf:v h264_mp4toannexb -start_at_zero -codec:a:0 copy -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 6 -hls_segment_type mpegts -start_number 908 -hls_segment_filename "/dev/shm/1011/jellyfin/transcodes/9d4501c0916f740ed179b83701ef6804%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/dev/shm/1011/jellyfin/transcodes/9d4501c0916f740ed179b83701ef6804.m3u8"


ffmpeg version 6.1.1 Copyright © 2000-2023 the FFmpeg developers
built with gcc 13 (Gentoo Hardened 13.3.1_p20240614 p17)
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-6.1.1-r8/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --nm=x86_64-pc-linux-gnu-nm --strip=x86_64-pc-linux-gnu-strip --ranlib=x86_64-pc-linux-gnu-ranlib --pkg-config=x86_64-pc-linux-gnu-pkg-config --optflags='-O3 -pipe -march=native -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -ggdb3' --enable-static --disable-libaribcaption --enable-avfilter --disable-stripping --disable-optimizations --disable-libcelt --enable-nonfree --disable-indev=v4l2 --disable-outdev=v4l2 --disable-indev=alsa --disable-indev=oss --disable-indev=jack --disable-indev=sndio --disable-outdev=alsa --disable-outdev=oss --disable-outdev=sndio --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --disable-gmp --enable-gpl --disable-hardcoded-tables --enable-iconv --disable-libxml2 --disable-lzma --enable-network --disable-opencl --enable-openssl --enable-postproc --disable-libsmbclient --disable-ffplay --disable-sdl2 --disable-vaapi --disable-vdpau --disable-vulkan --disable-xlib --disable-libxcb --disable-libxcb-shm --disable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --disable-libdrm --disable-libjack --disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libcodec2 --enable-libdav1d --disable-libfdk-aac --disable-libopenjpeg --disable-libjxl --enable-libbluray --disable-libgme --disable-libgsm --disable-libaribb24 --disable-libmodplug --disable-libopus --disable-libvpl --disable-libilbc --disable-librtmp --disable-libssh --disable-libspeex --disable-libsrt --disable-librsvg --disable-ffnvcodec --enable-libvorbis --disable-libvpx --disable-libzvbi --disable-appkit --disable-libbs2b --enable-chromaprint --disable-cuda-llvm --disable-libflite --disable-fontconfig --disable-frei0r --disable-libfribidi --disable-libglslang --disable-ladspa --disable-lcms2 --enable-libass --disable-libplacebo --disable-libtesseract --disable-lv2 --disable-librubberband --disable-libshaderc --disable-libfreetype --disable-libharfbuzz --disable-libvidstab --disable-libvmaf --disable-libzmq --disable-libzimg --disable-libsoxr --enable-pthreads --disable-amf --disable-libvo-amrwbenc --disable-libkvazaar --disable-libaom --enable-libmp3lame --disable-libopenh264 --disable-librav1e --disable-libsnappy --disable-libsvtav1 --disable-libtheora --disable-libtwolame --disable-libwebp --enable-libx264 --enable-libx265 --disable-libxvid --disable-gnutls --enable-version3 --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-vfpv3 --disable-armv8 --disable-dotprod --disable-i8mm --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --disable-altivec --disable-vsx --disable-power8 --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --enable-pic --cpu=host --enable-lto=auto --disable-doc --disable-htmlpages --enable-manpages
libavutil 58. 29.100 / 58. 29.100
libavcodec 60. 31.102 / 60. 31.102
libavformat 60. 16.100 / 60. 16.100
libavdevice 60. 3.100 / 60. 3.100
libavfilter 9. 12.100 / 9. 12.100
libswscale 7. 5.100 / 7. 5.100
libswresample 4. 12.100 / 4. 12.100
libpostproc 57. 3.100 / 57. 3.100
Input #0, matroska,webm, from 'fileConfused-facehome/alliyance/files/Movies/Kingdom.of.the.Planet.of.the.Apes.2024.mkv':
Metadata:
encoder : libebml v1.4.5 + libmatroska v1.7.1
creation_time : 2024-07-09T10:46:57.000000Z
Duration: 02:24:40.81, start: 0.000000, bitrate: 6050 kb/s
Stream #0:0: Video: h264 (High), yuv420p(progressive), 1920x804 [SAR 1:1 DAR 160:67], 24 fps, 24 tbr, 1k tbn (default)
Metadata:
BPS : 5156279
DURATION : 02:24:40.709000000
NUMBER_OF_FRAMES: 208337
NUMBER_OF_BYTES : 5595020546
_STATISTICS_WRITING_APP: mkvmerge v84.0 ('Sleeper') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2024-07-09 10:46:57
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1(eng): Audio: aac (LC), 48000 Hz, 5.1, fltp (default)
Metadata:
BPS : 445371
DURATION : 02:24:40.810000000
NUMBER_OF_FRAMES: 406913
NUMBER_OF_BYTES : 483272666
_STATISTICS_WRITING_APP: mkvmerge v84.0 ('Sleeper') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2024-07-09 10:46:57
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:2(fre): Audio: aac (LC), 48000 Hz, 5.1, fltp


RE: Transcoding? - Alliyance - 2024-07-21

I filed a report under Gethub.


RE: Transcoding? - theguymadmax - 2024-07-21

Post the full ffmpeg logs.

Edit. I think I spotted the issue, you are using the vaninlla Ffmpeg. You need to use Jellyfin's custom Ffmpeg. What are the details for your server.


RE: Transcoding? - Alliyance - 2024-07-21

https://sourceb.in/BZ9KDzfro8


RE: Transcoding? - theguymadmax - 2024-07-21

As I stated in my edited post, the issue is most likely because you are not using Jellyfin's custom version of FFmpeg. How is Jellyfin installed on your server?


RE: Transcoding? - Alliyance - 2024-07-21

It's installed on Linux which I don't have access. I will need to contact the company (Seedbox) to fix the issue then. Any tips I should tell them?

I just send them the issue, they should be able to fix it. I hope.


RE: Transcoding? - TheDreadPirate - 2024-07-21

Its remuxing, not transcoding.

Code:
-codec:v:0 copy .... -codec:a:0 copy

Your client doesn't support the codec/container combination.


RE: Transcoding? - Alliyance - 2024-07-21

(2024-07-21, 07:08 PM)TheDreadPirate Wrote: Its remuxing, not transcoding.

Code:
-codec:v:0 copy .... -codec:a:0 copy

Your client doesn't support the codec/container combination.

I have the same issue with certain client on Chromecast, weird cause usually it's direct play. So it has nothing to do the Jellyfin custom ffmpeg? Someone stated that the server is using a vaninlla ffmepg instead of the custom jellyfin one.


RE: Transcoding? - TheDreadPirate - 2024-07-21

You CAN use vanilla ffmpeg. We just strongly discourage that. Jellyfin-ffmpeg isn't a simple fork. Gnattu and Nyanmisaka made A LOT of changes specific to transcoding on Jellyfin.

Remuxing is, essentially, direct playing. It is just changing the container, but the audio and video and unmodified. A potato can remux on-the-fly.