How to make/fix mp4 file can be play on vlc?
gotsring
gotsring at live.com
Mon Jul 27 19:07:02 UTC 2020
Are you finalizing the MP4 file? This is done by sending an EOS signal
through the pipeline. For the gst-launch command-line tool, just add -e in
the options, like
gst-launch-1.0 -e appsrc name=ringbuf ! mp4mux ! filesink
location=/tmp/opt/h264.mp4
On a side note, I prefer MKV containers instead of MP4 because they tend to
be more resistant to errors. If you don't finalize an MKV file, you can
still play the video, scrubbing or other metadata isn't available. If you
don't finalize the MP4 file, the file is unplayable. MKV files can still
play in VLC, so you'd be good there.
Example:
gst-launch-1.0 -e appsrc name=ringbuf ! matroskamux ! filesink
location=/tmp/opt/h264.mkv
You might need a parser right before the matroskamux, like h264parse.
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
More information about the gstreamer-devel
mailing list