Package Details: python-ffsubsync 0.4.26-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: bpierre
Last Packager: bpierre
Votes: 4
Popularity: 0.000312
First Submitted: 2021-08-06 20:17 (UTC)
Last Updated: 2024-10-16 09:05 (UTC)

Latest Comments

1 2 Next › Last »

bpierre commented on 2024-04-29 13:03 (UTC)

Beside updating requirements.txt sha256sum, there's also an issue with the vendored-in version of versioneer:

 PKGBUILD | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git i/PKGBUILD w/PKGBUILD
index edf11f0..440f5a0 100644
--- i/PKGBUILD
+++ w/PKGBUILD
@@ -21,6 +21,7 @@ depends=(
     'python-tqdm'
     'python-typing_extensions'
     'python-webrtcvad'
+    'python-versioneer'
 )
 makedepends=('python-setuptools')
 license=('GPL3')
@@ -30,11 +31,12 @@ source=(
     "https://raw.githubusercontent.com/smacke/ffsubsync/$pkgver/requirements.txt"
 )
 sha256sums=('2a7cea5105030da4785a49ad2c139cbcd677c5cb57b5af8e1d859026fa74a2db'
-            '67491bab58c1b38bfd2e63f0bcddecb12660104474cb1fab229d8abc1c322d03')
+            'd05e473790aec4a98a15275639d7abc0d5d52d95b89c0c0788afe5444ac77d33')

 build() {
    cp "$srcdir/requirements.txt" "$srcdir/$_name-$pkgver"
    cd "$srcdir/$_name-$pkgver"
+   rm versioneer.py
    python setup.py build
 }

Aftermath commented on 2024-02-03 06:03 (UTC)

Did you remove all src files before build? Similar happened to me once. I removed requirements.txt and it got fixed. I can explain why, but you can guess.

xAsh commented on 2024-02-01 14:44 (UTC)

==> Validating source files with sha256sums... ffsubsync-0.4.25.tar.gz ... Passed requirements.txt ... FAILED

I'm getting the same error.

senchaboi commented on 2023-10-29 23:15 (UTC)

Thanks for updating to the latest version. Just got around to updating, but requirements.txt fails validity check

==> Validating source files with sha256sums... ffsubsync-0.4.25.tar.gz ... Passed requirements.txt ... FAILED

senchaboi commented on 2023-07-03 09:09 (UTC)

Unfortunately looks like this package has been abandoned. Current version doesn't work anymore (I guess due to Python update a while back) and can't be recompiled due to error below.

There's also a new version 0.4.25 out on https://pypi.org/project/ffsubsync/ Installed it via pip in a virtual env and works fine.

MarsSeed commented on 2023-06-18 00:09 (UTC)

After recent package changes on AUR, please switch dependency python-ffmpeg to python-ffmpeg-python.

As per my checking, this project requires pypi/ffmpeg-python, and my suggestion above is the appropriate choice for that.

(There is a new AUR/python-python-ffmpeg package, but that is a new and incompatible project, built from pypi/python-ffmpeg.)

senchaboi commented on 2023-05-08 22:24 (UTC)

Im getting this when trying to build

error: command failed: /home/myself/.cache/paru/clone/python-ffsubsync: git rebase --stat:

atomicfs commented on 2023-02-26 14:59 (UTC)

There is a mismatch in sha256 checksum for the requirements.txt file.

 sha256sums=('b0f985ae529b78acfe0b94925c6efa4c1ce199cdc3cad007443cd75790bbe476'
-            '443b1afc077044c41fb1442dc36e4bba595a8895178847d9bc956b485246c018')
+            '67491bab58c1b38bfd2e63f0bcddecb12660104474cb1fab229d8abc1c322d03')

bpierre commented on 2023-02-19 09:40 (UTC) (edited on 2023-02-19 09:40 (UTC) by bpierre)

Depends need to be updated:

  • python-argparse is no longer needed
  • python-cchardet replaced by python-chardet
  • python-charset-normalizer is needed too
  • python-future-annotations replaced by python-future

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