Questions tagged [mp4]

MP4 is a multimedia container format standard with the file extension .mp4. It can be used to store digital audio/video streams, in addition to other multimedia.

Filter by
Sorted by
Tagged with
-2 votes
0 answers
14 views

How to update this script to generate HLS video with different resolution streams? [closed]

I have the following FFmpeg script: ffmpeg -i video.mp4 -i video.vtt \ -map 0:v -map 0:a:0 -map 1 \ -s:v:0 1080x1920 -c:v:0 h264 -b:v:0 500K \ -c:a:0 copy -c:a:1 copy -c:a:2 copy -c:s webvtt \ -f ...
Andy Z's user avatar
  • 1
0 votes
0 answers
14 views

Video streaming using gstreamer, lower network usage to 200kbs or under

Not very familiar with Gstreamer, currently editing a bash script to configure camera video for an RTP MP4 network stream. The intent was to get the best possible compression as I don't have a lot of ...
tech 21's user avatar
2 votes
1 answer
54 views

How to create an animated scatterplot in Python and safe as .mp4?

I have an array A in python which contains n x n x n matrices, on each position having either the value 1 or -1. np.random.choice([1, -1], size=(n, n, n)) So say A contains 20 of these matrices. I ...
WhatIfBlueberry's user avatar
0 votes
0 answers
52 views

VLC video streamed video is not working due to it saved as corrupted video

I have recorded a video using VLC stream. At the end of the record, I clicked the stop button and closed the player within a few seconds. now the video is not playable I have used this feature before ...
isuru prasad's user avatar
0 votes
0 answers
32 views

How to play mp4 video in server using axios

I want to play an mp4 video from another site on my site, but I have to send special header referer information when requesting this mp4 video. I have done a lot of experiments and I am leaving a few ...
leshcode's user avatar
0 votes
0 answers
32 views

FLASK in Python - Videos won't play on chrome oder edge but play perfectly in firefox and safari

i have a strange problem. I made a page that should display videos from my local pc with a tunnel. Thats my video player: <div class="container mx-auto text-center"> <h4 ...
b0sna's user avatar
  • 3
-1 votes
0 answers
14 views

Error while converting FLV to MP4 using FFMPEG on Linux [closed]

can someone help me please ? I'm trying to reencode some FLV files to MP4 and some of them are returning an error, the error is: [flv @ 0x5645b9dc59c0] Invalid keyframes object, skipping. [flv @ ...
Senhor Supremo's user avatar
0 votes
0 answers
109 views
+100

Problems with outputting stream format as RTMP via FFmpeg C-API

I am using FFmpeg's C API to push video streams rtmp://.... into an SRS server. The input stream is an MP4 file named juren-30s.mp4. The output stream is also an MP4 file named juren-30s-5.mp4. My ...
dongrixinyu's user avatar
0 votes
0 answers
23 views

Spring Security no JWT token on video streaming

i am using Spring Security, JWT & S3 to stream my mp4 file. Here i created a small test video player in order to show you my problem. Notice! This works fine without security. But as soon as i ...
gensheimer's user avatar
2 votes
3 answers
133 views

Unable to select/pass the selected URI of Gallery video in the android 12 and 13 and not able to view in the selected screen

I am using the android app and trying to add the gallery videos to my video editing screen. But it failed to show the video and showing a black screen. Can any one let me know what I am doing wrong. I ...
sejn's user avatar
  • 2,176
0 votes
0 answers
29 views

Muxing steps for Fragmented MP4 into Progressive MP4

I am creating an MP4 muxer app using isobmff Library. I have a fragmented MP4. Example structure: moof/mdat --> moof/mdat etc... Now I want to transmux the fragmented MP4 into being a progressive ...
Kundera's user avatar
  • 115
2 votes
2 answers
172 views

When MP4 files encoded with H264 are set to slices=n, where can I find out how many slices the current NALU is?

I am doing an experiment on generating thumbnails for web videos. I plan to extract I-frames from the binary stream by simulating the working principle of the decoder, and add the PPS and SPS ...
Gaowan Liang's user avatar
0 votes
1 answer
70 views

MSE dont play video if mimetype have audio codecs in chrome

I have an fmp4(h264/aac) stream from the server, and a Wsplayer player, if the stream without sound the video plays in firefox and chrome browsers, but if the stream with sound in chrome the video ...
Ильгиз Работа's user avatar
0 votes
1 answer
27 views

Should version field be put in edts box or elst box in MP4?

I am trying to learn MP4 Boxes and I saw this document on the internet. On 8.26 (Page 43), it said that: An Edit Box maps the presentation time-line to the media time-line as it is stored in the file....
Han Han's user avatar
  • 354
1 vote
2 answers
66 views

How can I use the response data after an axios call to display video in React?

I use react for frontend. I get an mp4 video file from an axios call: const onGetVideo = () => { axiosClient.get(`/solution/video.mp4`) .then(({ data }) => { console.log(data) // data ...
ZoltanParragi's user avatar
0 votes
1 answer
40 views

gstreamer filesrc raw image conversion issue

I have captured a raw image which is converted to jpg image using ffmpeg successfully. Raw image(1920x1080 YUV422). fmpeg -f rawvideo -s 1920x1080 -pix_fmt yuyv422 -i raw_data_0 test3.jpg **Now, I ...
Suresh Kumar's user avatar
2 votes
0 answers
92 views

Can I know which byte range to read from a remote mp4 file for FFMpeg to decode a keyframe?

I need to decode a of keyframe of a video file (mp4, h264 encoded). I know the timestamp of the keyframe I want to extract/decode. I want to minimize amount of data being read in memory. For this, I ...
db9117's user avatar
  • 21
1 vote
1 answer
71 views

Which atom (box) has subtitle data in MP4 (ISOBMFF)

In ISOBMFF (MP4), what atom (box) has subtitle information ? I have a MP4 File which has subtitle. Using FFMPEG, I input the subtitle in video. ffmpeg -i input.mp4 -vf "subtitles=subtitle.srt&...
Kundera's user avatar
  • 115
0 votes
0 answers
13 views

How to perform using lafida data set in the cubemap slam?

I want to do Lapida dataset with the cubemap slam code currently running on mp4. So when I convert the lafida dataset into an mp4 video and run it on that slam, the slam is executed, but it's not the ...
david8's user avatar
  • 1
-2 votes
1 answer
63 views

could not find a writer for the specified extension in function 'cv::imwrite_' - filename HAS the correct extension - Python, CV2

I originally tried holding the thumbnails in memory, but that didn't work and now I'm creating temporary thumbnail files in a nearby directory. Anyway, the image creation works for photos, but it's ...
not_a_generic_user's user avatar
0 votes
1 answer
133 views

Different PTS values in ffmpeg and MP4 CTS values obtained using ctts and stts

I have been studying PTS values in .mp4 media files. PTS for video stream can be extracted from ffmpeg CLI using ffmpeg -hide_banner -i -vf "showinfo" -f null - For a sample .mp4 I have ...
userDtrm's user avatar
  • 565
0 votes
0 answers
15 views

Video is too much buffering

I am developing a website like Udemy using Laravel, where user purchase course and watch a course with different topics. but i am facing an issue when any user watch course any topic video the video ...
Faizan Hussain's user avatar
1 vote
1 answer
83 views

Extracting NALUs in MP4 files with audio

I am developing a WinForms application in VB.NET where I need to parse an MP4 file (specifically, MP4 Version 1 based on ISO_IEC_14496-12; and the H.264/AVC codec), extract frames as images, and store ...
Daniel's user avatar
  • 448
2 votes
2 answers
104 views

mov to mp4 with expo react native

I am using the expo camera ,if i am using the expo camera get i get the mov file in IOS but we want the mp4 file and i try to install the package of react-native-mov-to-mp4 https://www.npmjs.com/...
Nitika Kohli's user avatar
1 vote
1 answer
55 views

When I write moof box from mp4, the ASCII code is reversed

I am trying to extract the 'moof' box from movie box in isobmff foramt. // It is assumed that the movie box contains fragment data. ISOMovie moov; MP4MovieFragmentAtomPtr moof; FILE *fp; fp = fopen(&...
Kundera's user avatar
  • 115
0 votes
1 answer
48 views

when muxing h264 to mp4 (isobmff format), Endian processing method

If video data muxing to mp4 file, video raw data -> mdat A typical MP4 layout: [MDAT size in 4 bytes] --> [MDAT header in 4 bytes "m","d","a","t"] then ...
Kundera's user avatar
  • 115
0 votes
1 answer
118 views

Read metadata of video like comment, author, etc

I have a video that I read with mp4box.js, and I’d like to get the metadata of this video in my browser, like comment, author, etc. (I’m mostly interested in comments, you can easily add them to a ...
tobiasBora's user avatar
  • 1,627
1 vote
1 answer
37 views

In isobmff library, how to write only moof and mdat (m4v) (MUXING)

I am using isobmff library https://github.com/MPEGGroup/isobmff. My Goal is make m4v file. I Know How to make mp4 and fmp4 using this library. But, I do not know how to make only m4v(moof and mdat box ...
Kundera's user avatar
  • 115
0 votes
1 answer
27 views

WPF: How to read video orientation (i.e. side data: displaymatrix) in mp4 with TagLibSharp?

I'm trying to display videos in a WPF MediaElement. I took them with my phone. Videos taken in landscape mode show fine, in portrait mode they are rotated by 90 degrees. When looking at them in ...
Peter Huber's user avatar
  • 3,132
0 votes
0 answers
18 views

not sure if its just my computer, but I cannot play a safari video

not sure if its just my computer, but I cannot play a safari video in the Safari browser: https://www.apple.com/105/media/us/apple-vision-pro/2023/7e268c13-eb22-493d-a860-f0637bacb569/anim/foundation-...
Famous's user avatar
  • 41
0 votes
0 answers
65 views

mp4 Video Plays in Browser but no Media Player

I have some MP4 videos I downloaded off X and saved, locally, that play fine in a web browser, but will not play in any media player. They have size; they are not zero byte files. If I drag the file ...
talkinggoat's user avatar
1 vote
0 answers
44 views

360 Degree Image View by Scrubbing mp4 in video tag

I'm trying to replicate a 360° image viewer experience using a video. The goal is to let users click and drag on a video to fast forward or rewind it, simulating the effect of spinning a 3D object. ...
janetolson's user avatar
1 vote
1 answer
240 views

WebCodecs - create mp4 video from jpg images

I started playing with WebCodecs API. I try to create mp4 video from set of jpg images. Starting with something simple, I'm trying to create an mp4 from one jpg image. When the output callback is ...
grandzello's user avatar
1 vote
1 answer
78 views

Compression Artifacts using sws_Scale() AVFrame YUV420p-> openCV Mat BGR24 and back

I transcode, using C++ and FFmpeg, an H264 video in an .mp4 container to H265 video in an .mp4 container. That works perfectly with crisp and clear images and encoding conversion confirmed by checking ...
Walter's user avatar
  • 139
0 votes
0 answers
76 views

How to show the video with mediapipe in html in django?

my html and views.py are refer to https://roytuts.com/upload-and-play-video-using-django/, but i want to change the display video to video with mediapipe,what should i do or change in my code? ...
何艾穎's user avatar
2 votes
1 answer
54 views

In Video Does Sample Means mdat data?

I use isobmff Library for Muxing. (https://github.com/MPEGGroup/isobmff) I make h264(avc) to mp4 file. (muxing) when I muxing, I use ISOAddMediaSamples this function. In Video, Does Sample Means only ...
Kundera's user avatar
  • 115
0 votes
0 answers
49 views

Is there any way to modify .mp3 file so it would match timestamps from .srt file? Or take .srt file and convert it to speech

I want to create voiceover in different language for .mp4 file which is in english. I have transcribed .mp4 using Whisperx and I have three files .txt and .srt/.vtt. I translated .txt/.srt/.vtt files ...
Charles Skorsky's user avatar
0 votes
2 answers
64 views

Classic ASP: play mp4 file located behind web root

My client uploads MP4s to a folder behind the web root for internal usage. They would like to play these directly for some users from a web page rather than download. Is that even possible? I can get ...
RobertyBob's user avatar
0 votes
0 answers
50 views

Gstreamer Camera to HLS optimization

I have a following Gstreamer pipeline (which generated HLS and a separate MP4 file). Is there anything I can do to optimize it in terms of CPU / memory / delay? gst-launch-1.0 \ v4l2src name=...
worz's user avatar
  • 1
2 votes
2 answers
180 views

ios/safari can not load mp4 from Azure Web app

I have a Azure web app (hosting a react app) where ios/safari users can not load my .mp4 files. Other browser have no problem. On chrome the file is returned 200 OK, as media type video/mp4 . It is a ...
Todilo's user avatar
  • 1,276
0 votes
0 answers
85 views

Get the width / height of the video from H.265 NALU from rtsp packet

I am trying to get width / height from the received vps/sps/pps packet . i have tried parsing sps packet with following method but no luck `void H265Codecs::extractWidthHeightFromSPS(byte* spsData, ...
dinesh's user avatar
  • 1
0 votes
0 answers
41 views

Why do my Twilio Video Compositions start and end with black frames?

I record a Twilio Programmable Video room between two people and create a Composition out of the four recorded streams (two audio and two video). Problem: The resulting .mp4 file always starts and ...
fblundun's user avatar
  • 959
0 votes
0 answers
53 views

How to send a video file trough node js server?

I have a node js app that I want to have a file sharing capability. This is the code that takes the file from html input: var file = document.getElementById('file-selector').files[0]; var reader = ...
SITRUUNA's user avatar
0 votes
1 answer
447 views

Video.js on Safari (IOS)

I have an issue with the Video.js player on Safari on iOS devices. When I try to play the video, it starts, as indicated by the timeline. However, neither audio nor video is played. After about 10 ...
sontak.de's user avatar
0 votes
0 answers
24 views

Using isobmff github. Make fmp4 file

Using isobmff github. I am trying to Make Avc to fmp4 file. Now I am using Link : https://github.com/MPEGGroup/isobmff this C Library for isobmff. I want to Make fmp4 file and There is similar case of ...
Kundera's user avatar
  • 115
0 votes
0 answers
57 views

Firebase cloud function fluent-ffmpeg resize and convert

In the firebase cloud functions I upload a video in .webm format, I want to resize it and convert it to .mp4. I am able to generate a file, and reupload the generated file to the firebase storage ...
Romeo's user avatar
  • 1,135
1 vote
1 answer
214 views

Cannot play DAV to MP4 converted H.265 video file with hvc1 tag in iPhone

I have converted H.265 video file in dav format from Dahua camera using following commands. Both of the generated mp4 video files are NOT playable in iPhone default player. However, the generated ...
Venkata Subbarao's user avatar
0 votes
1 answer
76 views

Swift - AVPlayer only starts playing .mp4 videos from Firebase Storage after full download

I have MP4 video files stored in Firebase Storage that I'm trying to play in an iOS app using AVPlayer. Here's a snippet of my code: private(set) var player: AVPlayer! player = AVPlayer(playerItem: ....
Sotiris Kaniras's user avatar
1 vote
0 answers
91 views

How to render a video in the frontend with base64 data which is being recieved live on the backend?

I am making a web app to control a dji ryze tello drone. The drone has a camera which sends the live mp4 video-feed to my backend. I recieve 30 frames a second in base64 on my backend and i am using a ...
Lars Verschoor's user avatar

1
2 3 4 5
62