[FFmpeg-user] Concatenation of two *.mp4 files --- How?
I have two mp4 files (the first (testImage.mp4 with no audio) created from a png file with ffmpeg [vers. N-79947-gcd244fa Copyright (c) 2000-2016 the FFmpeg developers built with gcc 5.3.0 (GCC)] and the second (test.mp4 width video and audio) downloaded from YouTube. I obtained the following information on these files using ffprobe [vers. N-79947-gcd244fa Copyright (c) 2007-2016 the FFmpeg developers built with gcc 5.3.0 (GCC)]: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'testImage.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf57.36.100 Duration: 00:00:10.00, start: 0.00, bitrate: 33 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280 [SAR 4005:1184 DAR 445:74], 30 kb/s, 25 fps, 25 tbr, 12800 tbn (default) Metadata: handler_name: VideoHandler +++ 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, fltp, 192 kb/s (default) Metadata: creation_time : 2015-10-28 06:13:56 handler_name: IsoMedia File Produced by Google, 5-11-2011 How can I concatenate these two files with ffmpeg? ___ 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".
[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".
[FFmpeg-user] Unknown type video file
How can one extract the type of video file when it has a name that gives no hint as to what type of video file it is (e.g. e45612mj is the name of the file)? Note, there is no suffix (file extension). --V ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] How to slow down video playback?
On 28-Dec-2014 20:34, Carl Eugen Hoyos wrote: Virgil Stokes it.uu.se> writes: I use FFmpeg to merge these new PNG images back into an AVI file; then use Miro to convert the AVI to an MP4. Is there a reason why you don't use FFmpeg to produce an mp4 output file? There was; but, there is no more. After looking at some information posted on the web, I now create the MP4 directly. Thanks for making me think about it :-) Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] How to slow down video playback?
On 28-Dec-2014 19:01, Simon Thelen wrote: On 14-12-28 at 18:33, Virgil Stokes wrote: I have used FFmpeg to extract PNG images for each frame of some short AVI files. These AVIs were created for a research project in which a person's movements were recorded over about 2 seconds at 25 fps. These extracted images are then processed and graphical objects are often superimposed on them; but, the PNG images are always kept at the same size (720 x 576 Px). I use FFmpeg to merge these new PNG images back into an AVI file; then use Miro to convert the AVI to an MP4.The problem that I have been unable to solve is that when I playback this MP4 file in an HTML5 video player with FireFox (or Chrome or IE) they are so short that the viewer has little chance to examine them. I would like to be able to show them frame-by-frame; but, this apparently is a rather difficult problem for the HTML5 video player. Is it possible to use FFmpeg to create a very slow AVI (e.g. 1 frame per second) or an MP4 file directly, that would allow the user to study the individual images? I would be glad to provide one of these short AVIs for testing purposes if needed. https://trac.ffmpeg.org/wiki/Create%20a%20video%20slideshow%20from%20images Has examples and everything. Yes, thanks for the line :-) ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
[FFmpeg-user] How to slow down video playback?
I have used FFmpeg to extract PNG images for each frame of some short AVI files. These AVIs were created for a research project in which a person's movements were recorded over about 2 seconds at 25 fps. These extracted images are then processed and graphical objects are often superimposed on them; but, the PNG images are always kept at the same size (720 x 576 Px). I use FFmpeg to merge these new PNG images back into an AVI file; then use Miro to convert the AVI to an MP4.The problem that I have been unable to solve is that when I playback this MP4 file in an HTML5 video player with FireFox (or Chrome or IE) they are so short that the viewer has little chance to examine them. I would like to be able to show them frame-by-frame; but, this apparently is a rather difficult problem for the HTML5 video player. Is it possible to use FFmpeg to create a very slow AVI (e.g. 1 frame per second) or an MP4 file directly, that would allow the user to study the individual images? I would be glad to provide one of these short AVIs for testing purposes if needed. --V ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Extract frames from an AVI and then frames to AVI
On 08-Aug-14 18:10, Moritz Barsnick wrote: Hi Virgil, On Fri, Aug 08, 2014 at 17:43:40 +0200, Virgil Stokes wrote: I would like to know a method that could be used to first, extract frames from an AVI file $ ffmpeg -i in.avi -f image2 image%05d.png and then reconstruct the AVI from these extracted frames. $ ffmpeg -f image2 -i image%05d.png out.avi This is just a very simple example. Note that it only partially "reconstructs". Sound isn't taken into consideration, and you're losing all information about frame timing, which is relevant amongst others for fps, variable frame rates, and audio sync. You also need to tune your video codec and its quality. And possibly the fps... Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user Thanks Moritz, I am trying to learn more about the options that might apply to my problem. I have looked at the "header" information in my AVIs and perhaps with some experimentation, I will be able to reconstruct a "close" AVI from the extracted frames. --V ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
[FFmpeg-user] Extract frames from an AVI and then frames to AVI
I would like to know a method that could be used to first, extract frames from an AVI file and then reconstruct the AVI from these extracted frames. This is my first posting to this list. --V ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user