[FFmpeg-user] example/remuxing failed
Harold.Miao
miaohonghit at gmail.com
Thu Jul 24 05:49:47 CEST 2014
hi all
I use example/remuxing to learn how to convert mp4 to ts, but I failed ! I
wish someone could tell me how to change remuxing.c to get successful
result.
thanks in advance!
*localhost examples # ./remuxing output_file.mp4 1.ts*
*Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output_file.mp4':*
* Metadata:*
* major_brand : isom*
* minor_version : 512*
* compatible_brands: isomiso2avc1mp41*
* encoder : Lavf55.44.100*
* Duration: 00:00:20.02, start: 0.000000, bitrate: 1518 kb/s*
* Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
1280x720 [SAR 1:1 DAR 16:9], 1387 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc
(default)*
* Metadata:*
* handler_name : VideoHandler*
* Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo,
fltp, 125 kb/s (default)*
* Metadata:*
* handler_name : SoundHandler*
*Output #0, mpegts, to '1.ts':*
* Stream #0:0: Video: h264, yuv420p, 1280x720 [SAR 1:1 DAR 16:9],
q=2-31, 1387 kb/s, 50 tbc*
* Stream #0:1: Audio: aac, 44100 Hz, stereo, fltp, 125 kb/s*
*[mpegts @ 0x225b7c0] Using AVStream.codec.time_base as a timebase hint to
the muxer is deprecated. Set AVStream.time_base instead.*
*[mpegts @ 0x225b7c0] Using AVStream.codec.time_base as a timebase hint to
the muxer is deprecated. Set AVStream.time_base instead.*
*[adts @ 0x225fc80] Using AVStream.codec.time_base as a timebase hint to
the muxer is deprecated. Set AVStream.time_base instead.*
*in: pts:3000 pts_time:0.12 dts:0 dts_time:0 duration:1000
duration_time:0.04 stream_index:0*
*out: pts:10800 pts_time:0.12 dts:0 dts_time:0 duration:3600
duration_time:0.04 stream_index:0*
*in: pts:0 pts_time:0 dts:0 dts_time:0 duration:1024 duration_time:0.02322
stream_index:1*
*out: pts:0 pts_time:0 dts:0 dts_time:0 duration:2090
duration_time:0.0232222 stream_index:1*
*[mpegts @ 0x225b7c0] H.264 bitstream malformed, no startcode found, use
the h264_mp4toannexb bitstream filter (-bsf h264_mp4toannexb)*
*Error muxing packet*
*Error occurred: Invalid argument*
--
Best Regards,
Harold Miao
More information about the ffmpeg-user
mailing list