#๐Ÿ”’ Trying to get an old file to work with python 3.13 and ffmpeg

17 messages ยท Page 1 of 1 (latest)

clear ice
#

thanks to @ashen latch changing the <> to != helped me get the original program back on its feet and following the advice from the cmd I managed to get this far with it:
C:\Users\X\makechannelradio.py:38: SyntaxWarning: invalid escape sequence '\m'
search_path = 'd:\music'
searching d:\music for media files...

d:\music\folder1\music1.flac
error (with getLength()?)

d:\music\folder2\music2.flac
error (with getLength()?)

0 files found

I have ffmpeg version 2025-12-31-git-38e89fe502-full_build-www.gyan.dev

stoic vaporBOT
#

@clear ice

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

stoic vaporBOT
latent trail
#

commandline
ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 -sexagesimal video.mp4

#

i think you work with those exe files right?

clear ice
latent trail
#

ready to use exe and with commands like a wrote you get out the file size

sudden edge
clear ice
#

that got rid of the first complaint in the command line, would I do the same for the get length function?

sudden edge
#
search_path  = 'd:\music'
```becomes either
```py
search_path  = 'd:\\music'
```or
```py
search_path  = r'd:\music'
#

that is needed for all such strings

clear ice
#

all that did was get rid of the syntax warning at the start (it cleaned that part but it didn't prevent it from failing every get length function)
C:\Users\X>python makechannelradio.py
searching d:\music for media files...

d:\music\folder1\music1.flac
error (with getLength()?)

clear ice
#

from the looks of it it is erroring out because all of my music files have spaces in their name, is there a way to circuimnavigate this? (nvm that is part of the issue but it is still bugging out on the python side)

stoic vaporBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.