Hi everybody,
does ffmpeg supports trimming of a online video content?
I.e. if I want to trim and download only a certain part of a online video content, instead of downloading the entire video.
Thank you
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
Try StreamFab Downloader and download streaming video from Youtube, Netflix, Amazon! Download free trial.
+ Reply to Thread
Results 1 to 7 of 7
Thread
-
-
-
1. In ffmpeg: youtube-dl -g "YOUR YOUTUBE LINK"
Ffmpeg will find 2 links, 1 for audio, 1 for video.
2. Copy and paste in the following command:
ffmpeg -ss 27:11 -i "FIRST LINK" -ss 27:11 -i "SECOND LINK" -map 0:v -map 1:a -t 0:08 -c:v libx264 -c:a aac FILENAME.mkv
-ss is starting point of the video and audio links (in this case 27:11) and -t is how many seconds/minutes/hours to cut from -ss (in this case 8 seconds)
FULL EXAMPLE:
Code:ffmpeg -ss 27:11 -i "https://r11---sn-xupn5a5u-4wgel.googlevideo.com/videoplayback?expire=1572114795&ei=Cz20XeTrOMSQmLAP2LejqA0&ip=86.99.150.133&id=o-AISUxSib01Skhl14Rdd7ivzqgGlQcn7RsXlT83ynNiw5&itag=136&aitags=133%2C134%2C135%2C136%2C160%2C242%2C243%2C244%2C247%2C278&source=youtube&requiressl=yes&mm=31%2C26&mn=sn-xupn5a5u-4wgel%2Csn-5hne6nsk&ms=au%2Conr&mv=m&mvi=10&nh=EAI%2C&pl=21&gcr=ae&initcwndbps=668750&mime=video%2Fmp4&gir=yes&clen=1839679563&dur=8187.947&lmt=1571691841189608&mt=1572093104&fvip=2&keepalive=yes&fexp=23842630&c=WEB&txp=5432432&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cgcr%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=ALgxI2wwRgIhANrcE_XuF1W_CVqmf3tpUeVrDFJGs1m1jtED_7gAUEwBAiEAtAiNgw7MhY5Ng92Iu_nfmSU1_idwdOBpei3yIg_SC-U%3D&lsparams=mm%2Cmn%2Cms%2Cmv%2Cmvi%2Cnh%2Cpl%2Cinitcwndbps&lsig=AHylml4wRgIhANmfZsBSjq3pgIj_GENEGCwlOzTTg_UdNEBiFzb-_bYFAiEAnfRO2gAzNLx5P7eMgCOlNrPyRX5msEpv-B6eygddJoo%3D&ratebypass=yes" -ss 27:11 -i "https://r11---sn-xupn5a5u-4wgel.googlevideo.com/videoplayback?expire=1572114795&ei=Cz20XeTrOMSQmLAP2LejqA0&ip=86.99.150.133&id=o-AISUxSib01Skhl14Rdd7ivzqgGlQcn7RsXlT83ynNiw5&itag=251&source=youtube&requiressl=yes&mm=31%2C26&mn=sn-xupn5a5u-4wgel%2Csn-5hne6nsk&ms=au%2Conr&mv=m&mvi=10&nh=EAI%2C&pl=21&gcr=ae&initcwndbps=668750&mime=audio%2Fwebm&gir=yes&clen=131553647&dur=8187.981&lmt=1571677588623141&mt=1572093104&fvip=2&keepalive=yes&fexp=23842630&c=WEB&txp=5431432&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cgcr%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=ALgxI2wwRAIgL583QwmQ80aDswGUxVyMxGmNJPaWGpnA_l1mDvXD0w8CIHIKMrjJ9TZz5WjM5VPgFFSaoaxVy6r_2j4k18mOeBBt&lsparams=mm%2Cmn%2Cms%2Cmv%2Cmvi%2Cnh%2Cpl%2Cinitcwndbps&lsig=AHylml4wRgIhANmfZsBSjq3pgIj_GENEGCwlOzTTg_UdNEBiFzb-_bYFAiEAnfRO2gAzNLx5P7eMgCOlNrPyRX5msEpv-B6eygddJoo%3D&ratebypass=yes" -map 0:v -map 1:a -t 0:08 -c:v libx264 -c:a aac FILENAME.mkv
Last edited by danielko; 26th Oct 2019 at 12:54.
Similar Threads
-
Video Trimming
By nad2cool in forum EditingReplies: 3Last Post: 27th Apr 2019, 22:48 -
[SOLVED] FFMPEG Slideshow (Tried looking online and can't get it to work).
By Tolwyn in forum Newbie / General discussionsReplies: 21Last Post: 15th Aug 2017, 22:18 -
Trimming TV Show records
By fael78rj in forum Newbie / General discussionsReplies: 10Last Post: 12th Oct 2015, 20:39 -
Trouble With Trimming Clips
By Jane4666 in forum EditingReplies: 5Last Post: 4th Sep 2015, 15:04 -
SW for video trimming
By bluenite in forum Newbie / General discussionsReplies: 1Last Post: 24th Jun 2015, 07:09