Sep 10, 2010 - Capturing Video and Converting to H.264 using ffmpeg. Tell the format of the file by it's name ( /dev/null ) we specify it manually using -f mp4. Apr 24, 2014 - One file type that is popular across various platforms is the MP4 file. If you need to convert a video file to MP4, HandBrake is an excellent. ![]() I've got a file containing a dump of H.264 stream, unpacked from RTP. Ffplay recognizes and successfully plays this file. While playing it writes the following Input #0, h264, from 'raw_video_h264': Duration: N/A, bitrate: N/A Stream #0.0: Video: h264, yuv420p, 704x576, 25 fps, 25 tbr, 1200k tbn, 50 tbc Now, I have to create a.mov or.mp4 file with these data, without recoding them. So, using -vcodec copy switch is a must. I run ffmpeg -f h264 -i raw_video_h264 -vcodec copy -f mp4 ffm_raw_video_h264_recode.mp4 or, analogously, ffmpeg -f h264 -i raw_video_h264 -vcodec copy -f mov ffm_raw_video_h264_recode.mov However, the resulting file is unplayable. Both ffplay and mplayer show gray window. How can I make ffmpeg to produce a playable file? > > I've got a file containing a dump of H.264 stream, unpacked from RTP. > > ffplay recognizes and successfully plays this file. While playing it writes > the following > > Input #0, h264, from 'raw_video_h264': > Duration: N/A, bitrate: N/A > Stream #0.0: Video: h264, yuv420p, 704x576, 25 fps, 25 tbr, 1200k tbn, > 50 tbc > > Now, I have to create a.mov or.mp4 file with these data, without recoding > them. > So, using -vcodec copy switch is a must. > > I run > ffmpeg -f h264 -i raw_video_h264 -vcodec copy -f mp4 > ffm_raw_video_h264_recode.mp4 > or, analogously, > ffmpeg -f h264 -i raw_video_h264 -vcodec copy -f mov > ffm_raw_video_h264_recode.mov > > Full command output please. It often helps a lot. -- __ /.) +48 695 600 936 (./ _______________________________________________ ffmpeg-user mailing list. > Input #0, h264, from 'raw_video_h264': > Duration: N/A, bitrate: N/A > Stream #0.0: Video: h264, yuv420p, 704x576, 25 fps, 25 tbr, 1200k tbn, > 50 tbc Full command output please. The revenant 2015 full movie watch online. It often helps a lot. $ ffmpeg -i raw_video_h264.h264 FFmpeg version SVN-r21768, Copyright (c) 2000-2010 Fabrice Bellard, et al. Built on Feb 12 2010 11:00:01 with gcc 4.4.1 configuration: --enable-static --disable-shared --cpu=i686 --enable-pthreads --disable-ffserver --disable-ffplay --disable-vdpau --enable-gpl --enable-nonfree --enable-libmp3lame --enable-libfaac --enable-libx264 --enable-libxvid --prefix=/usr/local libavutil 50. 0 libavcodec 52.53. 0 libavformat 52.52. 0 libavdevice 52. 0 libswscale 0.10. 0 [h264 @ 0x8dec5f0]non-existing PPS referenced [h264 @ 0x8dec5f0]non-existing PPS 194 referenced [h264 @ 0x8dec5f0]decode_slice_header error [h264 @ 0x8dec5f0]no frame! [h264 @ 0x8dec5f0]non-existing PPS referenced [h264 @ 0x8dec5f0]non-existing PPS 194 referenced [h264 @ 0x8dec5f0]decode_slice_header error [h264 @ 0x8dec5f0]no frame! [h264 @ 0x8dec5f0]non-existing PPS referenced [h264 @ 0x8dec5f0]non-existing PPS 194 referenced [h264 @ 0x8dec5f0]decode_slice_header error [h264 @ 0x8dec5f0]no frame! [h264 @ 0x8dec5f0]non-existing PPS referenced [h264 @ 0x8dec5f0]non-existing PPS 194 referenced [h264 @ 0x8dec5f0]decode_slice_header error [h264 @ 0x8dec5f0]no frame! [h264 @ 0x8de33a0]max_analyze_duration reached [h264 @ 0x8de33a0]Estimating duration from bitrate, this may be inaccurate Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1) -> 25.00 (50/2) Input #0, h264, from 'raw_video_h264.h264': Duration: N/A, bitrate: N/A Stream #0.0: Video: h264, yuv420p, 704x576, 25.20 fps, 25 tbr, 1200k tbn, 50 tbc At least one output file must be specified When using ffplay, the output is similar: $ ffplay raw_video_h264.h264 FFplay version SVN-r21221, Copyright (c) 2003-2010 Fabrice Bellard, et al. Built on Jan 26 2010 19:19:28 with gcc 4.4.1 configuration: --enable-static --disable-shared --cpu=i686 --enable-pthreads --disable-ffserver --disable-vdpau --enable-gpl --enable-nonfree --enable-libmp3lame --enable-libfaac --enable-libx264 --enable-libxvid --prefix=/usr/local libavutil 50. 0 libavcodec 52.47. 0 libavformat 52.47. 0 libavdevice 52. 0 libswscale 0.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |