Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with map subtitle track #210

Closed
cooliobr opened this issue Oct 18, 2022 · 0 comments
Closed

Issue with map subtitle track #210

cooliobr opened this issue Oct 18, 2022 · 0 comments

Comments

@cooliobr
Copy link

This new release are removing -map and -map_metadata(to remove metadata from video file ) from output_param cmd, on my command i put it to set a input subtitle track and encode ir to webvtt.

-aspect 16:9 -c:v h264_nvenc -crf 23 -maxrate 2300k -bufsize 4600k -profile:v main -level 5.1 -map 0:a:1 -ar 44100 -b:a 128k -c:a libfdk_aac -map 0:s:0 -c:s webvtt -muxdelay 0 -g 30 -keyint_min 30 -flags +cgop -colorspace:v bt709 -color_primaries:v bt709 -color_trc:v bt709 -color_range:v tv -master_pl_name playlist.m3u8 -f hls -var_stream_map "v:0,name:video_,agroup:audio,s:0,sgroup:subtitle,language:Por,default:yes,name:subtitle_ a:0,agroup:audio,language:Eng,name:audio_eng_ a:1,language:Por,name:audio_por_,default:yes,agroup:audio" -hls_time 6 -hls_list_size 6 -individual_header_trailer 1 -hls_flags append_list+omit_endlist+delete_segments+program_date_time /usr/share/ffplayout/public/live/ch1/stream_%v.m3u8

CMD from terminal ( LOG )

[2022-10-17 21:10:03.68964] [DEBUG] HLS writer CMD: "ffmpeg -hide_banner -nostats -v level+error -stream_loop 6 -i /var/lib/ffplayout/tv-media/filler/filler.mp4 -t 60 -filter_complex [0:v:0]pad=max(iw\,ih*(1280/720)):ow/(1280/720):(ow-iw)/2:(oh-ih)/2,fps=29.98,scale=1280:720,setdar=dar=1,fade=out:st=59:d=1.0,null[v];movie=/usr/share/ffplayout/hallo_logo.png:loop=0,setpts=N/(FRAME_RATE*TB),format=rgba,colorchannelmixer=aa=0.6[l];[v][l]overlay=W-w-50:50:shortest=1,realtime=speed=1.0002164524413544[vout0];[0:a:0]anull,loudnorm=I=-18:TP=-1.5:LRA=11,afade=out:st=59:d=1.0,volume=3[aout0] -map [vout0] -map [aout0] -aspect 16:9 -c:v h264_nvenc -crf 23 -maxrate 2300k -bufsize 4600k -profile:v main -level 5.1 -ar 44100 -b:a 128k -c:a libfdk_aac -c:s webvtt -muxdelay 0 -g 30 -keyint_min 30 -flags +cgop -colorspace:v bt709 -color_primaries:v bt709 -color_trc:v bt709 -color_range:v tv -master_pl_name playlist.m3u8 -f hls -var_stream_map v:0,name:video_,agroup:audio,s:0,sgroup:subtitle,language:Por,default:yes,name:subtitle_ a:0,agroup:audio,language:Eng,name:audio_eng_ a:1,language:Por,name:audio_por_,default:yes,agroup:audio -hls_time 6 -hls_list_size 6 -individual_header_trailer 1 -hls_flags append_list+omit_endlist+delete_segments+program_date_time /usr/share/ffplayout/public/live/ch1/stream_%v.m3u8"

jb-alvarado added a commit to jb-alvarado/ffplayout that referenced this issue Oct 18, 2022
jb-alvarado added a commit that referenced this issue Jun 17, 2024
* simplify  prepare_output_cmd, use filters struct for stream encoder

* add commands

* unify null output, cleanup stream

* simplify prepare_output_cmd

* remove debug message

* build output filters from scratch, fix #210

* no fontfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant