Concatenating files - dropping audio

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Concatenating files - dropping audio

Ron Barnes
Hello All,

I'm trying to concatenate 49 m2ts files into a single m2ts file.  I listed all the files in a text file and used the following command.

ffmpeg -analyzeduration 100000M -probesize 100000M -f concat -safe 0 -i Concat.TXT -c copy Output_Full_Video.m2ts

After completion, I verify the video with VLC and Windows Media player.  Instead of the 8+ audio files from the original file(s) I only get a single audio and it only plays in VLC not Windows Media Player.

What is the proper way to concatenate files using ffmpeg?

Thank you in advance!

-Ron

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Concatenating files - dropping audio

Kieran O Leary
On Tue, 5 Mar 2019, 13:19 Ron Barnes, <[hidden email]> wrote:

> Hello All,
>
> I'm trying to concatenate 49 m2ts files into a single m2ts file.  I listed
> all the files in a text file and used the following command.
>
> ffmpeg -analyzeduration 100000M -probesize 100000M -f concat -safe 0 -i
> Concat.TXT -c copy Output_Full_Video.m2ts
>

Add -map 0 to command

ffmpeg -analyzeduration 100000M -probesize 100000M -f concat -safe 0 -i
Concat.TXT -map 0 -c copy Output_Full_Video.m2ts

Best,

Kieran
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Concatenating files - dropping audio

Ron Barnes
Hiya Kieran!

Long time no speak!  You have been a great help to me over many moons.  Thank you!

I added the switch you recommended below and I am now generating an enormous amount of errors and they are all like the following....
It appears there is an issue with the audio streams.  Is there a way to fix this?

<ERROR FROM HERE>
[mpegts @ 000001a6feb8e2c0] Non-monotonous DTS in output stream 0:7; previous: 12762813, current: 12757094; changing to 12762814. This may result in incorrect timestamps in the output file.
<ERROR TO HERE>

Regards,

-Ron



-----Original Message-----
From: ffmpeg-user <[hidden email]> On Behalf Of Kieran O Leary
Sent: Tuesday, March 5, 2019 8:41 AM
To: FFmpeg user questions <[hidden email]>
Subject: Re: [FFmpeg-user] Concatenating files - dropping audio

On Tue, 5 Mar 2019, 13:19 Ron Barnes, <[hidden email]> wrote:

> Hello All,
>
> I'm trying to concatenate 49 m2ts files into a single m2ts file.  I
> listed all the files in a text file and used the following command.
>
> ffmpeg -analyzeduration 100000M -probesize 100000M -f concat -safe 0
> -i Concat.TXT -c copy Output_Full_Video.m2ts
>

Add -map 0 to command

ffmpeg -analyzeduration 100000M -probesize 100000M -f concat -safe 0 -i Concat.TXT -map 0 -c copy Output_Full_Video.m2ts

Best,

Kieran
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email [hidden email] with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".