Re: [FFmpeg-user] How to convert video.ts to video.mp4 efficiently?

2021-04-15 Thread Bo Berglund
On Wed, 14 Apr 2021 16:03:31 +0200, Moritz Barsnick wrote: >On Tue, Apr 13, 2021 at 17:49:55 +0200, Bo Berglund wrote: >> Question: >> Is there a quicker way to just go from ts to mp4 so the file format is OK >> even >> though the video size remains at 1280x720? >> >> (I could live with the size

Re: [FFmpeg-user] How to convert video.ts to video.mp4 efficiently?

2021-04-14 Thread Laine Lee
> On Apr 14, 2021, at 8:16 AM, Bo Berglund wrote: > > On Tue, 13 Apr 2021 12:27:34 -0500, Laine Lee wrote: > >> Could you provide an example .ts video? > > These 20 per day videos are each 1.3 GB for a 1 hour show... > Hard to provide to a mail list. > > > -- > Bo Berglund > Developer in

Re: [FFmpeg-user] How to convert video.ts to video.mp4 efficiently?

2021-04-14 Thread Moritz Barsnick
On Tue, Apr 13, 2021 at 17:49:55 +0200, Bo Berglund wrote: > Question: > Is there a quicker way to just go from ts to mp4 so the file format is OK even > though the video size remains at 1280x720? > > (I could live with the size even though the disk storage takes a hit...) Yes, by remuxing, i.e. u

Re: [FFmpeg-user] How to convert video.ts to video.mp4 efficiently?

2021-04-14 Thread Bo Berglund
On Tue, 13 Apr 2021 12:27:34 -0500, Laine Lee wrote: >Could you provide an example .ts video? These 20 per day videos are each 1.3 GB for a 1 hour show... Hard to provide to a mail list. -- Bo Berglund Developer in Sweden ___ ffmpeg-user mailing li

Re: [FFmpeg-user] How to convert video.ts to video.mp4 efficiently?

2021-04-13 Thread James Darnley
On 13/04/2021, Bo Berglund wrote: > $ ffmpeg -i 2021-04-13_input09.ts -vf -c:v libx264 -preset fast -crf 20 -c:a > copy 2021-04-13_input09.mp4 Read the command line better. You have "-vf -c:v" in there so it thinks "libx264" is an output file you want. It cannot guess what format that should be

Re: [FFmpeg-user] How to convert video.ts to video.mp4 efficiently?

2021-04-13 Thread Laine Lee
On 4/13/21, 11:11 AM, "ffmpeg-user on behalf of Bo Berglund" wrote: On Tue, 13 Apr 2021 18:02:04 +0200, Bo Berglund wrote: [NULL @ 0x5614c4007400] Unable to find a suitable output format for 'libx264' libx264: Invalid argument So I am clearly doing something wrong here, but what?

Re: [FFmpeg-user] How to convert video.ts to video.mp4 efficiently?

2021-04-13 Thread Carl Zwanzig
On 4/13/2021 9:11 AM, Bo Berglund wrote: How do I specify an output format? I did not do that in the original command where the size was also changed and it still made the mp4 format... Not to be unkind, but have you read the man page for ffmpeg? -f fmt (input/output) Force input or output

Re: [FFmpeg-user] How to convert video.ts to video.mp4 efficiently?

2021-04-13 Thread Bo Berglund
On Tue, 13 Apr 2021 18:02:04 +0200, Bo Berglund wrote: >[NULL @ 0x5614c4007400] Unable to find a suitable output format for 'libx264' >libx264: Invalid argument > > >So I am clearly doing something wrong here, but what? > How do I specify an output format? I did not do that in the original comma

Re: [FFmpeg-user] How to convert video.ts to video.mp4 efficiently?

2021-04-13 Thread Bo Berglund
On Tue, 13 Apr 2021 17:49:55 +0200, Bo Berglund wrote: >Question: >Is there a quicker way to just go from ts to mp4 so the file format is OK even >though the video size remains at 1280x720? > >(I could live with the size even though the disk storage takes a hit...) >Do I just take away this argum

Re: [FFmpeg-user] How to convert video.ts to video.mp4 efficiently?

2021-04-13 Thread Carl Zwanzig
On 4/13/2021 8:49 AM, Bo Berglund wrote: set COMMAND=ffmpeg -hide_banner -i %INFILE% -vf scale=w=-4:h=%VSIZE% -c:v libx264 -preset fast -crf 20 -c:a copy %OUTFILE% a) you should add " -movflags +faststart" if writing to an mp4 file b) always post the complete command _and_ it's output without -

[FFmpeg-user] How to convert video.ts to video.mp4 efficiently?

2021-04-13 Thread Bo Berglund
I am downloading video streams from a source that does not suppy alternate resolutions and is only sending a ts stream. So the result is that the downloaded files have these problems: 1) They are the original resolution: 1280x720 px but I prefer a 480p size 2) They are in ts format rather than mp