How to make/fix mp4 file can be play on vlc?

Psychesnet Hsieh psychesnet at gmail.com
Mon Jul 27 07:49:23 UTC 2020


Hi all,

We have a share memory which we store raw h264 frames on it.
We write a appsrc testing tool, the behavior like "gst-launch-1.0 appsrc
name=ringbuf ! mp4mux ! filesink location=/tmp/opt/h264.mp4".
Double check the h264.mp4 which can be play via gstreamer(playbin) and
ffplay, not VLC.

At same time, I use ffprobe to dump the info of h264.mp4, we have











*$ ffprobe -i h264.mp4 -v quiet -print_format json -show_format{
"format": {        "filename": "/prefix/s5lwrt/h264.mp4",
"nb_streams": 1,        "nb_programs": 0,        "format_name": "h264",
    "format_long_name": "raw H.264 video",        "size": "9911102",
"probe_score": 51    }}*

I use "ffmpeg -i h264.mp4 -vcodec copy aaa.mp4" to convert it and ffprobe
aaa.mp4.




















*$ ffprobe -i aaa.mp4 -v quiet -print_format json -show_format{
"format": {        "filename": "aaa.mp4",        "nb_streams": 1,
"nb_programs": 0,        "format_name": "mov,mp4,m4a,3gp,3g2,mj2",
"format_long_name": "QuickTime / MOV",        "start_time": "0.000000",
    "duration": "10.074000",        "size": "9915267",        "bit_rate":
"7873946",        "probe_score": 100,        "tags": {
"major_brand": "isom",            "minor_version": "512",
"compatible_brands": "isomiso2avc1mp41",            "encoder":
"Lavf58.29.100"        }    }}*

Look like the header is quite different. I already use "faststart=TRUE" in
my code, still same.
So please give me some advice to fix this problem, need your help. Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20200727/710f8035/attachment.htm>


More information about the gstreamer-devel mailing list