A command for splitting a video file by file size

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

A command for splitting a video file by file size

Julien Dotsev
Hi,
I want to split a file by size but starting from a specific byte or bit.
For example I have a file of 6mb and I want to take the part from 4mb to
the end.  Is it possible to do that?

Julien
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: A command for splitting a video file by file size

Carl Eugen Hoyos-2


> Am 20.10.2019 um 22:58 schrieb Julien Dotsev <[hidden email]>:
>
> I want to split a file by size but starting from a specific byte or bit.
> For example I have a file of 6mb and I want to take the part from 4mb to
> the end.  Is it possible to do that?

It should be possible with dd.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: A command for splitting a video file by file size

Julien Dotsev
What is dd?

On Mon, 21 Oct 2019, 00:00 Carl Eugen Hoyos, <[hidden email]> wrote:

>
>
> > Am 20.10.2019 um 22:58 schrieb Julien Dotsev <[hidden email]>:
> >
> > I want to split a file by size but starting from a specific byte or bit.
> > For example I have a file of 6mb and I want to take the part from 4mb to
> > the end.  Is it possible to do that?
>
> It should be possible with dd.
>
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: A command for splitting a video file by file size

Moritz Barsnick
On Mon, Oct 21, 2019 at 00:51:24 +0200, Julien Dotsev wrote:
> What is dd?

dd is a command line tool. (Also available for other OSs than Unix.)

To take up your example:

$ dd if=inputfile.ext bs=1M skip=4 of=outputfile.ext

But if you're doing this with a video file, the result can be
unplayable. This depends on the format of the video file, and possibly
on its content.

If you want to use ffmpeg to split a file, please understand that
ffmpeg always demuxes and remuxes the video content, and usually cannot
preserve the exact original container.

Cheers,
Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: A command for splitting a video file by file size

Julien Dotsev
Ok. Thank you Moritz.

On Mon, 21 Oct 2019, 09:48 Moritz Barsnick, <[hidden email]> wrote:

> On Mon, Oct 21, 2019 at 00:51:24 +0200, Julien Dotsev wrote:
> > What is dd?
>
> dd is a command line tool. (Also available for other OSs than Unix.)
>
> To take up your example:
>
> $ dd if=inputfile.ext bs=1M skip=4 of=outputfile.ext
>
> But if you're doing this with a video file, the result can be
> unplayable. This depends on the format of the video file, and possibly
> on its content.
>
> If you want to use ffmpeg to split a file, please understand that
> ffmpeg always demuxes and remuxes the video content, and usually cannot
> preserve the exact original container.
>
> Cheers,
> Moritz
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".