Package Details: python-ffsubsync 0.4.20-1

Git Clone URL: https://aur.archlinux.org/python-ffsubsync.git (read-only, click to copy)
Package Base: python-ffsubsync
Description: Language-agnostic automatic synchronization of subtitles with video.
Upstream URL: https://github.com/smacke/ffsubsync
Licenses: GPL3
Submitter: andrejr
Maintainer: andrejr
Last Packager: andrejr
Votes: 6
Popularity: 0.016317
First Submitted: 2021-08-06 20:17 (UTC)
Last Updated: 2022-07-01 08:38 (UTC)

Latest Comments

ryuta commented on 2022-07-28 05:48 (UTC) (edited on 2022-07-28 05:49 (UTC) by ryuta)


LANG=C yay -S python-ffsubsync

:: There are 2 providers available for python-srt: :: Repository AUR 1) python-srt 2) python-srt-git

Enter a number (default=1): ==> :: There are 2 providers available for python-ffmpeg: :: Repository AUR 1) python-ffmpeg 2) python-ffmpeg-git

Enter a number (default=1): ==> :: Checking for conflicts... :: Checking for inner conflicts... -> Package conflicts found: -> Installing python-srt will remove: python-pysrt -> Conflicting packages will have to be confirmed manually [Aur:5] python-ffmpeg-0.2.0-3 python-future-annotations-1.0.0-2 python-srt-3.5.2-1 python-pysubs2-1.4.2-0 python-ffsubsync-0.4.20-1

5 python-ffmpeg (Build Files Exist) 4 python-future-annotations (Build Files Exist) 3 python-srt (Build Files Exist) 2 python-pysubs2 (Build Files Exist) 1 python-ffsubsync (Build Files Exist) ==> Packages to cleanBuild? ==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4) ==> :: PKGBUILD up to date, Skipping (5/0): python-future-annotations, python-srt, python-pysubs2, python-ffsubsync, python-ffmpeg 5 python-ffmpeg (Build Files Exist) 4 python-future-annotations (Build Files Exist) 3 python-srt (Build Files Exist) 2 python-pysubs2 (Build Files Exist) 1 python-ffsubsync (Build Files Exist) ==> Diffs to show? ==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4) ==> :: (1/5) Parsing SRCINFO: python-ffmpeg :: (2/5) Parsing SRCINFO: python-future-annotations :: (3/5) Parsing SRCINFO: python-srt :: (4/5) Parsing SRCINFO: python-pysubs2 :: (5/5) Parsing SRCINFO: python-ffsubsync 5 python-ffmpeg (Build Files Exist) 4 python-future-annotations (Build Files Exist) 3 python-srt (Build Files Exist) 2 python-pysubs2 (Build Files Exist) 1 python-ffsubsync (Build Files Exist) ==> PKGBUILDs to edit? ==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4) ==> all 5 files to edit

==> Proceed with install? [Y/n] ==> Making package: python-pysubs2 1.4.2-0 (Thu Jul 28 07:46:56 2022) ==> Retrieving sources... -> Found pysubs2-1.4.2.tar.gz ==> Validating source files with sha256sums... pysubs2-1.4.2.tar.gz ... ==> Making package: python-ffsubsync 0.4.20-1 (Thu Jul 28 07:46:56 2022) Passed ==> Making package: python-srt 3.5.2-1 (Thu Jul 28 07:46:56 2022) ==> Retrieving sources... ==> Making package: python-ffmpeg 0.2.0-3 (Thu Jul 28 07:46:56 2022) ==> Retrieving sources... ==> Retrieving sources... -> Found ffsubsync-0.4.20.tar.gz -> Found python-srt-3.5.2.tar.gz -> Found python-ffmpeg-0.2.0.tar.gz -> Found requirements.txt ==> Validating source files with sha256sums... python-srt-3.5.2.tar.gz ... ==> Making package: python-future-annotations 1.0.0-2 (Thu Jul 28 07:46:56 2022) ==> Validating source files with sha256sums... python-ffmpeg-0.2.0.tar.gz ... ==> Validating source files with sha256sums... ffsubsync-0.4.20.tar.gz ... ==> Retrieving sources... Passed -> Found future_annotations-1.0.0.tar.gz Passed Passed requirements.txt ... ==> Validating source files with sha256sums... future_annotations-1.0.0.tar.gz ... FAILED ==> ERROR: One or more files did not pass the validity check! Passed -> error downloading sources: python-ffsubsync context: error downloading sources: python-ffsubsync context: exit status 1

==> Making package: python-ffmpeg 0.2.0-3 (Thu Jul 28 07:46:57 2022) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Found python-ffmpeg-0.2.0.tar.gz ==> Validating source files with sha256sums... python-ffmpeg-0.2.0.tar.gz ... Passed ==> Removing existing $srcdir/ directory... ==> Extracting sources... -> Extracting python-ffmpeg-0.2.0.tar.gz with bsdtar ==> Starting prepare()... ==> Sources are ready. ==> Making package: python-ffmpeg 0.2.0-3 (Thu Jul 28 07:46:58 2022) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> WARNING: Using existing $srcdir/ tree ==> Removing existing $pkgdir/ directory... ==> Starting build()... running build running build_py creating build creating build/lib creating build/lib/ffmpeg copying ffmpeg/_filters.py -> build/lib/ffmpeg copying ffmpeg/_view.py -> build/lib/ffmpeg copying ffmpeg/_ffmpeg.py -> build/lib/ffmpeg copying ffmpeg/_probe.py -> build/lib/ffmpeg copying ffmpeg/init.py -> build/lib/ffmpeg copying ffmpeg/dag.py -> build/lib/ffmpeg copying ffmpeg/_run.py -> build/lib/ffmpeg copying ffmpeg/nodes.py -> build/lib/ffmpeg copying ffmpeg/_utils.py -> build/lib/ffmpeg ==> Starting check()... ========================================== test session starts =========================================== platform linux -- Python 3.10.5, pytest-7.1.2, pluggy-1.0.0 rootdir: /home/construction_de_packet/.cache/yay/python-ffmpeg/src/ffmpeg-python-0.2.0, configfile: pytest.ini, testpaths: ffmpeg/tests plugins: hypothesis-6.17.0, mock-3.7.0 collected 60 items

ffmpeg/tests/test_ffmpeg.py .....................................................F...... [100%]

================================================ FAILURES ================================================ _______ test_pipe __________

def test_pipe():
    width = 32
    height = 32
    frame_size = width * height * 3  # 3 bytes for rgb24
    frame_count = 10
    start_frame = 2

    out = (
        ffmpeg.input(
            'pipe:0',
            format='rawvideo',
            pixel_format='rgb24',
            video_size=(width, height),
            framerate=10,
        )
        .trim(start_frame=start_frame)
        .output('pipe:1', format='rawvideo')
    )

    args = out.get_args()
    assert args == [
        '-f',
        'rawvideo',
        '-video_size',
        '{}x{}'.format(width, height),
        '-framerate',
        '10',
        '-pixel_format',
        'rgb24',
        '-i',
        'pipe:0',
        '-filter_complex',
        '[0]trim=start_frame=2[s0]',
        '-map',
        '[s0]',
        '-f',
        'rawvideo',
        'pipe:1',
    ]

    cmd = ['ffmpeg'] + args
    p = subprocess.Popen(
        cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE
    )

    in_data = bytes(
        bytearray([random.randint(0, 255) for _ in range(frame_size * frame_count)])
    )
    p.stdin.write(in_data)  # note: this could block, in which case need to use threads
    p.stdin.close()

    out_data = p.stdout.read()
  assert len(out_data) == frame_size * (frame_count - start_frame)

E assert 30720 == (3072 * (10 - 2)) E + where 30720 = len(b'\xd4\xdds\xbe\xc2\x0f\xa5\x15\xf7^\xe6\xee\x07V\x9dv\x85\xb5x\xe0\x0bz\xda\x82\x0c\xec\xeaax!@v\x0b\xe1\x95\xbb\x1d...\xac\xe3u\xbf"5O\xa9\xf3\x89\x12ITuE\x98\x92\xa7\xcfh\x08\xe0\x14/v\x16\xc7\x7f=\xc9\x08\x8a\xa0\x0b-\xde\x89=\xf3\xc5')

ffmpeg/tests/test_ffmpeg.py:699: AssertionError ============================================ warnings summary ============================================ ../../../../../../../usr/lib/python3.10/site-packages/past/builtins/misc.py:45 /usr/lib/python3.10/site-packages/past/builtins/misc.py:45: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses from imp import reload

ffmpeg/tests/test_ffmpeg.py:31 /home/construction_de_packet/.cache/yay/python-ffmpeg/src/ffmpeg-python-0.2.0/ffmpeg/tests/test_ffmpeg.py:31: DeprecationWarning: invalid escape sequence '\:' assert ffmpeg._utils.escape_chars('a:b', ':') == 'a\:b'

ffmpeg/tests/test_ffmpeg.py::test__get_filter_complex_input ffmpeg/tests/test_ffmpeg.py::test__multi_output_edge_label_order /home/construction_de_packet/.cache/yay/python-ffmpeg/src/ffmpeg-python-0.2.0/ffmpeg/tests/test_ffmpeg.py:722: FutureWarning: Possible nested set at position 20 m = re.search(r'[([^]]+)]{}(?=[[;]|$)'.format(name), flt)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ======================================== short test summary info ========================================= FAILED ffmpeg/tests/test_ffmpeg.py::test_pipe - assert 30720 == (3072 * (10 - 2)) ================================ 1 failed, 59 passed, 4 warnings in 1.23s ================================ ==> ERROR: A failure occurred in check(). Aborting... -> error making: python-ffmpeg


Neggedah commented on 2022-07-02 21:09 (UTC) (edited on 2022-07-02 21:22 (UTC) by Neggedah)

The requirements have changed. The hash for 'requirements.txt' should be changed to '5ee4dd5c036bfb9ea4589623d96b0cd8250622916d4c269a03e41117b57788f1' and the dependency for 'python-future-annotations' should be removed.

Kihra1 commented on 2022-07-01 13:45 (UTC)

fyi: updated package - sha256sums failed on requirements.txt. please update

malcolm commented on 2021-06-19 17:48 (UTC)

please add python-coverage as a build dependecy

j1simon commented on 2020-10-19 12:25 (UTC)

Lack of dependencies?

$ ffs Redwoods.mp4 -i Redwoods.srt -o Redwoods-2.srt
Traceback (most recent call last):
File "/usr/bin/ffs", line 33, in <module>
sys.exit(load_entry_point('ffsubsync==0.4.8', 'console_scripts', 'ffs')())
File "/usr/lib/python3.8/site-packages/ffsubsync/ffsubsync.py", line 387, in main
return run(args)['retval']
File "/usr/lib/python3.8/site-packages/ffsubsync/ffsubsync.py", line 283, in run
reference_pipe.fit(args.reference)
File "/usr/lib/python3.8/site-packages/ffsubsync/sklearn_shim.py", line 214, in fit
self._final_estimator.fit(Xt, y, **fit_params)
File "/usr/lib/python3.8/site-packages/ffsubsync/speech_transformers.py", line 186, in fit
detector = _make_webrtcvad_detector(self.sample_rate, self.frame_rate)
File "/usr/lib/python3.8/site-packages/ffsubsync/speech_transformers.py", line 98, in _make_webrtcvad_detector
import webrtcvad
File "/usr/lib/python3.8/site-packages/webrtcvad.py", line 1, in <module>
import pkg_resources
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3239, in <module>
def _initialize_master_working_set():
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3222, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3251, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 567, in _build_master
ws.require(__requires__)
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 884, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 770, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'auditok' distribution was not found and is required by ffsubsync

robertop commented on 2020-10-18 21:35 (UTC)

Change this to get the current version to work:

pkgver=0.4.8

sha256sums=('f72e918e5d679f8c7cd7376778dc4b65489963b33a632fecb0b071f455437d6e')

Althorion commented on 2020-05-12 07:29 (UTC)

Are you still interested in this package? Would you like some help with that?

connaisseur commented on 2020-04-10 07:18 (UTC)

Besides from being flagged out-of-date, this is (also) missing

python-pysubs2 python-cchardet

on the makedepends-line. But this might be new for >=v0.3.0 .

JonasCz commented on 2020-04-08 12:21 (UTC) (edited on 2020-04-08 12:22 (UTC) by JonasCz)

The correct sha265 for the current version is (you can change it in the pkgbuild)

8782f7f5cea65a0853f519dfc3c449be6a99035240ce41da8604b17a1cac19b6 subsync-0.2.17.tar.gz