Jump to content

ffmpeg, vaapi & subtitels: not working


scheideggstrasse

Recommended Posts

scheideggstrasse
➜  bin /opt/emby-server/bin/ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -vaapi_device /dev/dri/renderD128 -i file:"/media/nas/tv3/1.mkv" -threads 0 -map 0:0 -map 0:1 -codec:v:0 h264_vaapi -copyts -vf "format=nv12|vaapi,subtitles='/media/nas/tv3/1.mkv:si=0':force_style='FontName=Droid Sans Fallback':fontsdir='/var/lib/emby/fonts'" -b:v 616001 -maxrate 616001 -bufsize 1232002 -profile:v 578 -level 41 -force_key_frames "expr:if(isnan(prev_forced_t),eq(t,t),gte(t,prev_forced_t+3))" -vsync -1 -codec:a:0 libmp3lame -ac 2 -ab 384000  -f segment -max_delay 5000000 -avoid_negative_ts disabled -map_metadata -1 -map_chapters -1 -start_at_zero -segment_time 3  -individual_header_trailer 0 -segment_format mpegts -segment_list_type m3u8 -segment_start_number 0 -segment_list "/var/lib/emby/transcoding-temp/18c56c7b3a353eced70363442c1a457c.m3u8" -y "/var/lib/emby/transcoding-temp/18c56c7b3a353eced70363442c1a457c%d.ts" -loglevel debug
 

I've build the latest ffmpeg & vaapi drivers etc on my ubuntu 16.04 following the gist here

 

During playback, ffmpeg is failing with:

[graph 0 input from stream 0:0 @ 0x3523700] Setting 'video_size' to value '1920x1080'
[graph 0 input from stream 0:0 @ 0x3523700] Setting 'pix_fmt' to value '46'
[graph 0 input from stream 0:0 @ 0x3523700] Setting 'time_base' to value '1/1000'
[graph 0 input from stream 0:0 @ 0x3523700] Setting 'pixel_aspect' to value '1/1'
[graph 0 input from stream 0:0 @ 0x3523700] Setting 'sws_param' to value 'flags=2'
[graph 0 input from stream 0:0 @ 0x3523700] Setting 'frame_rate' to value '24000/1001'
[graph 0 input from stream 0:0 @ 0x3523700] w:1920 h:1080 pixfmt:vaapi_vld tb:1/1000 fr:24000/1001 sar:1/1 sws_param:flags=2
[format @ 0x3819540] Setting 'pix_fmts' to value 'vaapi_vld'
[auto_scaler_0 @ 0x3818ac0] Setting 'flags' to value 'bicubic'
[auto_scaler_0 @ 0x3818ac0] w:iw h:ih flags:'bicubic' interl:0
[Parsed_subtitles_1 @ 0x3524f00] auto-inserting filter 'auto_scaler_0' between the filter 'Parsed_format_0' and the filter 'Parsed_subtitles_1'
Impossible to convert between the formats supported by the filter 'Parsed_format_0' and the filter 'auto_scaler_0'
Error reinitializing filters!
Failed to inject frame into filter network: Function not implemented
Error while processing the decoded data for stream #0:0
[libmp3lame @ 0x3079cc0] 3 frames left in the queue on closing
[AVIOContext @ 0x3020100] Statistics: 163840 bytes read, 0 seeks

I also tried to use the default ffmpeg version, which comes with the latest package version. 

this causes ffmpeg to load the whole media file parses it. 

the video starts then 2-5min later (depending on the video size..)

 

any idea?

Edited by scheideggstrasse
Link to comment
Share on other sites

mastrmind11

I've build the latest ffmpeg & vaapi drivers etc on my ubuntu 16.04 following the gist here

 

During playback, ffmpeg is failing with:

[graph 0 input from stream 0:0 @ 0x3523700] Setting 'video_size' to value '1920x1080'
[graph 0 input from stream 0:0 @ 0x3523700] Setting 'pix_fmt' to value '46'
[graph 0 input from stream 0:0 @ 0x3523700] Setting 'time_base' to value '1/1000'
[graph 0 input from stream 0:0 @ 0x3523700] Setting 'pixel_aspect' to value '1/1'
[graph 0 input from stream 0:0 @ 0x3523700] Setting 'sws_param' to value 'flags=2'
[graph 0 input from stream 0:0 @ 0x3523700] Setting 'frame_rate' to value '24000/1001'
[graph 0 input from stream 0:0 @ 0x3523700] w:1920 h:1080 pixfmt:vaapi_vld tb:1/1000 fr:24000/1001 sar:1/1 sws_param:flags=2
[format @ 0x3819540] Setting 'pix_fmts' to value 'vaapi_vld'
[auto_scaler_0 @ 0x3818ac0] Setting 'flags' to value 'bicubic'
[auto_scaler_0 @ 0x3818ac0] w:iw h:ih flags:'bicubic' interl:0
[Parsed_subtitles_1 @ 0x3524f00] auto-inserting filter 'auto_scaler_0' between the filter 'Parsed_format_0' and the filter 'Parsed_subtitles_1'
Impossible to convert between the formats supported by the filter 'Parsed_format_0' and the filter 'auto_scaler_0'
Error reinitializing filters!
Failed to inject frame into filter network: Function not implemented
Error while processing the decoded data for stream #0:0
[libmp3lame @ 0x3079cc0] 3 frames left in the queue on closing
[AVIOContext @ 0x3020100] Statistics: 163840 bytes read, 0 seeks

I also tried to use the default ffmpeg version, which comes with the latest package version. some problem.

 

any idea?

all files?  I've seen this in the past on certain media, but not on all.  

Link to comment
Share on other sites

scheideggstrasse

looks like it's only with the subtitle Codec: SUBRIP 

 

PGSSUB and SRT are working fine

Edited by scheideggstrasse
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...