madhavanmalolan / ffmpegandroidlibrary

One line integration for FFMPEG Library in Android
MIT License
90 stars 15 forks source link

change mp4 to ts fail #16

Closed SunPointed closed 6 years ago

SunPointed commented 6 years ago

use command like this

"-y",
"-i",
"xxx.mp4",
"-vcodec",
"copy",
"-acodec",
"copy",
"test.ts"

the test.ts can't play and only 2.2kb(the mp4 is about 10mb), but when use command like this

"-y",
"-i",
"xxx.mp4",
"-vcodec",
"copy",
"-acodec",
"copy",
"test.mp4"

it's success. Can someone give me help, thanks.

madhavanmalolan commented 6 years ago

The command is ffmpeg -i input.mp4 -c copy -bsf h264_mp4toannexb output.ts