Re: [FFmpeg-user] Prepend a single frame to a MP4 file
2016-05-15 22:36 GMT+02:00 Virgil Stokes: > I have created an image file (testImage.png) from which I would like to > make a 5 second MP4 file. Then > concatenate (prepend) this 5 second video to the test.mp4 file (as defined > above). How can this be done in ffmpeg? Note, I am using: > My approach with that would be to create a 5 second video from the image (using something like "ffmpeg -loop 1 -framerate 29.97 -i -c:v h264 -pix_fmt yuv420p out.mp4" then concatenate them using the concat input. Assuming matching codecs and resolution, this would work well without having to transcode the whole video. You might also need to add an empty audio track to the 5s segment beforehand though. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Prepend a single frame to a MP4 file
Here is my corrected question: I have a YouTube MP4 video (test.mp4): Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: isommp42 creation_time : 2015-10-28 06:13:56 Duration: 00:01:35.64, start: 0.00, bitrate: 1370 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1176 kb/s, 29.97 fps, 29.97 tbr, 30k tbn (default) Metadata: handler_name: VideoHandler Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, flt p, 192 kb/s (default) Metadata: creation_time : 2015-10-28 06:13:56 handler_name: IsoMedia File Produced by Google, 5-11-2011 I have created an image file (testImage.png) from which I would like to make a 5 second MP4 file. Then concatenate (prepend) this 5 second video to the test.mp4 file (as defined above). How can this be done in ffmpeg? Note, I am using: ffmpeg version N-79947-gcd244fa Copyright (c) 2000-2016 the FFmpeg developers built with gcc 5.3.0 (GCC) Sorry for the previous poorly formulated email :-( ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Prepend a single frame to a MP4 file
Ok Moritz, How can I add a subtitle to only the first frame? From: ffmpeg-user [ffmpeg-user-boun...@ffmpeg.org] on behalf of Moritz Barsnick [barsn...@gmx.net] Sent: Sunday, May 15, 2016 19:02 To: FFmpeg user discussions Subject: Re: [FFmpeg-user] Prepend a single frame to a MP4 file On Sun, May 15, 2016 at 17:07:20 +0200, Virgil Stokes wrote: > How can one prepend a single frame to an existing MP4 file downloaded from > YouTube? The purpose of this new "first frame" is to add some identification > information (text) to the MP4. I don't like doubting people's goals, BUT: A single frame wouldn't be very visible, would it? Since you would need to use some form of concatenation (that's the key word to search for), you would need to reencode the whole video just for the sake of the one extra frame. Perhaps adding metadata or subtitles would be a better alternative for you? Both can be added without reencoding the video. Cheers, Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Prepend a single frame to a MP4 file
On Sun, May 15, 2016 at 17:07:20 +0200, Virgil Stokes wrote: > How can one prepend a single frame to an existing MP4 file downloaded from > YouTube? The purpose of this new "first frame" is to add some identification > information (text) to the MP4. I don't like doubting people's goals, BUT: A single frame wouldn't be very visible, would it? Since you would need to use some form of concatenation (that's the key word to search for), you would need to reencode the whole video just for the sake of the one extra frame. Perhaps adding metadata or subtitles would be a better alternative for you? Both can be added without reencoding the video. Cheers, Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Prepend a single frame to a MP4 file
On Sun, May 15, 2016, at 07:07 AM, Virgil Stokes wrote: > How can one prepend a single frame to an existing MP4 file downloaded > from > YouTube? The purpose of this new "first frame" is to add some > identification > information (text) to the MP4. Please show info about your input file and your ffmpeg version. Show the complete output of: ffmpeg -i input.mp4 ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] Prepend a single frame to a MP4 file
How can one prepend a single frame to an existing MP4 file downloaded from YouTube? The purpose of this new "first frame" is to add some identification information (text) to the MP4. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".