1 (edited by shep 07-02-2021 18:27:11)

Topic: Encoding problem, audio separated

I'm using svpcode but have a problem, I encoded a mkv video (video cut with vlc), and when I use basic encoding (tested every one of them) I got no audio, I play it with VLC, it reads the video but the audio.
And with MPC-HC the video doesn't read at all, just 1 image and video stopped.

I was not sure if video and audio were dissociated, then, I desactivated video, and the audio enabled, but couldn't see anything, I tried to set back the image but didn't work.

Post's attachments

Sans titre-min.png 165.92 kb, 94 downloads since 2021-02-07 

Re: Encoding problem, audio separated

encoding log?

Re: Encoding problem, audio separated

19:59:23.792: ===== Starting mpv ======
19:59:23.792: Command line: C:\Program Files (x86)\SVP 4\mpv64\mpv.exe C:/Users/Shepherd/Videos/vlc/vlc-record-2021-02-07.mkv --o=C:/Users/Shepherd/Videos/vlc/vlc-record-2021-02-07.SVP.temporary.mkv --no-audio --no-sub --no-sub-auto --input-ipc-server=mpvencodepipe --input-media-keys=no --no-msg-color --vf=vapoursynth:[C:\Users\Shepherd\AppData\Roaming\SVP4\scripts\ffff.py]:4:12 --of=matroska --ovc=hevc_nvenc --ovcopts=b=25933430,preset=slow,rc=vbr,maxrate=33713459,bufsize=51866860,time_base=1000/59940,threads=12
19:59:23.829: (+) Video --vid=1 (*) (h264 1920x800 1000.000fps)
19:59:23.829: Audio --aid=1 (*) (truehd 8ch 48000Hz)
19:59:24.294: VO: [lavc] 1920x800 yuv420p
19:59:24.295: [vo/lavc] Opening encoder: NVIDIA NVENC hevc encoder [hevc_nvenc]
19:59:24.427: [encode] Opening output file: C:/Users/Shepherd/Videos/vlc/vlc-record-2021-02-07.SVP.temporary.mkv
19:59:24.427: [encode] Opening muxer: Matroska [matroska]
19:59:24.428: V: 00:00:00 / 01:22:50 (0%) {0.0min 0.0MB}
20:00:04.140: [encode] video: encoded 234873108 bytes
20:00:04.140: [encode] audio: encoded 0 bytes
20:00:04.140: [encode] muxing overhead 36536 bytes
20:00:04.140: Exiting... (End of file)
20:00:04.225: ===== Starting mkvmerge ======
20:00:04.225: Command line: C:\Program Files (x86)\SVP 4\extensions\code\mkvmerge.exe -o C:/Users/Shepherd/Videos/vlc/vlc-record-2021-02-07.SVP.mkv C:/Users/Shepherd/Videos/vlc/vlc-record-2021-02-07.SVP.temporary.mkv -D C:/Users/Shepherd/Videos/vlc/vlc-record-2021-02-07.mkv
20:00:04.293: mkvmerge v48.0.0 ('Fortress Around Your Heart') 32-bit
20:00:04.312: 'C:/Users/Shepherd/Videos/vlc/vlc-record-2021-02-07.SVP.temporary.mkv': Using the demultiplexer for the format 'Matroska'.
20:00:04.348: 'C:/Users/Shepherd/Videos/vlc/vlc-record-2021-02-07.mkv': Using the demultiplexer for the format 'Matroska'.
20:00:04.348: 'C:/Users/Shepherd/Videos/vlc/vlc-record-2021-02-07.SVP.temporary.mkv' track 0: Using the output module for the format 'HEVC/H.265'.
20:00:04.348: 'C:/Users/Shepherd/Videos/vlc/vlc-record-2021-02-07.mkv' track 0: Using the output module for the format 'TrueHD'.
20:00:04.349: The file 'C:/Users/Shepherd/Videos/vlc/vlc-record-2021-02-07.SVP.mkv' has been opened for writing.
20:00:04.361: Progress: 2%
20:00:04.863: Progress: 76%
20:00:05.333: Progress: 100%
20:00:05.333: The cue entries (the index) are being written...
20:00:05.337: Multiplexing took 1 second.

Post's attachments

coder.log 2.41 kb, 190 downloads since 2021-02-07 

Re: Encoding problem, audio separated

dunno, I don't see any problems in the log... except probably "(h264 1920x800 1000.000fps)"
if you could share this file then I could take a closer look

Re: Encoding problem, audio separated

not problem with:

20:00:04.140: [encode] audio: encoded 0 bytes

?

Ok I upload you the file, it was just a random scene for a test...

https://uptobox.com/q4o4ucdkeo5o

Re: Encoding problem, audio separated

I mean, share the source file

---
> not problem with:

20:00:04.348: 'C:/Users/Shepherd/Videos/vlc/vlc-record-2021-02-07.mkv' track 0: Using the output module for the format 'TrueHD'.

Re: Encoding problem, audio separated

oh, my bad

https://uptobox.com/13mpexr4b558

Re: Encoding problem, audio separated

What I can say it's an incompatibility between the video cut with VLC and mkvmerge.
I'd say VLC produces somehow broken output (mpv shows 1000.000fps, MPC-HC shows 48 fps while the video is actually 24 fps - this isn't normal in any case).
Transcoded video itself is OK, but the playback hangs AFTER processing via mkvmerge (used to attach audio / subs streams).

Possible solutions:
1. do not cut video with VLC big_smile
2. do the final muxing with ffmpeg rather than mkvmerge: set code.tools.use_mkvmerge = false in SVP's All settings --> in this case this video works after transcoding

but keep in mind that mkvmerge usually works better than ffmpeg

Re: Encoding problem, audio separated

Thankyou!!, Ive put it to false and it's working, with a ~ 1s delay tho..

Re: Encoding problem, audio separated

hey sup, I've tried to put it to MP4 (mkv to mp4) and I lose the audio too ....

Re: Encoding problem, audio separated

mp4 doesn't support many of audio/subs formats
check log for details

Re: Encoding problem, audio separated

Here is the logs, I also tested checking the box "video only, drop other tracks" and the file become a true mp4 video but without sound. Otherwise it's just "mkv" without audio.

Original file is 44.1 Mo, after encoding, 27.4 Mo and no audio sad  and I cannot import it in Premiere cuz I need a mp4 container

22:09:10.805: ===== Starting mpv ======
22:09:10.805: Command line: C:\Program Files (x86)\SVP 4\mpv64\mpv.exe C:/Users/Shepherd/Videos/vlc/vlc-record-2021-02-11.mkv --o=C:/Users/Shepherd/Videos/vlc/vlc-record-2021-02-11.SVP.temporary.mkv --no-audio --no-sub --no-sub-auto --input-ipc-server=mpvencodepipe --input-media-keys=no --no-msg-color --vf=vapoursynth:[C:\Users\Shepherd\AppData\Roaming\SVP4\scripts\ffff.py]:4:14 --of=matroska --ovc=hevc_nvenc --ovcopts=b=10000000,preset=slow,rc=vbr,maxrate=13000000,bufsize=20000000,av=true,time_base=1000/59940,threads=14
22:09:10.845: (+) Video --vid=1 (*) (h264 1920x800 1000.000fps)
22:09:10.845: Audio --aid=1 (*) (truehd 8ch 48000Hz)
22:09:11.329: VO: [lavc] 1920x800 yuv420p
22:09:11.329: [vo/lavc] AVOption 'av' not found.
22:09:11.329: [vo/lavc] Opening encoder: NVIDIA NVENC hevc encoder [hevc_nvenc]
22:09:11.446: [encode] Opening output file: C:/Users/Shepherd/Videos/vlc/vlc-record-2021-02-11.SVP.temporary.mkv
22:09:11.447: [encode] Opening muxer: Matroska [matroska]
22:09:11.449: V: 00:00:00 / 69:19:07 (0%) {0.0min 0.0MB}
22:09:24.001: [encode] video: encoded 28820507 bytes
22:09:24.002: [encode] audio: encoded 0 bytes
22:09:24.002: [encode] muxing overhead 11409 bytes
22:09:24.002: Exiting... (End of file)
22:09:24.087: ===== Starting ffmpeg ======
22:09:24.087: Command line: C:\Program Files (x86)\SVP 4\utils\ffmpeg.exe -y -i C:/Users/Shepherd/Videos/vlc/vlc-record-2021-02-11.mkv -i C:/Users/Shepherd/Videos/vlc/vlc-record-2021-02-11.SVP.temporary.mkv -map 1:v -map 0:a? -map 0:s? -vcodec copy -acodec copy -scodec copy C:/Users/Shepherd/Videos/vlc/vlc-record-2021-02-11.SVP.mp4
22:09:24.162: ffmpeg version 4.3 Copyright (c) 2000-2020 the FFmpeg developers
22:09:24.162: built with gcc 9.3.1 (GCC) 20200621
22:09:24.162: configuration: --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libaom --enable-libgsm --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-libopenmpt --enable-amf
22:09:24.162: libavutil 56. 51.100 / 56. 51.100
22:09:24.162: libavcodec 58. 91.100 / 58. 91.100
22:09:24.162: libavformat 58. 45.100 / 58. 45.100
22:09:24.162: libavdevice 58. 10.100 / 58. 10.100
22:09:24.162: libavfilter 7. 85.100 / 7. 85.100
22:09:24.162: libswscale 5. 7.100 / 5. 7.100
22:09:24.162: libswresample 3. 7.100 / 3. 7.100
22:09:24.182: Input #0, matroska,webm, from 'C:/Users/Shepherd/Videos/vlc/vlc-record-2021-02-11.mkv':
22:09:24.182: Metadata:
22:09:24.182: ENCODER : Lavf58.3.100
22:09:24.182: Duration: 69:19:07.71, start: 249525.190000, bitrate: 1 kb/s
22:09:24.182: Stream #0:0: Audio: truehd, 48000 Hz, 7.1, s32 (24 bit) (default)
22:09:24.182: Metadata:
22:09:24.182: DURATION : 69:19:07.587000000
22:09:24.182: Stream #0:1: Video: h264 (High), yuv420p(progressive), 1920x800 [SAR 1:1 DAR 12:5], 1k fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
22:09:24.182: Metadata:
22:09:24.182: DURATION : 69:19:07.712000000
22:09:24.183: Input #1, matroska,webm, from 'C:/Users/Shepherd/Videos/vlc/vlc-record-2021-02-11.SVP.temporary.mkv':
22:09:24.183: Metadata:
22:09:24.183: ENCODER : Lavf58.64.100
22:09:24.183: Duration: 00:00:22.49, start: 0.000000, bitrate: 10256 kb/s
22:09:24.183: Stream #1:0: Video: hevc (Main), yuv420p(tv, bt709/unknown/unknown), 1920x800 [SAR 1:1 DAR 12:5], 62.50 fps, 59.94 tbr, 1k tbn, 59.94 tbc (default)
22:09:24.183: Metadata:
22:09:24.183: DURATION : 00:00:22.489000000
22:09:24.184: [mp4 @ 0670f640] truehd in MP4 support is experimental, add '-strict -2' if you want to use it.
22:09:24.184: Could not write header for output file #0 (incorrect codec parameters ?): Experimental feature
22:09:24.184: Stream mapping:
22:09:24.184: Stream #1:0 -> #0:0 (copy)
22:09:24.184: Stream #0:0 -> #0:1 (copy)
22:09:24.185: Last message repeated 1 times
22:09:24.188: ===== ffmpeg exited with code 1 =====
22:09:24.188: (!!!) Intermediate file (video only): C:\Users\Shepherd\Videos\vlc\vlc-record-2021-02-11.SVP.temporary.mkv

Re: Encoding problem, audio separated

trudhd isn't allowed in mp4

Re: Encoding problem, audio separated

Oh :'(

Thank you anyway

Re: Encoding problem, audio separated

So basically - any files with audio on that we wish to increase the FPS on, need to be converted into another file type other than MP4 before transcoding? Thanks

Re: Encoding problem, audio separated

if you want to change video container type, ensure all the source codecs are supported in the target container