You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 23, 2022. It is now read-only.
I'm not sure the best route forward for this - the file autodetection is great when it works, but it seems to stumble a bit, i.e. this is autodetected:
$ file video1.m4v
video1.m4v: ISO Media, MPEG v4 system, version 2
$ file -i video1.m4v
video1.m4v: video/mp4; charset=binary
While this is never looked at - Handbrake will gladly convert it, but the script skips it since the mime-type that file -i returns isn't captured by the sed in the FILES=$() builder.
I'm not sure what the right solution is, to be honest, since "application/octet-stream" is a perfectly legitimate mime-type, although not particularly specific. In the meantime I've added the following and am letting HandBrake reject errata:
ADDFILES=$(find "$DIRECTORY" -maxdepth ${options[depth]} -type f -exec file -N -i -- {} + | sed -n 's!: application/[^:]*$!!p')
I've had a run in with application/octet-stream before, although I found it to difficult to fix before. Now I believe the best plan of attack is simply to add application/octet-stream video extensions to the exclusiveSupportedExtentions. I will add m4v and mkv to the list.
If anyone runs into the problem again, please open an issue containing the extension so I may add it to the master copy.
I'm not sure the best route forward for this - the file autodetection is great when it works, but it seems to stumble a bit, i.e. this is autodetected:
While this is never looked at - Handbrake will gladly convert it, but the script skips it since the mime-type that file -i returns isn't captured by the sed in the FILES=$() builder.
I'm not sure what the right solution is, to be honest, since "application/octet-stream" is a perfectly legitimate mime-type, although not particularly specific. In the meantime I've added the following and am letting HandBrake reject errata:
And changed the file accumulator to:
My magic is probably dated - it is FC18 after all.
The text was updated successfully, but these errors were encountered: