[FFmpeg-user] How to copy MP3 320 bps frames?

2025-06-29 Thread Ulf Zibis
Hi, when i use the lame encoder to transcode a 320 bps mp3 to VBR, I can see, that some percentage of frames is encoded to 320 bps frames, so these frames seem to contain important data  : $ lame -V1 in.mp3 out.mp3 LAME 3.100 64bits (http://lame.sf.net) Using polyphase lowpass filter, transiti

Re: [FFmpeg-user] How can I burn-in the TRUE TIME timestamp OR SUBTITLES? from AVCHD/MTS video?

2025-04-04 Thread BloodMan
Hi Jesse, W dniu 2025-04-04 o 20:11, Jesse Gordon pisze: Good Morning BloodMan and Everybody! (Not yet solved, getting closer!) https://video.stackexchange.com/questions/35917/ffmpeg-how-to-burn-in-the-timecode-from-a-streams-metadata Thank you for the tips! This is getting close, but in my cas

Re: [FFmpeg-user] How can I burn-in the timestamp from AVCHD/MTS video?

2025-04-04 Thread Reino Wijnsma
Hello Jesse, On 2025-04-04T06:15:40+0200, Jesse Gordon wrote: ffmpeg -i 0.MTS -vf "drawtext=fontsize=60:fontcolor=black:text='%{pts\:gmtime}':x=(w-text_w):y=(h-text_h)" -acodec mp3 -y output.mp4 And that almost works, but it starts the date at "1970-01-01 00:00:00" and counts up. I thin

Re: [FFmpeg-user] How can I burn-in the TRUE TIME timestamp OR SUBTITLES? from AVCHD/MTS video?

2025-04-04 Thread Jesse Gordon
Good Morning BloodMan and Everybody! (Not yet solved, getting closer!) https://video.stackexchange.com/questions/35917/ffmpeg-how-to-burn-in-the-timecode-from-a-streams-metadata Thank you for the tips! This is getting close, but in my case it always just displays "00:00:00:00" because, accor

Re: [FFmpeg-user] How can I burn-in the TRUE TIME timestamp from AVCHD/MTS video?

2025-04-04 Thread BloodMan
Good morning Jesse, W dniu 2025-04-04 o 18:37, Jesse Gordon pisze: I'm trying to burn-in the TRUE time that the video was actually recorded -- i.e. "2025-04-03 12:45:32.123" -- the camera records the true date and time and both the camera AND ffplay display it during playback as a text overlay

Re: [FFmpeg-user] How can I burn-in the TRUE TIME timestamp from AVCHD/MTS video?

2025-04-04 Thread Jesse Gordon
Hello Reino, and Everybody, (Still unsolved) I think https://stackoverflow.com/a/67409424/2703456 can help you out on this one. Thank you so much for the quick response! I have updated the subject line: I'm trying to burn-in the TRUE time that the video was actually recorded -- i.e. "2025-0

[FFmpeg-user] How can I burn-in the timestamp from AVCHD/MTS video?

2025-04-04 Thread Jesse Gordon
Good Day, I got an older Sony handycam that makes 0.MTS type files. It does record the date and time in them, which it can optionally display during playback. And ffplay also displays the correct date and time as a text overlay while vlc does not and youtube does not show the timestamp.

Re: [FFmpeg-user] How to cut a clip from video with subtitles?

2025-02-17 Thread Moritz Barsnick via ffmpeg-user
On Sat, Feb 15, 2025 at 14:17:42 +0100, Ferdi Scholten wrote: > On 15-02-2025 13:25, mb...@mbork.pl wrote: > > time ffmpeg -y -i some_film.mp4 -i some_film.srt -ss 121052ms -to 140392ms > > -c:v libx264 -vf scale=240:-1 -c:a copy -c:s mov_text clip.mp4 > > > > but it didn't work - the clip was sel

Re: [FFmpeg-user] How to cut a clip from video with subtitles?

2025-02-15 Thread Ferdi Scholten
On 15-02-2025 13:25, mb...@mbork.pl wrote: Hi all, I have a video with subtitles (as an srt file). I want to clip a fragment from it, scaling it down to a worse resolution, _and_ put the subtitles in the resulting clip. This is how I do it now: time ffmpeg -y -i some_film.mp4 -ss 121052ms -to

[FFmpeg-user] How to cut a clip from video with subtitles?

2025-02-15 Thread mbork
Hi all, I have a video with subtitles (as an srt file). I want to clip a fragment from it, scaling it down to a worse resolution, _and_ put the subtitles in the resulting clip. This is how I do it now: time ffmpeg -y -i some_film.mp4 -ss 121052ms -to 140392ms -c:v libx264 -c:a copy -vf subtitl

[FFmpeg-user] how to put DTS to mp4

2025-01-17 Thread KoSza
Hello, I am going forward with my imagined workflow but now I faced a new problem: how to put DTS to mp4. I tried some possibilities wich I found but nothing happened. What is the exact way for it? Thank you, kosza ___ ffmpeg-user mailing list ffmpeg-u

Re: [FFmpeg-user] How to display web pages to a videowall

2025-01-09 Thread Carl Zwanzig
On 1/9/2025 3:34 AM, Gennaro Esposito wrote: My company has a video wall whose decoder is essentially designed only for cameras, so the only devices it can view, via IP, are those with "protocols" like RTSP or Onvif. It also has 4 HMDI/DVI ports to view any "normal" graphic output The protocols

Re: [FFmpeg-user] How to display web pages to a videowall

2025-01-09 Thread German Geraskin
The simple answer is YES, but not directly (as far as I know). I use CasparCG with HTML producer and FFmpeg consumer for these purposes. https://github.com/CasparCG/help/wiki/Server чт, 9 янв. 2025 г. в 13:34, Gennaro Esposito : > > Greetings > > My company has a video wall whose decoder is essen

[FFmpeg-user] How to display web pages to a videowall

2025-01-09 Thread Gennaro Esposito
Greetings My company has a video wall whose decoder is essentially designed only for cameras, so the only devices it can view, via IP, are those with "protocols" like RTSP or Onvif. It also has 4 HMDI/DVI ports to view any "normal" graphic output (btw: it's a Dahua NVD0905DH-4I-4K,  but the d

Re: [FFmpeg-user] how

2024-12-19 Thread Carl Zwanzig
On 12/19/2024 8:18 PM, Josh Mulligan wrote: hi hello i am sorry for your troubles i am not a ffmpreg worker i use it to eddit my animations and file and save them properly i understand that this can be complicated but can i ask how did u get my email because i keep getting messages like this and

[FFmpeg-user] how

2024-12-19 Thread Josh Mulligan
hi hello i am sorry for your troubles i am not a ffmpreg worker i use it to eddit my animations and file and save them properly i understand that this can be complicated but can i ask how did u get my email because i keep getting messages like this and i dont entirely remember giving concent to spr

[FFmpeg-user] How can I extract the last few seconds of a GoPro video losslessly with FFmpeg so that it keeps telemetry info and keeps the original stream order?

2024-12-08 Thread Franck Dernoncourt
I want to extract the last few seconds of a GoPro video losslessly with FFmpeg so that it keeps telemetry info and keeps the original stream order. A GoPro video has 4 streams, in that order: 1. Stream #0:0[0x1](eng): Video 2. Stream #0:1[0x2](eng): Audio 3. Stream #0:2[0x3](eng): Data:

Re: [FFmpeg-user] How to retain correct frame order when concatenating?

2024-10-29 Thread Flopsy
On 30/10/2024 5:25 am, Terje J. Hanssen wrote: Have you simply tried cat 001.mkv 002.mkv > 001+002.mkv Thanks for the idea. That concatenates the files, not the video streams, though ffmpeg/ffprobe seems to recognise it regardless. Unfortunately, ffprobe still shows the frames out of orde

Re: [FFmpeg-user] How to retain correct frame order when concatenating?

2024-10-29 Thread Terje J. Hanssen
Den 29.10.2024 14:15, skrev Flopsy: On 29/10/2024 10:46 pm, Bouke / edit 'B wrote: Smells like someone is soring by alphabet. Test it yourself after renaming the files 0001.mkv and 0002.mkv See what happens then. Thanks for the suggestion! I gave that a try, unfortunately it didn't make

Re: [FFmpeg-user] How to retain correct frame order when concatenating?

2024-10-29 Thread Bouke / edit 'B
> On 29 Oct 2024, at 14:15, Flopsy wrote: > > On 29/10/2024 10:46 pm, Bouke / edit 'B wrote: >> Smells like someone is soring by alphabet. >> >> Test it yourself after renaming the files 0001.mkv and 0002.mkv >> See what happens then. > > Thanks for the suggestion! > > I gave that a try, unfo

Re: [FFmpeg-user] How to retain correct frame order when concatenating?

2024-10-29 Thread Flopsy
On 29/10/2024 10:46 pm, Bouke / edit 'B wrote: Smells like someone is soring by alphabet. Test it yourself after renaming the files 0001.mkv and 0002.mkv See what happens then. Thanks for the suggestion! I gave that a try, unfortunately it didn't make any difference. Even tried reversing the

[FFmpeg-user] How to retain correct frame order when concatenating?

2024-10-29 Thread Flopsy
Hi! I'm trying to concatenate these two single frame videos [https://files.catbox.moe/v85pqy.zip], but they always end up in the wrong order. I've tried with the following command: ffmpeg -y -f concat -i filelist.txt -c copy outf.mkv ...where filelist.txt contains: file '0012890a_9680.m

Re: [FFmpeg-user] How to retain correct frame order when concatenating?

2024-10-29 Thread Bouke / edit 'B
> On 29 Oct 2024, at 13:39, Flopsy wrote: > > Hi! > > I'm trying to concatenate these two single frame videos > [https://files.catbox.moe/v85pqy.zip], but they always end up in the wrong > order. > > I've tried with the following command: > >> ffmpeg -y -f concat -i filelist.txt -c copy out

Re: [FFmpeg-user] How to resume ffmpeg vmaf evaluation from point in time

2024-10-25 Thread Carl Zwanzig
On 10/15/2024 4:42 AM, tarun singhal wrote: What happens is often while vmaf is about to finish someone merges code and it kills the old pod in which case I end up restarting the entire process again. Is there a way in ffmpeg world where I can keep a track of how much vmaf is done and resume fro

Re: [FFmpeg-user] How does ffmpeg decides how many threads to use for vmaf

2024-10-22 Thread tarun singhal
On Tue, 22 Oct 2024 at 21:54, Srikanth Kotagiri wrote: > On Mon, Oct 21, 2024 at 11:39 PM tarun singhal > wrote: > > > I have specified thread count as 32 > > > > For 20 min video duration - I was able to get 1x speed > > > > But for 2.2hr video duration it took 12 hrs, hence lesser speed using

Re: [FFmpeg-user] How does ffmpeg decides how many threads to use for vmaf

2024-10-22 Thread Srikanth Kotagiri
On Mon, Oct 21, 2024 at 11:39 PM tarun singhal wrote: > I have specified thread count as 32 > > For 20 min video duration - I was able to get 1x speed > > But for 2.2hr video duration it took 12 hrs, hence lesser speed using same > ffmpeg command and same underlying infrastructure > > > Hence I a

[FFmpeg-user] How does ffmpeg decides how many threads to use for vmaf

2024-10-21 Thread tarun singhal
I have specified thread count as 32 For 20 min video duration - I was able to get 1x speed But for 2.2hr video duration it took 12 hrs, hence lesser speed using same ffmpeg command and same underlying infrastructure Hence I am curious, What are the factors which helps ffmpeg decide how many thr

[FFmpeg-user] How to resume ffmpeg vmaf evaluation from point in time

2024-10-15 Thread tarun singhal
Hi Team, I have 3-hour long video on which I run VMAF evaluation against its transcoded version. and generally, it takes 5-6 hr to finish. I am running these on kubernetes pods. I have a continuous deployment pipeline. What happens is often while vmaf is about to finish someone merges code

Re: [FFmpeg-user] How to download and transcode video stream to mp4 and save the TS stream to file at the same time?

2024-09-30 Thread Ferdi Scholten
On 30-09-2024 18:03, Bo Berglund wrote: On Mon, 30 Sep 2024 20:36:04 +0530, Gyan Doshi wrote: On 2024-09-30 05:46 pm, Bo Berglund wrote: On Mon, 30 Sep 2024 13:40:44 +0530, Gyan Doshi wrote: On 2024-09-30 01:34 pm, Bo Berglund wrote: I checked with CharGPT and got the following: [quo

Re: [FFmpeg-user] How to download and transcode video stream to mp4 and save the TS stream to file at the same time?

2024-09-30 Thread Bo Berglund
On Mon, 30 Sep 2024 20:36:04 +0530, Gyan Doshi wrote: > > >On 2024-09-30 05:46 pm, Bo Berglund wrote: >> On Mon, 30 Sep 2024 13:40:44 +0530, Gyan Doshi wrote: >> >>> >>> On 2024-09-30 01:34 pm, Bo Berglund wrote: I checked with CharGPT and got the following: [quote] The hybri

Re: [FFmpeg-user] How to download and transcode video stream to mp4 and save the TS stream to file at the same time?

2024-09-30 Thread Gyan Doshi
On 2024-09-30 05:46 pm, Bo Berglund wrote: On Mon, 30 Sep 2024 13:40:44 +0530, Gyan Doshi wrote: On 2024-09-30 01:34 pm, Bo Berglund wrote: I checked with CharGPT and got the following: [quote] The hybrid_fragmented flag was added to FFmpeg in version 6.0, released on June 5, 2024. This

Re: [FFmpeg-user] How to download and transcode video stream to mp4 and save the TS stream to file at the same time?

2024-09-30 Thread Bo Berglund
On Mon, 30 Sep 2024 13:40:44 +0530, Gyan Doshi wrote: > > >On 2024-09-30 01:34 pm, Bo Berglund wrote: >> I checked with CharGPT and got the following: >> >> [quote] >> The hybrid_fragmented flag was added to FFmpeg in version 6.0, released on >> June >> 5, 2024. This feature allows for the creat

Re: [FFmpeg-user] How to download and transcode video stream to mp4 and save the TS stream to file at the same time?

2024-09-30 Thread Gyan Doshi
On 2024-09-30 01:34 pm, Bo Berglund wrote: I checked with CharGPT and got the following: [quote] The hybrid_fragmented flag was added to FFmpeg in version 6.0, released on June 5, 2024. This feature allows for the creation of hybrid fragmented/non-fragmented MP4 files, which can be useful for

Re: [FFmpeg-user] How to download and transcode video stream to mp4 and save the TS stream to file at the same time?

2024-09-30 Thread Bo Berglund
On Mon, 30 Sep 2024 07:55:54 +0200, Bo Berglund wrote: >Basic install question on Linux: > >If one wants to get to the latest version of ffmpeg and it is not provided by >the Linux distribution used, how can one upgrade to it? I checked with CharGPT and got the following: [quote] The hybrid_fra

Re: [FFmpeg-user] How to download and transcode video stream to mp4 and save the TS stream to file at the same time?

2024-09-29 Thread Carlos E. R.
On 2024-09-29 21:59, Bo Berglund wrote: I have created a script that downloads Internet video streams (basically news programs) and transcodes to mp4 format with a fixed windows size. As soon as the video stream recording ends the mp4 file can be played. I wonder if there is a way to let ffmpeg

Re: [FFmpeg-user] How to download and transcode video stream to mp4 and save the TS stream to file at the same time?

2024-09-29 Thread Ferdi Scholten
On 30-09-2024 07:55, Bo Berglund wrote: On Mon, 30 Sep 2024 09:49:34 +0530, Gyan Doshi wrote: On 2024-09-30 01:29 am, Bo Berglund wrote: I have created a script that downloads Internet video streams (basically news programs) and transcodes to mp4 format with a fixed windows size. As soon

Re: [FFmpeg-user] How to download and transcode video stream to mp4 and save the TS stream to file at the same time?

2024-09-29 Thread Bo Berglund
On Mon, 30 Sep 2024 09:49:34 +0530, Gyan Doshi wrote: > > >On 2024-09-30 01:29 am, Bo Berglund wrote: >> I have created a script that downloads Internet video streams (basically news >> programs) and transcodes to mp4 format with a fixed windows size. >> As soon as the video stream recording ends

Re: [FFmpeg-user] How to download and transcode video stream to mp4 and save the TS stream to file at the same time?

2024-09-29 Thread Srikanth Kotagiri
On Sun, Sep 29, 2024 at 9:19 PM Gyan Doshi wrote: > > > On 2024-09-30 01:29 am, Bo Berglund wrote: > > I have created a script that downloads Internet video streams (basically > news > > programs) and transcodes to mp4 format with a fixed windows size. > > As soon as the video stream recording en

Re: [FFmpeg-user] How to download and transcode video stream to mp4 and save the TS stream to file at the same time?

2024-09-29 Thread Gyan Doshi
On 2024-09-30 01:29 am, Bo Berglund wrote: I have created a script that downloads Internet video streams (basically news programs) and transcodes to mp4 format with a fixed windows size. As soon as the video stream recording ends the mp4 file can be played. I wonder if there is a way to let f

[FFmpeg-user] How to download and transcode video stream to mp4 and save the TS stream to file at the same time?

2024-09-29 Thread Bo Berglund
I have created a script that downloads Internet video streams (basically news programs) and transcodes to mp4 format with a fixed windows size. As soon as the video stream recording ends the mp4 file can be played. I wonder if there is a way to let ffmpeg do two things at the same time: - download

Re: [FFmpeg-user] How to reduce console output while downloading video stream?

2024-09-26 Thread Ferdi Scholten
On Thu, 26 Sep 2024 10:06:11 +0200, Bo Berglund wrote: On Thu, 26 Sep 2024 08:50:01 +0200, Ferdi Scholten wrote: How can I reduce this to only show some progress messages without all this noise? Is there a verbocity setting I can use? My download script reformats the video output on the go t

Re: [FFmpeg-user] How to reduce console output while downloading video stream?

2024-09-26 Thread Bo Berglund
On Thu, 26 Sep 2024 10:06:11 +0200, Bo Berglund wrote: >On Thu, 26 Sep 2024 08:50:01 +0200, Ferdi Scholten wrote: > >>> How can I reduce this to only show some progress messages without all this >>> noise? >>> Is there a verbocity setting I can use? >>> >>> My download script reformats the video

Re: [FFmpeg-user] How to reduce console output while downloading video stream?

2024-09-26 Thread Bo Berglund
On Thu, 26 Sep 2024 08:50:01 +0200, Ferdi Scholten wrote: >> How can I reduce this to only show some progress messages without all this >> noise? >> Is there a verbocity setting I can use? >> >> My download script reformats the video output on the go to a specific size >> such >> that it can be

Re: [FFmpeg-user] How to reduce console output while downloading video stream?

2024-09-25 Thread Ferdi Scholten
When downloading a live stream on Linux using ffmpeg I get a lot of noise on the screen like: [hls @ 0x17859d0] Skip ('#EXT-X-VERSION:3') [https @ 0x1a03eb0] Opening 'https://somesite.com/stream/bc-1727330916096.ts' for reading frame= 628 fps= 41 q=32.0 size=1280kB time=00:00:20.99 bitrate=

[FFmpeg-user] How to reduce console output while downloading video stream?

2024-09-25 Thread Bo Berglund
When downloading a live stream on Linux using ffmpeg I get a lot of noise on the screen like: [hls @ 0x17859d0] Skip ('#EXT-X-VERSION:3') [https @ 0x1a03eb0] Opening 'https://somesite.com/stream/bc-1727330916096.ts' for reading frame= 628 fps= 41 q=32.0 size=1280kB time=00:00:20.99 bitrate= 4

Re: [FFmpeg-user] How to reassemble raw packet data back into a new MP4 file?

2024-09-22 Thread Vincent Deconinck
> I have tried the following commands > > ffmpeg -err_detect ignore_err -i old.mp4 -c copy new.mp4 > ... > [mov,mp4,m4a,3gp,3g2,mj2 @ 00158b00] stream 1, contradictionary STSC and > STCO > [mov,mp4,m4a,3gp,3g2,mj2 @ 00158b00] error reading header Hmm, I see. Maybe one last "cheap" attempt: if yo

Re: [FFmpeg-user] How to reassemble raw packet data back into a new MP4 file?

2024-09-22 Thread Alan Chen via ffmpeg-user
Thank you but it produces the same result as before. I have tried the following commands ffmpeg -err_detect ignore_err -i old.mp4 -c copy new.mp4 ffmpeg -i old.mp4 -map 0:v -c copy video_only.mp4 ffmpeg -i old.mp4 -map 0:a -c copy audio_only.aac ffmpeg -i old.mp4 -fflags +genpts -c copy new.mp

Re: [FFmpeg-user] How to reassemble raw packet data back into a new MP4 file?

2024-09-22 Thread Ferdi Scholten
Hi, Vincent, Thank you for your suggestion. Let me explain the real case: I have many MP4 files which lost some data in the tail, which make them not playable. I analyze these files manually and find the ftyp and moov boxes and their child boxes are all OK. But part of the data in mdat box are l

Re: [FFmpeg-user] How to reassemble raw packet data back into a new MP4 file?

2024-09-22 Thread Alan Chen via ffmpeg-user
Hi, Gia Thank you very much. The only issue is that the tool needs a similar video to fix the truncated one. For most of the cases, it is rather difficult to do so. So I still hope to be able to reassemble a new MP4 with all the existing boxes and packets in the original MP4 without a reference,

Re: [FFmpeg-user] How to reassemble raw packet data back into a new MP4 file?

2024-09-22 Thread Gia Ferrari
On 9/22/24 09:22, Alan Chen via ffmpeg-user wrote: > Hi, Vincent, > > Thank you for your suggestion. > > Let me explain the real case: I have many MP4 files which lost some data in > the tail, > which make them not playable. I analyze these files manually and find the > ftyp and > moov

Re: [FFmpeg-user] How to reassemble raw packet data back into a new MP4 file?

2024-09-22 Thread Alan Chen via ffmpeg-user
Hi, Vincent, Thank you for your suggestion. Let me explain the real case: I have many MP4 files which lost some data in the tail, which make them not playable. I analyze these files manually and find the ftyp and moov boxes and their child boxes are all OK. But part of the data in mdat box are lo

Re: [FFmpeg-user] How to reassemble raw packet data back into a new MP4 file?

2024-09-21 Thread Vincent Deconinck
> > In that case, what are some video editor software does with the videos? > They can cut some frames from the original video and create a new MP4 file. > Are these software just decode and uncompress everything, then remove some > frames, then re-encode and re-compress the remaining video? > Tha

Re: [FFmpeg-user] How to reassemble raw packet data back into a new MP4

2024-09-21 Thread Alan Chen via ffmpeg-user
> > > > > So, how to reassemble the raw packet data back to a new MP4 file? > > That's not possible in general, because your raw packets do not > contain sufficient information to create an MP4 file. > > I suggest that you explain why you are actually doing all of that. > What is the purpose, what

Re: [FFmpeg-user] How to reassemble raw packet data back into a new MP4 file?

2024-09-21 Thread Alan Chen via ffmpeg-user
Thank you. In that case, what are some video editor software does with the videos? They can cut some frames from the original video and create a new MP4 file. Are these software just decode and uncompress everything, then remove some frames, then re-encode and re-compress the remaining video? ___

Re: [FFmpeg-user] How to reassemble raw packet data back into a new MP4

2024-09-21 Thread Oliver Fromme
Alan Chen via ffmpeg-user wrote: > ffprobe -print_format json -show_packets -show_streams -show_entries > packet=pts,duration,size,codec_type,pos test.mp4 > test.mp4.info You need to provide more information. What are the contents of test.mp4? What codecs? > I extract the raw data of the pack

Re: [FFmpeg-user] How to reassemble raw packet data back into a new MP4 file?

2024-09-21 Thread Ferdi Scholten
On 21-09-2024 12:32, Alan Chen via ffmpeg-user wrote: What I remove is the last video and audio packet in each stream. All the meta data are still there, together with all remaining packet data as separate files. But I don't know how to utilize them in the commandline to reassemble the packets

Re: [FFmpeg-user] How to reassemble raw packet data back into a new MP4 file?

2024-09-21 Thread Alan Chen via ffmpeg-user
What I remove is the last video and audio packet in each stream. All the meta data are still there, together with all remaining packet data as separate files. But I don't know how to utilize them in the commandline to reassemble the packets. ___ ffmpeg-us

Re: [FFmpeg-user] How to reassemble raw packet data back into a new MP4 file?

2024-09-21 Thread Ferdi Scholten
On 21-09-2024 10:57, Alan Chen via ffmpeg-user wrote: I try on another MP4 file with H264 codec video, but still get the same result. ___ Your file needs to conform to te specifications in either part 12 and/or 14 of the standard in which the .MP4

Re: [FFmpeg-user] How to reassemble raw packet data back into a new MP4 file?

2024-09-21 Thread Alan Chen via ffmpeg-user
I try on another MP4 file with H264 codec video, but still get the same result. ___ 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 reassemble raw packet data back into a new MP4 file?

2024-09-21 Thread Ferdi Scholten
On 21-09-2024 04:39, Alan Chen via ffmpeg-user wrote: I am using ffmpeg. I use the following command to get all packet info: ffprobe -print_format json -show_packets -show_streams -show_entries packet=pts,duration,size,codec_type,pos test.mp4 > test.mp4.info Then based on each packet info, suc

[FFmpeg-user] How to reassemble raw packet data back into a new MP4 file?

2024-09-20 Thread Alan Chen via ffmpeg-user
I am using ffmpeg. I use the following command to get all packet info: ffprobe -print_format json -show_packets -show_streams -show_entries packet=pts,duration,size,codec_type,pos test.mp4 > test.mp4.info Then based on each packet info, such as the one below: { "codec_type":

Re: [FFmpeg-user] How to you prevent ffmpeg from stopping when

2024-09-14 Thread Oliver Fromme
Dan Naughton wrote: > ffmpeg mjpeg streaming is working (VLC tested as a client) > > This is the command: > ffmpeg -stream_loop -1 -re -i file.mjpeg -an -c copy -listen 1 -f mpjpeg > http://192.168.1.7:8080 > > But when the client closed the connection - ffmpeg exits: > [...] > Is ther

[FFmpeg-user] How to you prevent ffmpeg from stopping when streaming and the client closes connection

2024-09-13 Thread Dan Naughton
ffmpeg mjpeg streaming is working (VLC tested as a client) This is the command: ffmpeg -stream_loop -1 -re -i file.mjpeg -an -c copy -listen 1 -f mpjpeg http://192.168.1.7:8080 But when the client closed the connection - ffmpeg exits: Press [q] to stop, [?] for help [vost#0:0/copy @ 0x55aa2a61f

Re: [FFmpeg-user] How chrRangeToJpeg_c() works?

2024-09-12 Thread Andrew Randrianasulu
пн, 9 сент. 2024 г., 23:19 Andrew Randrianasulu : > > > пн, 9 сент. 2024 г., 23:04 Andrew Randrianasulu : > >> >> >> пн, 9 сент. 2024 г., 18:06 Andrew Randrianasulu > >: >> >>> Looking at libswscale/swscale.c (due to >>> https://trac.ffmpeg.org/ticket/11182#comment:5) I do not understand >>> how i

Re: [FFmpeg-user] How chrRangeToJpeg_c() works?

2024-09-09 Thread Andrew Randrianasulu
пн, 9 сент. 2024 г., 23:04 Andrew Randrianasulu : > > > пн, 9 сент. 2024 г., 18:06 Andrew Randrianasulu : > >> Looking at libswscale/swscale.c (due to >> https://trac.ffmpeg.org/ticket/11182#comment:5) I do not understand >> how it works :) >> >> why shits to 11 and to 12 ? >> >> // FIXME all pal

Re: [FFmpeg-user] How chrRangeToJpeg_c() works?

2024-09-09 Thread Andrew Randrianasulu
пн, 9 сент. 2024 г., 18:06 Andrew Randrianasulu : > Looking at libswscale/swscale.c (due to > https://trac.ffmpeg.org/ticket/11182#comment:5) I do not understand > how it works :) > > why shits to 11 and to 12 ? > > // FIXME all pal and rgb srcFormats could do this conversion as well > // FIXME al

[FFmpeg-user] How chrRangeToJpeg_c() works?

2024-09-09 Thread Andrew Randrianasulu
Looking at libswscale/swscale.c (due to https://trac.ffmpeg.org/ticket/11182#comment:5) I do not understand how it works :) why shits to 11 and to 12 ? // FIXME all pal and rgb srcFormats could do this conversion as well // FIXME all scalers more complex than bilinear could do half of this transf

Re: [FFmpeg-user] How to preserve file time

2024-09-02 Thread Robert Schwalbe
I'm sorry this mail is going to be rather long. However, I would like to explain my opinion on this matter in detail. I would also like to kindly ask everybody to calm down and refrain from further ad-hominem attacks, because these are not going to make things better for anybody. Thank you for

Re: [FFmpeg-user] How does one apply a filter option for a limited amount of time?

2024-08-25 Thread Joseph Tyler
avid Niklas Subject: [FFmpeg-user] How does one apply a filter option for a limited amount of time? Hello, Here's my command: ffmpeg -i in.mp4 -filter_complex "drawbox=w=1920:h=1080:color=black@1:t=fill" out.mp4 How do I apply it for only a few seconds to a

[FFmpeg-user] How does one apply a filter option for a limited amount of time?

2024-08-25 Thread David Niklas via ffmpeg-user
Hello, Here's my command: ffmpeg -i in.mp4 -filter_complex "drawbox=w=1920:h=1080:color=black@1:t=fill" out.mp4 How do I apply it for only a few seconds to a specific time in the video? Thanks! ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https

Re: [FFmpeg-user] How to preserve file time

2024-08-21 Thread Reindl Harald
Am 21.08.24 um 14:39 schrieb Ulf Zibis: To me it's very useful. Imagine you have huge collection of pictures and videos. If I do some compression later, preserving the mtime allows me to simply use the file manager for listing the files in their right order when you have a huge collection

Re: [FFmpeg-user] How to preserve file time

2024-08-21 Thread Ulf Zibis
Am 21.08.24 um 14:39 schrieb Ulf Zibis: and I'm not aware of any program that overrides it I've seen this plenty of times. The one, which instantly comes in memory is IrfanView. There it's my standard setting. From there I was inspired for my proposal. I also remember some MP3-tag editors, w

Re: [FFmpeg-user] How to preserve file time

2024-08-21 Thread Ulf Zibis
Am 21.08.24 um 14:39 schrieb Ulf Zibis: Second, implementing the proposed option correctly is actually very non-trivial, especially considering that there can be multiple input files and multiple output files, and there needs to be some syntax and built-in logic for mapping mtime from input fil

Re: [FFmpeg-user] How to preserve file time

2024-08-21 Thread Ulf Zibis
Am 21.08.24 um 12:45 schrieb Oliver Fromme: I'm sorry this mail is going to be rather long. However, I would like to explain my opinion on this matter in detail. Hollala, thanks for your effort. German accuracy? ;-) Well, I'm not sure who brought up the "OS call" argument -- and why. I thi

Re: [FFmpeg-user] How to preserve file time

2024-08-21 Thread Rob Hallam
On Wed, 21 Aug 2024 at 12:15, Nicolas George wrote: > > Oliver Fromme (12024-08-21): > > I'm sorry this mail is going to be rather long. However, I would > > like to explain my opinion on this matter in detail. > > You are more patient than this issue deserves. I enjoyed reading Oliver's explana

Re: [FFmpeg-user] How to preserve file time

2024-08-21 Thread Reindl Harald
Am 21.08.24 um 12:48 schrieb Ulf Zibis: So for 1. it must be additionally: In case of output file existence 2 additional OS operations are needed and executed: Write a message to system output stream + read and parse users answer from system input stream. As discovered by James Ralston, the

Re: [FFmpeg-user] How to preserve file time

2024-08-21 Thread Nicolas George
Oliver Fromme (12024-08-21): > I'm sorry this mail is going to be rather long. However, I would > like to explain my opinion on this matter in detail. You are more patient than this issue deserves. > In fact, I can rather imagine use cases to preserve the *atime* > (access time) of the input fil

Re: [FFmpeg-user] How to preserve file time

2024-08-21 Thread Ulf Zibis
Am 21.08.24 um 10:56 schrieb Reindl Harald: Am 20.08.24 um 21:33 schrieb Ulf Zibis: There seems some need to outline and precise my original message. 1. For the security of existing data and in some way for convenience (avoid the need to create the potentially overwritten data again) FFmpeg

Re: [FFmpeg-user] How to preserve file time

2024-08-21 Thread Oliver Fromme
I'm sorry this mail is going to be rather long. However, I would like to explain my opinion on this matter in detail. I would also like to kindly ask everybody to calm down and refrain from further ad-hominem attacks, because these are not going to make things better for anybody. Ulf Zibis wrote

Re: [FFmpeg-user] How to preserve file time

2024-08-21 Thread Reindl Harald
Am 21.08.24 um 10:40 schrieb Ulf Zibis: Am 20.08.24 um 21:59 schrieb Rob Hallam: It is unlikely at this point you will receive an argument you deem applicable. A call to an OS function is not the same as managing filesystem-level metadata. If you really want it, it is possible for you to

Re: [FFmpeg-user] How to preserve file time

2024-08-21 Thread Reindl Harald
Am 20.08.24 um 21:33 schrieb Ulf Zibis: Am 14.08.24 um 17:20 schrieb Ulf Zibis: Am 12.08.24 um 19:04 schrieb Mark Filipak: That's a question for your operating system. I can change file times to whatever I want via the TotalCommander file browser. There are probably others. Isn't remo

Re: [FFmpeg-user] How to preserve file time

2024-08-21 Thread Ulf Zibis
Am 20.08.24 um 21:59 schrieb Rob Hallam: It is unlikely at this point you will receive an argument you deem applicable. A call to an OS function is not the same as managing filesystem-level metadata. If you really want it, it is possible for you to write and maintain your own small patch that

Re: [FFmpeg-user] How to preserve file time

2024-08-20 Thread Phil Rhodes via ffmpeg-user
> I suspect the reason why ffmpeg implements its current (incorrect) > behavior is because Windows lacks the Unix/Linux equivalent of O_EXCL. Consider the CreateFileA function in fileapi.h with the dwCreationDisposition argument set to CREATE_NEW, which would fail on the existence of the target

Re: [FFmpeg-user] How to preserve file time

2024-08-20 Thread Rob Hallam
On Tue, 20 Aug 2024 at 20:33, Ulf Zibis wrote: > 4. I'm fine with the result, that FFmpeg developers don't want to provide my > proposal. > > But please *avoid inapplicable arguments*. It is unlikely at this point you will receive an argument you deem applicable. A call to an OS functio

Re: [FFmpeg-user] How to preserve file time

2024-08-20 Thread Ulf Zibis
Am 14.08.24 um 17:20 schrieb Ulf Zibis: Am 12.08.24 um 19:04 schrieb Mark Filipak: That's a question for your operating system. I can change file times to whatever I want via the TotalCommander file browser. There are probably others. Isn't removing existing output files samely a question

Re: [FFmpeg-user] How to preserve file time

2024-08-20 Thread Ulf Zibis
Am 18.08.24 um 11:38 schrieb Reindl Harald: Am 18.08.24 um 00:54 schrieb Ulf Zibis: Am 18.08.24 um 00:26 schrieb Reindl Harald: Am 17.08.24 um 22:33 schrieb Ulf Zibis: And WHAT then happens with the original file, when write creates ANOTHER file ??? NOTHING' Another interesting va

Re: [FFmpeg-user] How to preserve file time

2024-08-19 Thread Reindl Harald
Am 19.08.24 um 17:40 schrieb James Ralston: On Mon, Aug 19, 2024 at 6:41 AM Reindl Harald wrote: Am 19.08.24 um 07:56 schrieb James Ralston: The fact that ffmpeg does it this way [queries for the existence of the output file itself) is a bug (albeit perhaps one of convenience, since ffmpeg

Re: [FFmpeg-user] How to preserve file time

2024-08-19 Thread James Ralston
On Mon, Aug 19, 2024 at 6:41 AM Reindl Harald wrote: > Am 19.08.24 um 07:56 schrieb James Ralston: > > > The fact that ffmpeg does it this way [queries for the existence > > of the output file itself) is a bug (albeit perhaps one of > > convenience, since ffmpeg supports more operating systems th

Re: [FFmpeg-user] How to preserve file time

2024-08-19 Thread Reindl Harald
Am 19.08.24 um 07:56 schrieb James Ralston: On Sat, Aug 17, 2024 at 3:54 PM Ulf Zibis wrote: You can spin it however you like. The logic around the ‘-y’ option requires an extra additional OS call It shouldn’t. in this case querying the existence of the file, before it is overwritten.

Re: [FFmpeg-user] How to preserve file time

2024-08-18 Thread James Ralston
On Sat, Aug 17, 2024 at 3:54 PM Ulf Zibis wrote: > You can spin it however you like. The logic around the ‘-y’ option > requires an extra additional OS call It shouldn’t. > in this case querying the existence of the file, before it is > overwritten. The fact that ffmpeg does it this way is a b

Re: [FFmpeg-user] How to preserve file time

2024-08-18 Thread Reindl Harald
Am 18.08.24 um 12:16 schrieb Reindl Harald: Am 18.08.24 um 12:12 schrieb Ulf Zibis: Am 18.08.24 um 03:04 schrieb Oliver Fromme: Would you please stop this?  This kind of discussion is not going to improve FFmpeg.  You're just annoying everybody. You mean the discussion about smartness, dumbn

Re: [FFmpeg-user] How to preserve file time

2024-08-18 Thread Reindl Harald
Am 18.08.24 um 12:12 schrieb Ulf Zibis: Am 18.08.24 um 03:04 schrieb Oliver Fromme: Would you please stop this?  This kind of discussion is not going to improve FFmpeg.  You're just annoying everybody. You mean the discussion about smartness, dumbness and nonsense? I agree with you. Please

Re: [FFmpeg-user] How to preserve file time

2024-08-18 Thread Ulf Zibis
Am 18.08.24 um 03:04 schrieb Oliver Fromme: Would you please stop this? This kind of discussion is not going to improve FFmpeg. You're just annoying everybody. You mean the discussion about smartness, dumbness and nonsense? I agree with you. Please address the originator. Cheers Ulf

Re: [FFmpeg-user] How to preserve file time

2024-08-18 Thread Reindl Harald
which is identically handeled in both cases you pretended "But for convenience FFmpeg CLI provides option `-y` for this task" which is technically nonsense - that's the whole topic - period so your are talking nosense all the time -------- Weitergeleitete Nachricht Betre

Re: [FFmpeg-user] How to preserve file time

2024-08-18 Thread Reindl Harald
ouke wrote "_not_ -y in line". This is the opposite case. you pretended "But for convenience FFmpeg CLI provides option `-y` for this task" which is technically nonsense - that's the whole topic - period Weitergeleitete Nachricht ---- Betreff: Re: [FFmpeg-us

Re: [FFmpeg-user] How to preserve file time

2024-08-18 Thread Reindl Harald
Am 18.08.24 um 00:46 schrieb Ulf Zibis: Am 18.08.24 um 00:26 schrieb Reindl Harald: Am 17.08.24 um 21:53 schrieb Ulf Zibis: but there is no delete action You can spin it however you like. The logic around the ‘-y’ option requires an extra additional OS call, in this case querying the exi

Re: [FFmpeg-user] How to preserve file time

2024-08-17 Thread Oliver Fromme
Ulf Zibis wrote: > Am 18.08.24 um 00:26 schrieb Reindl Harald: > > Am 17.08.24 um 22:33 schrieb Ulf Zibis: > > > > > > Am 17.08.24 um 22:10 schrieb Bouke / Videotoolshed: > > > > ..., it will be ‘another’ file with the same name. > > > And WHAT then happens with the original file, when write

Re: [FFmpeg-user] How to preserve file time

2024-08-17 Thread Ulf Zibis
Am 18.08.24 um 00:26 schrieb Reindl Harald: Am 17.08.24 um 22:33 schrieb Ulf Zibis: Am 17.08.24 um 22:10 schrieb Bouke / Videotoolshed: ..., it will be ‘another’ file with the same name. And WHAT then happens with the original file, when write creates ANOTHER file ??? NOTHING Another i

Re: [FFmpeg-user] How to preserve file time

2024-08-17 Thread Ulf Zibis
Am 18.08.24 um 00:30 schrieb Reindl Harald: Am 17.08.24 um 23:07 schrieb Ulf Zibis: Am 17.08.24 um 22:10 schrieb Bouke / Videotoolshed: The user input is parsed as ‘if file exists and not -y in line, abort’ FFmpeg CLI does not abort in that case, it outputs a question to system out strea

Re: [FFmpeg-user] How to preserve file time

2024-08-17 Thread Ulf Zibis
Am 18.08.24 um 00:26 schrieb Reindl Harald: Am 17.08.24 um 21:53 schrieb Ulf Zibis: but there is no delete action You can spin it however you like. The logic around the ‘-y’ option requires an extra additional OS call, in this case querying the existence of the file, before it is overwritt

  1   2   3   4   5   6   7   8   9   10   >