[FFmpeg-user] c:v copy - output file is empty, nothing was encoded
Peter Trompeter
peter_trompeter at hotmail.com
Thu Oct 9 00:52:47 CEST 2014
hi all,
i've been trying to solve a strange problem but i'm not really getting anywhere, so i'm hoping to find an expert here ...
basic situation is i have a raw h264 encoded video and want to mux it into an mp4 container. no audio. no re-encoding.
so i do: ffmpeg -i snippet.h264 -r 25 -c:v copy snippet.mp4
however, this does not seem to work. error message: Output file is empty, nothing was encoded
what am I doing wrong?
sample file can be found at: http://s000.tinyupload.com/?file_id=78774328066008732903
thanks
peter
---
full cmdline + output for reference:
crs at vbox:~/data$ ffmpeg -i snippet.h264 -r 25 -c:v copy snippet.mp4
ffmpeg version 1.2.6-7:1.2.6-1~trusty1 Copyright (c) 2000-2014 the FFmpeg developers
built on Apr 26 2014 18:52:58 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
configuration: --arch=amd64 --disable-stripping --enable-avresample --enable-pthreads --enable-runtime-cpudetect --extra-version='7:1.2.6-1~trusty1' --libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-libcdio --enable-x11grab --enable-libx264 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
libavutil 52. 18.100 / 52. 18.100
libavcodec 54. 92.100 / 54. 92.100
libavformat 54. 63.104 / 54. 63.104
libavdevice 53. 5.103 / 53. 5.103
libavfilter 3. 42.103 / 3. 42.103
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
[h264 @ 0x171c2c0] Stream #0: not enough frames to estimate rate; consider increasing probesize
[h264 @ 0x171c2c0] Estimating duration from bitrate, this may be inaccurate
Input #0, h264, from 'snippet.h264':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: h264 (Constrained Baseline), yuv420p, 1440x544, 25 fps, 25 tbr, 1200k tbn, 50 tbc
Output #0, mp4, to 'snippet.mp4':
Metadata:
encoder : Lavf54.63.104
Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1440x544, q=2-31, 25 fps, 12800 tbn, 25 tbc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
frame= 0 fps=0.0 q=-1.0 Lsize= 0kB time=00:00:00.00 bitrate=N/A
video:0kB audio:0kB subtitle:0 global headers:0kB muxing overhead inf%
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
More information about the ffmpeg-user
mailing list