[FFmpeg-user] Best way convert to mpg

Budi Janto budijanto at studiokaraoke.co.id
Wed Jan 10 23:38:40 EET 2024


Hi,


In last week I tried to convert *.dat, *.avi and other video format to 
*.mpg. This caused our application support only for *.mpg file (Work 
well). So for this required, I just convert it without any modification 
sound/video quality (AS-IS) for e.g:

Command used to convert *.dat to *.mpg.
# find * -type f -iname "*.dat" -exec sh -c 'ffmpeg -hide_banner -y -i 
"$0" -vcodec copy -acodec copy "${0%.dat}.mpg"' {} \;

Command used to convert *.avi to *.mpg.
# find * -type f -iname "*.avi" -exec sh -c 'ffmpeg -hide_banner -y -i 
"$0" -c:v copy -c:a copy "${0%.avi}.mpg"' {} \;

But sometime, I got message something like this:

[...]
[mpeg @ 0x1498ec830280] Invalid timestamps stream=0, pts=27603, 
dts=20554804, size=2296
[mpeg @ 0x1498ec830500] Invalid DTS: 20523600 PTS: -3601 in output 
stream 0:0, replacing by guess
[...]

[...]
[mpeg @ 0x1d7db2030500] Non-monotonic DTS in output stream 0:0; 
previous: 16050049, current: 16050049; changing to 16050050. This may 
result in incorrect timestamps in the output file.
[mpeg @ 0x1d7db2030500] Non-monotonic DTS in output stream 0:0; 
previous: 16057249, current: 16057249; changing to 16057250. This may 
result in incorrect timestamps in the output file.
[mpeg @ 0x1d7db2030500] Non-monotonic DTS in output stream 0:0; 
previous: 16064449, current: 16064449; changing to 16064450. This may 
result in incorrect timestamps in the output file.
[mpeg @ 0x1d7db2030500] Non-monotonic DTS in output stream 0:0; 
previous: 16071649, current: 16071649; changing to 16071650. This may 
result in incorrect timestamps in the output file.
[...]

[...]
[mpeg @ 0x13522ca30500] buffer underflow st=0 bufi=45673 size=48884
[mpeg @ 0x13522ca30500] packet too large, ignoring buffer limits to mux it
[mpeg @ 0x13522ca30500] buffer underflow st=0 bufi=45673 size=48884
[mpeg @ 0x13522ca30500] buffer underflow st=0 bufi=47702 size=48884
[mpeg @ 0x13522ca30500] packet too large, ignoring buffer limits to mux it
[mpeg @ 0x13522ca30500] buffer underflow st=0 bufi=47702 size=48884
[mpeg @ 0x13522ca30500] buffer underflow st=0 bufi=45144 size=51127
[mpeg @ 0x13522ca30500] packet too large, ignoring buffer limits to mux it
[mpeg @ 0x13522ca30500] buffer underflow st=0 bufi=45144 size=51127
[mpeg @ 0x13522ca30500] buffer underflow st=0 bufi=47173 size=51127
[mpeg @ 0x13522ca30500] packet too large, ignoring buffer limits to mux it
[...]

Can I ignore that messages? But I can play that converts videos. Thanks 
for your time.


-- 
Regards,
Budi Janto
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 665 bytes
Desc: OpenPGP digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20240111/1601f05b/attachment.sig>


More information about the ffmpeg-user mailing list