Skip to content
This repository has been archived by the owner on Dec 23, 2022. It is now read-only.

ffmpeg exited with code 1 #166

Open
mikelesagitter opened this issue Apr 8, 2021 · 3 comments
Open

ffmpeg exited with code 1 #166

mikelesagitter opened this issue Apr 8, 2021 · 3 comments

Comments

@mikelesagitter
Copy link

mikelesagitter commented Apr 8, 2021

Hi I'm expecting this error. ffmpeg is installed and up to date but both my files are failing a .avi and a .mp4

`
imac-di-michelangelo:test michelangelo$ h265ize -m medium -f mp4 -l 10000 -p -v
[h265ize]: [verbose] Handling keypresses...
[h265ize]: [verbose] Setting as-preset options...
[h265ize]: [verbose] Folder encoding started at Thursday, April 8th 2021, 1:06:03 PM
[h265ize]: Processing input.mp4...

[h265ize]: [verbose] Encoding started at Thu, 1:06 PM
[h265ize]: [verbose] Getting metadata...
[h265ize]: [verbose] Resolving video streams...
[h265ize]: [verbose] Upconverting...
[h265ize]: [verbose] Setting video bit depth...
[h265ize]: [verbose] Mapping streams...
[h265ize]: [alert] Audio does not have a title. Title set to "Unknown AAC LC (Stereo)".
[h265ize]: [verbose] Detecting auto crop...
[h265ize]: Crop Detection: 12/12
[h265ize]: [alert] Output will be cropped to 1920x1072. Originally 1920x1080
[h265ize]: [verbose] Mapping HE Audio streams...
[h265ize]: [verbose] Setting ffmpeg settings...
[h265ize]: [verbose] Encoding video...
[h265ize]: ffmpeg exited with code 1:
[h265ize]: [verbose] Finished encoding at Thu, 1:06 PM (a few seconds)
[h265ize]: Processing depra.avi...

[h265ize]: [verbose] Encoding started at Thu, 1:06 PM
[h265ize]: [verbose] Getting metadata...
[h265ize]: [verbose] Resolving video streams...
[h265ize]: [verbose] Upconverting...
[h265ize]: [verbose] Setting video bit depth...
[h265ize]: [verbose] Mapping streams...
[h265ize]: [alert] Audio does not have a title. Title set to "Unknown MP3 (Stereo)".
[h265ize]: [verbose] Detecting auto crop...
[h265ize]: Crop Detection: 12/12
[h265ize]: [verbose] Mapping HE Audio streams...
[h265ize]: [verbose] Setting ffmpeg settings...
[h265ize]: [verbose] Encoding video...
[h265ize]: ffmpeg exited with code 1:
[h265ize]: [verbose] Finished encoding at Thu, 1:06 PM (a few seconds)
[h265ize]: Folder encoding finished at Thursday, April 8th 2021, 1:06:05 PM

[h265ize]: [alert] The following videos (2) were not encoded:
- input.mp4: ffmpeg exited with code 1:
- depra.avi: ffmpeg exited with code 1:
[h265ize]: [verbose] Cleaning up temp files...
[h265ize]: Process exited.
`

with --debug:

`
[h265ize]: Processing input.mp4...

[h265ize]: [verbose] Encoding started at Sun, 12:34 AM
[h265ize]: [debug] Path: /Users/michelegiarratana/Documents/input.mp4
[h265ize]: [verbose] Getting metadata...
[h265ize]: [debug] Container data:
- duration: 00:33:45
- size: 1.27 GB
[h265ize]: [verbose] Resolving video streams...
[h265ize]: [debug] Working on stream:
[h265ize]: [debug] Working on stream: 1
[h265ize]: [debug] Working on stream: 2
[h265ize]: [verbose] Upconverting...
[h265ize]: [debug] Upconverting 0 tracks.
[h265ize]: [verbose] Setting video bit depth...
[h265ize]: [verbose] Mapping streams...
[h265ize]: [debug] Video stream 0:0 mapped.
- size: 1920x1080
- codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
- profile: High
- bit depth: 8
[h265ize]: [alert] Audio does not have a title. Title set to "Unknown AAC LC (Stereo)".
[h265ize]: [debug] Audio stream 0:1 mapped.
- title: undefined
- language: Unknown
- codec: AAC (Advanced Audio Coding)
- channels: 2
- profile: LC
[h265ize]: [debug] Other stream 0:2 mapped.
[h265ize]: [verbose] Detecting auto crop...
[h265ize]: Crop Detection: 1/12
[h265ize]: [debug] Running Query: ffmpeg -ss 1869.828 -i /Users/michelegiarratana/Documents/input.mp4 -y -vframes 2 -filter:v cropdetect=0.094:16:0 -map 0:0 -f null -
[h265ize]: Crop Detection: 2/12
[h265ize]: [debug] Running Query: ffmpeg -ss 1714.0089999999998 -i /Users/michelegiarratana/Documents/input.mp4 -y -vframes 2 -filter:v cropdetect=0.094:16:0 -map 0:0 -f null -
[h265ize]: Crop Detection: 3/12
[h265ize]: [debug] Running Query: ffmpeg -ss 1558.1899999999998 -i /Users/michelegiarratana/Documents/input.mp4 -y -vframes 2 -filter:v cropdetect=0.094:16:0 -map 0:0 -f null -
[h265ize]: Crop Detection: 4/12
[h265ize]: [debug] Running Query: ffmpeg -ss 1402.3709999999999 -i /Users/michelegiarratana/Documents/input.mp4 -y -vframes 2 -filter:v cropdetect=0.094:16:0 -map 0:0 -f null -
[h265ize]: Crop Detection: 5/12
[h265ize]: [debug] Running Query: ffmpeg -ss 1246.552 -i /Users/michelegiarratana/Documents/input.mp4 -y -vframes 2 -filter:v cropdetect=0.094:16:0 -map 0:0 -f null -
[h265ize]: Crop Detection: 6/12
[h265ize]: [debug] Running Query: ffmpeg -ss 1090.733 -i /Users/michelegiarratana/Documents/input.mp4 -y -vframes 2 -filter:v cropdetect=0.094:16:0 -map 0:0 -f null -
[h265ize]: Crop Detection: 7/12
[h265ize]: [debug] Running Query: ffmpeg -ss 934.914 -i /Users/michelegiarratana/Documents/input.mp4 -y -vframes 2 -filter:v cropdetect=0.094:16:0 -map 0:0 -f null -
[h265ize]: Crop Detection: 8/12
[h265ize]: [debug] Running Query: ffmpeg -ss 779.0949999999999 -i /Users/michelegiarratana/Documents/input.mp4 -y -vframes 2 -filter:v cropdetect=0.094:16:0 -map 0:0 -f null -
[h265ize]: Crop Detection: 9/12
[h265ize]: [debug] Running Query: ffmpeg -ss 623.276 -i /Users/michelegiarratana/Documents/input.mp4 -y -vframes 2 -filter:v cropdetect=0.094:16:0 -map 0:0 -f null -
[h265ize]: Crop Detection: 10/12
[h265ize]: [debug] Running Query: ffmpeg -ss 467.457 -i /Users/michelegiarratana/Documents/input.mp4 -y -vframes 2 -filter:v cropdetect=0.094:16:0 -map 0:0 -f null -
[h265ize]: Crop Detection: 11/12
[h265ize]: [debug] Running Query: ffmpeg -ss 311.638 -i /Users/michelegiarratana/Documents/input.mp4 -y -vframes 2 -filter:v cropdetect=0.094:16:0 -map 0:0 -f null -
[h265ize]: Crop Detection: 12/12
[h265ize]: [debug] Running Query: ffmpeg -ss 155.819 -i /Users/michelegiarratana/Documents/input.mp4 -y -vframes 2 -filter:v cropdetect=0.094:16:0 -map 0:0 -f null -
[h265ize]: [alert] Output will be cropped to 1920x1072. Originally 1920x1080
[h265ize]: [verbose] Mapping HE Audio streams...
[h265ize]: [verbose] Setting ffmpeg settings...
[h265ize]: [verbose] Encoding video...
[h265ize]: [debug] Running Query: ffmpeg -n 10 /usr/local/bin/ffmpeg -i /Users/michelegiarratana/Documents/Porn/Depravada/input.mp4 -y -acodec copy -vcodec libx265 -filter:v crop=1920:1072:0:4 -c:s copy -pix_fmt yuv420p -map 0:0 -map 0:1 -metadata:s:a:1 title="Unknown AAC LC (Stereo)" -metadata:s:0:1 DISPOSITION:default=1 -map 0:2 -preset ultrafast -x265-params crf=19: /var/folders/7b/_sfg0_l158g2pzcxxj5xhbkr0000gn/T/h265ize/input.encoding-in-progress.mp4
[h265ize]: [debug] Error: ffmpeg exited with code 1:
at ChildProcess. (/usr/local/lib/node_modules/h265ize/node_modules/fluent-ffmpeg/lib/processor.js:182:22)
at ChildProcess.emit (node:events:369:20)
at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
[h265ize]: ffmpeg exited with code 1:
[h265ize]: [verbose] Finished encoding at Sun, 12:34 AM (a few seconds)
[h265ize]: [debug] Finished encoding in 1.994 seconds.
[h265ize]: Folder encoding finished at Sunday, April 11th 2021, 12:34:09 AM
`

@tr1p0p
Copy link

tr1p0p commented May 7, 2021

Same here.

This program is just unusable.

@tr1p0p
Copy link

tr1p0p commented May 7, 2021

Confirm on RPI 4 this program can't launch, have multiple error code, and seem to not properly install, even with git install

binair-io added a commit to binair-io/h265ize that referenced this issue Apr 6, 2022
@binair-io
Copy link

I made some fixes on a fork while I also faced this issue. Can you give it a try?
Note: code now requires a settings.json file to be created in root folder of package. Didn't really bother fixing that yet with a proper settings file. Might do so on popular demand.

--> https://github.com/binair-io/h265ize

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants