• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Transcoding ffmpeg options

     
    • 0 Vote(s) - 0 Average

    Transcoding ffmpeg options

    Transcoding ffmpeg options wrong (autorotate with parameter 0)
    s7mon
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2024 Jan
    Reputation: 0
    Country:Germany
    #1
    2024-01-04, 02:24 PM
    trying to setup jellyfin for transcoding with hw acceleration (which seems not to be related i get it also with sw transcoding).
    And it seems the autorotate option is not used correctly. I assume it should be not using 0 at all or using noautorotate

    Manually removing the 0 or autorotate options help when i try it manually.
    https://ffmpeg.org/ffmpeg.html#toc-Video-Options

    ffmpeg -analyzeduration 200M -f mov,mp4,m4a,3gp,3g2,mj2 -autorotate 0 -i file:"/mnt/converted/test.mp4" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 libx264 -preset veryfast -crf 23 -maxrate 444944 -bufsize 889888 -profile:v:0 main -level 40 -x264opts:0 subme=0:me_range=4:rc_lookahead=10:me=dia:no_chroma_me:8x8dct=0:partitions=none -force_key_frames:0 "expr:gte(t,0+n_forced*3)" -sc_threshold:v:0 0 -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*a)\,640)/2)*2:trunc(ow/a/2)*2,format=yuv420p" -codec:a:0 aac -ac 2 -ab 256000 -ar 44100 -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type mpegts -start_number 0 -hls_segment_filename "/var/lib/jellyfin/transcodes/4a916a9fc91f48a705bfeff873807f7d%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/var/lib/jellyfin/transcodes/4a916a9fc91f48a705bfeff873807f7d.m3u8"

    ..
      Stream #0:0[0x1](eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 10062 kb/s, 29.97 fps, 29.97 tbr, 30k tbn (default)
          Metadata:
            handler_name    : VideoHandler
            vendor_id      : [0][0][0][0]
            encoder        : Lavc59.37.100 h264_nvenc
      Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 275 kb/s (default)
          Metadata:
            handler_name    : SoundHandler
            vendor_id      : [0][0][0][0]
    Option autorotate (automatically insert correct rotate filters) cannot be applied to output url 0 -- you are trying to apply an input option to an output file or vice versa. Move this option before the file it belongs to.
    Error parsing options for output file 0.
    Error opening output files: Invalid argument

    is this a known issue or am i missing sth? Can i configure things somewhere?

    Version 10.8.13
    ffmpeg git
    s7mon
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2024 Jan
    Reputation: 0
    Country:Germany
    #2
    2024-01-04, 02:59 PM
    seems to be a change in ffmpeg
    https://git.videolan.org/?p=ffmpeg.git;a...2f2ec0657a
    cleaning options with arguments and it should be either -autorotate or -noautorotate but without argument now.
    raised the ticket https://github.com/jellyfin/jellyfin/issues/10809
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #3
    2024-01-04, 05:26 PM (This post was last modified: 2024-01-04, 05:28 PM by TheDreadPirate.)
    Which version of ffmpeg are you using? Are you using vanilla ffmpeg or jellyfin-ffmpeg? Is this autorotate option causing any issues during transcoding?

    Looking at your logs, you are not using jellyfin-ffmpeg. I strongly recommend using our customized ffmpeg. Looks like our resident ffmpeg expert agrees with me in the git issue.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    s7mon
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2024 Jan
    Reputation: 0
    Country:Germany
    #4
    2024-01-04, 07:28 PM (This post was last modified: 2024-01-04, 07:40 PM by s7mon. Edited 1 time in total.)
    Hi, ffmpeg is plain ffmpeg from git, not the jellyfin-ffmpeg one. My distro does not bundle jellyfin-ffmpeg and i am using git version for testing and access to latest hw encoding support i also use outside of jellyfin.
    But maybe if i find some time to try containerization i will switch.
    Seems the issue is anyhow already being solved (pull request).

    FYI: without that pull request the autorotate option blocks all transcodes with latest ffmpeg as it treats the parameter 0 as output and not as the value for the option autorotate anymore.

    regards

    P.S.: what is the exact difference of jellyfin-ffmpeg to vanilla ffmpeg? I am not sure i get what is missing from the plain ffmpeg
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode