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

Commandline options requests: threads number and audio track selection for ffmpeg #69

Open
SanZamoyski opened this issue Nov 21, 2021 · 1 comment

Comments

@SanZamoyski
Copy link

Hi!

I have two cores, I'd like to use those for transcoding: https://superuser.com/questions/155305/how-many-threads-does-ffmpeg-use-by-default
Also I have multiple audio video and I'd like to convert only one of those, can You add option to select audio track to convert?
https://superuser.com/questions/639402/convert-specific-video-and-audio-track-only-with-ffmpeg

Thank You, great tool!

@SanZamoyski
Copy link
Author

SanZamoyski commented Nov 21, 2021

I think I succeed by modifying the script a bit.
In line $FFMPEG -loglevel error -stats -i "$FILENAME" -map 0 -scodec copy -vcodec "$OUTPUT_VCODEC" -acodec "$OUTPUT_ACODEC" ... I've added to map ":v", so in base it does convert only video:
$FFMPEG -loglevel error -stats -i "$FILENAME" -map 0:v -scodec copy -vcodec "$OUTPUT_VCODEC" -acodec "$OUTPUT_ACODEC" ...

and by config I've added/modified:

DEFAULT_ACODEC=aac
DEFAULT_ACODEC_OPTS="-map 0:m:language:eng -ac 2 -b:a 192k"

...so there is aac@192k audio, forced stereo and converts only english.

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

1 participant