Exported MP4 File was successful but only contains audio and black screen?

Dear esteemed developers,

I’ve spent the last 3 hours looking up on Shotcut forum to solve my exported file issue:
Successful export, but mp4 appeared only a black screen with audio playing in the background.

Video is missing. Really hope not to waste my work on Shotcut as the video consolidation took me 2 full hours

I figured i should share my log here for better understanding:

[libx264 @ 0x7fdc3106d200] using SAR=1/1
[libx264 @ 0x7fdc3106d200] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x7fdc3106d200] profile High, level 3.2, 4:2:0, 8-bit
[libx264 @ 0x7fdc3106d200] 264 - core 159 r2999 296494a - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=6 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=125 keyint_min=12 scenecut=40 intra_refresh=0 rc_lookahead=30 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[mp3 @ 0x7fdc32834000] Skipping 0 bytes of junk at 417.
[mp3 @ 0x7fdc3108cc00] Skipping 0 bytes of junk at 417.
[producer avformat] audio: total_streams 1 max_stream 0 total_channels 2 max_channels 2
[AVIOContext @ 0x7fdc30c9a200] Statistics: 65664 bytes read, 2 seeks
[filter swresample] 2(stereo) f32le 44100Hz -> 2(stereo) f32le 48000Hz
QObject::startTimer: Timers can only be used with threads started with QThread
[mp4 @ 0x7fdc32833a00] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
[mp4 @ 0x7fdc32833a00] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
[mp3float @ 0x7fdc3107b000] overread, skip -10 enddists: -3 -3
[mp3float @ 0x7fdc3107b000] overread, skip -9 enddists: -1 -1
[mp3float @ 0x7fdc3107b000] overread, skip -10 enddists: -3 -3
[mp3float @ 0x7fdc3107b000] overread, skip -9 enddists: -1 -1
[mp3float @ 0x7fdc3107b000] overread, skip -10 enddists: -3 -3
[mp3float @ 0x7fdc3107b000] overread, skip -9 enddists: -1 -1
[mp4 @ 0x7fdc32833a00] Starting second pass: moving the moov atom to the beginning of the file
[AVIOContext @ 0x7fdc33696a80] Statistics: 3137225 bytes read, 0 seeks
[libx264 @ 0x7fdc3106d200] frame I:12 Avg QP: 7.71 size: 21795
[libx264 @ 0x7fdc3106d200] frame P:400 Avg QP:12.79 size: 802
[libx264 @ 0x7fdc3106d200] frame B:882 Avg QP:12.82 size: 49
[libx264 @ 0x7fdc3106d200] consecutive B-frames: 7.4% 3.9% 3.7% 85.0%
[libx264 @ 0x7fdc3106d200] mb I I16…4: 85.6% 7.2% 7.2%
[libx264 @ 0x7fdc3106d200] mb P I16…4: 0.1% 0.1% 0.1% P16…4: 2.5% 0.1% 0.2% 0.0% 0.0% skip:96.9%
[libx264 @ 0x7fdc3106d200] mb B I16…4: 0.0% 0.0% 0.0% B16…8: 0.1% 0.0% 0.0% direct: 0.0% skip:99.9% L0:53.6% L1:44.5% BI: 1.9%
[libx264 @ 0x7fdc3106d200] 8x8 transform intra:9.4% inter:44.3%
[libx264 @ 0x7fdc3106d200] coded y,uvDC,uvAC intra: 5.4% 9.7% 8.8% inter: 0.4% 0.4% 0.1%
[libx264 @ 0x7fdc3106d200] i16 v,h,dc,p: 97% 1% 2% 0%
[libx264 @ 0x7fdc3106d200] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 55% 4% 37% 1% 1% 1% 1% 1% 1%
[libx264 @ 0x7fdc3106d200] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 43% 19% 16% 3% 3% 5% 4% 4% 3%
[libx264 @ 0x7fdc3106d200] i8c dc,h,v,p: 91% 3% 5% 1%
[libx264 @ 0x7fdc3106d200] Weighted P-Frames: Y:2.5% UV:0.2%
[libx264 @ 0x7fdc3106d200] ref P L0: 84.9% 15.1%
[libx264 @ 0x7fdc3106d200] ref B L0: 88.5% 11.5%
[libx264 @ 0x7fdc3106d200] ref B L1: 98.5% 1.5%
[libx264 @ 0x7fdc3106d200] kb/s:96.70
[aac @ 0x7fdc3202c000] Qavg: 728.513
[AVIOContext @ 0x7fdc3354d000] Statistics: 4 seeks, 27 writeouts

[mp3float @ 0x7fdc3107b000] overread, skip -10 enddists: -3 -3
[mp3float @ 0x7fdc3107b000] overread, skip -9 enddists: -1 -1
[AVIOContext @ 0x7fdc334d5140] Statistics: 917632 bytes read, 2 seeks
Completed successfully in 00:01:25

Hi @GeorgeSGP

I had the issue once.
The culprit was the codec : it was defaulted to h264_nvenc … once changed to libx264, my export was fine again.
Did you make sure your codec was OK ?
Thanks
GLLM

Hardware encoding is usually the culprit. But from your log it looks as if you are not using it. Try switching off “Parallel Processing” in the export pane as well.

From the log it looks like it is successfully encoding black video. Do you see only black video in preview? A lot of people make the mistake of adding a wrong filter to a track or Master out. You could upload the project file. Also, did you try playing the exported file in Shotcut?

Hi Dan & Team,

I really appreciate your response,

So i’ve tried running it on preview, and it was absolutely perfect.

But the export just would not work. I’ve went through on the details such as text added onto the video, question is: do transitioning of text could actually be the source of problem?

I have aligned enough video length to include texts and logos.

Im using a Macbook, and it doesn’t allow me to play the exported file, only MLT Work file is permissible.

Losing faith here, generally need a mp4 video, hope Shotcut makes it through for me.

Are you suggesting switching on Hardware Encoding, and switching off Parallel Processing?

Tried alternatives on both parameters, just would not work.

Appreciate your input nevertheless!

Hi Dan & Team,

I really appreciate your response,

So i’ve tried running it on preview, and it was absolutely perfect.

But the export just would not work. I’ve went through on the details such as text added onto the video, question is: do transitioning of text could actually be the source of problem?

I have aligned enough video length to include texts and logos.

Im using a Macbook, and it doesn’t allow me to play the exported file, only MLT Work file is permissible.

Losing faith here, generally need a mp4 video, hope Shotcut makes it through for me.

So im actually looking to get a mpeg mp4 file as the end product, the codec change to libx264 resulted in audio removed, with black screen.

What would you suggest for a good quality mp4 video?

I have V1-3.

Timeline inclusions:
V1- My Video Compiles
V2- My Logos
V3- Text Inserts
A1- 1 Audio Track

Sorry my response was probably a little confusing. Switching ON Hardware Encoding sometimes causes problems (which is why it is switched off by default). Parallel Processing is usually OK, but some people have had problems (mainly to do with filters) that were resolved by switching it off.

When you exported the video did you mess about with the CODEC parameters? If so try to export with the “default” setting at the top of the “Presets” list. This will produce an MP4 file.

When people have problems like this it is always useful to post the Metadata of the exported video (I use the “Mediainfo” utility with the “View->Text” setting; someone with a better understanding than I have may be able to spot a problem that way.

Thank you so much Elusien!

Your input actually helped!

And so i searched mp4 in Presets, and Youtube video subset came out.

I used it, and although the export failed, the file actually worked.

The video is perfect!

Thank you so much Elusien!

Your input actually helped!

And so i searched mp4 in Presets, and Youtube video subset came out.

I used it, and although the export failed, the file actually worked.

The video is perfect!

This topic was automatically closed after 90 days. New replies are no longer allowed.