1 (edited by ckevin31337 22-09-2019 15:08:36)

Topic: SVPcode transcode FAILED

Hi guys, I am new here
I've been stuck with transcoding FAILED for time.
Tried to google and solve but in vain.
https://drive.google.com/file/d/1_39fZTGThHjOk7DKoMepinwI_4vGN-lk/view?usp=sharing

log file:

22:14:25.652: ===== Starting mpv ======
22:14:25.652: Command line: /usr/bin/mpv /mnt/AAB603A4B603705D/youtube/test.mkv -o 
/mnt/AAB603A4B603705D/youtube/test.SVP.temporary.mkv --no-audio 
--no-sub --no-sub-auto --input-ipc-server=/tmp/mpvencodesocket 
--input-media-keys=no 
--vf=vapoursynth:/home/kevin/.local/share/SVP4/scripts/ffff.py:4:4 
--of=matroska --ovc=h264_nvenc --ovcopts=b=42541569,
preset=slow,profile=high,
rc=vbr_hq,maxrate=55304040,
bufsize=85083138,time_base=1000/60192,threads=4
22:14:25.795: (+) Video --vid=1 (*) (h264 3840x1606)
22:14:25.795: Audio --aid=1 (*) (vorbis 2ch 48000Hz)
22:14:25.795: File tags:
22:14:25.795: Title: None
22:14:26.249: VO: [lavc] 3840x1606 yuv420p
22:14:26.255: [vo/lavc] Opening encoder: NVIDIA NVENC H.264 encoder [h264_nvenc]
22:14:26.373: [encode] Opening output file: /mnt/AAB603A4B603705D/youtube/test.SVP.temporary.mkv
22:14:26.385: [encode] Opening muxer: Matroska [matroska]
22:14:26.390: V: 00:00:00 / 00:00:33 (0%) {0.0min 0.0MB} Cache: 32s/66MB
22:15:26.425: V: 00:00:32 / 00:00:33 (96%) {0.0min 32.5fps 161.8MB} Cache: 0s/641KB

22:15:28.382: mpv: ../ta/ta.c:335: ta_dbg_check_header: Assertion `h->canary == CANARY' failed.
22:15:30.309: (!!!) Intermediate file may be broken: /mnt/AAB603A4B603705D/youtube/test.SVP.temporary.mkv

22:15:30.309: ===== mpv exited with code 6 =====

I've been googling for 

mpv: ../ta/ta.c:335: ta_dbg_check_header: Assertion `h->canary == CANARY' failed.

and

(!!!) Intermediate file may be broken:


but nothing seem to solve my problem....

Using GTX1070 with nvidia Proprietary Driver
Working on latest Arch linux system



I am really frustrated
Thanks for helping out!

Re: SVPcode transcode FAILED

This means ffmpeg's nvenc encoder doesn't work in your config.
We can do nothing about it.

3 (edited by ckevin31337 23-09-2019 00:17:31)

Re: SVPcode transcode FAILED

Thanks for explaining.
However, I have also tried to do it with software encoder,
but I just got the same error.
https://drive.google.com/file/d/1Bdb3dmhJf_6RE2iIw8FQQOTkOJA6m_Zi/view?usp=sharing

06:41:39.985: ===== Starting mpv ======
06:41:39.985: Command line: /usr/bin/mpv /mnt/AAB603A4B603705D/youtube/test.mkv -o 
/mnt/AAB603A4B603705D/youtube/test.SVP.temporary.mkv --no-audio --no-sub 
--no-sub-auto --input-ipc-server=/tmp/mpvencodesocket --input-media-keys=no
 --vf=vapoursynth:/home/kevin/.local/share/SVP4/scripts/ffff.py:4:4 
--of=matroska --ovc=libx264 --ovcopts=crf=20,preset=slow,threads=4
06:41:40.134: (+) Video --vid=1 (*) (h264 3840x1606)
06:41:40.134: Audio --aid=1 (*) (vorbis 2ch 48000Hz)
06:41:40.134: File tags:
06:41:40.134: Title: None
06:41:40.653: VO: [lavc] 3840x1606 yuv420p
06:41:40.653: [vo/lavc] Opening encoder: libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [libx264]
06:41:40.665: [ffmpeg] libx264: MB rate (581760000) > level limit (16711680)
06:41:40.690: [encode] Opening output file: /mnt/AAB603A4B603705D/youtube/test.SVP.temporary.mkv
06:41:40.707: [encode] Opening muxer: Matroska [matroska]
06:41:40.730: V: 00:00:00 / 00:00:33 (0%) {0.0min 0.0MB} Cache: 32s/66MB
06:42:41.515: V: 00:00:06 / 00:00:33 (17%) {3.2min 5.0fps 58.8MB} Cache: 27s/51MB
06:43:41.530: V: 00:00:11 / 00:00:33 (33%) {3.5min 5.1fps 89.3MB} Cache: 21s/43MB
06:44:41.885: V: 00:00:16 / 00:00:33 (48%) {2.4min 5.1fps 93.6MB} Cache: 16s/30MB
06:45:41.907: V: 00:00:21 / 00:00:33 (63%) {1.4min 5.1fps 98.6MB} Cache: 11s/17MB
06:46:41.933: V: 00:00:26 / 00:00:33 (77%) {0.8min 5.0fps 107.0MB} Cache: 7s/9MB
06:47:41.950: V: 00:00:31 / 00:00:33 (94%) {0.1min 5.1fps 109.3MB} Cache: 1s/1MB
06:48:00.341: mpv: ../ta/ta.c:335: ta_dbg_check_header: Assertion `h->canary == CANARY' failed.
06:48:09.467: (!!!) Intermediate file may be broken: /mnt/AAB603A4B603705D/youtube/test.SVP.temporary.mkv
06:48:09.467: ===== mpv exited with code 6 =====

If it failed because of my config,
how should set my config so it won't fail ?

(by the way, the temporary file it generated is playable but with no media info. when i played it with mpv, it seemed to
continuously  loading and the time left of the movie kept
lengthening.

Re: SVPcode transcode FAILED

my bad - i just saw words "nvenc" and "error" in the same log and made a most obvious conclusion big_smile

after further reading, "../ta/ta.c" is a part of mpv (not ffmpeg), and last time google saw this error it was about some issue with OGG audio stream parsing, but it was fixed 3 years ago
your file has ogg (vorbis) audio too, so it may be the problem
again, the problem IS NOT in SVP, and we can't fix it

can you playback this file with mpv?

Re: SVPcode transcode FAILED

yes, i can.
the test.SVP.temporary.mkv is playable and everything seems normal.
https://drive.google.com/file/d/1Z_p7EkRVunUEVPCwzc60B7_6qO4VTkyG/view?usp=sharing
except that the "00:00:16" time left bar seemed to dymanicly loading.

(so it would be alright if i remove OGG audio stream(?

Re: SVPcode transcode FAILED

I mean the source file, with the audio stream.

Re: SVPcode transcode FAILED

What should I do to make it right?
I am really new to this.
and also thanks for all your help!

Re: SVPcode transcode FAILED

can you playback the source file - /mnt/AAB603A4B603705D/youtube/test.mkv - with mpv w/o errors?

9 (edited by ckevin31337 23-09-2019 09:45:29)

Re: SVPcode transcode FAILED

sorry, what is w/o error(?
(a pure newbie here
I am not sure what you meant
but i played it through command line
the log

[kevin@ArchLinux youtube]$ mpv test.mkv 
 (+) Video --vid=1 (*) (h264 3840x1606)
 (+) Audio --aid=1 (*) (vorbis 2ch 48000Hz)
File tags:
 Title: None
AO: [pulse] 48000Hz stereo 2ch float
VO: [gpu] 3840x1606 yuv420p
AV: 00:00:33 / 00:00:33 (99%) A-V:  0.000 DS: 5.940/261 Cache:  0s


Exiting... (End of file)

the sound worked fine when i played it

Re: SVPcode transcode FAILED

without errors

Re: SVPcode transcode FAILED

Oh yes, it played without errors

Re: SVPcode transcode FAILED

dunno then... try the source file with different audio format
again, not our error

Re: SVPcode transcode FAILED

I know. It's definitely not your fault.
I really appreciate your help!

about " try the source file with different audio format "
i have also used another youtube video with aac.
it failed..

One thing I am confused is that --noaudio option is on, how does audio format matter(?
just asking, because my lack of knowledge. Never blaming you or something, I am really grateful.

Re: SVPcode transcode FAILED

> how does audio format matter(?

maybe it's not related at all
but the only issue with the same error found on Google is about ogg audio stream
https://github.com/mpv-player/mpv/issues/3432

Re: SVPcode transcode FAILED

so sad..

Is there another way to use svpcode on arch linux(?
I really love this tool..

Thanks for your time!

Re: SVPcode transcode FAILED

A few other people, including me, started to get this issue again: https://github.com/mpv-player/mpv/issue … 536125609.
It appears to be related with vapoursynth as a whole when used with mpv, instead of SVP alone.

Re: SVPcode transcode FAILED

Seems fixed now, and it was completely unrelated to SVP wink