Git Product home page Git Product logo

Comments (9)

glubsy avatar glubsy commented on August 19, 2024

Your target directory should be stream_capture_19gEHNEkakM not stream_capture_19gEHNEkakM{19gEHNEkakM}.

from livestream_saver.

gskvhfk avatar gskvhfk commented on August 19, 2024

Still i am getting error
C:\Users\USER\Downloads\livestream_saver-main\livestream_saver-main>python lives
tream_saver.py merge C:\Users\USER\Downloads\livestream_saver-main\livestream_sa
ver-main\stream_capture_19gEHNEkakM
2021-11-11 18:05:32,474 - ERROR - livestream_saver.merge - Exception while tryin
g to load metadata.json: [Errno 2] No such file or directory: 'C:\Users\USER\
Downloads\livestream_saver-main\livestream_saver-main\stream_capture_19gEHNEk
akM\metadata.json'
Traceback (most recent call last):
File "C:\Users\USER\Downloads\livestream_saver-main\livestream_saver-main\live
stream_saver\merge.py", line 18, in get_metadata_info
with open(path / "metadata.json", 'r', encoding='utf-8') as fp:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\USER\Downlo
ads\livestream_saver-main\livestream_saver-main\stream_capture_19gEHNEkakM\m
etadata.json'
2021-11-11 18:05:32,490 - ERROR - livestream_saver - 'id'
Traceback (most recent call last):
File "livestream_saver.py", line 655, in main
error = args["func"](config, args)
File "livestream_saver.py", line 441, in merge_mode
written_file = merge(
File "C:\Users\USER\Downloads\livestream_saver-main\livestream_saver-main\live
stream_saver\merge.py", line 207, in merge
logger = logging.getLogger("download" + "." + info['id'])
KeyError: 'id'

from livestream_saver.

glubsy avatar glubsy commented on August 19, 2024

That is normal if you are missing the metadata.json file that should be in the directory. I'll see if I can patch this to allow merging without the metadata file.

from livestream_saver.

gskvhfk avatar gskvhfk commented on August 19, 2024

I TRIED ANOTHER FILE BUT ITS DIFFERENT ERROR

C:\Users\USER\Downloads\livestream_saver-main\livestream_saver-main>python livestream_saver.py merge C:\Users\USER\Downloads\livestream_saver-main\livestream_saver-main\stream_capture_PP0S1T1uvWA
2021-11-11 18:25:35,254 - WARNING - download.PP0S1T1uvWA - Number of audio and video segments do not match.
2021-11-11 18:25:35,271 - ERROR - livestream_saver - [WinError 2] The system can not find the file specified
Traceback (most recent call last):
  File "livestream_saver.py", line 655, in main
    error = args["func"](config, args)
  File "livestream_saver.py", line 441, in merge_mode
    written_file = merge(
  File "C:\Users\USER\Downloads\livestream_saver-main\livestream_saver-main\live
stream_saver\merge.py", line 241, in merge
    vid_props = probe(video_files[0])
  File "C:\Users\USER\Downloads\livestream_saver-main\livestream_saver-main\live
stream_saver\merge.py", line 171, in probe
    probeproc = subprocess.run(probecmd, capture_output=True, text=True)
  File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 489, in run
    with Popen(*popenargs, **kwargs) as process:
  File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 1307, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified

C:\Users\USER\Downloads\livestream_saver-main\livestream_saver-main>python livestream_saver.py merge C:\Users\USER\Downloads\livestream_saver-main\livestream_saver-main\stream_capture_19gEHNEkakM
2021-11-11 18:25:51,208 - ERROR - livestream_saver - [WinError 2] The system cannot find the file specified
Traceback (most recent call last):
  File "livestream_saver.py", line 655, in main
    error = args["func"](config, args)
  File "livestream_saver.py", line 441, in merge_mode
    written_file = merge(
  File "C:\Users\USER\Downloads\livestream_saver-main\livestream_saver-main\live
stream_saver\merge.py", line 241, in merge
    vid_props = probe(video_files[0])
  File "C:\Users\USER\Downloads\livestream_saver-main\livestream_saver-main\live
stream_saver\merge.py", line 171, in probe
    probeproc = subprocess.run(probecmd, capture_output=True, text=True)
  File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 489, in run
    with Popen(*popenargs, **kwargs) as process:
  File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 1307, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified

from livestream_saver.

glubsy avatar glubsy commented on August 19, 2024

You need to have ffprobe installed on your system. It should be installed alongside ffmpeg usually. No idea how that works on Windows. You need to make sure ffprobe is in your PATH environment variable.

from livestream_saver.

glubsy avatar glubsy commented on August 19, 2024

If for whatever reason you cannot use ffprobe, I just pushed commit 122bc5e which should ignore the error and complete the merge process anyway.
It should also ignore the missing metadata.json file error.
Let me know if you get other errors.

from livestream_saver.

gskvhfk avatar gskvhfk commented on August 19, 2024

the video file got merged but audio is not merged it shows error
C:\Users\USER\Downloads\livestream_saver-main\livestream_saver-main>python lives
tream_saver.py merge C:\Users\USER\Downloads\livestream_saver-main\livestream_sa
ver-main\stream_capture_19gEHNEkakM
2021-11-11 21:25:49,260 - ERROR - download.19gEHNEkakM - Failed to use ffprobe:
[WinError 2] The system cannot find the file specified.
2021-11-11 21:25:49,284 - ERROR - download.19gEHNEkakM - Failed to use ffprobe:
[WinError 2] The system cannot find the file specified.
2021-11-11 21:25:49,285 - INFO - download.19gEHNEkakM - Trying concatenation met
hod: "concat".
2021-11-11 21:26:04,074 - ERROR - livestream_saver - [WinError 2] The system can
not find the file specified
Traceback (most recent call last):
File "livestream_saver.py", line 655, in main
error = args["func"](config, args)
File "livestream_saver.py", line 441, in merge_mode
written_file = merge(
File "C:\Users\USER\Downloads\livestream_saver-main\livestream_saver-main\live
stream_saver\merge.py", line 260, in merge
ffmpeg_output_path_video = concat(
File "C:\Users\USER\Downloads\livestream_saver-main\livestream_saver-main\live
stream_saver\merge.py", line 135, in concat
cproc = subprocess.run(
File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 489, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 854, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 1307, in _execute_chil
d
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified

from livestream_saver.

glubsy avatar glubsy commented on August 19, 2024

You need to make sure ffmpeg is in installed, and the path to the program is your PATH.
I'll push a patch to show a more explicit message whenever ffmpeg cannot be found. Commit: 673ad17

from livestream_saver.

gskvhfk avatar gskvhfk commented on August 19, 2024

Thanks i downloaded ffmeg and files got merged

from livestream_saver.

Related Issues (20)

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.