pyriscope icon indicating copy to clipboard operation
pyriscope copied to clipboard

Total file length corrupted

Open TuxNuX opened this issue 8 years ago • 0 comments

pyriscope version 1.2.10 python version 3.4.3 (linux)

Many files have total file length duration corrupted, and to work well need

requires: ffmpeg

ffmpeg -y -v error -i "name file.ts" -bsf:a aac_adtstoasc -codec copy "name file.mp4"

Here is bash script for repair

#!/bin/sh
mkdir -p $HOME/MP4
FILE=$1

ffmpeg -y -v error -i "$FILE" -bsf:a aac_adtstoasc -codec copy $HOME/MP4/"$(basename "$FILE" .ts)".mp4

save as repairTSfile.sh chown +x repairTSfile.sh

usage: repairTSfile.sh name_file.ts

no support space, (), {} etc not work

repairTSfile.sh name and name (2016-12-27 00-34-42).live.ts

good work

repairTSfile.sh name\ and\ name\ \(2016-12-27\ 00-34-42\).live.ts

or rename file for example name_and_name-2016-12-27_00-34-42.live.ts

TuxNuX avatar Dec 27 '16 17:12 TuxNuX