Re: [FFmpeg-user] Using ffmpeg to stream a playlist of videos

2024-09-22 Thread Oliver Fromme
Gulag Kulak via ffmpeg-user wrote: > Hi! > > I'm trying to use ffmpeg to stream a playlist of video files that are > all in very different formats, sizes, and aspect ratios. > > The problem is that often when the video changes I get a spinning > wheel of death on the target streaming sites a

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