Re: [FFmpeg-user] I am a new ffmpeg user...

2021-03-15 Thread Bo Berglund
d dir then that is probably the dir you want to add as described. And to second Mark Filipak's response: I also recommend Handbrake to do format conversions and the like using a GUI. -- Bo Berglund Developer in Sweden ___ ffmpeg-user mailing li

Re: [FFmpeg-user] Continuous live stream capture

2021-03-25 Thread Bo Berglund
he signal argument --signal=2 And this works just fine. You could possibly run your script as is but package it inside a timeout call such that ffmpeg is at least exiting after the timeout has expired? -- Bo Berglund Developer in Sweden ___ ff

Re: [FFmpeg-user] Cutting out part of a video does not work

2021-03-26 Thread Bo Berglund
skip to the closest frame border or does it include both the starting and ending frame so giving a video time of 805 seconds? Switching from the copy handler to something else makes ffmpeg work a lot harder and processing time goes from 5 seconds to 30 minutes or so -- Bo Ber

[FFmpeg-user] How to detect commercials in recorded TV stream?

2021-03-27 Thread Bo Berglund
nge points? -- Bo Berglund Developer in Sweden ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Cutting out part of a video does not work

2021-03-27 Thread Bo Berglund
. > >Not to be picky, but there are certainly very many more frames. The >distinction is between *keyframes* and everything else called a frame. > Of course this is not the entire output! It streams past at high speed so covers many many pages. But it all looks the same with the time increm

Re: [FFmpeg-user] Cutting out part of a video does not work

2021-03-27 Thread Bo Berglund
100% CPU for quite a while in normal surroundings (if the air flow is not obstructed, please check the inlets on the underside of the laptop). -- Bo Berglund Developer in Sweden ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mail

Re: [FFmpeg-user] Cutting out part of a video does not work

2021-03-27 Thread Bo Berglund
eo streaming works, I just use YouTube if that is the source... And I have never published any video on Youtube so I don't know the process. -- Bo Berglund Developer in Sweden ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/m

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

2021-04-13 Thread Bo Berglund
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 argument: scale=w=-4:h=%VSIZE% Is there something else I can do? -- Bo Berglund

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 j

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

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 mail

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? &

[FFmpeg-user] Combining download of ts stream with geometry modification into mp4?

2021-04-18 Thread Bo Berglund
t there is no intermediate ts file created and the mp4 is available essentially when the download completes? As it is now I download nightly and then I have to run a batch job in the morning to convert all the successfully downloaded ts videos into mp4, which takes several hours... -- B

Re: [FFmpeg-user] Combining download of ts stream with geometry modification into mp4?

2021-04-19 Thread Bo Berglund
On Sun, 18 Apr 2021 23:41:59 -0700, Carl Zwanzig wrote: >On 4/18/2021 11:20 PM, Bo Berglund wrote: >> Can I combine these two operations into a single ffmpeg command such that >> there >> is no intermediate ts file created and the mp4 is available essentially when >>

Re: [FFmpeg-user] Combining download of ts stream with geometry modification into mp4?

2021-04-19 Thread Bo Berglund
On Mon, 19 Apr 2021 10:01:47 -0700, Carl Zwanzig wrote: >On 4/19/2021 4:46 AM, Bo Berglund wrote: >>> *assuming that the source is producing a ts which is captured as-is >> I think that it is, > >Which would be easily answered by including the command output (which s

Re: [FFmpeg-user] Combining download of ts stream with geometry modification into mp4?

2021-04-20 Thread Bo Berglund
On Tue, 20 Apr 2021 00:52:07 +0200, Bo Berglund wrote: >I think that the " -threads 1 " part does not work to reduce the CPU load, >though... I got off-list advice and a link to a stack-exchange discussion on this matter: https://superuser.com/questions/792525/how-to-chang

[FFmpeg-user] Can ffmpeg be set to wait if a stream stop happens?

2021-04-21 Thread Bo Berglund
es up the output file and exits. So I am left with a 26 minute video instead of a full 1 hour video. The -t parameter I use is in order for ffmpeg to download for that time (in seconds). Is there a way to tell ffmpeg to stay online for that full amount even if the stream pauses for some reason?

Re: [FFmpeg-user] Can ffmpeg be set to wait if a stream stop happens?

2021-04-24 Thread Bo Berglund
On Thu, 22 Apr 2021 14:22:17 +0200, Moritz Barsnick wrote: >Hej Bo, > >On Wed, Apr 21, 2021 at 16:59:10 +0200, Bo Berglund wrote: >> But what I have noticed lately is that sometimes the stream it downloads from >> stops feeding data for a few seconds (don't know

Re: [FFmpeg-user] Odd video output, playing RTSP on RPI

2021-04-24 Thread Bo Berglund
If the RPi computer is headless how can you view the output? -- Bo Berglund Developer in Sweden ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ..

[FFmpeg-user] Possible to change pitch of audio in a downloaded mp4 file?

2021-04-27 Thread Bo Berglund
YouTube videos with say 500 ms out-of-sync can be corrected to be in sync. This uses ffmpeg. But is it possible to change audio pitch without changing video speed? If so what command should I use? Video should play at normal speed. -- Bo Berglund Developer in Sweden

Re: [FFmpeg-user] Possible to change pitch of audio in a downloaded mp4 file?

2021-04-28 Thread Bo Berglund
On Wed, 28 Apr 2021 09:03:26 +0200, Michael Koch wrote: >Am 28.04.2021 um 08:51 schrieb Bo Berglund: >> Sometimes when I download a video it turns out to have some issues that has >> raised the audio pitch of the video making it not so enjoyable to watch/hear. >> So I

Re: [FFmpeg-user] Possible to change pitch of audio in a downloaded mp4 file?

2021-04-28 Thread Bo Berglund
and video. OK, that included the video... But now there is no lip-sync at all. Seems to drift longer apart during the video playing. Audio and video running at different speeds. I think I will abandon this experimental test. It was just an idea on how to possibly improve a bad video. -- Bo B

Re: [FFmpeg-user] FFMPEG

2021-04-28 Thread Bo Berglund
On Wed, 28 Apr 2021 18:08:44 +0200, RZAD wrote: >Hello i got a problem with ffmpeg i need to decrypt SAMPLE-AES but FFMPEG >are not compatble how can do ? >thanks Don't hijack an old existing thread Then: Supply enough info to analyse your problem. -- Bo Berglund Devel

Re: [FFmpeg-user] Possible to change pitch of audio in a downloaded mp4 file?

2021-04-28 Thread Bo Berglund
video... -- Bo Berglund Developer in Sweden ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] How to check if a youtube URL is valid before starting download?

2021-07-06 Thread Bo Berglund
not master... -- Bo Berglund Developer in Sweden ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] How to check if a youtube URL is valid before starting download?

2021-07-06 Thread Bo Berglund
On Tue, 06 Jul 2021 09:00:47 +0200, Bo Berglund wrote: >Can this be done using youtube-dl or straight ffmpeg? Self-answer: It seems like this will do what I need: eval "youtube-dl -F $VIDEOURL" if [ $? -eq 0 ] then exit 0 else exit 1 fi -- Bo Berglund Develo

Re: [FFmpeg-user] How to check if a youtube URL is valid before starting download?

2021-07-07 Thread Bo Berglund
On Tue, 06 Jul 2021 10:14:46 +0200, Bo Berglund wrote: >On Tue, 06 Jul 2021 09:00:47 +0200, Bo Berglund wrote: > >>Can this be done using youtube-dl or straight ffmpeg? > >Self-answer: > >It seems like this will do what I need: > >eval "youtube-dl -F $VIDEOUR

Re: [FFmpeg-user] How to check if a youtube URL is valid before starting download?

2021-07-07 Thread Bo Berglund
On Wed, 07 Jul 2021 14:21:15 +0200, Bo Berglund wrote: >But whenever the video is stalled and just continuously displays one single >image >for minutes on end the test above does not detect it. >So is there a way to check if a video is static and generate an error in that >case?

Re: [FFmpeg-user] How to check if a youtube URL is valid before starting download?

2021-07-07 Thread Bo Berglund
On Wed, 07 Jul 2021 14:43:27 +0200, Bo Berglund wrote: >Lacking an example I cannot proceed > >What I want is for ffmpeg to check the video and if it is frozen exit with >result 1 and if the video is not frozen exit with result 0. >What should be the correct call syntax? >

Re: [FFmpeg-user] How to check if a youtube URL is valid before starting download?

2021-07-07 Thread Bo Berglund
On Wed, 7 Jul 2021 13:54:11 +0100, Rob Hallam wrote: >On Wed, 7 Jul 2021 at 13:43, Bo Berglund wrote: >> On Wed, 07 Jul 2021 14:21:15 +0200, Bo Berglund >> wrote: >> >So is there a way to check if a video is static and generate an error in >> >that case?

Re: [FFmpeg-user] How to check if a youtube URL is valid before starting download?

2021-07-07 Thread Bo Berglund
On Wed, 7 Jul 2021 09:02:47 -0700, Carl Zwanzig wrote: >On 7/7/2021 8:48 AM, Bo Berglund wrote: >> But now I saw a different error I also want to check for, this is when the >> stream semingly works fine but the video has frozen. > >Does that mean youtube continues to

Re: [FFmpeg-user] How to check if a youtube URL is valid before starting download?

2021-07-07 Thread Bo Berglund
hanges even when there are scheduled download jobs not yet executing. (I use at scheduling for the downloads) -- Bo Berglund Developer in Sweden ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsub

Re: [FFmpeg-user] How to check if a youtube URL is valid before starting download?

2021-07-08 Thread Bo Berglund
t I am testing this in an ssh command line session to the linux box using PuTTY. -- Bo Berglund Developer in Sweden ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] How to check if a youtube URL is valid before starting download?

2021-07-09 Thread Bo Berglund
0 -f null - >2>&1 | grep -q 'lavfi.freezedetect.freeze_start: ' I ran this: ffmpeg -hide_banner -i bluearrow.mp4 -vf "freezedetect=n=0.01:d=5" -map 0:v:0 -f null - 2>&1 > freezeoutput.txt And the freezeoutput.txts still empty... -- Bo Berglund Developer in

Re: [FFmpeg-user] How to check if a youtube URL is valid before starting download?

2021-07-09 Thread Bo Berglund
On Fri, 9 Jul 2021 11:46:19 +0200, Nicolas George wrote: >My advice for this thread: don't try to run before you can walk. What kind of help is that? Are you a troll? -- Bo Berglund Developer in Sweden ___ ffmpeg-user mailing list ffm

Re: [FFmpeg-user] How to check if a youtube URL is valid before starting download?

2021-07-09 Thread Bo Berglund
then start the download only if it reports that the stream is not frozen. -- Bo Berglund Developer in Sweden ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] How to check if a youtube URL is valid before starting download?

2021-07-09 Thread Bo Berglund
On Fri, 09 Jul 2021 13:00:39 +0200, Bo Berglund wrote: >Final problem is how to run ffmpeg with an input that is a live stream >currently >playing on Youtube? >I need to detect (in a script) if the stream has frozen before I start the >download, so my plan is to run the detection

[FFmpeg-user] How to download video stream starting at an earlier time?

2021-08-15 Thread Bo Berglund
ffmpeg command to accomplish this look like? -- Bo Berglund Developer in Sweden ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org

Re: [FFmpeg-user] How to download video stream starting at an earlier time?

2021-08-16 Thread Bo Berglund
//youtu.be/DM-I6UugaFs: Invalid data found when processing input Same result if I remove the -ss 3600 arguments... -- Bo Berglund Developer in Sweden ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To u

Re: [FFmpeg-user] How to download video stream starting at an earlier time?

2021-08-16 Thread Bo Berglund
On Mon, 16 Aug 2021 22:59:58 +0200, Reino Wijnsma wrote: >On 2021-08-16T22:00:24+0200, Bo Berglund wrote: >> $ ffmpeg -ss 3600 -i https://youtu.be/DM-I6UugaFs -preset veryfast -crf 25 >> -c:a >> copy -t 600 output.mp4 > >What makes you think FFmpeg supports Youtu

Re: [FFmpeg-user] How to download video stream starting at an earlier time?

2021-08-16 Thread Bo Berglund
nce both FireFox and Chrome are able to view the streams at earlier times, whereas download seems impossible. That is why I asked here if maybe ffmpeg itself would be able to... -- Bo Berglund Developer in Sweden ___ ffmpeg-user mailing list ffmpeg-

Re: [FFmpeg-user] How to download video stream starting at an earlier time?

2021-08-17 Thread Bo Berglund
t I need is a way to record earlier video that is still accessible in the stream (as shown in a browser). But that seems not possible using youtube-dl as the engine. And as I said before streamlink no longer works for this, so my script using that to get earlier parts is not operational. -- Bo

Re: [FFmpeg-user] How to download video stream starting at an earlier time?

2021-08-17 Thread Bo Berglund
these are able to rewind to earlier times when viewing these streams. So I thought there could be a way for ffmpg to also rewind the start time to an earlier point. But I am looking for a scripted solution that can be executed from the Linux command

Re: [FFmpeg-user] How to download video stream starting at an earlier time?

2021-08-18 Thread Bo Berglund
On Tue, 17 Aug 2021 16:37:38 +0200, Bo Berglund wrote: >Streamlink could do that until Youtube changed "something" in its protocol that >stopped that functionality. Now I checked back with streamlink and it seems like there is still a problem due to Youtube switching from hls

[FFmpeg-user] Can ffmpeg record video from this kind of URL?

2021-08-29 Thread Bo Berglund
ike this (obfuscated domain): https://hlss.somedomain.com/hls/186379.m3u8 This worked until they changed that webpage and removed the player... So now I would like to get the same system going on the newly found webpage shown above. Any ideas? -- Bo Berglund

Re: [FFmpeg-user] Can ffmpeg record video from this kind of URL?

2021-08-29 Thread Bo Berglund
me difference, I need to download for later viewing. So I have to wait until the original stream I have used is fixed. Thanks. -- Bo Berglund Developer in Sweden ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ff

Re: [FFmpeg-user] Can ffmpeg record video from this kind of URL?

2021-09-02 Thread Bo Berglund
n the script), but right now that only works if I detect that a problem has arisen and edit the crontab entry.. -- Bo Berglund Developer in Sweden ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user

[FFmpeg-user] How to use ffmpeg to detect commercials

2021-09-29 Thread Bo Berglund
video only containing the scenes with the logo? Or is there a different working way to do this? -- Bo Berglund Developer in Sweden ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit

Re: [FFmpeg-user] How to use ffmpeg to detect commercials

2021-09-30 Thread Bo Berglund
On Wed, 29 Sep 2021 09:45:43 +0200, Bo Berglund wrote: >I am recording news streams off of the Internet using an automated system >during >my nights so I can view them at daytime in my time zone. This works OK but... > >Is there a way to have ffmpeg detect where in the video co

Re: [FFmpeg-user] How to use ffmpeg to detect commercials

2021-09-30 Thread Bo Berglund
is located at (79%,84%) and the size is (16,4%, 11,9%) So ffmpeg/ffprobe should output a timestamp when the rect contains the logo and when it disappears again. Those two timestamps define the time the logo is on screen. Can it be done? -- Bo Berglund Developer in Sweden _

Re: [FFmpeg-user] How to use ffmpeg to detect commercials

2021-10-01 Thread Bo Berglund
On Thu, 30 Sep 2021 14:35:27 +0200, Bo Berglund wrote: >I searched similar questions and found this regarding blackdetect filter on >stackoverflow: >https://stackoverflow.com/questions/18722747/can-you-put-the-result-of-a-blackdetect-filter-in-a-textfile-using-ffmpeg/32757533#32757533 &

Re: [FFmpeg-user] Can ffmpeg record video from this kind of URL?

2021-11-03 Thread Bo Berglund
.mp4 some-youtube-stream-url And this causes youtube-dl to run for 64 minutes from when it was started and then cleanly close the video and exit. Not so with this one site, here youtube-dl will just abort the download and the xxx.part file remains and cannot be viewed. Is there any possibility

Re: [FFmpeg-user] Can ffmpeg record video from this kind of URL?

2021-11-04 Thread Bo Berglund
en https://vsd79.mycdn.me/hls/1146644400798.m3u8/sig/2d23M3cZ2y0/expires/1636093952300/srcIp/158.123.113.142/clientType/0/srcAg/CHROME/mid/2125507010206/1146644400798_high/index.m3u8: Server returned 403 Forbidden (access denied) -- Bo Berglund Developer in Sweden __

[FFmpeg-user] Can I set a "wait-timeout" for ffmpeg to not abort a stream download?

2021-11-14 Thread Bo Berglund
nload? Or else some other argument that can set an idle-timeout value to say 300 s or so, such that the video download is not aborted but instead just paused until the stream returns or when the -t argument has been reached? -- Bo Berglund Developer

Re: [FFmpeg-user] Can I set a "wait-timeout" for ffmpeg to not abort a stream download?

2021-11-14 Thread Bo Berglund
but for the aborts that do not happen on every download. Only about every 3rd is affected. So the referer and i arguments are in essence OK. -- Bo Berglund Developer in Sweden ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailm

Re: [FFmpeg-user] Can I set a "wait-timeout" for ffmpeg to not abort a stream download?

2021-11-15 Thread Bo Berglund
ection). Possibly the streaming site has some such problem -- Bo Berglund Developer in Sweden ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-

Re: [FFmpeg-user] Can I set a "wait-timeout" for ffmpeg to not abort a stream download?

2021-11-15 Thread Bo Berglund
On Mon, 15 Nov 2021 04:35:50 +, Carl Zwanzig wrote: >On 11/14/2021 10:56 PM, Bo Berglund wrote: >>> That would be answered if the original post contained the complete command >>> output... >>> >> Here you go (even though I was asking for the existence of

Re: [FFmpeg-user] Can I set a "wait-timeout" for ffmpeg to not abort a stream download?

2021-11-16 Thread Bo Berglund
the output is a *lot* when run in a terminal I assume Ubuntu will not keep all of it, at least not for very long, even if it is saved somewhere... -- Bo Berglund Developer in Sweden ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mail

Re: [FFmpeg-user] Can ffmpeg record video from this kind of URL?

2021-11-18 Thread Bo Berglund
{ggid}.m3u8"; And then I have used these for ffmpeg as follows: CMD="ffmpeg -hide_banner -user_agent \"Mozilla\" -i $VIDEOSTR -vf scale=w=-4:h=480 -c:v libx264 -preset fast -crf 26 -c:a copy -t $CAPTURETIME $TARGETFILE" eval $CMD

[FFmpeg-user] Concatenating video cuts - audio gets out of sync...

2021-12-15 Thread Bo Berglund
y out of sync at the paste point. Is there some way to modify the ffmpeg command such that the audio is not affected like this? Both clips play just fine without any lipsync problem, but the pasted video is several seconds (or possibly more) off. -- Bo Berglund Developer in Sweden _

Re: [FFmpeg-user] Concatenating video cuts - audio gets out of sync...

2021-12-15 Thread Bo Berglund
R variable refers to an m3u8 stream URL. -- Bo Berglund Developer in Sweden ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Concatenating video cuts - audio gets out of sync...

2021-12-17 Thread Bo Berglund
-c copy, but that makes the process much slower. Do you mean removing or exchange for something else? Can I keep the copy for video but re-encode for audio? Some ffmpeg command suggestion? -- Bo Berglund Developer in Sweden ___ ffmpeg-user mailing list

Re: [FFmpeg-user] Concatenating video cuts - audio gets out of sync...

2021-12-17 Thread Bo Berglund
aste point Can I modify the above command to ensure that audio gets a specific format like the video argument does? ( -vf scale=w=-4:h=480 -c:v libx264 -preset fast -crf 26 ) During the actual download there is time to do these things since it is ha

[FFmpeg-user] Getting m3u8 URL from SVTPlay channels?

2021-12-25 Thread Bo Berglund
se/kanaler/svt1?start=auto https://www.svtplay.se/kanaler/svt2?start=auto https://www.svtplay.se/kanaler/svt24?start=auto https://www.svtplay.se/kanaler/kunskapskanalen?start=auto These are the public Swedish TV channels. Is there a programmatic way to extract the m3u8 URL from these sites so it can b

Re: [FFmpeg-user] Getting m3u8 URL from SVTPlay channels?

2021-12-25 Thread Bo Berglund
On Sat, 25 Dec 2021 10:13:14 +0100, Bo Berglund wrote: >But yesterday I also wanted to download from the SVT_Play site and here the URL >extractor does not work... Thanks for all of your comments! I am now on a Christmas trip and will pursue your suggestions when I get back home later

Re: [FFmpeg-user] Getting m3u8 URL from SVTPlay channels?

2021-12-26 Thread Bo Berglund
ated for the other channels: - kunskapskanalen - svtbarn - svt24 which are the 3 other streaming channels SVT is using. And when asked *how* he had found the m3u8 URL I got a strange response with a browser screenshot which matches neither FireFox nor Chrome so I cannot follow it... -- Bo B

Re: [FFmpeg-user] Getting m3u8 URL from SVTPlay channels?

2021-12-26 Thread Bo Berglund
On Sun, 26 Dec 2021 21:10:05 +0100, Moritz Barsnick wrote: >On Sun, Dec 26, 2021 at 08:26:34 +0100, Bo Berglund wrote: >> 1) I already have several of the tools mentioned (ytube-dl, yt-dlp, >> svtplay-dl >> etc), but they did not manage to download the real-time streams

[FFmpeg-user] How to extract m3u8 stream URL from webpage with 2 players?

2022-01-07 Thread Bo Berglund
download starts by launching the extractor script via cron. -- Bo Berglund Developer in Sweden ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ

Re: [FFmpeg-user] How to extract m3u8 stream URL from webpage with 2 players?

2022-01-08 Thread Bo Berglund
On Fri, 07 Jan 2022 14:05:02 +0100, Bo Berglund wrote: >If I open the source page and use the F12 function key to activate browser >debug >mode I can see the stream URL for both players. >Right now they are: >#1 = https://hlss.goodgame.ru/hls/188429.m3u8 >#2 = https://29

Re: [FFmpeg-user] How to extract m3u8 stream URL from webpage with 2 players?

2022-01-08 Thread Bo Berglund
rom time to time breaking automation. But I *can* read it in the script. But since the other stream now has disappeared there is not much more to do... -- Bo Berglund Developer in Sweden ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.

Re: [FFmpeg-user] How to extract m3u8 stream URL from webpage with 2 players?

2022-01-08 Thread Bo Berglund
On Sat, 8 Jan 2022 16:51:07 +0100, Reino Wijnsma wrote: >On 2022-01-08T10:25:48+0100, Bo Berglund wrote: >> On Fri, 07 Jan 2022 14:05:02 +0100, Bo Berglund >> wrote: >>> If I open the source page and use the F12 function key to activate browser >>> debug >

Re: [FFmpeg-user] How to extract m3u8 stream URL from webpage with 2 players?

2022-01-09 Thread Bo Berglund
could be resolved since the same author had this also on his GitHub: https://github.com/benibela/internettools But then a bunch of other dependencies appeared which I decided were too much to hunt down. So I had to give up Too bad. -- Bo Berglund Developer in Sweden __

Re: [FFmpeg-user] How to extract m3u8 stream URL from webpage with 2 players?

2022-01-10 Thread Bo Berglund
of. Anyway from another thread about xidel I replied in: After trying to fix this I decided to search for binaries and found them here: https://sourceforge.net/projects/videlibri/files/Xidel/Xidel%200.9.8/ These I believe are all for PC style CP

Re: [FFmpeg-user] Removing parts of a video using the select filter

2022-01-10 Thread Bo Berglund
qu...@ffmpeg.org with subject "unsubscribe". Is top-posting and leaving all these quoted footers the prferred way on this list now? I do not think so -- Bo Berglund Developer in Sweden ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org

Re: [FFmpeg-user] How to extract m3u8 stream URL from webpage with 2 players?

2022-01-19 Thread Bo Berglund
On Mon, 10 Jan 2022 23:56:13 +0100, Reino Wijnsma wrote: >I don't know what you mean by "PC style CPU:s". >As you're on Ubuntu and assuming you're using modern hardware >you're probably looking for the linux64 binary. Not necessarily, I also have

[FFmpeg-user] How to get video duration in a script using ffmpeg?

2022-01-19 Thread Bo Berglund
the output. What do I need to just get that output I want? -- Bo Berglund Developer in Sweden ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg

Re: [FFmpeg-user] How to get video duration in a script using ffmpeg?

2022-01-19 Thread Bo Berglund
43:26.384000 Can the duration be limited to only seconds resolution (no decimals)? -- Bo Berglund Developer in Sweden ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above,

Re: [FFmpeg-user] How to get video duration in a script using ffmpeg?

2022-01-19 Thread Bo Berglund
On Wed, 19 Jan 2022 12:59:45 +0100, Bo Berglund wrote: >Thanks, this returns the following output: >0:43:26.384000 > >Can the duration be limited to only seconds resolution (no decimals)? > Turns out I found a simple way: CMD="ffprobe -v 0 -of compact=p=0:nk=1 -sexagesimal

Re: [FFmpeg-user] How to get video duration in a script using ffmpeg?

2022-01-19 Thread Bo Berglund
On Wed, 19 Jan 2022 18:26:21 +0530, Gyan Doshi wrote: > > >On 2022-01-19 05:29 pm, Bo Berglund wrote: >> On Wed, 19 Jan 2022 17:10:26 +0530, Gyan Doshi wrote: >> >>>> What do I need to just get that output I want? >>> The closest you can get is >&

Re: [FFmpeg-user] [EXTERNAL] Re: How to get video duration in a script using ffmpeg?

2022-01-19 Thread Bo Berglund
3... But the ffprobe suggestions if done right works fine for me. -- Bo Berglund Developer in Sweden ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ff

Re: [FFmpeg-user] How to get video duration in a script using ffmpeg?

2022-01-20 Thread Bo Berglund
n output... Have to add | tail -n 1 to the end to get one item only. I think the ffprobe solution is what I'd choose, does not require installing any additional program too. -- Bo Berglund Developer in Sweden ___ ffmpeg-user mailing list ffm

[FFmpeg-user] How to properly pasting same-size video parts together into one output?

2022-01-25 Thread Bo Berglund
s here. I would like to create a paste script that can handle these situations when the existing script using the command on top does not work. The existing paste script is very fast but it does not re-encode anything, I believe. Any suggestions welcome. -- Bo Berglund Developer in Sweden _

Re: [FFmpeg-user] How to properly pasting same-size video parts together into one output?

2022-01-25 Thread Bo Berglund
On Tue, 25 Jan 2022 15:11:41 +0500, Nikita Zlobin wrote: >I would try separate separate concats for audio and video, >as they are demuxed anyway before filtergraph. > Hmm, what exactly do you mean by this suggestion? An example, perhaps? -- Bo Berglund Developer

Re: [FFmpeg-user] How to properly pasting same-size video parts together into one output?

2022-01-25 Thread Bo Berglund
bytes input2.mp4 =53,629,084 bytes 1.mpg is = 930,535,424 bytes 2.mpg is = 385,169,408 bytes output.mp4 = 1,095,027,291 bytes Is there a way to reduce the size of the final mp4 too? -- Bo Berglund Developer in Sweden ___ ffmpeg-user mailing

Re: [FFmpeg-user] How to properly pasting same-size video parts together into one output?

2022-01-25 Thread Bo Berglund
On Tue, 25 Jan 2022 12:00:53 +0100, Bo Berglund wrote: >So far so good, now the remaining problem I have is that the file size is blown >up considerably.. > >input1.mp4 =98,302,009 bytes >input2.mp4 =53,629,084 bytes >1.mpg is = 930,535,424 bytes >2.mpg is

Re: [FFmpeg-user] Error while hardcoding subtitles (Invalid object location)

2022-01-27 Thread Bo Berglund
this command line (but that may only be me). Docs: https://ffmpeg.org/ffmpeg-all.html#toc-mpegts-1 -- Bo Berglund Developer in Sweden ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user

Re: [FFmpeg-user] Can ffmpeg record video from this kind of URL?

2022-03-04 Thread Bo Berglund
On Sat, 9 Oct 2021 03:23:52 +0300, Anatoly wrote: >On Thu, 07 Oct 2021 10:27:51 +0200 >Bo Berglund wrote: > >> On Wed, 1 Sep 2021 16:30:00 +0300, anat...@kazanfieldhockey.ru wrote: >> >> >Right, you need m3u8. >> >F12->Network->Enter "m3u

Re: [FFmpeg-user] Can ffmpeg record video from this kind of URL?

2022-03-11 Thread Bo Berglund
On Mon, 7 Mar 2022 00:46:16 +0100, Reino Wijnsma wrote: >On 2022-03-04T18:47:26+0100, Bo Berglund wrote: >> https://msnbcdailyshows.com/ >> >> and the m3u8 URL I find if I use F12 in the browser when it plays: >> >> https://cdn.plt.one/cdn/premium327/chunks.m3u8

Re: [FFmpeg-user] Can ffmpeg record video from this kind of URL?

2022-03-15 Thread Bo Berglund
On Sun, 13 Mar 2022 15:50:47 +0100, Reino Wijnsma wrote: >On 2022-03-11T18:24:46+0100, Bo Berglund wrote: >> Right now I could not find mention of "youtube" or even "yo" on the "view >> source" page... >> And using F12 to sh

[FFmpeg-user] How can I extract m3u8 URL for use with ffmpeg on this site?

2022-04-07 Thread Bo Berglund
28480543/tracks-v1a1/mono.m3u8 -- Bo Berglund Developer in Sweden ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] How can I extract m3u8 URL for use with ffmpeg on this site?

2022-04-11 Thread Bo Berglund
On Sat, 9 Apr 2022 13:14:18 +0200, Reino Wijnsma wrote: >On 2022-04-07T18:48:06+0200, Bo Berglund wrote: >> I want to get hold of the m3u8 URL on this site > >You do realize this is the FFmpeg mailinglist, right? This question has >nothing to do with FFmpeg. >If you wa

Re: [FFmpeg-user] How can I extract m3u8 URL for use with ffmpeg on this site?

2022-04-11 Thread Bo Berglund
ot;:string-to-base64Binary( > extract(//meta[@property="og:image"]/@content,"([a-z_]+)\.jpg",1) >), > > "ch":"http://www.freeintertv.com/externals/tv-russia/smotret-tv3-online";, >"html5":"11" &

Re: [FFmpeg-user] How can I extract m3u8 URL for use with ffmpeg on this site?

2022-04-11 Thread Bo Berglund
called with a specific timeout so when I used that a few years back I had to use the timeout function in order to make it stop at the wanted time: timeout --signal=2 67m But that does not work with yt-dlp, which is not able to download live streams. >Hope this answers your question Unfortunat

Re: [FFmpeg-user] How can I extract m3u8 URL for use with ffmpeg on this site?

2022-04-12 Thread Bo Berglund
w.freeintertv.com/externals/tv-russia/smotret-tv3-online","html5":"11"})/substring(url,2),"url":"http://www.freeintertv.com/myAjax/get_item_m3u8/"})/extract(raw,"http.+m3u8")' output is this m3u8: http://livedoc.cgtn.com/500d/prog_

Re: [FFmpeg-user] How can I extract m3u8 URL for use with ffmpeg on this site?

2022-04-12 Thread Bo Berglund
net/hls/live/723429/NBCNewsNowa418c506/clear/hdntl=exp=1649865178~acl=%2f*~data=hdntl~hmac=5480897632ddf98d23bf870098333af5055752c54d28764b8c894711086d1266/VIDEO_1_4596000.m3u8 -- Bo Berglund Developer in Sweden ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] How can I extract m3u8 URL for use with ffmpeg on this site?

2022-04-12 Thread Bo Berglund
On Tue, 12 Apr 2022 17:54:32 +0200, Bo Berglund wrote: > >Anyway, the command above used with the latest xidel yields an erroneous URL >for >the 2565 video: >http://livedoc.cgtn.com/500d/prog_index.m3u8 >This is for a documentary site with wildlife footage. No MSNBC anywhe

Re: [FFmpeg-user] How can I extract m3u8 URL for use with ffmpeg on this site?

2022-04-13 Thread Bo Berglund
On Wed, 13 Apr 2022 01:42:39 +0200, Reino Wijnsma wrote: >As the videostream doesn't work here, you're on your own on this one. For me it works on both Firefox and Chrome... What browser are you using? >On 2022-04-12T17:54:32+0200, Bo Berglund wrote: >> Anyway, the comma

Re: [FFmpeg-user] How can I extract m3u8 URL for use with ffmpeg on this site?

2022-04-14 Thread Bo Berglund
t test with a new set of at jobs for a couple of hours. It seems like I have found a "golden" URL by chance! Previous testing showed that even a 2+ hour old URL from FireFox did not work for the actual show download. I hope this URL will stay operational for at least a day or so. Coul

Re: [FFmpeg-user] How can I extract m3u8 URL for use with ffmpeg on this site?

2022-04-14 Thread Bo Berglund
> doc("http://www.freeintertv.com/view/id-2565";)//meta[@property="og:image"]/ > extract(@content,"([a-z_]+)\.jpg",1) >), > > "ch":"http://www.freeintertv.com/externals/tv-russia/smotret-tv3-online&qu

Re: [FFmpeg-user] How can I extract m3u8 URL for use with ffmpeg on this site?

2022-04-14 Thread Bo Berglund
On Thu, 14 Apr 2022 10:26:56 +0200, Bo Berglund wrote: >Surprise! >All of these small downloads completed and if I test now it still works! >So I have expanded that test with a new set of at jobs for a couple of hours. > >It seems like I have found a "golden" URL by ch

  1   2   >