Rendering and appending an MP4 to an existing file?

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

Rendering and appending an MP4 to an existing file?

Gilles
Hello,

With no re-encoding involved, I'd like to create an MP4 file from a JPG, and
append it to an existing file that looks like this:
===========
C:\>ffprobe -i 00000.MTS
ffprobe version 4.2.1 Copyright (c) 2007-2019 the FFmpeg developers

Input #0, mpegts, from '00000.MTS':
Duration: 00:29:46.70, start: 1.040000, bitrate: 9511 kb/s
Program 1

Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p(top
first), 1440x1080 [SAR 4:3 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc
Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side),
fltp, 448 kb/s
Stream #0:2[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090),
1920x1080
===========

What settings should I use to generate an MP4 file from a JPG so it can be
appended successfully?

Until now, this is what I used:
===========
ffmpeg.exe -loop 1 -i "mypic.png" -i "myaudio.m4a" -preset faster -c:v
libx264 -pix_fmt yuv420p -c:a copy -threads 2 -f mp4 -shortest "myfile.mp4"
===========

Thank you.



--
Sent from: http://www.ffmpeg-archive.org/
_______________________________________________
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: Rendering and appending an MP4 to an existing file?

Gilles
Alternatively, can ffmpeg be told to replace a slot between two specific key
frames with data from another, fully compatible file of the exact same
length down to ms?

===========^KF Here, added slide KF ^======



--
Sent from: http://www.ffmpeg-archive.org/
_______________________________________________
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".