Is there a way to speed up to make partial transcoding of a video file.

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

Is there a way to speed up to make partial transcoding of a video file.

shirish
Dear all,

Thank you for making the awesome software ffmpeg.

I am not subscribed to the archives so please CC me in case somebody
answers it one way or the other.

I usually find it takes quite some time when trying to partially
trancode/copy a file.  I am concerned with the startup time. It takes
anywhere between 3-5 minutes before transcoding/copying starts.

Something like https://paste.debian.net/1059975/

I find it takes quite a bit of time for the copy to be there. Is there
anyway to make the process a bit faster, some sort of flag or
something ?

I am asking due to the cpu capabilities given -

[libx264 @ 0x55ab4aa24380] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2 AVX FMA3 BMI2 AVX2

There might be some more things which could help perhaps -

from inxi -

CPU:       Topology: Quad Core model: Intel Core i5-7400 bits: 64
type: MCP arch: Kaby Lake rev: 9 L1 cache: 256 KiB
           L2 cache: 6144 KiB L3 cache: 6144 KiB bogomips: 24000
           Speed: 800 MHz min/max: 800/3300 MHz Core speeds (MHz): 1:
800 2: 800 3: 800 4: 800
           Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat
arch_perfmon art avx avx2 bmi1 bmi2 bts clflush clflushopt cmov
constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts
ept ept_ad erms est f16c flexpriority flush_l1d fma fpu fsgsbase fxsr
ht hwp hwp_act_window hwp_epp hwp_notify ibpb ibrs ida intel_pt
invpcid invpcid_single lahf_lm lm mca mce mmx monitor movbe mpx msr
mtrr nonstop_tsc nopl nx pae pat pbe pcid pclmulqdq pdcm pdpe1gb pebs
pge pln pni popcnt pse pse36 pti pts rdrand rdseed rdtscp rep_good
sdbg sep smap smep ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall
tm tm2 tpr_shadow tsc tsc_adjust tsc_deadline_timer tsc_known_freq vme
vmx vnmi vpid x2apic xgetbv1 xsave xsavec xsaveopt xsaves xtopology
xtpr

Graphics:  Device-1: Intel HD Graphics 630 vendor: ASUSTeK driver:
i915 v: kernel bus ID: 00:02.0 chip ID: 8086:5912
           Display: server: X.Org 1.20.3 driver: modesetting unloaded:
fbdev,vesa resolution: 1600x900~60Hz
           OpenGL: renderer: Mesa DRI Intel HD Graphics 630 (Kaby Lake
GT2) v: 4.5 Mesa 18.2.8 compat-v: 3.0
           direct render: Yes

It's a desktop machine having 8 GB RAM.

Look forward to know if any hack or something can be done to make it a
bit faster, or if there are any settings I can experiment with.

--
          Regards,
          Shirish Agarwal  शिरीष अग्रवाल
  My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
EB80 462B 08E1 A0DE A73A  2C2F 9F3D C7A4 E1C4 D2D8
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://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: Is there a way to speed up to make partial transcoding of a video file.

Carl Eugen Hoyos-2
2019-01-12 19:29 GMT+01:00, shirish शिरीष <[hidden email]>:

> I usually find it takes quite some time when trying to partially
> trancode/copy a file.  I am concerned with the startup time. It takes
> anywhere between 3-5 minutes before transcoding/copying starts.

Command line and complete, uncut console output missing.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://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: Is there a way to speed up to make partial transcoding of a video file.

shirish
At bottom :-

On 12/01/2019, Kieran O Leary <[hidden email]> wrote:

> Carl never cc'd you
>
> ---------- Forwarded message ---------
> From: Carl Eugen Hoyos <[hidden email]>
> Date: Sat, 12 Jan 2019, 23:27
> Subject: Re: [FFmpeg-user] Is there a way to speed up to make partial
> transcoding of a video file.
> To: FFmpeg user questions <[hidden email]>
>
>
> 2019-01-12 19:29 GMT+01:00, shirish शिरीष <[hidden email]>:
>
>> I usually find it takes quite some time when trying to partially
>> trancode/copy a file.  I am concerned with the startup time. It takes
>> anywhere between 3-5 minutes before transcoding/copying starts.
>
> Command line and complete, uncut console output missing.
>
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
>

I did share the console output via -

https://paste.debian.net/1059975/

I didn't want to share the console output on mail as it is/was too big.

The only thing I replaced are renaming the media file to something.mkv
and the output file as output.mkv otherwise everything else is as I
got the output on the console.

--
          Regards,
          Shirish Agarwal  शिरीष अग्रवाल
  My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
EB80 462B 08E1 A0DE A73A  2C2F 9F3D C7A4 E1C4 D2D8
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://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: Is there a way to speed up to make partial transcoding of a video file.

shirish
addition at bottom :-

On 12/01/2019, shirish शिरीष <[hidden email]> wrote:

> At bottom :-
>
> On 12/01/2019, Kieran O Leary <[hidden email]> wrote:
>> Carl never cc'd you
>>
>> ---------- Forwarded message ---------
>> From: Carl Eugen Hoyos <[hidden email]>
>> Date: Sat, 12 Jan 2019, 23:27
>> Subject: Re: [FFmpeg-user] Is there a way to speed up to make partial
>> transcoding of a video file.
>> To: FFmpeg user questions <[hidden email]>
>>
>>
>> 2019-01-12 19:29 GMT+01:00, shirish शिरीष <[hidden email]>:
>>
>>> I usually find it takes quite some time when trying to partially
>>> trancode/copy a file.  I am concerned with the startup time. It takes
>>> anywhere between 3-5 minutes before transcoding/copying starts.
>>
>> Command line and complete, uncut console output missing.
>>
>> Carl Eugen
>> _______________________________________________
>> ffmpeg-user mailing list
>> [hidden email]
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> [hidden email] with subject "unsubscribe".
>>
>
> I did share the console output via -
>
> https://paste.debian.net/1059975/
>
> I didn't want to share the console output on mail as it is/was too big.
>
> The only thing I replaced are renaming the media file to something.mkv
> and the output file as output.mkv otherwise everything else is as I
> got the output on the console.
>

If some info. is still missing, please let me know.

--
          Regards,
          Shirish Agarwal  शिरीष अग्रवाल
  My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
EB80 462B 08E1 A0DE A73A  2C2F 9F3D C7A4 E1C4 D2D8
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://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: Is there a way to speed up to make partial transcoding of a video file.

Carl Eugen Hoyos-2
In reply to this post by shirish
2019-01-13 0:48 GMT+01:00, shirish शिरीष <[hidden email]>:

>> 2019-01-12 19:29 GMT+01:00, shirish शिरीष <[hidden email]>:
>>
>>> I usually find it takes quite some time when trying to partially
>>> trancode/copy a file.  I am concerned with the startup time. It takes
>>> anywhere between 3-5 minutes before transcoding/copying starts.
>>
>> Command line and complete, uncut console output missing.

> I did share the console output via -
>
> https://paste.debian.net/1059975/

Except for input files, this is not welcome!

> $ ffmpeg -i somefile.mkv -ss 00:49:55 -t 00:4:44 output.mkv

If you move "-ss" in front of the input file (and the input is
seekable), it will significantly speed up the command.

For future questions, please remember that only current
FFmpeg git head is supported here.

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

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