Hi,

I have one question about data stream for mpegts/flv:


If I encoded some private data, such as metadata in PES in some private stream 
in mpegts, I will send the private data at the fixed interval. Then, ffmpeg can 
probe the unknown stream with unknown codec.




I use the following ffmpeg command, but fali to copy private data. How can I 
copy the private stream directly into flv file?


ffmpeg -i input.ts -map 0:2 -c copy  -bsf:a aac_adtstoasc -copy_unknown -f data 
-f flv output.flv




ffmpeg version 4.0.1 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 6.3.1 (GCC) 20170216 (Red Hat 6.3.1-3)
  libavutil      56. 14.100 / 56. 14.100
  libavcodec     58. 18.100 / 58. 18.100
  libavformat    58. 12.100 / 58. 12.100
  libavdevice    58.  3.100 / 58.  3.100
  libavfilter     7. 16.100 /  7. 16.100
  libswscale      5.  1.100 /  5.  1.100
  libswresample   3.  1.100 /  3.  1.100
  libpostproc    55.  1.100 / 55.  1.100
[mpegts @ 0x53b5dc0] probed stream 2 failed
[mpegts @ 0x53b5dc0] Could not find codec parameters for stream 2 (Unknown: 
none): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpegts, from 'input.ts':
  Duration: 00:00:13.28, start: 0.700000, bitrate: 2219 kb/s
  Program 1 
    Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), 
yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 
90k tbn, 50 tbc
    Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, 
stereo, fltp, 122 kb/s
  No Program
    Stream #0:2[0x1fff]: Unknown: none
[flv @ 0x53bd4c0] Codec type '(null)' for stream 0 is not compatible with FLV
Could not write header for output file #0 (incorrect codec parameters ?): 
Invalid argument
Stream mapping:
  Stream #0:2 -> #0:0 (copy)
    Last message repeated 1 times






Thanks!


Regards


Andrew

_______________________________________________
ffmpeg-user mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to