mp4

mp4 video not playing on iphone

前提是你 提交于 2021-01-28 12:19:22
问题 I have a mp4 video to automatically play on website, but it doesn't play on iphone. Referring to other Q & A about the same issue, I added "playsinline" to the video tag. However it doesn't seem to work and nothing is displayed on the screen of my iphone. Could anyone help me find out what is wrong with my code? <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie

FFMPEG - Get creation and/or modification date

巧了我就是萌 提交于 2021-01-28 12:04:50
问题 I'm trying hard to get the modification date from a MP4 file hosted on my server. I tried the following library: ffmpeg -i video.mp4 Without any luck. All I get is duration and a few other fields but I'm not able to get modification date. I tried ffprobe as well and it is not there either. Any suggestions?? Thanks a lot 回答1: I checked for you, and indeed, mp4 has a modification time entry in the MDHD, but it's not exported (see code). You can file an enhancement request to get this metadata

How to create a video from frames named using timestamp with ffmpeg

a 夏天 提交于 2021-01-28 08:22:11
问题 I have a folder filled with frames that have the timestamp in the name in the folowing format im_%H_%M_%S_%MS.png im_08_05_09_007324.png im_08_05_09_532857.png im_08_05_10_059340.png im_08_05_10_575862.png im_08_05_11_118361.png im_08_05_11_596814.png im_08_05_12_148340.png im_08_05_12_665838.png I try to use -pattern_type glob in windows but it does not work. ffmpeg.exe -framerate 10 -pattern_type glob -i im_*.png -c:v libx264 -r 30 -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" -pix_fmt yuv420p

GStreamer - RTSP to HLS / mp4

穿精又带淫゛_ 提交于 2021-01-28 08:06:42
问题 I try to save RTSP h.264 stream to HLS mp4 files: gst-launch-1.0 rtspsrc location="rtsp://....." ! rtph264depay ! h264parse ! matroskamux ! hlssink max-files=0 playlist-length=0 location="/home/user/ch%05d.mp4" playlist-location="/home/user/list.m3u8" target-duration=15 As a result - there is only one file ch00000.mp4, which includes the whole videostream (3min instead of 15sec in "target-duration"). If I save to mpegtsmux / ts files - all is ok for the same command. What is wrong? Thanks in

FFMpeg command to convert from avi to mp4 in php script

浪尽此生 提交于 2021-01-28 08:05:31
问题 ffmpeg command to convert from avi file to mp4 file below does create mp4 file, but the quality of it is not all right at all. Fist, the sizes of the files are different, the mp4 is much smaller and about 1/10 of the avi file. Second, the playing time of the newly created mp4 is short lasting about 0.1 seconds where the avi file lasts about 60 seconds. Can anyone please help me out for the ffmpeg command to create mp4 file from avi under the directory like below? for i in /xxxxxxx/xxxxxxx/*

mp4 tag editing with java

限于喜欢 提交于 2021-01-27 15:56:18
问题 I want to edit tags of mp4 video file in java. I find out mp4parser on google code but there is no enough documentation for that. What would be the best lib for editing mp4 video tags in java. And is there any limitation for comment tag in mp4 video?? 回答1: So by tags you mean things like title, artist, album etc? In this case you can try the new API available in JCodec (org.jcodec.movtool.MetadataEditor). It also has a CLI (org.jcodec.movtool.MetadataEditorMain). Here's the basic usage: #

Python: Convert GIF To video(mp4)

那年仲夏 提交于 2020-12-29 09:39:04
问题 I am trying to find some way for converting GIF to mp4 using Python or library. I didn't found any solution for it. I found a library for generating gifs from videos but not the other way round. Can anyone please give me some information on how to do it. 回答1: Try MoviePy: import moviepy.editor as mp clip = mp.VideoFileClip("mygif.gif") clip.write_videofile("myvideo.mp4") If you don't have MoviePY installed then first install it: pip install MoviePy 回答2: There are many ways to do this.

FFMPEG: Transmux mpegts to mp4 gives error: muxer does not support non seekable output

大城市里の小女人 提交于 2020-12-02 05:56:59
问题 When piping mpegts to ffmpeg, which should convert it to mp4 and pipe to stdout, ffmpeg says: "muxer does not support non seekable output". After a lot of research I came to the conclusion that mp4 is a bad choice for doing those kinds of on-the-fly transcoding due to seeking. So in essence: MP4 cannot be piped through ffmpeg, which kind of makes sense. But I do not have a contiguous mpegts stream, I have chunks of 5 seconds. So it's really just like: Here is my 1 mb *.ts file Please read it

FFMPEG: Transmux mpegts to mp4 gives error: muxer does not support non seekable output

喜你入骨 提交于 2020-12-02 05:56:39
问题 When piping mpegts to ffmpeg, which should convert it to mp4 and pipe to stdout, ffmpeg says: "muxer does not support non seekable output". After a lot of research I came to the conclusion that mp4 is a bad choice for doing those kinds of on-the-fly transcoding due to seeking. So in essence: MP4 cannot be piped through ffmpeg, which kind of makes sense. But I do not have a contiguous mpegts stream, I have chunks of 5 seconds. So it's really just like: Here is my 1 mb *.ts file Please read it

FFMPEG: Transmux mpegts to mp4 gives error: muxer does not support non seekable output

人盡茶涼 提交于 2020-12-02 05:55:59
问题 When piping mpegts to ffmpeg, which should convert it to mp4 and pipe to stdout, ffmpeg says: "muxer does not support non seekable output". After a lot of research I came to the conclusion that mp4 is a bad choice for doing those kinds of on-the-fly transcoding due to seeking. So in essence: MP4 cannot be piped through ffmpeg, which kind of makes sense. But I do not have a contiguous mpegts stream, I have chunks of 5 seconds. So it's really just like: Here is my 1 mb *.ts file Please read it