Export to SWF (flash) format

Hello,
Is it possible to export a short video clip to swf (flash) format ?
If yes, then how to do it ?
Found only a gif codec.
Answers will be appreciated.
Thanks.
Motim

SC version 22.06.23

I think it is now considered a sin against humanity to create more Flash videos. :wink: Anyways, it is possible in Shotcut:

  • Format = swf
  • Codec > Codec = Default for format
  • Codec > B frames = 0
  • Audio > Sample rate = 44100
  • Audio > Codec = Default for format

That worked for me. If it does not for you, then view the failed export job’s log and read the reason why. That is what I had to do to learn to change B frames and audio sample rate.

3 Likes

Hello,
Several experiments and finaly it worked.
Thanks.
Motim

Hello and thanks again,
Following my previous question, tried to export some swf files, most of them played well.
Just for curiousity, opened one log file (of a good swf file) and managed to copy this:

Timestamps are unset in a packet for stream 1. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
(what and where to fix, or, if good, leave it as is?)
Encoder did not produce proper pts, making some up.
Statistics: 8302430 bytes written, 64 seeks, 94 writeouts
Completed successfully in 00:00:03

Can I please have some explanations about the above ?
Note: System’s date and time OK.
Answers will be appreciated.
Thanks
Motim

I don’t know the explanation but it’s not related to the swf, I see those very often, and I export .mp4, I assume the ffmpeg doesn’t like something received from shotcut project.

[libx264 @ 000001c6602c44c0] using SAR=1/1
[libx264 @ 000001c6602c44c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 000001c6602c44c0] profile High, level 4.0, 4:2:0, 8-bit
[libx264 @ 000001c6602c44c0] 264 - core 164 r3094M bfc87b7 - H.264/MPEG-4 AVC codec - Copyleft 2003-2022 - 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=24 lookahead_threads=4 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=150 keyint_min=15 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
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 2 max_channels 2
[AVIOContext @ 000001c6654b3040] Statistics: 562850 bytes read, 4 seeks
[chain avformat-novalidate] E:/_media/GoPro 7D/100GOPRO_2022.09.10/GX019763.MP4
    checking VFR: pkt.duration 3003
[mp4 @ 000001c6601e0540] Timestamps are unset in a packet for stream 1. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[mp4 @ 000001c6601e0540] Encoder did not produce proper pts, making some up.
[mp4 @ 000001c6601e0540] Starting second pass: moving the moov atom to the beginning of the file
[AVIOContext @ 000001c607b41c80] Statistics: 24804022 bytes read, 0 seeks
[libx264 @ 000001c6602c44c0] frame I:3     Avg QP:24.12  size:287308
[libx264 @ 000001c6602c44c0] frame P:82    Avg QP:26.05  size:141001
[libx264 @ 000001c6602c44c0] frame B:220   Avg QP:28.34  size: 54638
[libx264 @ 000001c6602c44c0] consecutive B-frames:  2.6%  3.3%  1.0% 93.1%
[libx264 @ 000001c6602c44c0] mb I  I16..4:  7.3% 46.9% 45.9%
[libx264 @ 000001c6602c44c0] mb P  I16..4:  4.4% 15.3% 12.3%  P16..4: 26.7% 22.4% 14.2%  0.0%  0.0%    skip: 4.7%
[libx264 @ 000001c6602c44c0] mb B  I16..4:  2.3%  2.1%  2.7%  B16..8: 30.5% 23.4%  6.5%  direct:12.7%  skip:19.7%  L0:40.2% L1:34.9% BI:24.9%
[libx264 @ 000001c6602c44c0] 8x8 transform intra:41.2% inter:27.2%
[libx264 @ 000001c6602c44c0] coded y,uvDC,uvAC intra: 64.6% 69.7% 18.0% inter: 32.6% 23.1% 0.1%
[libx264 @ 000001c6602c44c0] i16 v,h,dc,p: 22% 44% 18% 16%
[libx264 @ 000001c6602c44c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 17% 25%  6%  7%  7%  8%  6%  8%
[libx264 @ 000001c6602c44c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 13% 17%  8% 11% 10%  9%  8%  7%
[libx264 @ 000001c6602c44c0] i8c dc,h,v,p: 56% 23% 15%  7%
[libx264 @ 000001c6602c44c0] Weighted P-Frames: Y:17.1% UV:0.0%
[libx264 @ 000001c6602c44c0] ref P L0: 75.1% 24.9%
[libx264 @ 000001c6602c44c0] ref B L0: 93.6%  6.4%
[libx264 @ 000001c6602c44c0] ref B L1: 98.7%  1.3%
[libx264 @ 000001c6602c44c0] kb/s:19215.70
[aac @ 000001c65fefdb00] Qavg: 65347.723
[AVIOContext @ 000001c6654a8d00] Statistics: 49620583 bytes written, 4 seeks, 193 writeouts

Completed successfully in 00:00:06