GithubHelp home page GithubHelp logo

GUI AttributeError about kburns-slideshow HOT 8 CLOSED

trekky12 avatar trekky12 commented on June 12, 2024
GUI AttributeError

from kburns-slideshow.

Comments (8)

danya-gharbieh avatar danya-gharbieh commented on June 12, 2024 1

thanks a lot finally it works from both GUI and CLI

from kburns-slideshow.

Trekky12 avatar Trekky12 commented on June 12, 2024

Hey @danya-gharbieh,

thank you for the bug report. I've fixed it in the development branch. Could you test the development branch and give a short feedback?

from kburns-slideshow.

danya-gharbieh avatar danya-gharbieh commented on June 12, 2024

thanks a lot it's fixed ,

but I faced another thing when I press create video the video is not generate I thought that this maybe because when the dialogue appears "save as type" filed is empty as shown in the attachment and below is my config file content,

Screenshot (9)

config file:

{
"ffmpeg": "C:\Users\name\Documents\ffmpeg-4.2.1-win64-static\bin\ffmpeg.exe",
"ffprobe": "C:\Users\name\Documents\ffmpeg-4.2.1-win64-static\bin\ffprobe.exe",
"aubio": "C:\Users\name\Documents\aubio-0.4.6-win64-ffmpeg\bin\aubioonset.exe",

"IMAGE_EXTENSIONS": ["jpg", "jpeg", "png"],
"VIDEO_EXTENSIONS": ["mp4", "mpg", "avi"],
"AUDIO_EXTENSIONS": ["mp3", "ogg", "flac"],

"output_width": 1280,
"output_height": 800,
"output_codec": "libx264",
"output_parameters": "-preset ultrafast -tune stillimage",
"slide_duration": 4,
"slide_duration_min": 1,
"fade_duration": 1,
"transition": "random",
"transition_bars_count": 10,
"transition_cell_size": 100,
"fps": 60,
"zoom_rate": 0.1,
"zoom_direction_x": "random",
"zoom_direction_y": "random",
"zoom_direction_z": "random",
"scale_mode": "auto",
"loopable": false,
"overwrite": false,
"generate_temp": false,
"delete_temp": false,
"temp_file_folder": "temp",
"temp_file_prefix": "temp-kburns-",
"sync_to_audio": false,
"sync_titles_to_slides": false,
"save": false,
"test": false

}

from kburns-slideshow.

Trekky12 avatar Trekky12 commented on June 12, 2024

Did you enter a filename for the output, e.g. video.mp4?

Otherwise could you paste the content of the logfile kburns-slideshow-gui.log?

from kburns-slideshow.

danya-gharbieh avatar danya-gharbieh commented on June 12, 2024

yes i entered "video_name.mp4"

attached is the file
kburns-slideshow-gui.log

from kburns-slideshow.

Trekky12 avatar Trekky12 commented on June 12, 2024

Unfortunately I can't see a specific error message. FFmpeg errors must be suppressed to get the progress bar. So could you please execute the FFmpeg command from the logfile manually and tell when there are errors?

C:\Users\danya\OneDrive\Documents\ffmpeg-4.2.1-win64-static\bin\ffmpeg.exe -hide_banner -stats -y -i "C:/Users/danya/OneDrive/Desktop/1.JPG"  -i "C:/Users/danya/OneDrive/Desktop/2.jpg"  -i "C:/Users/danya/OneDrive/Desktop/3.jpg"  -i "C:/Users/danya/OneDrive/Desktop/4.jpg"  -i "C:/Users/danya/OneDrive/Desktop/22.jpg"  -i "C:/Users/danya/Downloads/music.mp3"   -filter_complex_script "C:\Users\danya\OneDrive\Documents\kburns-slideshow-master\temp\temp-kburns-video-script.txt" -t 16.0 -map [out]:v -c:v libx264 -preset ultrafast -tune stillimage -map [aout]:a -c:a aac -b:a 160k   "C:/Users/danya/OneDrive/Desktop/Video.mp4"

and could you save the slideshow as json and paste the slideshow file and the temp-kburns-video-script.txt here?

from kburns-slideshow.

danya-gharbieh avatar danya-gharbieh commented on June 12, 2024

temp-kburns-video-script.txt

example.json:

{
"config": {
"output_width": 1920,
"output_height": 1080,
"slide_duration": 3,
"slide_duration_min": 1,
"fade_duration": 1.0,
"transition": "random",
"transition_bars_count": 10,
"transition_cell_size": 100,
"fps": 60,
"zoom_rate": 0.1,
"zoom_direction_x": "random",
"zoom_direction_y": "random",
"zoom_direction_z": "random",
"scale_mode": "auto",
"loopable": false,
"overwrite": false,
"generate_temp": false,
"delete_temp": false,
"sync_to_audio": false,
"sync_titles_to_slides": false,
"is_synced_to_audio": false
},
"slides": [

    {
        "file": "C:\\Users\\danya\\OneDrive\\Desktop\\1.jpg",
        "slide_duration": 5,
        "overlay_text":{
            "title": "Title 1",
            "font": "Bauhaus 93",
            "font_size": 200,
            "duration": 2,
            "transition_x": "left-to-center",
            "transition_y": "center",
            "offset": 0
        },
        "overlay_color":{
            "color": "black",
            "opacity": 0.8,
            "duration": 2,
            "offset": 0
        }
    },

    {
        "file": "C:\\Users\\danya\\OneDrive\\Desktop\\2.jpg",
        "title": "subtitle"
    },
    {
        "file": "C:\\Users\\danya\\OneDrive\\Desktop\\3.jpg",
        "overlay_text":{
            "title": "Title 2",
            "font": "Bauhaus 93",
            "font_size": 200,
            "duration": 2,
            "transition_x": "center",
            "transition_y": "bottom-to-top",
            "offset": 0
        },
        "overlay_color":{
            "color": "black",
            "opacity": 0.8,
            "duration": 2,
            "offset": 0
        }
    }
],
"audio": [
    "C:\\Users\\danya\\Downloads\\music.mp3"
]

}

and the error:

Fontconfig error: Cannot load default config file
[Parsed_drawtext_6 @ 000001cfb77f2780] Using "C:/WINDOWS/fonts/mingliub.ttc"
Fontconfig error: Cannot load default config file
[Parsed_drawtext_41 @ 000001cfb7878a80] Using "C:/WINDOWS/fonts/mingliub.ttc"
[subtitles @ 000001cfb7881f80] Unable to parse option value "UsersdanyaOneDriveDocumentskburns-slideshow-developmenttemptemp-kburns-subs.srt" as image size
Last message repeated 1 times
[subtitles @ 000001cfb7881f80] Error setting option original_size to value UsersdanyaOneDriveDocumentskburns-slideshow-developmenttemptemp-kburns-subs.srt.
[Parsed_subtitles_55 @ 000001cfb7877d80] Error applying options to the filter.
[AVFilterGraph @ 000001cfb784c040] Error initializing filter 'subtitles' with args 'C:UsersdanyaOneDriveDocumentskburns-slideshow-developmenttemptemp-kburns-subs.srt'
Error initializing complex filters.
Invalid argument

from kburns-slideshow.

Trekky12 avatar Trekky12 commented on June 12, 2024

Thank you for your bug report. Apparently in the FFmpeg version the libfontconfig is not enabled (see. So you need to specify the full path to the font instead of the name of the font.
Additionally there is an error with subtitles which is now fixed in the latest commit on the development branch.

Could you adjust your slideshow and remove the parameter font:
"font": "Bauhaus 93",
and add the font file:
"font_file": "C:/Windows/Fonts/BAUHS93.TTF",

After updating your local version with the development branch your slideshow should work.
Could you get me a short update?

from kburns-slideshow.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.