Questions tagged [mov]
Questions related to the assembler `mov` instruction
298
questions
-1
votes
0
answers
68
views
Convert GIF to MOV with alpha FFmpeg
I'd like to convert GIF animation file with transparency to MOV with alpha channel.
So I tried
ffmpeg -i input.gif -c:v hevc_videotoolbox -allow_sw 1 -alpha_quality 0.75 -vtag hvc1 output.mov
As a ...
0
votes
0
answers
50
views
How to decipher EXC_BAD_ACCESS on memcpy assembly instruction?
I am debugging an application during which I encountered a runtime error in a module for which I don't have symbols. I looked into the assembly code for it and have identified the code line which is ...
0
votes
0
answers
54
views
What is the purpose of sub in this block of code and what are the alternatives to using sub?
.386
.MODEL FLAT, stdcall
.STACK 4096
ExitProcess PROTO, dwExitCode:DWORD
.data
arr1 DWORD 25, 89, 49, 80
arr2 DWORD 30, 100, 50, 150
.code
_main PROC
sub eax, eax
add eax, [arr1 + 0]
...
-1
votes
2
answers
119
views
mov library for Android
We are creating one app with video player, but we are not able to stream mov files.
We are using Exo player for streaming but getting some error. please help on it
Any other mov supporting libraries ...
-2
votes
1
answer
106
views
How can I use ffmpeg to create video with alpha from png in C code?
I'm trying to encode a video (mov) from png images with alpha channel in FFMPEG. Using cmd:
ffmpeg -i %d.png -r 25 -vcodec png -b:v 2500K out.mov -y
It works well.
Now I want to use in c++ code, but ...
-1
votes
1
answer
74
views
Converting .avi to mov using ffmpeg
ffmpeg.exe -i input.avi output.mov
The above command works but
ffmpeg.exe -i input.avi -c:v libx264 -c:a output.mov
fails. But I'm jot able to figure out why
0
votes
0
answers
36
views
How do mov and arithmetic operations on xmm registers work? [duplicate]
I have to work with the 128 bit xmm registers.
I'm confused regarding operations such as
movsd xmm2, xmm3
movupd xmm4, xmm9
movq xmm1, xmm7
movd xmm3, xmm8
subsd xmm0, xmm4
divsd xmm9, xmm3
....
...
0
votes
1
answer
86
views
How to display a transparent video in HTML5?
I am having issue with this code:
import myTitle from "../../image/earth.mov";
function Hero() {
return (
<div className="section-hero">
<video autoPlay loop ...
1
vote
0
answers
91
views
ffmpeg encoding mov with alpha from png in C code
I'm trying to encode a video (mov) from png images with alpha channel in FFMPEG.
Using cmd:
ffmpeg -i %d.png -r 25 -vcodec png -b:v 2500K out.mov -y
It works well.
I need to create video from png ...
0
votes
1
answer
48
views
ffmpeg conversion executable file output ".MOD: no files in such directory"
I installed ffmpeg using Homebrew in macOS 12.2. I have a folder of MOD files from an old camera that I need to convert to MOV or MP4 to edit them, I have a .bat file in my Windows machine that I can ...
1
vote
0
answers
96
views
getting video length of mov file with no audio error chrome js
Is there an accurate way to determine the length of a .mov file with chrome? On our website we currently use video.onloadedmetadata but it's causing errors.
Example:
upload(data) {
const file = data....
0
votes
0
answers
26
views
How to move values between the data section in gas assembly [duplicate]
So I'm working on a simple game just to teach myself linux x64, and I'm trying to move a value I got from a read call into a parameter in the .data section
My code is as follows (the important stuff ...
0
votes
0
answers
29
views
Is there a difference between movq and leaq instruction in this example? [duplicate]
movq %src, %dest
leaq (%src), %dest
I think the two instructions fulfill the same purpose, copying the value of src to dest. I want to know if I'm right or if not, what the difference is between the ...
0
votes
0
answers
112
views
How to open .mov format video in HTML5?
<video width="400" controls autoplay>
<source src="./asset1.mov" type="video/mp4">
</video>
This is my code, it doesn't play in all browsers.
I ...
0
votes
0
answers
101
views
ffmpeg encoding prores_ks mov with alpha in C code
I try to encode a png sequence to a prores 4444 video with alpha channel in C language to get the same result as the cli's, the cli I run with:
ffmpeg -i /%5d.png -map 0:v -pattern_type sequence -c:v ...
0
votes
1
answer
237
views
I want to include a .mov file on my website
I have a video in a .mov format. The problem is video has a very high resolution and has a 2GB size.
I want to include it on a section from my website and I want to ask what is the best method for ...
0
votes
0
answers
503
views
How to access an element of an array in x86-64 assembly language [duplicate]
How do you convert a code like "a = Array[i]" into x86 assembly?
On ARM, you could do something like LDR R3, [R2, R1], but I couldn't manage to find a similar thing for x86.
There's "...
0
votes
1
answer
142
views
Operations with R14 (LR) in ARM Keil
I have a problem using assembler in Keil uVision ARM.
I try set R14 register value with this inline assembler code:
__asm {
MOV R14, #Loop;
}
But the compiler says, that "undefined symbol R14&...
0
votes
0
answers
69
views
Having trouble understand this piece of assembly code using mov to %axh, and movd $255, 4(%r9)
I'm just getting into learning assembly code and I have a couple of questions concerning this snippet. Assume %r8 is an array of chars, %r9 is an array of integers and %r10 is an array of long ...
2
votes
1
answer
91
views
Why is moving data between two CPU registers so slow that it costs 30% of total time?
In an attempt to profile & optimize a caching algorithm, I got stuck at something I don't understand.
Here is the hot-spot of the perf's report (in Ubuntu 18.04 LTS and g++ 7.5):
How does just a &...
0
votes
0
answers
297
views
Assembly, Moving 64-bit Immediate to memory? [duplicate]
I was reading:
why we can't move a 64-bit immediate value to memory?
In one of the answers it's mentioned:
mov reg64, imm (in intel syntax, destination first) is the only
instruction that accepts ...
1
vote
1
answer
727
views
How can I use MOV in asm?
I'm coding ASM, and I really don't understand about the rules of mov, so
mov rax, 100 ; it means that the number 100 is in rax?
mov rax, a ; it means that the value of a is in rax? or is the ...
0
votes
0
answers
61
views
Some questions about "ptr" in Assembly Language
When I wrote
mov edx, dword ptr[variable]
It means pass the value of the variable to edx. However, when I wrote
mov mm0, sword ptr[edx]
It means pass the value pointed to by edx to mm0.
I want to know ...
0
votes
1
answer
104
views
Error while compiling MOV instruction in ARM assembly
I am using RVDS6_13 compiler and my processor is Cortex X1 (HERA). For a test where I need to do a bit of assembly language programming, I am getting below error in compilation:
Error: A1616E: ...
-5
votes
1
answer
77
views
Video file is not displaying after converted to .mp4
I'm trying to create PHP video upload script which convert MOV and many other video files extensions to .mp4 extension. I successfully upload the file to the folder and create a record to the database....
1
vote
0
answers
38
views
How to understand this assembly code with movl? [duplicate]
movl $0,-4(%rsp) #t=0
leap -4(%rsp),%rax #&t
I am confused with the meaning of -4(%rsp). In the first line, it seems to represent the memory, but in the second line it seems to be the address. ...
2
votes
1
answer
380
views
How to create transparent video from Blender (eg. logo/animation screen) to be played as part of Android/iOS app?
I would like to create an animation in Blender which has a transparent background and play this as a logo/animation screen within an app for Android/iOS phones/devices.
I am wondering if this is ...
1
vote
1
answer
415
views
Why mov/cmp instead of cmp with two memory operands? [duplicate]
I came through the following statement while going through a binary search program code
l1: mov si,low_
cmp si,high_
Why do we need to store low_ in si and then compare with high_ ?
Can't we ...
0
votes
2
answers
296
views
Why doesn't MOVZX work when operands have the same size?
With Z2 dword ?, mov eax, Z2 works fine but movzx eax, Z2 gives "invalid instruction operands" error.
I am a little confused here: even though Z2 is of same size as eax,
why couldn't ...
0
votes
0
answers
49
views
Why FFmpeg decode an mov in ARGB pix_format and save it into a png file, there is color distortion.?
click here to see the comparing picture
These two pngs are the 101st frame of an mov file.
The left one is decoded by After Effects. I dropped the mov file into AE, and added it into render queue, ...
2
votes
2
answers
1k
views
HTML video tag read MOV file as an audio file in Google Chrome
Here is a MOV video file URL which was copied from my iPhone 8.
https://www.yangfamily.tw/attachments/IMG_3049.MOV
Then I tried to play this video on Chrome, the html code like below:
<video width=&...
1
vote
0
answers
2k
views
mov.w vs movw in arm assembly
Going through the Rust Embedded discovery book, I frequently see ARM assembly code that looks like this:
08000248 <registers::__cortex_m_rt_main::h199f1359501d5c71>:
8000248: push {r7,...
0
votes
1
answer
90
views
How to access pointers in SUBLEQ
I've recently started to learn about SUBLEQ One Instruction Set Computers and am currently trying to write a simple assembler for a SUBLEQ emulator i wrote. So far I've implemented DB, MOV, INC and ...
0
votes
1
answer
310
views
Reduce the weight of webp
Im new to ffmpeg
I got webm (2.21mb) with alpha transparency and trying to convert it to animated webp also with alpha with that command:
ffmpeg -c:v libvpx-vp9 -i input.webm output.webp
Output webp ...
0
votes
1
answer
62
views
SIGSEGV on simple move register to memory in NASM
I must be missing something very basic here. Searched SO but could not find the answer to this particular question. Here's my NASM code:
%include "io64.inc"
section .text
myvar db "...
0
votes
1
answer
67
views
How the stack is overwritten via deferencing MOV operation [Assembler x86]?
I am learning how to use Ghidra Tool and I have a question of how to interpret one function. This is the simplified version:
Take this scenario: the location [RBP – 0x40], of the stack, has this value:...
0
votes
0
answers
83
views
What is the difference between LEA or MOV when both are used to compute values? [duplicate]
I am not sure if this is an duplicate, but I couldn’t find any answer I want in the similar posts, so feel free to write the link down and close this question if there is an answer.
I am currently ...
0
votes
2
answers
201
views
how ti fix "could not spawn langauge tool" error?
include "P16F84A.inc"
cblock 0x33
V1
V2
V3
endc
movlw 3
movwf V1
movlw 4
movwf V2
movf V1,W
addwf V2 , W
movf V2,0
movwf V3
end
Clean: Deleting intermediary and output files. ...
1
vote
0
answers
150
views
Generate a random number given a range with the rdrand instruction
Here is my goal: I want to generate a random number in x86_64 assembly given a start and a stop. Here is my idea for doing this in pseudo-Python:
def rand_bounded(start, stop):
return (start / ...
0
votes
1
answer
263
views
Different opcode for mov instruction than expected in x86
Let's say I have a very simple instruction mov eax,12345h. I assembled it using fasm and generated a bin file. When i checked the opcode of above instruction using hex editor it gave 66 B8 45 23 01 00 ...
0
votes
2
answers
837
views
FFMPEG fails while processing MOV files
I'm trying to convert video files to DASH format. All videos work great except MOV videos.
I'm using the following command:
/usr/local/bin/ffmpeg -y -i /path/to/mov/video.mov -c:v libx264 -c:a aac -bf ...
0
votes
0
answers
1k
views
Using FFMPEG to convert .mov to mp4 with Blob Urls (NodeJS)
I'm trying to convert my .mov files to .mp4 in nodeJS. I'm using fluent-ffmpeg, and my users are capturing live video on their mobile phones that come in a variety of file formats. But the API I'm ...
0
votes
1
answer
70
views
AVC profiles supported in MOV or MP4 container
I am looking for a list of AVC profiles supported in MOV and MP4 containers. In particular, I am interested in knowing if AVC High 10, AVC High 4:2:2, and AVC High 10 4:2:2 profiles are supported in ...
1
vote
0
answers
74
views
movb causes bad speculation
I am working on a parallel tree implementation. During profiling, I have recognized high bad speculation on movb operation.
My data structure looks as follows:
struct data {
enum annotation_type ...
2
votes
0
answers
338
views
Why MOV AX, data Works?
I'm new to Assembly, and reading my school books I noticed it said MOV AX, data followed by MOV DS, AX was to initialise the Data Segment register (which I fully understand), but what confuses me is ...
0
votes
0
answers
16
views
does movl affect upper bytes? [duplicate]
A homework question I don't understand the answer to:
Assuming all registers start at 0, what is the value of the RBX registers at the end of this assembly code?
mov $31, %bl
sal $32, %rbx
movl $...
0
votes
1
answer
1k
views
.mp4 file uploaded from react-native won't play in chrome
I have a situation where I am recorded a video via expo / react-native and uploaded it to a s3 bucket. However, when I access the s3 link in the browser, the video will not play. However, the video ...
21
votes
2
answers
9k
views
Why is mov turing complete?
I found this recently: https://github.com/xoreaxeaxeax/movfuscator
It seems to be contingent on the fact that mov is turing-complete. Is that true, and why?
0
votes
0
answers
43
views
segfault while using cmp x84 [duplicate]
I'm new to assembly and I'm doing this for school. It's segfaulting on line 16 (cmpq) even though from what I understand I'm doing this correctly. Thanks in advance.
global transitions
.text
...
4
votes
0
answers
523
views
What do I need to use ffmpeg to convert .mov file to webm?
I'm trying to convert .mov files to .webm using ffmpeg from terminal on my Mac. However I don't really get what I should install to complete the conversion: I've installed libvpx
brew install libvpx
...