[FFmpeg-user] Tokenised http subtitle source

adam smith adamsmith79 at icloud.com
Wed Apr 14 18:12:01 EEST 2021


> 
>> You should show us the complete, uncut console output, without the
>> access key of course.
> 
I have included the quotes on the subtitle file path.
If I use the url in a browser the SRT file is downloaded so I know the credentials are ok.
Thanks for your help.
> 
ffmpeg -y -ss 00:00.00 -to 07:55.97 -i /data/disposable/some_file.mp4 -i "https://some_domain.com/subtitles/18217/bf4130a3-64f8-40cb-aae8-720da75797a7.srt?AWSAccessKeyId=A**********B&Expires=1619000593&Signature=c**B%2FV******FQ4k78%3D&response-content-disposition=attachm
ent%3B%20filename%3Dbf4130a3-64f8-40cb-aae8-720da75797a7.srt&x-amz-security-token=IQoJb3JpZ2********2F%2F%2F%2F%2F%2F%2F%2F%2F%**********g7A0QptFpa1Q7sBOoGtuwZD8M6HL1AiBTId
cRcpk8R77bSG7Gp0oM7arSV22OU4mtilwWKW1UxyrnAQjs%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F8BEAAaDDQ1NDg4NTQyODYwMCIMFI5hAhLJiIZ%2BM3WCKrsBJk*********************************sSmUrbiPmRVbOnjCVwf1v********
> GcD%2FS0Rv***************************%2FgmA%2BsxWAyCarhpPk3GtYUTTxC98wk2h8hHAP7w%3D%3D" -filter_complex "[0:0]fifo[vout];[0:1]afifo[01_afifo]" -map "[vout]" -map "[01_afifo]" -map 1 -pi
x_fmt yuv420p -c:v libx264 -s 1920x1080 -profile:v high -level:v 4.1  -refs:v 2 -keyint_min 50 -b:v 15000k -r 25 -ac 2 -bsf:a aac_adtstoasc -c:a libfdk_aac -ar 48000 -b:a 192k -c:s mov_text -flags +global
_header -f tee "[f=mp4:movflags=+faststart]/data/disposable/bf4130a3-64f8-40cb-aae8-720da75797a7.mp4"
ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 9.3.0 (Alpine 9.3.0)
  configuration: --disable-debug --disable-doc --disable-ffplay --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-gpl --enable-libass --enable-fontconfig --enable-libfreetype --enable-libvidstab --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxcb --enable-libx265 --enable-libxvid --enable-libx264 --enable-nonfree --enable-openssl --enable-libfdk_aac --enable-postproc --enable-small --enable-version3 --enable-libbluray --enable-libzmq --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-libopenjpeg --enable-libkvazaar --enable-libaom --extra-libs=-lpthread --enable-libsrt --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/data/disposable/some_file.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.45.100
  Duration: 00:07:55.96, start: 0.000000, bitrate: 15682 kb/s
    Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 15161 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
    Metadata:
      handler_name    : VideoHandler
      timecode        : 00:00:00:00
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 256 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
    Stream #0:2(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 256 kb/s
    Metadata:
      handler_name    : SoundHandler
    Stream #0:3(eng): Data: none (tmcd / 0x64636D74)
    Metadata:
      handler_name    : TimeCodeHandler
      timecode        : 00:00:00:00
[https @ 0x7f01cc1016c0] HTTP error 403 Forbidden
https://some_domain.com/subtitles/18217/bf4130a3-64f8-40cb-aae8-720da75797a7.srt?AWSAccessKeyId=A***********B&Expires=1619000593&Signature=ci**%2FVaW*******78%3D&response-content-disposition=attachment%3B%20filename%3Dbf4130a3-64f8-40cb-aae8-720da75797a7.srt&x-amz-security-token=IQoJb3JpZ2l******JP%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCWV***********xY6lFKnWg7A0QptFpa1Q7sBOoGtuwZD8M6HL1AiBTIdcRcpk8R7************ksSmUrbiPmRVbOnjCVwf1v6RhcNt37jCQhduDBjrhARayFWaiFySBeH8OgE%2B8u
GcD%2FS0RvbsYMeCYJGNMPHi%2B1oT5VYhMRfW1********myyBiX5XVDsfRctmRXTmRm%2FVNfp4pxvU%2B3fshBQvcq9l36oU%2BIO5kbzzjq******Xk0zs%2F%2B9ne0ukC3jgSBUP4R2tYhvahrd4Ci1XzDI********YNUTgxNOenjJQRWNBCPfIsLeB0Wg6UKUOtUfeEOQZP6JrtOd5%2FgmA%2BsxWAyCarhpPk3GtYUTTxC98wk2h8hHAP7w%3D%3D: Server returned 403 Forbidden (access denied)



More information about the ffmpeg-user mailing list