How to get to record part of a video, not in youtube?  [Solved]

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
User avatar
keos
Posts: 1394
Joined: Sat Mar 04, 2017 12:00 pm

Re: How to get to record part of a video, not in youtube?  [Solved]

#11 Post by keos »

... Or use the same feature of vlc: Play it and click to record (at the point you want it to start). Stop it wherever you like. It'll be cropped (and saved as a new file) and the output (both audio and video) will stay exactly the same.
Very easy to understand. :number1:

Thanks once again!
Acer Aspire A315-58
Intel Core i7-1165G7
Iris Xe Graphics
MX-23.2-Xfce4 - 4.18.2

*Matthew 5:11

Huckleberry Finn

Re: How to get to record part of a video, not in youtube?

#12 Post by Huckleberry Finn »

:number1:

P.S. It may still be 1-2 sec. before /after the point(s) you mark. Cause (all this kind of software, including those in terminal) it's just selecting the most appropriate frame near that point.

Huckleberry Finn

Re: How to get to record part of a video, not in youtube?

#13 Post by Huckleberry Finn »

keos wrote: Sat Apr 30, 2022 1:32 pm... it starts fine at the time I set it, 09:54 but it ends beyond the time I have set it, it continues to record a few extra minutes (?) ..
Meanwhile:

-ss 09:54 ... -t 12:54

will start it at 09:54 and the length of the video will be 12:54 (not the end point) .
So, if you were trying to end it at 12:54 it needs to be -to 12:54

User avatar
keos
Posts: 1394
Joined: Sat Mar 04, 2017 12:00 pm

Re: How to get to record part of a video, not in youtube?

#14 Post by keos »

I guess you are referring now to the command ... No, it was in a portion of the video (from 9:54 to 12:54) -- which is two hours long.
Acer Aspire A315-58
Intel Core i7-1165G7
Iris Xe Graphics
MX-23.2-Xfce4 - 4.18.2

*Matthew 5:11

Huckleberry Finn

Re: How to get to record part of a video, not in youtube?

#15 Post by Huckleberry Finn »

keos wrote: Sun May 01, 2022 4:38 pm... a portion of the video (from 9:54 to 12:54) --
Yep, so try with -to instead of -t

( Shortly: Either -to 12:54 or -t 180 (for 180 seconds = 3 minutes duration as you wanted to )

User avatar
keos
Posts: 1394
Joined: Sat Mar 04, 2017 12:00 pm

Re: How to get to record part of a video, not in youtube?

#16 Post by keos »

Code: Select all

keos@kaos:~
$ ffmpeg $(yt-dlp -g 'https://archive.org/details/..............' | sed "s/.*/-ss 09:54 -i &/") -to 12:54 -c copy out.mkv
ffmpeg version 4.3.4-0+deb11u1 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 10 (Debian 10.2.1-6)
  configuration: --prefix=/usr --extra-version=0+deb11u1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
[https @ 0x559038b03280] HTTP error 404 Not Found
https://archive.org/download/...................................................,: Server returned 404 Not Found
keos@kaos:~
Last edited by keos on Mon May 02, 2022 10:10 am, edited 1 time in total.
Acer Aspire A315-58
Intel Core i7-1165G7
Iris Xe Graphics
MX-23.2-Xfce4 - 4.18.2

*Matthew 5:11

User avatar
keos
Posts: 1394
Joined: Sat Mar 04, 2017 12:00 pm

Re: How to get to record part of a video, not in youtube?

#17 Post by keos »

It seems that now there is a blockage with this download from https://archive.org/ that's why the "ERROR" displayed.

I do it again now at https://www.bitchute.com to check if (with '- to' as you recommended) and it comes up but with the same extra minutes as before.

Code: Select all

keos@kaos:~
$ ffmpeg $(yt-dlp -g 'https://www.bitchute.com/video.........../' | sed "s/.*/-ss 09:54 -i &/") -to 12:54 -c copy out.mkv
ffmpeg version 4.3.4-0+deb11u1 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 10 (Debian 10.2.1-6)
  configuration: --prefix=/usr --extra-version=0+deb11u1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'https://seed200.bitchute.com/..........................mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf56.40.101
  Duration: 01:48:27.96, start: 0.000000, bitrate: 424 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 854x480 [SAR 1280:1281 DAR 16:9], 319 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 96 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
Output #0, matroska, to 'out.mkv':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.45.100
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 854x480 [SAR 1280:1281 DAR 16:9], q=2-31, 319 kb/s, 29.97 fps, 29.97 tbr, 1k tbn, 30k tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (LC) ([255][0][0][0] / 0x00FF), 44100 Hz, stereo, fltp, 96 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=  526 fps=343 q=-1.0 size=     256kB time=00:00:16.46 bitrate= 127.4kbits/s speed=10.7x   frame= 2976 fps=1454 q=-1.0 size=    2304kB time=00:01:38.19 bitrate= 192.2kbits/s speed=  48x  frame= 7115 fps=2791 q=-1.0 size=    6656kB time=00:03:56.29 bitrate= 230.8kbits/s speed=92.7x  frame= 9221 fps=3024 q=-1.0 size=    9984kB time=00:05:06.57 bitrate= 266.8kbits/s speed= 101x  frame=10815 fps=3046 q=-1.0 size=   14080kB time=00:05:59.77 bitrate= 320.6kbits/s speed= 101x  frame=12489 fps=3082 q=-1.0 size=   17664kB time=00:06:55.61 bitrate= 348.2kbits/s speed= 103x  frame=14127 fps=3062 q=-1.0 size=   20480kB time=00:07:50.27 bitrate= 356.8kbits/s speed= 102x  frame=16733 fps=3269 q=-1.0 size=   24832kB time=00:09:17.23 bitrate= 365.1kbits/s speed= 109x  frame=18658 fps=3321 q=-1.0 size=   28160kB time=00:10:21.45 bitrate= 371.2kbits/s speed= 111x  frame=20373 fps=3329 q=-1.0 size=   31744kB time=00:11:18.67 bitrate= 383.2kbits/s speed= 111x  frame=22560 fps=3407 q=-1.0 size=   35328kB time=00:12:31.65 bitrate= 385.0kbits/s speed= 114x  frame=23230 fps=3445 q=-1.0 Lsize=   36363kB time=00:12:54.00 bitrate= 384.9kbits/s speed= 115x    
video:26891kB audio:9083kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.082289%
keos@kaos:~
Last edited by keos on Mon May 02, 2022 10:10 am, edited 1 time in total.
Acer Aspire A315-58
Intel Core i7-1165G7
Iris Xe Graphics
MX-23.2-Xfce4 - 4.18.2

*Matthew 5:11

User avatar
Eadwine Rose
Administrator
Posts: 14429
Joined: Wed Jul 12, 2006 2:10 am

Re: How to get to record part of a video, not in youtube?

#18 Post by Eadwine Rose »

Please use code tags for code post. It's the button next to the quotes, looks like so: </>

Thanks!
MX-23.6_x64 July 31 2023 * 6.1.0-34amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.216.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

User avatar
keos
Posts: 1394
Joined: Sat Mar 04, 2017 12:00 pm

Re: How to get to record part of a video, not in youtube?

#19 Post by keos »

Sorry, a mistake ... already fixed.
Acer Aspire A315-58
Intel Core i7-1165G7
Iris Xe Graphics
MX-23.2-Xfce4 - 4.18.2

*Matthew 5:11

User avatar
Eadwine Rose
Administrator
Posts: 14429
Joined: Wed Jul 12, 2006 2:10 am

Re: How to get to record part of a video, not in youtube?

#20 Post by Eadwine Rose »

Thanks :)
MX-23.6_x64 July 31 2023 * 6.1.0-34amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.216.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

Post Reply

Return to “MX Help”