1

(4 replies, posted in Using SVP)

dont worry mate, i currently have issues aswell with AMD AMF.
only SVPCode can transcode, but the issue there is the videofile comes out damaged for some unknown reason.
https://imgur.com/a/SbR5N
but i actually can set GPU acceleration, but im not into that, because i get a few more dropped frames in MPV with that for some odd reason.

Chainik wrote:

you can add whatever you want via All settings - cast.encode.opts.h264_amf

cant find a fix for it with any setting i tested, so i guess im heading back to software + no realtime. if you need someone to test any changes, you can always write me.

can you do me the favor and put refs=-1? that seems to do the trick in code so refs works.

Looks like that and sometimes does weird stuff like doing the same 5 frames all over again
oops, file is too large, wait a sec
https://imgur.com/TQY3mVF

Chainik wrote:

try SW decoder on the mobile

testing
doesnt make any difference.

Chainik wrote:

try this

Works!
a tiny bit slower than cpu only, but works!
also, cpu is completely chill. 10% usage!
uhm, even if it works, my mobile which gets the videofile begins to lag sometimes, or completely fucks up video output.
im gonna check if thats on my end though!
nope, not on my end. cpu works perfectly fine with a little buffer here and there, but gpu completely destroys it for some reason. gonna check why

Chainik wrote:

This was copied from Videostream ffmpeg args... I have no idea if we really need it hmm probably not...

well, since its just referencing, we probably wont need it in most cases.

kicking out refs=1, and then it works.
b=4700000,quality=quality,profile=high,rc=cbr,g=60,keyint_min=60,sc_threshold=0
basically that one is working completely fine with svpcode, as soon as refs=1 is back in it it dies.

Chainik wrote:

ah! the only difference I can see is different default encoder params:

svpcode:  "code.simple.opts.h264_amf" = "b=$B,quality=quality,profile=high,rc=vbr_peak"
svpcast: "cast.encode.opts.h264_amf" = "b=$B,quality=quality,profile=high,rc=cbr"

even if i replace it, it still doesnt wanna work.
cant go back to 17.12.1 either, as i have serious issues with netflix on it, 5 seconds in and pc is freezing for every second after every 5 seconds
wait, gonna try the other one you put in your edit
2nd edit: then svpcode dies.
3rd edit: screenshot if i have done something wrong please let me know https://imgur.com/a/wCiS4

Chainik wrote:

Prerequisites

Windows® 7 (SP1 with the Platform Update), Windows® 8.1, or Windows® 10
Version 1.4.6: AMD Radeon Software Crimson Edition 17.12.1 (17.50.02) or newer

i have windows 10 1709 fully updated, and amd crimson adrenalin 17.12.2. svpcode DOES work but not SVPCast

looks very good, but if its not realtime, theres no real use for me sadly.

Chainik wrote:

Try the new .130 build.

- should be a little bit less CPU demanding
- added AMD AMF option (*)


(*) I can't check how good or bad it works, so please leave your comments wink
See the encoder options in "All settings": cast.encode.opts.h264_amf and cast.encode.opts.hevc_amf

17:13:36.065: ===== Starting transcoding ======
17:13:36.065: Command line: C:\Program Files (x86)\SVP 4\mpv64\mpv.exe C:/Users/jonni/Videos/Legends Never Die (ft. Against The Current) Worlds 2017 - League of Legends.mp4 --aid=1 --sid=no --no-sub-auto --o=C:/Users/jonni/AppData/Local/Temp/svpcast/stream/svp%04d.ts --input-ipc-server=mpvstreampipe --vf=vapoursynth:[C:\Users\jonni\AppData\Roaming\SVP4\scripts\fffe.py]:4:15 --ofps 60.000 --oharddup --ovc=h264_amf --ovfirst --ovcopts=b=4700000,quality=quality,profile=high,rc=cbr,g=60,keyint_min=60,refs=1,sc_threshold=0,threads=8 --oac=aac --of=ssegment --ofopts=segment_time=4,segment_format=mpegts,segment_list_size=10,segment_start_number=0,segment_list_flags=+live,segment_list=C:/Users/jonni/AppData/Local/Temp/svpcast/stream/svp.m3u8
17:13:36.155: Warning: option --opengl-backend was replaced with --gpu-context and might be removed in the future.
17:13:36.156: Playing: C:/Users/jonni/Videos/Legends Never Die (ft. Against The Current) Worlds 2017 - League of Legends.mp4
17:13:36.156: (+) Video --vid=1 (*) (h264 1280x720 24.000fps)
17:13:36.156: (+) Audio --aid=1 --alang=und (*) (aac 2ch 44100Hz)
17:13:36.156: Subs --sid=1 --slang=und (*) (mov_text)
17:13:36.156: Opening video filter: [vapoursynth file=C:\Users\jonni\AppData\Roaming\SVP4\scripts\fffe.py buffered-frames=4 concurrent-frames=15]
17:13:36.193: [encode-lavc] ao-lavc: preallocated video stream for later use
17:13:36.194: [encode-lavc] Opening audio encoder: AAC (Advanced Audio Coding) [aac]
17:13:36.196: AO: [lavc] 44100Hz stereo 2ch floatp
17:13:36.926: VO: [lavc] 1280x720 yuv420p
17:13:36.926: [encode-lavc] Opening video encoder: AMD AMF H.264 Encoder [h264_amf]
17:13:36.994: [ffmpeg] h264_amf: encoder->Init() failed with error 1
17:13:37.004: [encode-lavc] unable to open encoder (see above for the cause)
17:13:37.004: [encode-lavc] vo-lavc: encoded 0 bytes
17:13:37.004: [encode-lavc] ao-lavc: encoded 0 bytes
17:13:37.004: Could not initialize video chain.
17:13:37.067: ===== mpv exited with code 62097 =====

last streaming log says that the encoder was not able to be initialized. Software encoder still works perfectly though.
EDIT: SVPCode works aswell with amf.

Chainik wrote:

Tsubajashi
subtitles are tricky... but they are obviously in the todo list

FYI, the next version won't need secondary ffmpeg process to run so it will fix your issue, hopefully

Duckers
Where do i paste that?

if you're asking this - just don't do anything big_smile

i actually found the issue.
i should not deactivate hwdec in mpv, without it it crashes it seems.
still yield bad performance cause of my cpu, but thats fine, i wait for amf

another thing i would love to add, is the ability of outputting subtitles, because i wanna watch anime with it.

Chainik wrote:

ok, will try to enable AMF encoder in our build of mpv 0.28...

Thanks, appreciate it.

Chainik wrote:

this's not a part of ffmpeg master
you should ask ffmpeg developers to implement this

===
ha, in fact it WAS finally merged into ffmpeg 3 weeks ago wink
"good news, everyone!" (c)

https://ffmpeg.zeranoe.com/builds/
the newest builds linked on ffmpeg.org https://ffmpeg.org/download.html#build-windows do have h264_amf.
i see, you found it out already, sorry.

Chainik wrote:

> using the other command i should paste still does not work for some reason

with the same "Invalid data found when processing input" error?

> if it even exists on linux

not yet

yes, with the exact same error.
also, if its possible, could you add amd amf in ffmpeg? theres something on github which has it implemented, mind having a look at it?
https://github.com/Xaymar/ffmpeg-amf

with a completely reinstalled svp, i still have issues.
i just selected the root folder, did not change even one setting, then it dies while i select a file on my mobile.
also: using the other command i should paste still does not work for some reason.
my pc:
FX-8350
R9 380 (with relive 17.12.2)
Windows 10 1709 (latest patchest applied, 16299.125)
will test under linux later (if it even exists on linux)

Chainik wrote:

honestly, I don't have any idea

downloaded the very same file, and the command line above works as expected

ill just reinstall svp again.

C:\Users\jonni>"C:\Program Files (x86)\SVP 4\mpv64\mpv.exe" "E:/Anime/Your Lie in April/[AnimeKaizoku] Your Lie in April - 22 (720p 10bit x265 Dual Audio)[OED].mkv" --aid=1 --sid=no --no-sub-auto --o=- --input-ipc-server=mpvstreampipe --vf=vapoursynth:[C:\Users\jonni\AppData\Roaming\SVP4\scripts\fffe.py]:4:15 --ofps 60.000 --ovc=libx264 --ovfirst --ovcopts=b=9700000,preset=veryfast,g=60,keyint_min=60,refs=1,sc_threshold=0,threads=8 --oac=aac --of=matroska | "C:\Program Files (x86)\SVP 4\utils\ffmpeg.exe" -re -i - -map 0:? -codec:v copy -codec:a copy -bsf:v h264_mp4toannexb -f ssegment -segment_time 4 -segment_format mpegts -segment_list_size 10 -segment_list C:/Users/jonni/AppData/Local/Temp/svpcast/stream/svp.m3u8 -segment_start_number 0 -segment_list_flags +live C:/Users/jonni/AppData/Local/Temp/svpcast/stream/svp%04d.ts
ffmpeg version 3.4 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 7.2.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-cuda --enable-cuvid --enable-d3d11va --enable-nvenc --enable-dxva2 --enable-avisynth --enable-libmfx
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
pipe:: Invalid data found when processing input

it doesnt go beyond that.

SVPCast sounds like a nice idea, but my issue with it is, that it dies before even the output begins.

11:58:40.135: ===== Starting transcoding ======
11:58:40.135: Command line 1: C:\Program Files (x86)\SVP 4\mpv64\mpv.exe E:/Anime/Your Lie in April/[AnimeKaizoku] Your Lie in April - 22 (720p 10bit x265 Dual Audio)[OED].mkv --aid=1 --sid=no --no-sub-auto --o=- --input-ipc-server=mpvstreampipe --vf=vapoursynth:[C:\Users\jonni\AppData\Roaming\SVP4\scripts\fffe.py]:4:15 --ofps 60.000 --ovc=libx264 --ovfirst --ovcopts=b=9700000,preset=veryfast,g=60,keyint_min=60,refs=1,sc_threshold=0,threads=8 --oac=aac --of=matroska
11:58:40.135: Command line 2: C:\Program Files (x86)\SVP 4\utils\ffmpeg.exe -re -i - -map 0:? -codec:v copy -codec:a copy -bsf:v h264_mp4toannexb -f ssegment -segment_time 4 -segment_format mpegts -segment_list_size 10 -segment_list C:/Users/jonni/AppData/Local/Temp/svpcast/stream/svp.m3u8 -segment_start_number 0 -segment_list_flags +live C:/Users/jonni/AppData/Local/Temp/svpcast/stream/svp%04d.ts
11:58:40.140: ===== ffmpeg started, starting mpv... =====
11:58:40.191: Playing: E:/Anime/Your Lie in April/[AnimeKaizoku] Your Lie in April - 22 (720p 10bit x265 Dual Audio)[OED].mkv
11:58:40.192: (+) Video --vid=1 (*) (f) (hevc 1280x720 23.976fps)
11:58:40.192: (+) Audio --aid=1 --alang=eng (*) 'English 2.0 AAC' (aac 2ch 48000Hz)
11:58:40.192: Audio --aid=2 --alang=jpn 'Japanese 2.0 AAC' (aac 2ch 48000Hz)
11:58:40.192: Audio --aid=3 --alang=eng 'English Commentary 2.0 AC3' (aac 2ch 48000Hz)
11:58:40.192: Subs --sid=1 --slang=eng (*) (ass)
11:58:40.192: Subs --sid=2 --slang=jpn (ass)
11:58:40.192: Opening video filter: [vapoursynth file=C:\Users\jonni\AppData\Roaming\SVP4\scripts\fffe.py buffered-frames=4 concurrent-frames=15]
11:58:40.259: [encode-lavc] ao-lavc: preallocated video stream for later use
11:58:40.259: [encode-lavc] Opening audio encoder: AAC (Advanced Audio Coding) [aac]
11:58:40.261: AO: [lavc] 48000Hz stereo 2ch floatp
11:58:41.075: VO: [lavc] 1280x720 yuv420p
11:58:41.076: [encode-lavc] Opening video encoder: libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [libx264]
11:58:41.081: [encode-lavc] Opening output file: pipe:1
11:58:41.081: [encode-lavc] Opening muxer: Matroska [matroska]
11:58:41.081: [ao/lavc] NOTE: not using codec time base (1/48000) for pts adjustment; the stream base (1/1000) is worse.
11:58:41.827: ===== ffmpeg exited with code 1 =====
11:58:41.938: ===== mpv exited with code 62097 =====

i sadly dont know why it crashes, but it would be nice to know if theres a fix for it.
btw, using HLS Streaming, because i wanted to watch something on my mobile.

22

(2 replies, posted in Using SVP)

Your site is not available anymore sad

23

(9 replies, posted in Using SVP)

adamkex wrote:
Tsubajashi wrote:

Just began reinstalling as even deleting the subtitle settings didnt work. weird indeed

Did you manage to resolve your issue?

Partially, my Subs are working again, it still jumps around in the SVP Index, but i guess i can survive that smile

24

(9 replies, posted in Using SVP)

Just began reinstalling as even deleting the subtitle settings didnt work. weird indeed

25

(9 replies, posted in Using SVP)

Now my Subs look false. huh
http://imgur.com/a/ehFGi