Skip to content

Commit

Permalink
Merge pull request #1 from iamstarcode/fix-ffmpeg-absf-cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
renxia committed Apr 19, 2024
2 parents 158f335 + 944ad65 commit a90cf44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"typescript.tsdk": "./node_modules/typescript/lib",
"css.validate": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/m3u8-convert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export async function m3u8Convert(options: M3u8DLOptions, data: TsItemInfo[]) {
if (process.platform === 'win32') filesAllArr = filesAllArr.map(d => d.replaceAll('\\', '/'));
await promises.writeFile(inputFilePath, 'ffconcat version 1.0\nfile ' + filesAllArr.join('\nfile '));

const cmd = `ffmpeg -y -f concat -safe 0 -i ${inputFilePath} -acodec copy -vcodec copy -absf aac_adtstoasc "${filepath}"`;
const cmd = `ffmpeg -y -f concat -safe 0 -i ${inputFilePath} -acodec copy -vcodec copy -bsf:a aac_adtstoasc "${filepath}"`;
logger.debug('[convert to mp4]cmd:', cyan(cmd));
const r = execSync(cmd);
ffmpegSupport = !r.error;
Expand Down

0 comments on commit a90cf44

Please sign in to comment.