Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Container Changing #55

Closed
jwynn6 opened this issue Oct 14, 2022 · 6 comments
Closed

[Question] Container Changing #55

jwynn6 opened this issue Oct 14, 2022 · 6 comments

Comments

@jwynn6
Copy link

jwynn6 commented Oct 14, 2022

I have some m2ts files I'd like to re-encode into mkv containers. Running this tool seems to be outputting an m2ts file as well, does using the -o option to specify an output file name somehow trigger a container change to the extension specified?

@alexheretic
Copy link
Owner

alexheretic commented Oct 14, 2022 via email

@jwynn6 jwynn6 closed this as completed Oct 17, 2022
@jwynn6
Copy link
Author

jwynn6 commented Oct 17, 2022

Thanks! Awesome tool.

@jwynn6
Copy link
Author

jwynn6 commented Oct 18, 2022

I'm getting 'Error: ffmpeg to-output exit code Some(1)' when encoding with -o and a container change. Using -o and maintaining the same container seems to work fine.

I am using the latest ffmpeg compiled from source.

@jwynn6 jwynn6 reopened this Oct 18, 2022
@alexheretic
Copy link
Owner

Error: ffmpeg to-output exit code Some(1)

Yes this isn't very helpful output, I'm meaning to improve this by showing the ffmpeg output (#1) hopefully I'll have time soon!

For now, try converting container using ffmpeg directly to see it's output. Maybe ffmpeg can't do this particular conversion for some reason?

@alexheretic
Copy link
Owner

I tested sample_1920x1080.m2ts and it seems to work fine.

$ ab-av1 auto-encode -i sample_1920x1080.m2ts --max-encoded-percent 9999 --preset 12 -o tmp.mp4
  Searching 00:00:49 ######################################### (crf 24, VMAF 95.36, size 498%)
  Encoding  00:00:10 ######################################### (73 fps, eta 0s)
Encoded 67.73 MiB (461%)

The samples are encoded into .m2ts format if you use an ffmpeg encoder rather than svt-av1. But that seems to work ok too.

Perhaps this is an issue with your ffmpeg (or maybe OS)? Can you try

ffmpeg -i sample_1920x1080.m2ts tmp.mp4

@alexheretic
Copy link
Owner

I think this should be addressed now on the next release, related #70

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

No branches or pull requests

2 participants