Re: [FFmpeg-user] Interleaving problem

2019-10-08 Thread Carl Eugen Hoyos
Am Di., 8. Okt. 2019 um 21:04 Uhr schrieb László Havasi
:

> I need a "good" interleaved mpeg-ts media. I have found that the ffmpeg is
> unable to re-interleave the input data.
> As can be seen on the packet list below, the audio and video packets are
> not interleaved well. There are several video packets and several audio
> packets.
> Is it possible to force ffmpeg to mix the packets better?
>
> Command:
> ffmpeg -i input.ts -max_delay 100 -c:v mpeg1video -c:a mp2 -ac 1 -vf
> showinfo -af asetnsamples=n=100,ashowinfo  -f mpegts -max_delay 100  out.ts

I would have expected this to work well for one audio channel and I
don't think the showinfo filters can help here, you will need a stream
analyzer.
You did not show us the complete, uncut console output as is
strongly suggested here for every request.

Carl Eugen
___
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] Interleaving problem

2019-10-08 Thread László Havasi
Hi,

I need a "good" interleaved mpeg-ts media. I have found that the ffmpeg is
unable to re-interleave the input data.
As can be seen on the packet list below, the audio and video packets are
not interleaved well. There are several video packets and several audio
packets.
Is it possible to force ffmpeg to mix the packets better?

Command:
ffmpeg -i input.ts -max_delay 100 -c:v mpeg1video -c:a mp2 -ac 1 -vf
showinfo -af asetnsamples=n=100,ashowinfo  -f mpegts -max_delay 100  out.ts

The options (max_delay, asetnsamples) have no positive effect in this case.

Sample:

[Parsed_ashowinfo_1 @ 011a3e9e9080] n:4021 pts:402100 pts_time:9.11791
pos:-1 fmt:s16p channels:1 chlayout:mono rate:44100 nb_samples:100
checksum:2F9E80D9 plane_checksums: [ 2F9E80D9 ]
[Parsed_ashowinfo_1 @ 011a3e9e9080] n:4022 pts:402200 pts_time:9.12018
pos:-1 fmt:s16p channels:1 chlayout:mono rate:44100 nb_samples:100
checksum:7F034C8C plane_checksums: [ 7F034C8C ]
[Parsed_ashowinfo_1 @ 011a3e9e9080] n:4023 pts:402300 pts_time:9.12245
pos:-1 fmt:s16p channels:1 chlayout:mono rate:44100 nb_samples:100
checksum:0E2F633C plane_checksums: [ 0E2F633C ]
[Parsed_ashowinfo_1 @ 011a3e9e9080] n:4024 pts:402400 pts_time:9.12472
pos:-1 fmt:s16p channels:1 chlayout:mono rate:44100 nb_samples:100
checksum:19FC7A5F plane_checksums: [ 19FC7A5F ]
[Parsed_ashowinfo_1 @ 011a3e9e9080] n:4025 pts:402500 pts_time:9.12698
pos:-1 fmt:s16p channels:1 chlayout:mono rate:44100 nb_samples:100
checksum:56AB48CB plane_checksums: [ 56AB48CB ]
[Parsed_ashowinfo_1 @ 011a3e9e9080] n:4026 pts:402600 pts_time:9.12925
pos:-1 fmt:s16p channels:1 chlayout:mono rate:44100 nb_samples:100
checksum:6EAC726E plane_checksums: [ 6EAC726E ]
[Parsed_ashowinfo_1 @ 011a3e9e9080] n:4027 pts:402700 pts_time:9.13152
pos:-1 fmt:s16p channels:1 chlayout:mono rate:44100 nb_samples:100
checksum:B0D87353 plane_checksums: [ B0D87353 ]
[Parsed_ashowinfo_1 @ 011a3e9e9080] n:4028 pts:402800 pts_time:9.13379
pos:-1 fmt:s16p channels:1 chlayout:mono rate:44100 nb_samples:100
checksum:D62D4CE2 plane_checksums: [ D62D4CE2 ]
[Parsed_ashowinfo_1 @ 011a3e9e9080] n:4029 pts:402900 pts_time:9.13605
pos:-1 fmt:s16p channels:1 chlayout:mono rate:44100 nb_samples:100
checksum:91C1718C plane_checksums: [ 91C1718C ]
[Parsed_ashowinfo_1 @ 011a3e9e9080] n:4030 pts:403000 pts_time:9.13832
pos:-1 fmt:s16p channels:1 chlayout:mono rate:44100 nb_samples:100
checksum:63EF6E75 plane_checksums: [ 63EF6E75 ]
[Parsed_ashowinfo_1 @ 011a3e9e9080] n:4031 pts:403100 pts_time:9.14059
pos:-1 fmt:s16p channels:1 chlayout:mono rate:44100 nb_samples:100
checksum:74033F9E plane_checksums: [ 74033F9E ]
[Parsed_showinfo_0 @ 011a3e9e9880] n: 217 pts: 815546 pts_time:9.06162
pos:   532792 fmt:yuv420p sar:1/1 s:720x302 i:P iskey:0 type:P
checksum:249E9D8A plane_checksum:[43AFDAD2 5FA2E3C4 4C9DDED6] mean:[114 114
147] stdev:[47.0 29.5 12.4]
[Parsed_showinfo_0 @ 011a3e9e9880]   side data - pan/scan
[Parsed_showinfo_0 @ 011a3e9e9880]   side data - unknown side data type
17 (874 bytes)
[Parsed_showinfo_0 @ 011a3e9e9880]   side data - unknown side data type
16 (8 bytes)
[Parsed_showinfo_0 @ 011a3e9e9880] color_range:tv color_space:unknown
color_primaries:unknown color_trc:unknown
[Parsed_showinfo_0 @ 011a3e9e9880] n: 218 pts: 819300 pts_time:9.10333
pos:   533920 fmt:yuv420p sar:1/1 s:720x302 i:P iskey:0 type:P
checksum:79B76767 plane_checksum:[69737197 E3D70330 F11FF291] mean:[114 115
147] stdev:[46.9 29.6 12.3]
[Parsed_showinfo_0 @ 011a3e9e9880]   side data - pan/scan
[Parsed_showinfo_0 @ 011a3e9e9880]   side data - unknown side data type
17 (874 bytes)
[Parsed_showinfo_0 @ 011a3e9e9880]   side data - unknown side data type
16 (8 bytes)
[Parsed_showinfo_0 @ 011a3e9e9880] color_range:tv color_space:unknown
color_primaries:unknown color_trc:unknown
[Parsed_showinfo_0 @ 011a3e9e9880] n: 219 pts: 823053 pts_time:9.14503
pos:   535424 fmt:yuv420p sar:1/1 s:720x302 i:P iskey:0 type:P
checksum:3FA5DC51 plane_checksum:[A090C95B 3DB11875 2A84FA72] mean:[114 115
147] stdev:[46.9 29.7 12.3]
[Parsed_showinfo_0 @ 011a3e9e9880]   side data - pan/scan
[Parsed_showinfo_0 @ 011a3e9e9880]   side data - unknown side data type
17 (874 bytes)
[Parsed_showinfo_0 @ 011a3e9e9880]   side data - unknown side data type
16 (8 bytes)
[Parsed_showinfo_0 @ 011a3e9e9880] color_range:tv color_space:unknown
color_primaries:unknown color_trc:unknown
[Parsed_showinfo_0 @ 011a3e9e9880] n: 220 pts: 826807 pts_time:9.18674
pos:   539560 fmt:yuv420p sar:1/1 s:720x302 i:P iskey:0 type:P
checksum:68C9BFC8 plane_checksum:[482E7C19 24DC3B9B 72B60814] mean:[114 115
147] stdev:[46.8 29.9 12.4]
[Parsed_showinfo_0 @ 011a3e9e9880]   side data - pan/scan
[Parsed_showinfo_0 @ 011a3e9e9880]   side data - unknown side data type
17 (874 bytes)
[Parsed_showinfo_0 @ 011a3e9e9880]   side data - unknown side data type
16 (8 bytes)
[Parsed_showinfo_0 @ 011a3e9e9880]