paulpacifico / shutter-encoder

A professional video compression tool accessible to all, mostly based on FFmpeg.
https://www.shutterencoder.com
GNU General Public License v3.0
848 stars 53 forks source link

[Bug] MKV Conversion #167

Open paulbuchan opened 7 months ago

paulbuchan commented 7 months ago

I used SE to download a video from YouTube. It generated a mkv that plays fine in VLC. I went to convert this to an prores file (or anything), it completes instantly, with a file of a few kbs. Meanwhile, if I try the same thing but converting to H264 mp4, in my activity monitor, I have a runaway ffmpeg process that is using up all my system resources, I have to quit that process to release the system resources.

I'm on a M1 Mac, running Sonoma 14.1.1, Running SE 17.7


Below is the console from SE for the ProRes:

 -c:v libvpx-vp9 -v quiet -hide_banner -ss 0ms -i "/Users/paul/Desktop/Interview.mkv" -filter_complex "[0:v]scale=684:385:sws_flags=bilinear:sws_dither=none[v];[0:a:0]showvolume=f=0:w=684:h=4:t=0:b=0:v=0:o=v:s=0:p=0.5[volume];[v][volume]overlay=W-w:H-h" -c:v bmp -an -f image2pipe pipe:-
Input #0, lavfi, from 'nullsrc':
  Duration: N/A, start: 0.000000, bitrate: N/A
  Stream #0:0: Video: wrapped_avframe, yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 fps, 25 tbr, 25 tbn
Stream mapping:
  Stream #0:0 -> #0:0 (wrapped_avframe (native) -> prores (prores_videotoolbox))
Press [q] to stop, [?] for help
[prores_videotoolbox @ 0x114605eb0] This device does not support the qmin option. Value ignored.
[prores_videotoolbox @ 0x114605eb0] This device does not support the qmax option. Value ignored.
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf60.15.100
  Stream #0:0: Video: prores (apcn / 0x6E637061), yuv420p(tv, progressive), 640x360 [SAR 3:4 DAR 4:3], q=2-31, 200 kb/s, 25 fps, 25 tbn
    Metadata:
      encoder         : Lavc60.30.102 prores_videotoolbox
frame=    0 fps=0.0 q=0.0 size=       0kB time=N/A bitrate=N/A speed=N/A    
[prores_videotoolbox @ 0x114605eb0] Error encoding frame: -12905
[vost#0:0/prores_videotoolbox @ 0x114605c40] Error submitting video frame to the encoder
Error while filtering: Generic error in an external library
[vost#0:0/prores_videotoolbox @ 0x114605c40] Error submitting video frame to the encoder
[out#0/null @ 0x600003ae4240] video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[out#0/null @ 0x600003ae4240] Output file is empty, nothing was encoded(check -ss / -t / -frames parameters if used)
frame=    0 fps=0.0 q=0.0 Lsize=N/A time=N/A bitrate=N/A speed=N/A    
Conversion failed!

Command: -hide_banner -threads 0 -hwaccel none -c:v libvpx-vp9 -i "/Users/paul/Desktop/Interview.mkv" -c:v prores -profile:v 2 -pix_fmt yuv422p10 -map v:0 -c:a pcm_s16le -ar 48k -map a? -sws_flags bicubic -metadata:s "encoder=Apple ProRes 422" -vendor apl0 -flags bitexact -metadata creation_time="2023-11-18T21:48:13.710623Z" -y "/Users/paul/Desktop/Interview_Apple_ProRes_422.mov"
[libvpx-vp9 @ 0x12c004770] v1.13.1-498-g0129e64a6
Input #0, matroska,webm, from '/Users/paul/Desktop/Interview.mkv':
  Metadata:
    HTTP://YOUTUBE.COM/STREAMING/METADATA/SEGMENT/102015: Sequence-Number: 0 
                    : Ingestion-Walltime-Us: 1699643070033279 
                    : Ingestion-Uncertainty-Us: 95 
                    : Stream-Duration-Us: 0 

And here's the h.264 MP4


Command: -hide_banner -threads 0 -hwaccel none -c:v libvpx-vp9 -i "/Users/paul/Desktop/Interview.mkv" -c:v prores -profile:v 2 -pix_fmt yuv422p10 -map v:0 -c:a pcm_s16le -ar 48k -map a? -sws_flags bicubic -metadata:s "encoder=Apple ProRes 422" -vendor apl0 -flags bitexact -metadata creation_time="2023-11-18T21:48:13.710623Z" -y "/Users/paul/Desktop/Interview_Apple_ProRes_422.mov"
[libvpx-vp9 @ 0x12c004770] v1.13.1-498-g0129e64a6
Input #0, matroska,webm, from '/Users/paul/Desktop/Interview.mkv':
  Metadata:
    HTTP://YOUTUBE.COM/STREAMING/METADATA/SEGMENT/102015: Sequence-Number: 0 
                    : Ingestion-Walltime-Us: 1699643070033279 
                    : Ingestion-Uncertainty-Us: 95 
                    : Stream-Duration-Us: 0 
Input #0, lavfi, from 'nullsrc':
  Duration: N/A, start: 0.000000, bitrate: N/A
  Stream #0:0: Video: wrapped_avframe, yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 fps, 25 tbr, 25 tbn
Stream mapping:
  Stream #0:0 -> #0:0 (wrapped_avframe (native) -> h264 (h264_videotoolbox))
Press [q] to stop, [?] for help
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf60.15.100
  Stream #0:0: Video: h264, yuv420p(tv, progressive), 640x360 [SAR 3:4 DAR 4:3], q=2-31, 200 kb/s, 25 fps, 25 tbn
    Metadata:
      encoder         : Lavc60.30.102 h264_videotoolbox
frame=    0 fps=0.0 q=0.0 size=       0kB time=N/A bitrate=N/A speed=N/A    
[out#0/null @ 0x6000032c40c0] video:1kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
frame=   25 fps=0.0 q=-0.0 Lsize=N/A time=00:00:00.96 bitrate=N/A speed=4.62x    

Command: -hide_banner -threads 0 -hwaccel none -c:v libvpx-vp9 -i "/Users/paul/Desktop/Interview.mkv" -c:v libx264 -b:v 6000k -profile:v high -level 5.1 -map v:0 -c:a aac_at -ar 48k -b:a 256k -map a? -pix_fmt yuv420p -sws_flags bicubic -metadata creation_time="2023-11-18T21:51:36.702889Z" -y "/Users/paul/Desktop/Interview_H.264.mp4"
[libvpx-vp9 @ 0x147804bf0] v1.13.1-498-g0129e64a6
Input #0, matroska,webm, from '/Users/paul/Desktop/Interview.mkv':
  Metadata:
    HTTP://YOUTUBE.COM/STREAMING/METADATA/SEGMENT/102015: Sequence-Number: 0 
                    : Ingestion-Walltime-Us: 1699643070033279 
                    : Ingestion-Uncertainty-Us: 95 
                    : Stream-Duration-Us: 0 

I can send the file upon request outside of GH if needed.

paulpacifico commented 7 months ago

Disable GPU encoding should solve your issue for this file.

Paul.

paulbuchan commented 7 months ago

Thanks Paul, I just tried changing the settings in the status bar (I assume that's the settings that you're referencing) but I'm still getting the same result.

paulpacifico commented 7 months ago

Can you send me your file for checking on my side?

Thanks, Paul.