QuestionId
stringlengths
3
8
QuestionTitle
stringlengths
15
149
QuestionScore
int64
1
27.2k
QuestionCreatedUtc
stringdate
2008-08-01 18:33:08
2025-06-16 04:59:48
QuestionBodyHtml
stringlengths
40
28.2k
QuestionViewCount
int64
78
16.5M
QuestionOwnerUserId
float64
4
25.2M
QuestionLastActivityUtc
stringdate
2008-09-08 19:26:01
2026-01-24 22:40:25
AcceptedAnswerId
int64
266
79.7M
AnswerScore
int64
2
30.1k
AnswerCreatedUtc
stringdate
2008-08-01 23:40:28
2025-06-16 05:23:39
AnswerOwnerUserId
float64
1
29.5M
AnswerLastActivityUtc
stringdate
2008-08-01 23:40:28
2026-01-23 17:46:09
QuestionLink
stringlengths
31
36
AnswerLink
stringlengths
31
36
AnswerBodyHtml
stringlengths
35
33k
AnswerBodyPreview
stringlengths
35
400
AllTagIdsCsv
stringlengths
2
37
AllTagNamesCsv
stringlengths
2
106
MergedQuestion
stringlengths
74
28.4k
quality_filter
stringclasses
10 values
unique_id
int64
0
29k
tag_major_lang
stringclasses
10 values
MergedQuestion_md
stringlengths
60
28.1k
AnswerBodyHtml_md
stringlengths
14
29.2k
3987850
mp4 atom - How to discriminate the audio codec? Is it AAC or MP3?
15
2010-10-21 13:20:21
<p>I'm working on a mp4 container parser but I'm going crazy trying to recognize the audio codecs of the streams. I used both QtAtomViewer and AtomicParsley but when I find the atom:</p> <p>trak-&gt;mdia-&gt;minf-&gt;stbl-&gt;stsd</p> <p>I get always &quot;mp4a&quot; even if the mp4 file has an mp3 stream.</p> <p>Shoul...
16,680
483,010
2025-07-08 18:38:38
4,644,066
34
2011-01-10 05:54:43
569,381
2012-09-30 21:04:07
https://stackoverflow.com/q/3987850
https://stackoverflow.com/a/4644066
<p>In the 'esds' atom there are a few fields relevant to determining the codec. The first byte of content of the esds atom is the <code>objectTypeIndication</code> (that's the 11th byte from your solution). This field is supposed to indicate the codec used, but there are a few entries used by multiple codecs. MP4RA has...
<p>In the 'esds' atom there are a few fields relevant to determining the codec. The first byte of content of the esds atom is the <code>objectTypeIndication</code> (that's the 11th byte from your solution). This field is supposed to indicate the codec used, but there are a few entries used by multiple codecs. MP4RA has...
348, 1034, 12894
audio, codec, mp4
<h1>mp4 atom - How to discriminate the audio codec? Is it AAC or MP3?</h1> <p>I'm working on a mp4 container parser but I'm going crazy trying to recognize the audio codecs of the streams. I used both QtAtomViewer and AtomicParsley but when I find the atom:</p> <p>trak-&gt;mdia-&gt;minf-&gt;stbl-&gt;stsd</p> <p>I get a...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,423
perforce
# mp4 atom - How to discriminate the audio codec? Is it AAC or MP3? I'm working on a mp4 container parser but I'm going crazy trying to recognize the audio codecs of the streams. I used both QtAtomViewer and AtomicParsley but when I find the atom: trak->mdia->minf->stbl->stsd I get always "mp4a" even if the mp4 file...
In the 'esds' atom there are a few fields relevant to determining the codec. The first byte of content of the esds atom is the `objectTypeIndication` (that's the 11th byte from your solution). This field is supposed to indicate the codec used, but there are a few entries used by multiple codecs. MP4RA has a [full list ...
15990974
Installing codecs for mov to mp4 conversion ffmpeg
11
2013-04-13 17:52:35
<p>I have been trying to convert a .mov file to a .mp4 file for a while now i think this is the correct code to do it.</p> <pre><code>ffmpeg -i P1010989.MOV -vcodec copy -acodec copy out.mp4 </code></pre> <p>But here is my output</p> <pre><code>FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg developers b...
19,785
1,503,606
2014-07-19 17:52:07
15,992,052
33
2013-04-13 19:36:51
1,002,260
2014-07-19 17:52:07
https://stackoverflow.com/q/15990974
https://stackoverflow.com/a/15992052
<pre><code> Stream #0.1(eng): Audio: pcm_s16be, 16000 Hz, 1 channels, s16, 256 kb/s [mp4 @ 0x95b0080]track 1: could not find tag, codec not currently supported in container </code></pre> <p>This is telling you not that the codec is missing, but that it is not compatible with the MP4 format.</p> <p>You can fix this...
<pre><code> Stream #0.1(eng): Audio: pcm_s16be, 16000 Hz, 1 channels, s16, 256 kb/s [mp4 @ 0x95b0080]track 1: could not find tag, codec not currently supported in container </code></pre> <p>This is telling you not that the codec is missing, but that it is not compatible with the MP4 format.</p> <p>You can fix this...
1034, 3847, 12894, 37356
codec, ffmpeg, mov, mp4
<h1>Installing codecs for mov to mp4 conversion ffmpeg</h1> <p>I have been trying to convert a .mov file to a .mp4 file for a while now i think this is the correct code to do it.</p> <pre><code>ffmpeg -i P1010989.MOV -vcodec copy -acodec copy out.mp4 </code></pre> <p>But here is my output</p> <pre><code>FFmpeg vers...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,424
perforce
# Installing codecs for mov to mp4 conversion ffmpeg I have been trying to convert a .mov file to a .mp4 file for a while now i think this is the correct code to do it. ``` ffmpeg -i P1010989.MOV -vcodec copy -acodec copy out.mp4 ``` But here is my output ``` FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpe...
``` Stream #0.1(eng): Audio: pcm_s16be, 16000 Hz, 1 channels, s16, 256 kb/s [mp4 @ 0x95b0080]track 1: could not find tag, codec not currently supported in container ``` This is telling you not that the codec is missing, but that it is not compatible with the MP4 format. You can fix this issue by using a different...
4444407
Entity Framework CTP 4. "Cannot insert the value NULL into column" - Even though there is no NULL value
56
2010-12-14 21:26:55
<p>Im using EF CTP 4. I have a simple console app (for testing purposes) that is using EF to insert some data into a SQL database.</p> <p>I have come to a problem where by upon inserting the item </p> <pre><code>using(var context = GetContext()) { BOB b = new BOB(); b.Id = 1; context.Bobs.Add(b); context...
58,592
192,409
2021-06-18 13:50:03
4,448,576
32
2010-12-15 09:48:52
44,269
2010-12-15 09:48:52
https://stackoverflow.com/q/4444407
https://stackoverflow.com/a/4448576
<p>Have you tried explicitly specifying the <code>StoreGeneratedPattern</code>?</p> <pre><code>modelBuilder.Entity&lt;BOB&gt;() .HasKey(p =&gt; p.Id) .Property(p =&gt; p.Id) .StoreGeneratedPattern = StoreGeneratedPattern.None; builder.Entity&lt;BOB&gt;().MapSingleType().ToTable("BOB"); </code>...
<p>Have you tried explicitly specifying the <code>StoreGeneratedPattern</code>?</p> <pre><code>modelBuilder.Entity&lt;BOB&gt;() .HasKey(p =&gt; p.Id) .Property(p =&gt; p.Id) .StoreGeneratedPattern = StoreGeneratedPattern.None; builder.Entity&lt;BOB&gt;().MapSingleType().ToTable("BOB"); </code>...
9, 2535, 62389
c#, ctp4, entity-framework
<h1>Entity Framework CTP 4. "Cannot insert the value NULL into column" - Even though there is no NULL value</h1> <p>Im using EF CTP 4. I have a simple console app (for testing purposes) that is using EF to insert some data into a SQL database.</p> <p>I have come to a problem where by upon inserting the item </p> <pre...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,425
perforce
# Entity Framework CTP 4. "Cannot insert the value NULL into column" - Even though there is no NULL value Im using EF CTP 4. I have a simple console app (for testing purposes) that is using EF to insert some data into a SQL database. I have come to a problem where by upon inserting the item ``` using(var context = G...
Have you tried explicitly specifying the `StoreGeneratedPattern`? ``` modelBuilder.Entity<BOB>() .HasKey(p => p.Id) .Property(p => p.Id) .StoreGeneratedPattern = StoreGeneratedPattern.None; builder.Entity<BOB>().MapSingleType().ToTable("BOB"); ```
23202220
Mono MVC5 - Views don't work
16
2014-04-21 17:18:35
<p>I am trying to launch MVC5 website on my Linux box using Mono and XSP4. It works with no views however when I try to render something it gives me errors.</p> <p>Here is my test code. Note that I didn't change anything, this is basically a blank site without EF or any other libraries. Just bare-bone MVC5 + Razor.</p...
10,458
440,611
2021-07-21 18:35:25
26,128,304
32
2014-09-30 19:10:42
440,611
2014-09-30 19:10:42
https://stackoverflow.com/q/23202220
https://stackoverflow.com/a/26128304
<p>The problem is in <code>Web.config</code> that is inside <code>/Views</code> folder. <code>system.web.webPages.razor</code> <code>host</code> parameter must match exactly with MVC version.</p> <p>For example if you have MVC 5.2.2.0 then it should look like <code>&lt;host factoryType="System.Web.Mvc.MvcWebRazorHostF...
<p>The problem is in <code>Web.config</code> that is inside <code>/Views</code> folder. <code>system.web.webPages.razor</code> <code>host</code> parameter must match exactly with MVC version.</p> <p>For example if you have MVC 5.2.2.0 then it should look like <code>&lt;host factoryType="System.Web.Mvc.MvcWebRazorHostF...
9, 470, 552, 13414, 78816
asp.net-mvc, c#, mono, xsp, xsp4
<h1>Mono MVC5 - Views don't work</h1> <p>I am trying to launch MVC5 website on my Linux box using Mono and XSP4. It works with no views however when I try to render something it gives me errors.</p> <p>Here is my test code. Note that I didn't change anything, this is basically a blank site without EF or any other libr...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,426
perforce
# Mono MVC5 - Views don't work I am trying to launch MVC5 website on my Linux box using Mono and XSP4. It works with no views however when I try to render something it gives me errors. Here is my test code. Note that I didn't change anything, this is basically a blank site without EF or any other libraries. Just bare...
The problem is in `Web.config` that is inside `/Views` folder. `system.web.webPages.razor` `host` parameter must match exactly with MVC version. For example if you have MVC 5.2.2.0 then it should look like `<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.2.2.0, Culture=neutral, Publ...
22698718
Can a HTML 5 video tag have multiple MP4 sources with different codecs?
18
2014-03-27 20:39:16
<p>I'm thinking about the fact that the higher the MP4 profile we go, the better the video quality gets...</p> <p>This brings me to a question I thought I'd ask the experts!</p> <p>Can a HTML 5 video tag have multiple MP4 sources with different codecs? Something like:</p> <pre><code>&lt;video&gt; &lt;source src...
40,478
722,180
2014-08-08 06:43:56
25,148,757
31
2014-08-05 21:35:48
522,479
2014-08-05 21:35:48
https://stackoverflow.com/q/22698718
https://stackoverflow.com/a/25148757
<p><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source" rel="noreferrer">According to Mozilla</a>, <code>&lt;video&gt;</code> can contain an arbitrary number of <code>&lt;source&gt;</code> tags. Also, the first source tag with a compatible video file for the current device/browser should be played...
<p><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source" rel="noreferrer">According to Mozilla</a>, <code>&lt;video&gt;</code> can contain an arbitrary number of <code>&lt;source&gt;</code> tags. Also, the first source tag with a compatible video file for the current device/browser should be played...
2, 519, 1034
html, mp4, video
<h1>Can a HTML 5 video tag have multiple MP4 sources with different codecs?</h1> <p>I'm thinking about the fact that the higher the MP4 profile we go, the better the video quality gets...</p> <p>This brings me to a question I thought I'd ask the experts!</p> <p>Can a HTML 5 video tag have multiple MP4 sources with di...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,428
perforce
# Can a HTML 5 video tag have multiple MP4 sources with different codecs? I'm thinking about the fact that the higher the MP4 profile we go, the better the video quality gets... This brings me to a question I thought I'd ask the experts! Can a HTML 5 video tag have multiple MP4 sources with different codecs? Somethi...
[According to Mozilla](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source), `<video>` can contain an arbitrary number of `<source>` tags. Also, the first source tag with a compatible video file for the current device/browser should be played. [Apple themselves confirm](https://developer.apple.com/library...
12106321
Perforce, How to integrate a change to another branch?
18
2012-08-24 09:08:55
<p>I have trunk and a release branch. If I fixed a bug in release branch, I definitely should integrate the fix back to trunk. However, I didn't find a command dedicated to integrate such a single change list; did I miss something?</p>
54,048
663,948
2020-09-07 12:50:08
12,149,115
31
2012-08-27 20:27:27
1,054,341
2012-08-27 20:27:27
https://stackoverflow.com/q/12106321
https://stackoverflow.com/a/12149115
<p>To integrate changelist 100, for example, you'd use:</p> <pre><code>p4 merge //releasebranch/...@=100 //trunk/... p4 resolve p4 submit </code></pre> <p>(If you have an older Perforce server you'll have to use 'integ' instead of 'merge'.)</p> <p>Note that '@=100' means the same thing as '@100,100' in this context....
<p>To integrate changelist 100, for example, you'd use:</p> <pre><code>p4 merge //releasebranch/...@=100 //trunk/... p4 resolve p4 submit </code></pre> <p>(If you have an older Perforce server you'll have to use 'integ' instead of 'merge'.)</p> <p>Note that '@=100' means the same thing as '@100,100' in this context....
1286, 1879, 53847
branch, branching-and-merging, perforce
<h1>Perforce, How to integrate a change to another branch?</h1> <p>I have trunk and a release branch. If I fixed a bug in release branch, I definitely should integrate the fix back to trunk. However, I didn't find a command dedicated to integrate such a single change list; did I miss something?</p>
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,429
perforce
# Perforce, How to integrate a change to another branch? I have trunk and a release branch. If I fixed a bug in release branch, I definitely should integrate the fix back to trunk. However, I didn't find a command dedicated to integrate such a single change list; did I miss something?
To integrate changelist 100, for example, you'd use: ``` p4 merge //releasebranch/...@=100 //trunk/... p4 resolve p4 submit ``` (If you have an older Perforce server you'll have to use 'integ' instead of 'merge'.) Note that '@=100' means the same thing as '@100,100' in this context.
30829774
Perforce - switch to workspace from command line
11
2015-06-14 13:11:03
<p>I am asking how to switch from client1 to client2 where client1 belongs to stream1 and client2 belongs to stream2.</p> <p>What I am looking for it to do the same as being in p4v and then right click on a workspace and selecting 'switch to workspace'</p> <p>Note, that if your current workspace is client1 and you use:...
45,500
1,885,095
2022-08-12 09:06:22
30,832,027
31
2015-06-14 16:51:45
193,453
2015-06-14 16:51:45
https://stackoverflow.com/q/30829774
https://stackoverflow.com/a/30832027
<p>There are several different concepts here.</p> <p>You can have a single workspace, or you can have multiple workspaces. </p> <p>Each workspace has its own root directory on your workstation, and its own copy of whatever files you have most recently sync'd.</p> <p>If you have a single workspace, you can switch tha...
<p>There are several different concepts here.</p> <p>You can have a single workspace, or you can have multiple workspaces. </p> <p>Each workspace has its own root directory on your workstation, and its own copy of whatever files you have most recently sync'd.</p> <p>If you have a single workspace, you can switch tha...
422, 1286, 117368
perforce, perforce-stream, workspace
<h1>Perforce - switch to workspace from command line</h1> <p>I am asking how to switch from client1 to client2 where client1 belongs to stream1 and client2 belongs to stream2.</p> <p>What I am looking for it to do the same as being in p4v and then right click on a workspace and selecting 'switch to workspace'</p> <p>No...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,430
perforce
# Perforce - switch to workspace from command line I am asking how to switch from client1 to client2 where client1 belongs to stream1 and client2 belongs to stream2. What I am looking for it to do the same as being in p4v and then right click on a workspace and selecting 'switch to workspace' Note, that if your curr...
There are several different concepts here. You can have a single workspace, or you can have multiple workspaces. Each workspace has its own root directory on your workstation, and its own copy of whatever files you have most recently sync'd. If you have a single workspace, you can switch that workspace back and fort...
15658895
Is there a downside to putting the MOOV atom at the beginning of an MP4 file?
29
2013-03-27 12:33:42
<p>I see tons of questions about relocating the <code>moov</code> atom from the end of a MP4 video container to the beginning, to make the video "web optimized" or easier to stream. It seems like most tools require an explicit option to do this when first encoding the video, if it's available at all.</p> <p>If placin...
18,530
26,286
2019-12-04 20:21:21
15,659,056
30
2013-03-27 12:42:05
393,701
2019-12-04 20:21:21
https://stackoverflow.com/q/15658895
https://stackoverflow.com/a/15659056
<p>Encoding the MOOV at the end of the file is usually a default operation for video encoders because they tend to operate by writing the output file in one-pass, and the exact contents and size of the MOOV atom can only be known after having written audio and video data entirely, because it contains absolute file size...
<p>Encoding the MOOV at the end of the file is usually a default operation for video encoders because they tend to operate by writing the output file in one-pass, and the exact contents and size of the MOOV atom can only be known after having written audio and video data entirely, because it contains absolute file size...
1034, 21832, 33093
h.264, mp4, video-encoding
<h1>Is there a downside to putting the MOOV atom at the beginning of an MP4 file?</h1> <p>I see tons of questions about relocating the <code>moov</code> atom from the end of a MP4 video container to the beginning, to make the video "web optimized" or easier to stream. It seems like most tools require an explicit optio...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,431
perforce
# Is there a downside to putting the MOOV atom at the beginning of an MP4 file? I see tons of questions about relocating the `moov` atom from the end of a MP4 video container to the beginning, to make the video "web optimized" or easier to stream. It seems like most tools require an explicit option to do this when fir...
Encoding the MOOV at the end of the file is usually a default operation for video encoders because they tend to operate by writing the output file in one-pass, and the exact contents and size of the MOOV atom can only be known after having written audio and video data entirely, because it contains absolute file sizes. ...
9412384
m4a mp4 file format what's the difference or are they the same?
29
2012-02-23 11:45:01
<p>I've looked and can't seem to find a concrete answer.</p> <p>My client wants to play sound clips on his website, currently he has over 2000 clips which are in m4a format.</p> <p>A lot of the audio players I have looked at say they support mp4 but no mention of m4a.</p> <p>From the wiki on mp4 it says they are bot...
61,036
440,552
2021-04-16 02:51:16
9,510,754
30
2012-03-01 04:47:56
716,216
2013-06-01 21:03:26
https://stackoverflow.com/q/9412384
https://stackoverflow.com/a/9510754
<p>Since we're talking about iPhones, the best way to go would be to use <code>.m4a</code>, being the native format iTunes uses for music. This was my initial thought, but I found you some material on the matter. (linked below)</p> <p>"Besides the extension, absolutely nothing. Apple came up with extension to distigui...
<p>Since we're talking about iPhones, the best way to go would be to use <code>.m4a</code>, being the native format iTunes uses for music. This was my initial thought, but I found you some material on the matter. (linked below)</p> <p>"Besides the extension, absolutely nothing. Apple came up with extension to distigui...
348, 1034, 2322, 5455
audio, file-format, m4a, mp4
<h1>m4a mp4 file format what's the difference or are they the same?</h1> <p>I've looked and can't seem to find a concrete answer.</p> <p>My client wants to play sound clips on his website, currently he has over 2000 clips which are in m4a format.</p> <p>A lot of the audio players I have looked at say they support mp4...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,432
perforce
# m4a mp4 file format what's the difference or are they the same? I've looked and can't seem to find a concrete answer. My client wants to play sound clips on his website, currently he has over 2000 clips which are in m4a format. A lot of the audio players I have looked at say they support mp4 but no mention of m4a....
Since we're talking about iPhones, the best way to go would be to use `.m4a`, being the native format iTunes uses for music. This was my initial thought, but I found you some material on the matter. (linked below) "Besides the extension, absolutely nothing. Apple came up with extension to distiguish between files with...
37943833
How to sync to specific folder using command line in Perforce
16
2016-06-21 11:59:27
<p>Suppose I have mapped my depot to client workspace as <code>c:/perforce/project</code> but now </p> <p>I want to sync all the files present in <code>c:/perforce/project/fold1/fold2</code> folder. </p> <p>How can we do it, as the command p4 sync takes only file names and not folder.</p>
55,145
2,529,325
2022-06-11 19:05:25
37,948,152
30
2016-06-21 15:08:06
3,980,033
2022-06-11 19:05:25
https://stackoverflow.com/q/37943833
https://stackoverflow.com/a/37948152
<p>Say the depot path is //depot/project/...</p> <p>From the command line, do <code>p4 sync //depot/project/fold1/fold2/...</code></p> <p>(the &quot;...&quot; tells Perforce you want that folder and everything under it).</p> <p>From P4V, right-click on the folder and choose &quot;Get Latest Revision&quot;. It will only...
<p>Say the depot path is //depot/project/...</p> <p>From the command line, do <code>p4 sync //depot/project/fold1/fold2/...</code></p> <p>(the &quot;...&quot; tells Perforce you want that folder and everything under it).</p> <p>From P4V, right-click on the folder and choose &quot;Get Latest Revision&quot;. It will only...
1286, 8025
p4v, perforce
<h1>How to sync to specific folder using command line in Perforce</h1> <p>Suppose I have mapped my depot to client workspace as <code>c:/perforce/project</code> but now </p> <p>I want to sync all the files present in <code>c:/perforce/project/fold1/fold2</code> folder. </p> <p>How can we do it, as the command p4 sync...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,433
perforce
# How to sync to specific folder using command line in Perforce Suppose I have mapped my depot to client workspace as `c:/perforce/project` but now I want to sync all the files present in `c:/perforce/project/fold1/fold2` folder. How can we do it, as the command p4 sync takes only file names and not folder.
Say the depot path is //depot/project/... From the command line, do `p4 sync //depot/project/fold1/fold2/...` (the "..." tells Perforce you want that folder and everything under it). From P4V, right-click on the folder and choose "Get Latest Revision". It will only pull in the folder and everything underneath it.
38957155
How to create a perforce empty changelist from command line
12
2016-08-15 14:34:06
<p>i'm trying to create an empty changelist from command line using the command <code>p4 change -i</code> but seems that this command does nothing, i don't get any error/success message, the command line simply return nothing and i have to kill it with ctrl+c.</p> <p>My p4 client works, i'm able to see all my info and...
21,804
2,842,174
2017-04-19 18:28:21
38,969,939
30
2016-08-16 08:24:23
3,799,759
2016-08-16 08:24:23
https://stackoverflow.com/q/38957155
https://stackoverflow.com/a/38969939
<p>If you're using the command line interactively, the regular "p4 change" command is the way to go:</p> <pre><code>p4 change </code></pre> <p>This opens the changelist spec in your editor so you can fill it out, and saves the changelist when you save the file in your editor and exit it.</p> <p>If you're scripting, ...
<p>If you're using the command line interactively, the regular "p4 change" command is the way to go:</p> <pre><code>p4 change </code></pre> <p>This opens the changelist spec in your editor so you can fill it out, and saves the changelist when you save the file in your editor and exit it.</p> <p>If you're scripting, ...
64, 1286, 11225
command-line-interface, perforce, windows
<h1>How to create a perforce empty changelist from command line</h1> <p>i'm trying to create an empty changelist from command line using the command <code>p4 change -i</code> but seems that this command does nothing, i don't get any error/success message, the command line simply return nothing and i have to kill it wit...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,434
perforce
# How to create a perforce empty changelist from command line i'm trying to create an empty changelist from command line using the command `p4 change -i` but seems that this command does nothing, i don't get any error/success message, the command line simply return nothing and i have to kill it with ctrl+c. My p4 cli...
If you're using the command line interactively, the regular "p4 change" command is the way to go: ``` p4 change ``` This opens the changelist spec in your editor so you can fill it out, and saves the changelist when you save the file in your editor and exit it. If you're scripting, you can use "p4 change -i" but you...
49617878
Converting mov to mp4 with ffmpeg better quality
9
2018-04-02 19:52:54
<p>I want to convert mov videos to mp4. Currentoy I manage this with ffmpeg via bash with the following call:</p> <pre><code>ffmpeg -i input.mov -f mp4 -vcodec mpeg2video -acodec mp3 output.mp4 </code></pre> <p>Yes that works, but the quality is abysmal. My 50Mb is shrunken to a handy 2.3 Mb file. The I tried the var...
23,535
2,055,097
2020-04-23 02:16:54
49,619,164
29
2018-04-02 21:36:48
1,109,017
2020-04-23 02:16:54
https://stackoverflow.com/q/49617878
https://stackoverflow.com/a/49619164
<h1>Remux only</h1> <p>If your input video and audio are compatible with MP4 you can use <a href="https://ffmpeg.org/ffmpeg.html#Stream-copy" rel="noreferrer">stream copy</a> mode:</p> <pre><code>ffmpeg -i input.mov -c copy output.mp4 </code></pre> <h1>Re-encode</h1> <p>If you need to encode to other formats compat...
<h1>Remux only</h1> <p>If your input video and audio are compatible with MP4 you can use <a href="https://ffmpeg.org/ffmpeg.html#Stream-copy" rel="noreferrer">stream copy</a> mode:</p> <pre><code>ffmpeg -i input.mov -c copy output.mp4 </code></pre> <h1>Re-encode</h1> <p>If you need to encode to other formats compat...
1034, 3847, 37356
ffmpeg, mov, mp4
<h1>Converting mov to mp4 with ffmpeg better quality</h1> <p>I want to convert mov videos to mp4. Currentoy I manage this with ffmpeg via bash with the following call:</p> <pre><code>ffmpeg -i input.mov -f mp4 -vcodec mpeg2video -acodec mp3 output.mp4 </code></pre> <p>Yes that works, but the quality is abysmal. My 50...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,435
perforce
# Converting mov to mp4 with ffmpeg better quality I want to convert mov videos to mp4. Currentoy I manage this with ffmpeg via bash with the following call: ``` ffmpeg -i input.mov -f mp4 -vcodec mpeg2video -acodec mp3 output.mp4 ``` Yes that works, but the quality is abysmal. My 50Mb is shrunken to a handy 2.3 Mb ...
# Remux only If your input video and audio are compatible with MP4 you can use [stream copy](https://ffmpeg.org/ffmpeg.html#Stream-copy) mode: ``` ffmpeg -i input.mov -c copy output.mp4 ``` # Re-encode If you need to encode to other formats compatible with MP4: ``` ffmpeg -i input.mov -crf 23 -preset medium -movfl...
22965569
convert from jpg to mp4 by ffmpeg
29
2014-04-09 14:23:33
<p>I have 320 jpg(320x574) images which I have recorded them with 2004 fps. I want to make a .mp4 video of them. I have run below codes in cmd (win7) and it just make a video of jpg number 320 and if I go for this ('*.jpg') insted of 320 it does not work. I really appreciate any help.</p> <pre><code>ffmpeg -r 1/5 -i C...
113,755
2,316,215
2022-06-23 13:37:40
22,966,561
28
2014-04-09 15:01:47
70,939
2021-09-17 16:17:03
https://stackoverflow.com/q/22965569
https://stackoverflow.com/a/22966561
<p>Depending on your file names you'll want:</p> <pre><code>ffmpeg -f image2 -i /path/to/file/image%3d.jpg test.avi </code></pre> <p>The <code>image%3d</code> would be for files named: <code>image000.jpg</code>, <code>image001.jpg</code>, <code>image002.jpg</code>, etc.</p> <p>If your files are named <code>image0.jpg</...
<p>Depending on your file names you'll want:</p> <pre><code>ffmpeg -f image2 -i /path/to/file/image%3d.jpg test.avi </code></pre> <p>The <code>image%3d</code> would be for files named: <code>image000.jpg</code>, <code>image001.jpg</code>, <code>image002.jpg</code>, etc.</p> <p>If your files are named <code>image0.jpg</...
1034, 1585, 3847
ffmpeg, jpeg, mp4
<h1>convert from jpg to mp4 by ffmpeg</h1> <p>I have 320 jpg(320x574) images which I have recorded them with 2004 fps. I want to make a .mp4 video of them. I have run below codes in cmd (win7) and it just make a video of jpg number 320 and if I go for this ('*.jpg') insted of 320 it does not work. I really appreciate a...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,436
perforce
# convert from jpg to mp4 by ffmpeg I have 320 jpg(320x574) images which I have recorded them with 2004 fps. I want to make a .mp4 video of them. I have run below codes in cmd (win7) and it just make a video of jpg number 320 and if I go for this ('*.jpg') insted of 320 it does not work. I really appreciate any help. ...
Depending on your file names you'll want: ``` ffmpeg -f image2 -i /path/to/file/image%3d.jpg test.avi ``` The `image%3d` would be for files named: `image000.jpg`, `image001.jpg`, `image002.jpg`, etc. If your files are named `image0.jpg`, `image1.jpg`, `image2.jpg`, etc. then you'd use `/path/to/file/image%d.jpg`. S...
3875303
Perforce File Locked By Departed User
27
2010-10-06 17:33:21
<p>I have a file that is locked/checked out exclusively by a user who is no longer with the company. I need to make changes and want to know how to "steal the lock".</p>
44,061
11,916
2025-07-25 13:29:19
3,875,343
28
2010-10-06 17:38:56
280,314
2019-11-26 12:36:52
https://stackoverflow.com/q/3875303
https://stackoverflow.com/a/3875343
<p>Ask your perforce admin to remove the lock by issuing</p> <pre><code>p4 unlock -f &lt;file&gt; </code></pre> <p>PS: To reuse the departed user's license, your perforce admin might also want clean up the files left opened by him. He can revert the pending edits if they are useless or transfer them to another user v...
<p>Ask your perforce admin to remove the lock by issuing</p> <pre><code>p4 unlock -f &lt;file&gt; </code></pre> <p>PS: To reuse the departed user's license, your perforce admin might also want clean up the files left opened by him. He can revert the pending edits if they are useless or transfer them to another user v...
1286, 3227
locking, perforce
<h1>Perforce File Locked By Departed User</h1> <p>I have a file that is locked/checked out exclusively by a user who is no longer with the company. I need to make changes and want to know how to "steal the lock".</p>
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,437
perforce
# Perforce File Locked By Departed User I have a file that is locked/checked out exclusively by a user who is no longer with the company. I need to make changes and want to know how to "steal the lock".
Ask your perforce admin to remove the lock by issuing ``` p4 unlock -f <file> ``` PS: To reuse the departed user's license, your perforce admin might also want clean up the files left opened by him. He can revert the pending edits if they are useless or transfer them to another user via "p4 reopen". The "reopen" and...
4054786
How can I instruct Perforce to merge instead of overwrite or revert when unshelving a file?
20
2010-10-29 18:31:32
<p>How can I instruct <a href="http://www.perforce.com/">Perforce</a> to merge changes into an existing, open, and modified file in the workspace when unshelving a file shelved in the depot? The only options that Perforce appears to offer the user is to overwrite or revert the existing file in the workspace, but this ...
13,128
107,158
2015-03-05 01:47:02
4,055,495
28
2010-10-29 20:06:16
382,186
2013-07-19 16:09:56
https://stackoverflow.com/q/4054786
https://stackoverflow.com/a/4055495
<p>What I typically do is right-click on the shelved file and select "Diff Against Workspace File". When you open up the Diff tool, you can select a button in the toolbar to "Edit file in right pane". This essentially starts a two-way merge. With each difference you can select the changes you want from the shelved f...
<p>What I typically do is right-click on the shelved file and select "Diff Against Workspace File". When you open up the Diff tool, you can select a button in the toolbar to "Edit file in right pane". This essentially starts a two-way merge. With each difference you can select the changes you want from the shelved f...
1286, 8104, 31422
perforce, shelving, unshelve
<h1>How can I instruct Perforce to merge instead of overwrite or revert when unshelving a file?</h1> <p>How can I instruct <a href="http://www.perforce.com/">Perforce</a> to merge changes into an existing, open, and modified file in the workspace when unshelving a file shelved in the depot? The only options that Perfo...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,438
perforce
# How can I instruct Perforce to merge instead of overwrite or revert when unshelving a file? How can I instruct [Perforce](http://www.perforce.com/) to merge changes into an existing, open, and modified file in the workspace when unshelving a file shelved in the depot? The only options that Perforce appears to offer ...
What I typically do is right-click on the shelved file and select "Diff Against Workspace File". When you open up the Diff tool, you can select a button in the toolbar to "Edit file in right pane". This essentially starts a two-way merge. With each difference you can select the changes you want from the shelved file (d...
63664953
Converting MKV to MP4
14
2020-08-31 04:50:45
<p>So I am trying to convert a really long video from MKV to MP4. I tried this command first which is supposed to be the fastest way to convert mkv to mp4</p> <p><code>ffmpeg -i &quot;vid.mkv&quot; -codec copy -map 0 &quot;MP4/vid.mp4&quot;</code></p> <p>however I am getting this error everytime I run it</p> <pre><code...
28,595
6,366,565
2020-08-31 06:01:35
63,665,557
28
2020-08-31 06:01:35
5,726,027
2020-08-31 06:01:35
https://stackoverflow.com/q/63664953
https://stackoverflow.com/a/63665557
<p>The issue and solution is mentioned in the 2nd line of the excerpt you pasted.</p> <p>You're using an older version of ffmpeg. Since recently, Opus audio in MP4 is no longer treated as experimental. Upgrade to ffmpeg 4.3 or add <code>-strict -2</code> as mentioned in log.</p> <p>For compatibility sake, you'll usuall...
<p>The issue and solution is mentioned in the 2nd line of the excerpt you pasted.</p> <p>You're using an older version of ffmpeg. Since recently, Opus audio in MP4 is no longer treated as experimental. Upgrade to ffmpeg 4.3 or add <code>-strict -2</code> as mentioned in log.</p> <p>For compatibility sake, you'll usuall...
1034, 3847, 38771
ffmpeg, mkv, mp4
<h1>Converting MKV to MP4</h1> <p>So I am trying to convert a really long video from MKV to MP4. I tried this command first which is supposed to be the fastest way to convert mkv to mp4</p> <p><code>ffmpeg -i &quot;vid.mkv&quot; -codec copy -map 0 &quot;MP4/vid.mp4&quot;</code></p> <p>however I am getting this error ev...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,439
perforce
# Converting MKV to MP4 So I am trying to convert a really long video from MKV to MP4. I tried this command first which is supposed to be the fastest way to convert mkv to mp4 `ffmpeg -i "vid.mkv" -codec copy -map 0 "MP4/vid.mp4"` however I am getting this error everytime I run it ``` [mp4 @ 0x7fffe98ae500] track 1...
The issue and solution is mentioned in the 2nd line of the excerpt you pasted. You're using an older version of ffmpeg. Since recently, Opus audio in MP4 is no longer treated as experimental. Upgrade to ffmpeg 4.3 or add `-strict -2` as mentioned in log. For compatibility sake, you'll usually want to transcode audio ...
781949
How can I find out the date of the day before a date?
7
2009-04-23 14:16:05
<p>I have a system that compares fiscal year up to the current date to the same date range of the year before. You can adjust the year and month to look at and it always compares the same date range to the year previous. I have it set so if the current day is leap day it compares to the 28th of last year, and if last y...
53,807
46,011
2014-11-25 05:27:26
781,959
28
2009-04-23 14:18:40
76,583
2009-04-23 14:18:40
https://stackoverflow.com/q/781949
https://stackoverflow.com/a/781959
<p><a href="https://www.php.net/manual/en/function.strtotime.php" rel="nofollow noreferrer">strtotime()</a> will do the trick. Convert your previous date to a Unix timestamp using <a href="https://www.php.net/manual/en/function.mktime.php" rel="nofollow noreferrer">mktime()</a>, then use it like this:</p> <pre><code>$f...
<p><a href="https://www.php.net/manual/en/function.strtotime.php" rel="nofollow noreferrer">strtotime()</a> will do the trick. Convert your previous date to a Unix timestamp using <a href="https://www.php.net/manual/en/function.mktime.php" rel="nofollow noreferrer">mktime()</a>, then use it like this:</p> <pre><code>$f...
5, 4090
php, php4
<h1>How can I find out the date of the day before a date?</h1> <p>I have a system that compares fiscal year up to the current date to the same date range of the year before. You can adjust the year and month to look at and it always compares the same date range to the year previous. I have it set so if the current day ...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,440
perforce
# How can I find out the date of the day before a date? I have a system that compares fiscal year up to the current date to the same date range of the year before. You can adjust the year and month to look at and it always compares the same date range to the year previous. I have it set so if the current day is leap d...
[strtotime()](https://www.php.net/manual/en/function.strtotime.php) will do the trick. Convert your previous date to a Unix timestamp using [mktime()](https://www.php.net/manual/en/function.mktime.php), then use it like this: ``` $from_unix_time = mktime(0, 0, 0, $month, $day, $year); $day_before = strtotime("yesterda...
24314012
Is there a way to get Perforce to revert unchanged files pending integration?
12
2014-06-19 18:38:02
<p>I'm getting ready to integrate our "Dev" branch into our "Testing" branch in preparation for an upcoming release.</p> <p>For our last release, after the initial integration, we determined there were some changes we didn't want to release. I rolled back some files in the Testing branch, and commented out portions of...
19,017
392,811
2017-12-20 19:01:20
24,314,496
27
2014-06-19 19:08:50
3,708,580
2016-07-14 21:05:50
https://stackoverflow.com/q/24314012
https://stackoverflow.com/a/24314496
<p>Have you tried the following steps under 'Pending integrations not reverted'?</p> <p><a href="http://answers.perforce.com/articles/KB_Article/Reverting-Unchanged-Files" rel="noreferrer">http://answers.perforce.com/articles/KB_Article/Reverting-Unchanged-Files</a></p> <p>Files that are integrated and resolved but h...
<p>Have you tried the following steps under 'Pending integrations not reverted'?</p> <p><a href="http://answers.perforce.com/articles/KB_Article/Reverting-Unchanged-Files" rel="noreferrer">http://answers.perforce.com/articles/KB_Article/Reverting-Unchanged-Files</a></p> <p>Files that are integrated and resolved but h...
1286, 8025
p4v, perforce
<h1>Is there a way to get Perforce to revert unchanged files pending integration?</h1> <p>I'm getting ready to integrate our "Dev" branch into our "Testing" branch in preparation for an upcoming release.</p> <p>For our last release, after the initial integration, we determined there were some changes we didn't want to...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,441
perforce
# Is there a way to get Perforce to revert unchanged files pending integration? I'm getting ready to integrate our "Dev" branch into our "Testing" branch in preparation for an upcoming release. For our last release, after the initial integration, we determined there were some changes we didn't want to release. I roll...
Have you tried the following steps under 'Pending integrations not reverted'? <http://answers.perforce.com/articles/KB_Article/Reverting-Unchanged-Files> Files that are integrated and resolved but have no content or type changes will still be submitted as new revisions, EVEN IF you have 'revertunchanged' selected in ...
7175246
Is there a difference between terms "Get Latest" and "Check-out" in PerForce terminology?
14
2011-08-24 12:16:44
<p>I am trying to get used to Perforce after using SVN where I was mostly using Commit and Get Latest.</p> <p>But in perforce I am kind of confused.</p> <p>What is the difference between terms <code>Get Latest</code> and <code>Check-out</code> in PerForce terminology?</p>
20,334
136,141
2011-08-24 17:38:15
7,175,445
26
2011-08-24 12:31:52
6,309
2011-08-24 17:38:15
https://stackoverflow.com/q/7175246
https://stackoverflow.com/a/7175445
<p>From "<a href="http://www.perforce.com/perforce/doc.current/manuals/p4plugins/01_concepts.html" rel="noreferrer">Perforce Basic Concepts</a>":</p> <ul> <li>Get Latest (<code>p4 sync</code>) is about transferring files from the depot to your workspace.</li> <li>Check-out (<code>p4 edit</code>) is about getting the l...
<p>From "<a href="http://www.perforce.com/perforce/doc.current/manuals/p4plugins/01_concepts.html" rel="noreferrer">Perforce Basic Concepts</a>":</p> <ul> <li>Get Latest (<code>p4 sync</code>) is about transferring files from the depot to your workspace.</li> <li>Check-out (<code>p4 edit</code>) is about getting the l...
456, 1286
perforce, version-control
<h1>Is there a difference between terms "Get Latest" and "Check-out" in PerForce terminology?</h1> <p>I am trying to get used to Perforce after using SVN where I was mostly using Commit and Get Latest.</p> <p>But in perforce I am kind of confused.</p> <p>What is the difference between terms <code>Get Latest</code> an...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,442
perforce
# Is there a difference between terms "Get Latest" and "Check-out" in PerForce terminology? I am trying to get used to Perforce after using SVN where I was mostly using Commit and Get Latest. But in perforce I am kind of confused. What is the difference between terms `Get Latest` and `Check-out` in PerForce terminol...
From "[Perforce Basic Concepts](http://www.perforce.com/perforce/doc.current/manuals/p4plugins/01_concepts.html)": - Get Latest (`p4 sync`) is about transferring files from the depot to your workspace. - Check-out (`p4 edit`) is about getting the latest version from the depot for *editing*. When files are checked ...
62863547
Save canvas data as mp4 - Javascript
10
2020-07-12 16:19:57
<p>I have an animated canvas, I want to convert that into mp4. I am using MediaRecorder to capture the screen and then converting that Blob. I learned that MediaRecorder does not allow recording in mp4, so I am forced to get the canvas in webm. Here is what I have tried:</p> <p><div class="snippet" data-lang="js" data-...
16,508
4,240,328
2024-02-21 01:32:48
62,865,574
26
2020-07-12 19:24:14
120,242
2020-07-12 19:24:14
https://stackoverflow.com/q/62863547
https://stackoverflow.com/a/62865574
<p>Quick demo of transcoding using <a href="https://github.com/ffmpegwasm/ffmpeg.wasm/" rel="noreferrer">ffmpeg.wasm</a>:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>con...
<p>Quick demo of transcoding using <a href="https://github.com/ffmpegwasm/ffmpeg.wasm/" rel="noreferrer">ffmpeg.wasm</a>:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>con...
3, 1034, 4506
canvas, javascript, mp4
<h1>Save canvas data as mp4 - Javascript</h1> <p>I have an animated canvas, I want to convert that into mp4. I am using MediaRecorder to capture the screen and then converting that Blob. I learned that MediaRecorder does not allow recording in mp4, so I am forced to get the canvas in webm. Here is what I have tried:</p...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,443
perforce
# Save canvas data as mp4 - Javascript I have an animated canvas, I want to convert that into mp4. I am using MediaRecorder to capture the screen and then converting that Blob. I learned that MediaRecorder does not allow recording in mp4, so I am forced to get the canvas in webm. Here is what I have tried: ``` <canva...
Quick demo of transcoding using [ffmpeg.wasm](https://github.com/ffmpegwasm/ffmpeg.wasm/): ``` const { createFFmpeg } = FFmpeg; const ffmpeg = createFFmpeg({ log: true }); const transcode = async (webcamData) => { const message = document.getElementById('message'); const name = 'record.webm'; await ffmpeg.loa...
23550041
How can I revert all open files in perforce?
32
2014-05-08 18:43:08
<p>I know how to revert a single opened file. However sometimes I hit some issues where I have to revert all files attached in a single changelist or revert all open pending files (default CL or assigned CL) in a client. Is there any way to do that? I tried <code>p4 revert -c &lt;changelist&gt;</code> where has multip...
49,700
1,115,545
2020-09-22 10:30:29
23,551,099
24
2014-05-08 19:42:30
485,447
2014-05-08 19:42:30
https://stackoverflow.com/q/23550041
https://stackoverflow.com/a/23551099
<p>I bet you just need to provide a filespec, try <code>p4 revert -c &lt;changelist&gt; //...</code></p>
<p>I bet you just need to provide a filespec, try <code>p4 revert -c &lt;changelist&gt; //...</code></p>
456, 1286
perforce, version-control
<h1>How can I revert all open files in perforce?</h1> <p>I know how to revert a single opened file. However sometimes I hit some issues where I have to revert all files attached in a single changelist or revert all open pending files (default CL or assigned CL) in a client. Is there any way to do that? I tried <code>p4...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,444
perforce
# How can I revert all open files in perforce? I know how to revert a single opened file. However sometimes I hit some issues where I have to revert all files attached in a single changelist or revert all open pending files (default CL or assigned CL) in a client. Is there any way to do that? I tried `p4 revert -c <ch...
I bet you just need to provide a filespec, try `p4 revert -c <changelist> //...`
4031431
Entity Framework CTP 4 - Code First Custom Database Initializer
27
2010-10-27 08:57:01
<p>I would like to implement a custom database initialization strategy so that I can generate the database schema and apply it to an EXISTING EMPTY SQL database using a supplied User ID and Password. </p> <p>Unfortunately the built-in strategies don’t provide what I’m looking for:</p> <pre><code>// The default strate...
14,807
80,670
2013-03-07 21:19:49
5,018,062
24
2011-02-16 15:03:51
25,279
2011-05-09 02:46:44
https://stackoverflow.com/q/4031431
https://stackoverflow.com/a/5018062
<p>I ran into the same problem. I didn't really solve it, but I managed to get a little nasty workaround running, so i can deploy my solution to AppHarbor ;)</p> <p>Its a IDatabaseInitializer implementation, that doesn't delete the db, but just nukes all the constraints and tables, and then uses the ObjectContext.Crea...
<p>I ran into the same problem. I didn't really solve it, but I managed to get a little nasty workaround running, so i can deploy my solution to AppHarbor ;)</p> <p>Its a IDatabaseInitializer implementation, that doesn't delete the db, but just nukes all the constraints and tables, and then uses the ObjectContext.Crea...
2535, 26294, 62389
code-first, ctp4, entity-framework
<h1>Entity Framework CTP 4 - Code First Custom Database Initializer</h1> <p>I would like to implement a custom database initialization strategy so that I can generate the database schema and apply it to an EXISTING EMPTY SQL database using a supplied User ID and Password. </p> <p>Unfortunately the built-in strategies ...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,445
perforce
# Entity Framework CTP 4 - Code First Custom Database Initializer I would like to implement a custom database initialization strategy so that I can generate the database schema and apply it to an EXISTING EMPTY SQL database using a supplied User ID and Password. Unfortunately the built-in strategies don’t provide wha...
I ran into the same problem. I didn't really solve it, but I managed to get a little nasty workaround running, so i can deploy my solution to AppHarbor ;) Its a IDatabaseInitializer implementation, that doesn't delete the db, but just nukes all the constraints and tables, and then uses the ObjectContext.CreateDatabase...
266771
Detecting Perforce unopened modified files
27
2008-11-05 21:27:45
<p>I'm trying to figure out a way to detect files that are not opened for editing but have nevertheless been modified locally. <code>p4 fstat</code> returns a value <code>headModTime</code> for any given file, but this is the change time in the depot, which should not be equal to the filesystem's <code>stat</code> last...
23,897
3,594
2016-10-25 05:24:52
266,813
24
2008-11-05 21:41:56
34,329
2016-10-25 05:24:52
https://stackoverflow.com/q/266771
https://stackoverflow.com/a/266813
<p>From: <a href="http://answers.perforce.com/articles/KB/3481/?q=disconnected&amp;l=en_US&amp;fs=Search&amp;pn=1" rel="noreferrer">http://answers.perforce.com/articles/KB/3481/?q=disconnected&amp;l=en_US&amp;fs=Search&amp;pn=1</a></p> <p>See step 2 specifically:</p> <hr> <p>2 . Next, open for "edit" any files that ...
<p>From: <a href="http://answers.perforce.com/articles/KB/3481/?q=disconnected&amp;l=en_US&amp;fs=Search&amp;pn=1" rel="noreferrer">http://answers.perforce.com/articles/KB/3481/?q=disconnected&amp;l=en_US&amp;fs=Search&amp;pn=1</a></p> <p>See step 2 specifically:</p> <hr> <p>2 . Next, open for "edit" any files that ...
1286
perforce
<h1>Detecting Perforce unopened modified files</h1> <p>I'm trying to figure out a way to detect files that are not opened for editing but have nevertheless been modified locally. <code>p4 fstat</code> returns a value <code>headModTime</code> for any given file, but this is the change time in the depot, which should not...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,446
perforce
# Detecting Perforce unopened modified files I'm trying to figure out a way to detect files that are not opened for editing but have nevertheless been modified locally. `p4 fstat` returns a value `headModTime` for any given file, but this is the change time in the depot, which should not be equal to the filesystem's `...
From: <http://answers.perforce.com/articles/KB/3481/?q=disconnected&l=en_US&fs=Search&pn=1> See step 2 specifically: --- 2 . Next, open for "edit" any files that have changed: ``` p4 diff -se //myclient/... | p4 -x - edit ``` p4 diff -se returns the names of depot files whose corresponding client file differs in a...
1929108
Is there a call_user_func() equivalent to create a new class instance?
20
2009-12-18 16:07:33
<p>How can I create a class with a given array of arguments to be sent to the constructor? Something along the lines of:</p> <pre><code>class a { var $args = false; function a() {$this-&gt;args = func_get_args();} } $a = call_user_func_array('new a',array(1,2,3)); print_r($a-&gt;args); </code></pre> <p>Ideal...
9,516
234,422
2016-04-18 14:02:40
1,929,133
24
2009-12-18 16:11:06
4,833
2009-12-18 16:32:33
https://stackoverflow.com/q/1929108
https://stackoverflow.com/a/1929133
<p><a href="http://docs.php.net/reflectionclass.newinstance" rel="noreferrer">ReflectionClass:newInstance()</a> (or newInstanceArgs()) let's you do that.</p> <p>e.g.</p> <pre><code>class Foo { public function __construct() { $p = func_get_args(); echo 'Foo::__construct(', join(',', $p), ') invoked'; } }...
<p><a href="http://docs.php.net/reflectionclass.newinstance" rel="noreferrer">ReflectionClass:newInstance()</a> (or newInstanceArgs()) let's you do that.</p> <p>e.g.</p> <pre><code>class Foo { public function __construct() { $p = func_get_args(); echo 'Foo::__construct(', join(',', $p), ') invoked'; } }...
5, 4090, 5187
class, php, php4
<h1>Is there a call_user_func() equivalent to create a new class instance?</h1> <p>How can I create a class with a given array of arguments to be sent to the constructor? Something along the lines of:</p> <pre><code>class a { var $args = false; function a() {$this-&gt;args = func_get_args();} } $a = call_user...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,448
perforce
# Is there a call_user_func() equivalent to create a new class instance? How can I create a class with a given array of arguments to be sent to the constructor? Something along the lines of: ``` class a { var $args = false; function a() {$this->args = func_get_args();} } $a = call_user_func_array('new a',arr...
[ReflectionClass:newInstance()](http://docs.php.net/reflectionclass.newinstance) (or newInstanceArgs()) let's you do that. e.g. ``` class Foo { public function __construct() { $p = func_get_args(); echo 'Foo::__construct(', join(',', $p), ') invoked'; } } $rc = new ReflectionClass('Foo'); $foo = $rc->n...
31781238
using ffmpeg to convert gif to mp4 , output doesn't play on android
17
2015-08-03 07:03:17
<p>I just use the following command to convert a gif file to mp4 but the resulting mp4 file doesn't play in android default video player .<br> what did I wrong ?<br> is there any aditional steps should I take to produce android playable mp4 files ?</p> <pre><code>$ ffmpeg -f gif -i infile.gif outfile.mp4 </code></pre>...
20,464
889,006
2020-05-22 15:54:27
50,554,953
24
2018-05-27 17:54:09
9,355,411
2018-05-28 00:25:02
https://stackoverflow.com/q/31781238
https://stackoverflow.com/a/50554953
<p>Try this:</p> <pre><code>ffmpeg -i file.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" out.mp4 </code></pre>
<p>Try this:</p> <pre><code>ffmpeg -i file.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" out.mp4 </code></pre>
1034, 3847, 8040
ffmpeg, gif, mp4
<h1>using ffmpeg to convert gif to mp4 , output doesn't play on android</h1> <p>I just use the following command to convert a gif file to mp4 but the resulting mp4 file doesn't play in android default video player .<br> what did I wrong ?<br> is there any aditional steps should I take to produce android playable mp4 fi...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,449
perforce
# using ffmpeg to convert gif to mp4 , output doesn't play on android I just use the following command to convert a gif file to mp4 but the resulting mp4 file doesn't play in android default video player . what did I wrong ? is there any aditional steps should I take to produce android playable mp4 files ? ``` $ ...
Try this: ``` ffmpeg -i file.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" out.mp4 ```
6355671
Create Client Workspace using Perforce command-line on Ubuntu
20
2011-06-15 09:31:06
<p>I am writing a script to build all our projects on a Ubuntu build machine.</p> <p>Each project is stored in Perforce and I am using p4 to perform the above.</p> <p>The command I am using is:</p> <pre><code>p4 -u &lt;MyUsername&gt; -P &lt;MyPassword&gt; client MyWorkspace </code></pre> <p>This runs and loads vim ...
46,585
67,419
2020-09-03 05:12:02
6,358,046
23
2011-06-15 13:01:11
630,924
2020-08-21 07:45:38
https://stackoverflow.com/q/6355671
https://stackoverflow.com/a/6358046
<p>For my builds I have a text file, which I have in perforce, containing my client. That way I know what the client looked like at that build (I don't use a spec depot).</p> <p>So on unix machines:</p> <p><code>$ cat client.txt | p4 client -i</code></p> <p>or for windows:</p> <p><code>type client.txt | p4 client -i</c...
<p>For my builds I have a text file, which I have in perforce, containing my client. That way I know what the client looked like at that build (I don't use a spec depot).</p> <p>So on unix machines:</p> <p><code>$ cat client.txt | p4 client -i</code></p> <p>or for windows:</p> <p><code>type client.txt | p4 client -i</c...
549, 1286
perforce, ubuntu
<h1>Create Client Workspace using Perforce command-line on Ubuntu</h1> <p>I am writing a script to build all our projects on a Ubuntu build machine.</p> <p>Each project is stored in Perforce and I am using p4 to perform the above.</p> <p>The command I am using is:</p> <pre><code>p4 -u &lt;MyUsername&gt; -P &lt;MyPas...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,450
perforce
# Create Client Workspace using Perforce command-line on Ubuntu I am writing a script to build all our projects on a Ubuntu build machine. Each project is stored in Perforce and I am using p4 to perform the above. The command I am using is: ``` p4 -u <MyUsername> -P <MyPassword> client MyWorkspace ``` This runs an...
For my builds I have a text file, which I have in perforce, containing my client. That way I know what the client looked like at that build (I don't use a spec depot). So on unix machines: `$ cat client.txt | p4 client -i` or for windows: `type client.txt | p4 client -i` creates the client from the txt file in per...
23079017
Servname not supported for ai_socktype
18
2014-04-15 09:00:37
<p>I'm running a Centos virtual machine using Vagrant. The machine seems to run properly, but when I try to sync Perforce I can see the following error:</p> <pre><code>[vagrant@vagrant-c5-x86_64 ~]$ /perforce/p4 sync -f ... Perforce client error: Connect to server failed; check $P4PORT. failed.TCP connect to per...
98,150
3,356,058
2022-08-22 11:44:13
26,665,424
23
2014-10-30 23:54:18
320,036
2014-10-30 23:54:18
https://stackoverflow.com/q/23079017
https://stackoverflow.com/a/26665424
<p>I had this problem with a Tornado/Python app. Apparently, <a href="https://github.com/pika/pika/issues/352#issuecomment-18704043" rel="noreferrer">this can be caused</a> by the port being interpreted as a string instead of an integer. So in my case, I needed to change my startup script to force it to be interpreted ...
<p>I had this problem with a Tornado/Python app. Apparently, <a href="https://github.com/pika/pika/issues/352#issuecomment-18704043" rel="noreferrer">this can be caused</a> by the port being interpreted as a string instead of an integer. So in my case, I needed to change my startup script to force it to be interpreted ...
35, 294, 700, 1286, 4956
centos, ip, perforce, port, sockets
<h1>Servname not supported for ai_socktype</h1> <p>I'm running a Centos virtual machine using Vagrant. The machine seems to run properly, but when I try to sync Perforce I can see the following error:</p> <pre><code>[vagrant@vagrant-c5-x86_64 ~]$ /perforce/p4 sync -f ... Perforce client error: Connect to server fa...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,451
perforce
# Servname not supported for ai_socktype I'm running a Centos virtual machine using Vagrant. The machine seems to run properly, but when I try to sync Perforce I can see the following error: ``` [vagrant@vagrant-c5-x86_64 ~]$ /perforce/p4 sync -f ... Perforce client error: Connect to server failed; check $P4PORT....
I had this problem with a Tornado/Python app. Apparently, [this can be caused](https://github.com/pika/pika/issues/352#issuecomment-18704043) by the port being interpreted as a string instead of an integer. So in my case, I needed to change my startup script to force it to be interpreted as an integer. ``` application...
22382859
Filter Perforce History by User
13
2014-03-13 15:08:45
<p>Is there a way—either in P4V or command-line <code>p4</code>—to look through the History of a particular directory and show only changelists by a particular user/submitter?</p> <p><sub><em>I thought older versions of P4V had this feature (though I can't be sure) and I cannot find anything relevant in the menus of t...
10,447
405,017
2014-03-13 16:15:52
22,383,364
23
2014-03-13 15:28:15
405,017
2014-03-13 15:36:09
https://stackoverflow.com/q/22382859
https://stackoverflow.com/a/22383364
<p>Though the History view—which is automatically filtered to the last-selected folder/file in the active tree view—does not seem to have the ability to filter, the Submitted Changelists view can be filtered by both User and file spec. Open the view with <code>Ctrl+2</code>, or from the View menu:</p> <p>&nbsp; &nbsp;...
<p>Though the History view—which is automatically filtered to the last-selected folder/file in the active tree view—does not seem to have the ability to filter, the Submitted Changelists view can be filtered by both User and file spec. Open the view with <code>Ctrl+2</code>, or from the View menu:</p> <p>&nbsp; &nbsp;...
1286
perforce
<h1>Filter Perforce History by User</h1> <p>Is there a way—either in P4V or command-line <code>p4</code>—to look through the History of a particular directory and show only changelists by a particular user/submitter?</p> <p><sub><em>I thought older versions of P4V had this feature (though I can't be sure) and I cannot...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,453
perforce
# Filter Perforce History by User Is there a way—either in P4V or command-line `p4`—to look through the History of a particular directory and show only changelists by a particular user/submitter? *I thought older versions of P4V had this feature (though I can't be sure) and I cannot find anything relevant in the menu...
Though the History view—which is automatically filtered to the last-selected folder/file in the active tree view—does not seem to have the ability to filter, the Submitted Changelists view can be filtered by both User and file spec. Open the view with `Ctrl+2`, or from the View menu: ![View Menu](https://i.sstatic.net...
53926085
How to change Media Created Date in Exiftool?
10
2018-12-25 22:46:31
<p>I have some MP4 videos that don't have Media Created date and time because they were recorded with Instagram camera. I want to set the date and time and I found out that I can do that with Exiftool software. I know that the software works by typing command lines, but I don't know where I should type what. I searched...
40,044
9,405,383
2024-01-21 14:47:16
53,926,462
23
2018-12-26 00:16:40
3,525,475
2022-10-22 04:42:15
https://stackoverflow.com/q/53926085
https://stackoverflow.com/a/53926462
<p>First you will probably want to rename the <code>exiftool(-k).exe</code> to just <code>exiftool.exe</code> and place it someplace in your PATH (see <a href="https://exiftool.org/install.html#Windows" rel="nofollow noreferrer">install exiftool-Windows</a>). There is also <a href="https://oliverbetz.de/pages/Artikel/...
<p>First you will probably want to rename the <code>exiftool(-k).exe</code> to just <code>exiftool.exe</code> and place it someplace in your PATH (see <a href="https://exiftool.org/install.html#Windows" rel="nofollow noreferrer">install exiftool-Windows</a>). There is also <a href="https://oliverbetz.de/pages/Artikel/...
64, 1034, 75633
exiftool, mp4, windows
<h1>How to change Media Created Date in Exiftool?</h1> <p>I have some MP4 videos that don't have Media Created date and time because they were recorded with Instagram camera. I want to set the date and time and I found out that I can do that with Exiftool software. I know that the software works by typing command lines...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,454
perforce
# How to change Media Created Date in Exiftool? I have some MP4 videos that don't have Media Created date and time because they were recorded with Instagram camera. I want to set the date and time and I found out that I can do that with Exiftool software. I know that the software works by typing command lines, but I d...
First you will probably want to rename the `exiftool(-k).exe` to just `exiftool.exe` and place it someplace in your PATH (see [install exiftool-Windows](https://exiftool.org/install.html#Windows)). There is also [Oliver Betz's Alternative Exiftool build for Windows](https://oliverbetz.de/pages/Artikel/ExifTool-for-Wind...
25358489
Adding watermark bitmap over video in android: 4.3's MediaMuxer or ffmpeg
33
2014-08-18 07:47:21
<p>Here is my scenario:</p> <ul> <li>Download an avi movie from the web</li> <li>Open a bitmap resource </li> <li>Overlay this bitmap at the bottom of the movie on all frames in the background</li> <li>Save the video on extarnal storage</li> <li>The video length is 15 seconds usually</li> </ul> <p>Is this possible to...
20,558
379,865
2018-11-24 21:31:14
25,504,718
22
2014-08-26 11:26:53
928,492
2014-08-26 11:26:53
https://stackoverflow.com/q/25358489
https://stackoverflow.com/a/25504718
<p>I don't know much about the MediaMuxer but ffmpeg does support overlaying functionality. FFMPEG has various filters one of them is overlay filter. What I understand is you want to overlay an image (i.e. png) on the video, ffmpeg surely is a useful framework to do this job. You can set the output format you can set t...
<p>I don't know much about the MediaMuxer but ffmpeg does support overlaying functionality. FFMPEG has various filters one of them is overlay filter. What I understand is you want to overlay an image (i.e. png) on the video, ffmpeg surely is a useful framework to do this job. You can set the output format you can set t...
1034, 1386, 3847, 100272, 124070
android, android-mediacodec, ffmpeg, mediamuxer, mp4
<h1>Adding watermark bitmap over video in android: 4.3's MediaMuxer or ffmpeg</h1> <p>Here is my scenario:</p> <ul> <li>Download an avi movie from the web</li> <li>Open a bitmap resource </li> <li>Overlay this bitmap at the bottom of the movie on all frames in the background</li> <li>Save the video on extarnal storage...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,455
perforce
# Adding watermark bitmap over video in android: 4.3's MediaMuxer or ffmpeg Here is my scenario: - Download an avi movie from the web - Open a bitmap resource - Overlay this bitmap at the bottom of the movie on all frames in the background - Save the video on extarnal storage - The video length is 15 seconds usually ...
I don't know much about the MediaMuxer but ffmpeg does support overlaying functionality. FFMPEG has various filters one of them is overlay filter. What I understand is you want to overlay an image (i.e. png) on the video, ffmpeg surely is a useful framework to do this job. You can set the output format you can set the ...
19505845
MediaMuxer error "Failed to stop the muxer"
19
2013-10-21 22:21:23
<p>I'm encoding <code>Camera</code> preview data using <code>MediaCodec</code> with mime-type "video/avc" and passing the encoded data (video-only, no audio) to <code>MediaMuxer</code>. The muxer seems to run fine and creates a reasonably sized output file (i.e., gets larger the longer I record). However, when I try ...
19,756
193,848
2016-02-08 13:32:29
19,506,951
22
2013-10-22 00:15:08
294,248
2013-10-22 00:15:08
https://stackoverflow.com/q/19505845
https://stackoverflow.com/a/19506951
<pre><code>E/MPEG4Writer(2166): Missing codec specific data </code></pre> <p>Sounds like you didn't call <code>MediaMuxer#addTrack()</code> with a <code>MediaFormat</code> that included the CSD. See the <a href="http://bigflake.com/mediacodec/" rel="noreferrer">EncodeAndMuxTest.java</a> code for an example of how to ...
<pre><code>E/MPEG4Writer(2166): Missing codec specific data </code></pre> <p>Sounds like you didn't call <code>MediaMuxer#addTrack()</code> with a <code>MediaFormat</code> that included the CSD. See the <a href="http://bigflake.com/mediacodec/" rel="noreferrer">EncodeAndMuxTest.java</a> code for an example of how to ...
1034, 1386, 42086, 124070
android, android-mediacodec, mp4, muxer
<h1>MediaMuxer error "Failed to stop the muxer"</h1> <p>I'm encoding <code>Camera</code> preview data using <code>MediaCodec</code> with mime-type "video/avc" and passing the encoded data (video-only, no audio) to <code>MediaMuxer</code>. The muxer seems to run fine and creates a reasonably sized output file (i.e., ge...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,456
perforce
# MediaMuxer error "Failed to stop the muxer" I'm encoding `Camera` preview data using `MediaCodec` with mime-type "video/avc" and passing the encoded data (video-only, no audio) to `MediaMuxer`. The muxer seems to run fine and creates a reasonably sized output file (i.e., gets larger the longer I record). However, wh...
``` E/MPEG4Writer(2166): Missing codec specific data ``` Sounds like you didn't call `MediaMuxer#addTrack()` with a `MediaFormat` that included the CSD. See the [EncodeAndMuxTest.java](http://bigflake.com/mediacodec/) code for an example of how to do this. Looking at the [MPEG4Writer implementation](https://android.g...
184187
How do I check out a file from perforce in python?
16
2008-10-08 18:33:08
<p>I would like to write some scripts in python that do some automated changes to source code. If the script determines it needs to change the file I would like to first check it out of perforce. I don't care about checking in because I will always want to build and test first. </p>
22,638
852
2010-11-22 04:33:38
184,344
22
2008-10-08 19:02:38
26,244
2008-10-08 19:02:38
https://stackoverflow.com/q/184187
https://stackoverflow.com/a/184344
<p>Perforce has Python wrappers around their C/C++ tools, available in binary form for Windows, and source for other platforms:</p> <p><a href="http://www.perforce.com/perforce/loadsupp.html#api" rel="noreferrer">http://www.perforce.com/perforce/loadsupp.html#api</a></p> <p>You will find their documentation of the sc...
<p>Perforce has Python wrappers around their C/C++ tools, available in binary form for Windows, and source for other platforms:</p> <p><a href="http://www.perforce.com/perforce/loadsupp.html#api" rel="noreferrer">http://www.perforce.com/perforce/loadsupp.html#api</a></p> <p>You will find their documentation of the sc...
16, 531, 1286
perforce, python, scripting
<h1>How do I check out a file from perforce in python?</h1> <p>I would like to write some scripts in python that do some automated changes to source code. If the script determines it needs to change the file I would like to first check it out of perforce. I don't care about checking in because I will always want to bui...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,458
perforce
# How do I check out a file from perforce in python? I would like to write some scripts in python that do some automated changes to source code. If the script determines it needs to change the file I would like to first check it out of perforce. I don't care about checking in because I will always want to build and te...
Perforce has Python wrappers around their C/C++ tools, available in binary form for Windows, and source for other platforms: <http://www.perforce.com/perforce/loadsupp.html#api> You will find their documentation of the scripting API to be helpful: <http://www.perforce.com/perforce/doc.current/manuals/p4script/p4scri...
16450616
What is the proper way to serve mp4 files through rails to an Ipad?
12
2013-05-08 21:36:24
<p>We're having trouble serving mp4s that will play on an ipad using a default rails 3 app. The mp4 is served correctly when viewing the route in chrome and other browsers on a desktop. </p> <p>Here is our code:</p> <pre><code>file_path = File.join(Rails.root, 'test.mp4') send_file(file_path, :disposition =&gt; "inli...
5,801
1,446,657
2015-12-07 23:25:16
16,593,030
22
2013-05-16 16:41:19
1,446,657
2015-11-11 14:41:17
https://stackoverflow.com/q/16450616
https://stackoverflow.com/a/16593030
<p>The problem seems to be that rails doesn't handle http-range requests which ios needs for streaming mp4s.</p> <p>This was our solution for development, (using thin as our server): </p> <pre><code> if(request.headers["HTTP_RANGE"]) &amp;&amp; Rails.env.development? size = File.size(file_path) bytes = Rac...
<p>The problem seems to be that rails doesn't handle http-range requests which ios needs for streaming mp4s.</p> <p>This was our solution for development, (using thin as our server): </p> <pre><code> if(request.headers["HTTP_RANGE"]) &amp;&amp; Rails.env.development? size = File.size(file_path) bytes = Rac...
1034, 4984, 48572
ipad, mp4, ruby-on-rails
<h1>What is the proper way to serve mp4 files through rails to an Ipad?</h1> <p>We're having trouble serving mp4s that will play on an ipad using a default rails 3 app. The mp4 is served correctly when viewing the route in chrome and other browsers on a desktop. </p> <p>Here is our code:</p> <pre><code>file_path = Fi...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,459
perforce
# What is the proper way to serve mp4 files through rails to an Ipad? We're having trouble serving mp4s that will play on an ipad using a default rails 3 app. The mp4 is served correctly when viewing the route in chrome and other browsers on a desktop. Here is our code: ``` file_path = File.join(Rails.root, 'test.mp...
The problem seems to be that rails doesn't handle http-range requests which ios needs for streaming mp4s. This was our solution for development, (using thin as our server): ``` if(request.headers["HTTP_RANGE"]) && Rails.env.development? size = File.size(file_path) bytes = Rack::Utils.byte_ranges(request.he...
12056940
How can I list P4 changes since a specific changelist
18
2012-08-21 14:20:42
<p>Is there a way get the list of changelists after a particular changelist for a particular branch?</p> <pre><code>p4 changes (some flag ?) (CL#) //depot/project </code></pre>
36,315
501,387
2024-11-19 09:57:19
12,059,203
21
2012-08-21 16:25:19
1,054,341
2012-08-21 16:25:19
https://stackoverflow.com/q/12056940
https://stackoverflow.com/a/12059203
<pre><code>p4 changes "//depot/project/...@&gt;nnn" </code></pre> <p>where nnn is your CL#.</p>
<pre><code>p4 changes "//depot/project/...@&gt;nnn" </code></pre> <p>where nnn is your CL#.</p>
1286
perforce
<h1>How can I list P4 changes since a specific changelist</h1> <p>Is there a way get the list of changelists after a particular changelist for a particular branch?</p> <pre><code>p4 changes (some flag ?) (CL#) //depot/project </code></pre>
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,461
perforce
# How can I list P4 changes since a specific changelist Is there a way get the list of changelists after a particular changelist for a particular branch? ``` p4 changes (some flag ?) (CL#) //depot/project ```
``` p4 changes "//depot/project/...@>nnn" ``` where nnn is your CL#.
44392027
webRTC convert webm to mp4 with ffmpeg.js
13
2017-06-06 13:56:25
<p>I am trying to convert webM files to mp4 with ffmpeg.js. I am recording a video from canvas(overlayer with some information) and recording the audio data from the video.</p> <pre><code>stream = new MediaStream(); var videoElem = document.getElementById('video'); var videoStream = videoElem.captureStream(); stream.a...
30,554
4,869,573
2022-06-30 02:51:54
44,398,123
21
2017-06-06 19:16:54
3,563,200
2017-06-06 19:16:54
https://stackoverflow.com/q/44392027
https://stackoverflow.com/a/44398123
<p>As per the provided code sample, your recorder stream is having only one audio &amp; one video tracks. </p> <p>If your input file is having both Audio &amp; Video, then you need to specify output codec for both tracks <a href="https://github.com/muaz-khan/WebRTC-Experiment/blob/master/ffmpeg/webm-to-mp4.html#L206" ...
<p>As per the provided code sample, your recorder stream is having only one audio &amp; one video tracks. </p> <p>If your input file is having both Audio &amp; Video, then you need to specify output codec for both tracks <a href="https://github.com/muaz-khan/WebRTC-Experiment/blob/master/ffmpeg/webm-to-mp4.html#L206" ...
1034, 3847, 71457, 77446, 116912
ffmpeg, mediarecorder, mediastream, mp4, webrtc
<h1>webRTC convert webm to mp4 with ffmpeg.js</h1> <p>I am trying to convert webM files to mp4 with ffmpeg.js. I am recording a video from canvas(overlayer with some information) and recording the audio data from the video.</p> <pre><code>stream = new MediaStream(); var videoElem = document.getElementById('video'); va...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,462
perforce
# webRTC convert webm to mp4 with ffmpeg.js I am trying to convert webM files to mp4 with ffmpeg.js. I am recording a video from canvas(overlayer with some information) and recording the audio data from the video. ``` stream = new MediaStream(); var videoElem = document.getElementById('video'); var videoStream = vide...
As per the provided code sample, your recorder stream is having only one audio & one video tracks. If your input file is having both Audio & Video, then you need to specify output codec for both tracks [here](https://github.com/muaz-khan/WebRTC-Experiment/blob/master/ffmpeg/webm-to-mp4.html#L206) as following. ``` wo...
5649680
How do I determine if an array is empty in PHP?
8
2011-04-13 13:01:33
<p>I want to check that an array has no values or that the values in the array are empty. Can someone explain how to do this?</p>
6,225
625,454
2011-04-14 09:31:33
5,649,837
21
2011-04-13 13:12:54
285,587
2011-04-13 13:29:36
https://stackoverflow.com/q/5649680
https://stackoverflow.com/a/5649837
<p>Someday I've learned very smart solution here on SO</p> <pre><code>if(!array_filter($array)) { //array contains only empty values } </code></pre> <p>or even smarter one (if applicable):</p> <pre><code>if(!array_filter($array,'trim')) { //array contains only empty values } </code></pre>
<p>Someday I've learned very smart solution here on SO</p> <pre><code>if(!array_filter($array)) { //array contains only empty values } </code></pre> <p>or even smarter one (if applicable):</p> <pre><code>if(!array_filter($array,'trim')) { //array contains only empty values } </code></pre>
5, 114, 4090
arrays, php, php4
<h1>How do I determine if an array is empty in PHP?</h1> <p>I want to check that an array has no values or that the values in the array are empty. Can someone explain how to do this?</p>
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,463
perforce
# How do I determine if an array is empty in PHP? I want to check that an array has no values or that the values in the array are empty. Can someone explain how to do this?
Someday I've learned very smart solution here on SO ``` if(!array_filter($array)) { //array contains only empty values } ``` or even smarter one (if applicable): ``` if(!array_filter($array,'trim')) { //array contains only empty values } ```
14163806
How do you move a directory in perforce using the command line?
11
2013-01-04 19:42:27
<p>I am trying to move a directory into another directory in perforce. This is by the command line. The only command I can find to move items is the move command, which only moves individual files. Is their a way to just move all of the files in one directory to another? My directory structure has many levels and it wo...
12,187
1,199,792
2020-04-03 13:05:07
14,163,854
20
2013-01-04 19:45:21
6,610
2020-04-03 13:05:07
https://stackoverflow.com/q/14163806
https://stackoverflow.com/a/14163854
<p>You can use <code>p4 move</code> to move whole tree. But before that, all files in the moved directory have to be opened for edit or add.</p> <p>For example:</p> <pre><code>p4 edit //xyz/... p4 move //xyz/... //abc/... </code></pre> <p>will move all <em>already tracked</em> files in <code>//xyz</code> and its sub...
<p>You can use <code>p4 move</code> to move whole tree. But before that, all files in the moved directory have to be opened for edit or add.</p> <p>For example:</p> <pre><code>p4 edit //xyz/... p4 move //xyz/... //abc/... </code></pre> <p>will move all <em>already tracked</em> files in <code>//xyz</code> and its sub...
1286
perforce
<h1>How do you move a directory in perforce using the command line?</h1> <p>I am trying to move a directory into another directory in perforce. This is by the command line. The only command I can find to move items is the move command, which only moves individual files. Is their a way to just move all of the files in o...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,464
perforce
# How do you move a directory in perforce using the command line? I am trying to move a directory into another directory in perforce. This is by the command line. The only command I can find to move items is the move command, which only moves individual files. Is their a way to just move all of the files in one direct...
You can use `p4 move` to move whole tree. But before that, all files in the moved directory have to be opened for edit or add. For example: ``` p4 edit //xyz/... p4 move //xyz/... //abc/... ``` will move all *already tracked* files in `//xyz` and its subdirectories. (cfr the [documentation](http://www.perforce.com/...
4034462
How to set file labels in p4merge
9
2010-10-27 14:40:10
<p>When p4merge is invoked from p4v it displays depot paths as labels on the files. I would like to use p4merge as a diff viewer for SVN, and to that end I have this batch file:</p> <pre><code>@echo off pause p4merge %6 %7 </code></pre> <p>This works, but the labels appearing on the left and right panels are the name...
1,880
2,283
2013-12-16 06:22:35
4,037,887
20
2010-10-27 21:32:09
2,283
2010-10-27 21:32:09
https://stackoverflow.com/q/4034462
https://stackoverflow.com/a/4037887
<p>It looks like the options I was looking for are <code>-nl NAME</code> to name the left pane and <code>-nr NAME</code> to name the right pane. So my batch file is now:</p> <pre><code>@echo off pause p4merge -nl %3 -nr %5 %6 %7 </code></pre>
<p>It looks like the options I was looking for are <code>-nl NAME</code> to name the left pane and <code>-nr NAME</code> to name the right pane. So my batch file is now:</p> <pre><code>@echo off pause p4merge -nl %3 -nr %5 %6 %7 </code></pre>
63, 1286, 30283
p4merge, perforce, svn
<h1>How to set file labels in p4merge</h1> <p>When p4merge is invoked from p4v it displays depot paths as labels on the files. I would like to use p4merge as a diff viewer for SVN, and to that end I have this batch file:</p> <pre><code>@echo off pause p4merge %6 %7 </code></pre> <p>This works, but the labels appearin...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,465
perforce
# How to set file labels in p4merge When p4merge is invoked from p4v it displays depot paths as labels on the files. I would like to use p4merge as a diff viewer for SVN, and to that end I have this batch file: ``` @echo off pause p4merge %6 %7 ``` This works, but the labels appearing on the left and right panels ar...
It looks like the options I was looking for are `-nl NAME` to name the left pane and `-nr NAME` to name the right pane. So my batch file is now: ``` @echo off pause p4merge -nl %3 -nr %5 %6 %7 ```
6074947
Get a list of changelists that have not been integrated into a particular branch
13
2011-05-20 16:29:51
<p>If I have Branch A and Branch B. Branch B was branched from Branch A. Periodically, we integrate changes from Branch B back into Branch A. Is there a p4 command for listing the Branch B changelists that have not yet been integrated into Branch A? I can think of some reasons that this may not be possible given th...
6,422
2,494
2015-03-31 08:11:45
6,075,434
19
2011-05-20 17:16:09
4,405
2011-05-20 17:16:09
https://stackoverflow.com/q/6074947
https://stackoverflow.com/a/6075434
<p>You want to use the 'interchanges' command. It's currently unsupported (as of release 10.2), but 'p4 help interchanges' will get you the command line usage for the tool (it is currently only available on the command line). I don't recall specifically what version this command was introduced.</p> <pre><code>p4 int...
<p>You want to use the 'interchanges' command. It's currently unsupported (as of release 10.2), but 'p4 help interchanges' will get you the command line usage for the tool (it is currently only available on the command line). I don't recall specifically what version this command was introduced.</p> <pre><code>p4 int...
1286, 25397
perforce, perforce-integrate
<h1>Get a list of changelists that have not been integrated into a particular branch</h1> <p>If I have Branch A and Branch B. Branch B was branched from Branch A. Periodically, we integrate changes from Branch B back into Branch A. Is there a p4 command for listing the Branch B changelists that have not yet been int...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,467
perforce
# Get a list of changelists that have not been integrated into a particular branch If I have Branch A and Branch B. Branch B was branched from Branch A. Periodically, we integrate changes from Branch B back into Branch A. Is there a p4 command for listing the Branch B changelists that have not yet been integrated into...
You want to use the 'interchanges' command. It's currently unsupported (as of release 10.2), but 'p4 help interchanges' will get you the command line usage for the tool (it is currently only available on the command line). I don't recall specifically what version this command was introduced. ``` p4 interchanges -b myb...
4316173
How can I clear the list of recent connections from Perforce P4V?
13
2010-11-30 16:44:00
<p>Perforce P4V keeps a list of recent connections under the menu 'Connections -> Recent Connections'. We have moved our Perforce depot files to a different server so I still have the old connection listed but when it is selected it errors as it can't connect. Is there a way to clear these old connections?</p> <p>I am...
19,089
186
2018-06-20 10:05:32
4,327,659
19
2010-12-01 18:21:42
382,186
2013-04-30 14:24:33
https://stackoverflow.com/q/4316173
https://stackoverflow.com/a/4327659
<p>Are you in Linux/Unix? If so, in your home directory is a <code>.p4qt/</code> directory. If Windows, I'm sure you have something similar. </p> <p>You should have a file called <code>appsettings.xml</code> or <code>ApplicationSettings.xml</code>. It should have something like this:</p> <pre><code> &lt;/PropertyL...
<p>Are you in Linux/Unix? If so, in your home directory is a <code>.p4qt/</code> directory. If Windows, I'm sure you have something similar. </p> <p>You should have a file called <code>appsettings.xml</code> or <code>ApplicationSettings.xml</code>. It should have something like this:</p> <pre><code> &lt;/PropertyL...
1286
perforce
<h1>How can I clear the list of recent connections from Perforce P4V?</h1> <p>Perforce P4V keeps a list of recent connections under the menu 'Connections -> Recent Connections'. We have moved our Perforce depot files to a different server so I still have the old connection listed but when it is selected it errors as it...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,468
perforce
# How can I clear the list of recent connections from Perforce P4V? Perforce P4V keeps a list of recent connections under the menu 'Connections -> Recent Connections'. We have moved our Perforce depot files to a different server so I still have the old connection listed but when it is selected it errors as it can't co...
Are you in Linux/Unix? If so, in your home directory is a `.p4qt/` directory. If Windows, I'm sure you have something similar. You should have a file called `appsettings.xml` or `ApplicationSettings.xml`. It should have something like this: ``` </PropertyList> <StringList varName="Recent Connections"> <String>serv...
2679747
In Perforce, list all changesets by user
12
2010-04-21 01:26:27
<p>In Perforce, how do I list all changesets for a given user? Can that be done via a single "p4" command?</p>
12,110
39,529
2023-09-08 17:50:20
2,680,184
19
2010-04-21 03:50:51
39,529
2010-04-21 03:50:51
https://stackoverflow.com/q/2679747
https://stackoverflow.com/a/2680184
<p>Yes.</p> <pre><code>p4 changes -u &lt;username&gt; </code></pre>
<p>Yes.</p> <pre><code>p4 changes -u &lt;username&gt; </code></pre>
1286
perforce
<h1>In Perforce, list all changesets by user</h1> <p>In Perforce, how do I list all changesets for a given user? Can that be done via a single "p4" command?</p>
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,469
perforce
# In Perforce, list all changesets by user In Perforce, how do I list all changesets for a given user? Can that be done via a single "p4" command?
Yes. ``` p4 changes -u <username> ```
9706037
Recommendation on the best quality/performance H264 encoder for video encoding?
7
2012-03-14 16:33:15
<p>I am looking for a video encoder that is fast, requires less CPU power and produces very good quality mp4 video. </p> <p>The input videos can be in any format and uploaded by users.</p> <p>Only thing I know is FFMPEG library.</p> <p>Is there anything else that is better?</p> <p>The program must have a batch util...
44,240
182,305
2013-08-20 02:25:30
9,708,142
19
2012-03-14 18:42:41
1,109,017
2013-08-20 02:25:30
https://stackoverflow.com/q/9706037
https://stackoverflow.com/a/9708142
<p>Use <code>x264</code>. It's fast and flexible enough for it to suit your needs. Other H.264 video encoders are junk compared to it and this isn't just my opinion. You can use it directly or via <code>ffmpeg</code>. You can get recent FFmpeg builds for Windows, OS X, and Linux via the <a href="https://ffmpeg.org/down...
<p>Use <code>x264</code>. It's fast and flexible enough for it to suit your needs. Other H.264 video encoders are junk compared to it and this isn't just my opinion. You can use it directly or via <code>ffmpeg</code>. You can get recent FFmpeg builds for Windows, OS X, and Linux via the <a href="https://ffmpeg.org/down...
519, 1034, 3847, 21832, 33093
ffmpeg, h.264, mp4, video, video-encoding
<h1>Recommendation on the best quality/performance H264 encoder for video encoding?</h1> <p>I am looking for a video encoder that is fast, requires less CPU power and produces very good quality mp4 video. </p> <p>The input videos can be in any format and uploaded by users.</p> <p>Only thing I know is FFMPEG library.<...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,470
perforce
# Recommendation on the best quality/performance H264 encoder for video encoding? I am looking for a video encoder that is fast, requires less CPU power and produces very good quality mp4 video. The input videos can be in any format and uploaded by users. Only thing I know is FFMPEG library. Is there anything else ...
Use `x264`. It's fast and flexible enough for it to suit your needs. Other H.264 video encoders are junk compared to it and this isn't just my opinion. You can use it directly or via `ffmpeg`. You can get recent FFmpeg builds for Windows, OS X, and Linux via the [FFmpeg download page](https://ffmpeg.org/download.html)....
33841541
Disable P4V Auto Refresh of “Reconcile Offline Work” If Window is Left Open
13
2015-11-21 08:56:27
<p>If I do "Reconcile Offline Work" in P4V, after a while the reconciling will finish and a window will eventually pop up showing the files that were modified, added, or removed. Sometimes I know the reconciling will take a few minutes or more based on the huge number of files in the directory, so I move on and start ...
2,737
3,642,982
2015-11-21 20:10:44
33,847,815
18
2015-11-21 19:45:36
3,642,982
2015-11-21 19:58:28
https://stackoverflow.com/q/33841541
https://stackoverflow.com/a/33847815
<p>I did a bit of additional searching on this and finally stumbled upon the answer!</p> <p>This is bug #70465: <a href="https://www.perforce.com/perforce/doc.current/user/p4vnotes.txt" rel="noreferrer">https://www.perforce.com/perforce/doc.current/user/p4vnotes.txt</a></p> <blockquote> <pre><code>#1171326 (Bug #7046...
<p>I did a bit of additional searching on this and finally stumbled upon the answer!</p> <p>This is bug #70465: <a href="https://www.perforce.com/perforce/doc.current/user/p4vnotes.txt" rel="noreferrer">https://www.perforce.com/perforce/doc.current/user/p4vnotes.txt</a></p> <blockquote> <pre><code>#1171326 (Bug #7046...
1286, 8025
p4v, perforce
<h1>Disable P4V Auto Refresh of “Reconcile Offline Work” If Window is Left Open</h1> <p>If I do "Reconcile Offline Work" in P4V, after a while the reconciling will finish and a window will eventually pop up showing the files that were modified, added, or removed. Sometimes I know the reconciling will take a few minute...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,471
perforce
# Disable P4V Auto Refresh of “Reconcile Offline Work” If Window is Left Open If I do "Reconcile Offline Work" in P4V, after a while the reconciling will finish and a window will eventually pop up showing the files that were modified, added, or removed. Sometimes I know the reconciling will take a few minutes or more ...
I did a bit of additional searching on this and finally stumbled upon the answer! This is bug #70465: <https://www.perforce.com/perforce/doc.current/user/p4vnotes.txt> > ``` > #1171326 (Bug #70465) > There is now a preference to disable global refresh affecting the Reconcile > Offline Work dialog. Default is...
22790665
How to discard all uncommitted changes in Perforce?
11
2014-04-01 15:45:01
<p>What is the <code>p4</code> command to throw away all my uncommitted change in my Perforce workarea?</p> <p>When using Git, the analogous command is: <code>git reset --hard</code></p>
23,302
1,192,630
2014-12-04 13:44:14
22,792,506
18
2014-04-01 17:13:25
96,982
2014-12-04 13:44:14
https://stackoverflow.com/q/22790665
https://stackoverflow.com/a/22792506
<p>If you haven't checked out the files you've edited, first do</p> <pre><code>p4 reconcile ... </code></pre> <p>to get the changes tracked by Perforce.</p> <p>You don't need this if the changes you want to undo are already in any changelist.</p> <p>Then, from the root of your workspace,</p> <pre><code>p4 revert ....
<p>If you haven't checked out the files you've edited, first do</p> <pre><code>p4 reconcile ... </code></pre> <p>to get the changes tracked by Perforce.</p> <p>You don't need this if the changes you want to undo are already in any changelist.</p> <p>Then, from the root of your workspace,</p> <pre><code>p4 revert ....
1286
perforce
<h1>How to discard all uncommitted changes in Perforce?</h1> <p>What is the <code>p4</code> command to throw away all my uncommitted change in my Perforce workarea?</p> <p>When using Git, the analogous command is: <code>git reset --hard</code></p>
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,472
perforce
# How to discard all uncommitted changes in Perforce? What is the `p4` command to throw away all my uncommitted change in my Perforce workarea? When using Git, the analogous command is: `git reset --hard`
If you haven't checked out the files you've edited, first do ``` p4 reconcile ... ``` to get the changes tracked by Perforce. You don't need this if the changes you want to undo are already in any changelist. Then, from the root of your workspace, ``` p4 revert ... ``` (`...` is the Perforce wildcard for everythi...
34091109
Failed to delete Perforce client workspace with error message "client is locked, cannot be deleted"
9
2015-12-04 14:56:28
<p>I'm trying to delete a workspace (client) in Perforce, so I type</p> <pre><code>p4 client -d my-client </code></pre> <p>but I get the error message</p> <blockquote> <p>client is locked, cannot be deleted</p> </blockquote> <p>How do I unlock the workspace so it can be deleted?</p>
11,192
1,538,270
2023-08-09 12:36:43
34,091,110
18
2015-12-04 14:56:28
1,538,270
2015-12-07 16:58:54
https://stackoverflow.com/q/34091109
https://stackoverflow.com/a/34091110
<p>You need to edit the client spec. Type</p> <pre><code>p4 client my-client </code></pre> <p>This will put you in an editor with the client spec. Find the "Options:" section, change "locked" to "unlocked", and save the file. You should now be able to delete the workspace.</p>
<p>You need to edit the client spec. Type</p> <pre><code>p4 client my-client </code></pre> <p>This will put you in an editor with the client spec. Find the "Options:" section, change "locked" to "unlocked", and save the file. You should now be able to delete the workspace.</p>
1286
perforce
<h1>Failed to delete Perforce client workspace with error message "client is locked, cannot be deleted"</h1> <p>I'm trying to delete a workspace (client) in Perforce, so I type</p> <pre><code>p4 client -d my-client </code></pre> <p>but I get the error message</p> <blockquote> <p>client is locked, cannot be deleted</p> ...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,473
perforce
# Failed to delete Perforce client workspace with error message "client is locked, cannot be deleted" I'm trying to delete a workspace (client) in Perforce, so I type ``` p4 client -d my-client ``` but I get the error message > client is locked, cannot be deleted How do I unlock the workspace so it can be deleted?
You need to edit the client spec. Type ``` p4 client my-client ``` This will put you in an editor with the client spec. Find the "Options:" section, change "locked" to "unlocked", and save the file. You should now be able to delete the workspace.
9049970
How to combine a .mp4 video with a .wav audio with an offset in ffmpeg from command line?
8
2012-01-29 00:48:19
<p>I've got a TV clip in mp4 format containing audio and video, and an WAV audio_commentary track.</p> <p>I've been trying to combine them in ffmpeg and then play it online with a flash player (which can only take h264 format)</p> <p>What's the best ffmpeg command to accomplish this? My inputs are MP4 video, WAV audi...
17,363
1,175,903
2014-03-15 09:17:19
9,117,706
18
2012-02-02 18:18:53
1,145,833
2012-02-02 18:18:53
https://stackoverflow.com/q/9049970
https://stackoverflow.com/a/9117706
<p>In ffmpeg audio media stream can be delayed with <code>-itsoffset</code> option as the following: </p> <pre><code>ffmpeg -i input_vid.mp4 -itsoffset 00:00:05.0 -i input_audio.wav -vcodec copy -acodec copy output.mp4 </code></pre> <p>To change video or audio codecs, specify them in <code>-vcodec</code> and <co...
<p>In ffmpeg audio media stream can be delayed with <code>-itsoffset</code> option as the following: </p> <pre><code>ffmpeg -i input_vid.mp4 -itsoffset 00:00:05.0 -i input_audio.wav -vcodec copy -acodec copy output.mp4 </code></pre> <p>To change video or audio codecs, specify them in <code>-vcodec</code> and <co...
1034, 3847, 8754, 19257, 21832
ffmpeg, jwplayer, mp4, video-encoding, wav
<h1>How to combine a .mp4 video with a .wav audio with an offset in ffmpeg from command line?</h1> <p>I've got a TV clip in mp4 format containing audio and video, and an WAV audio_commentary track.</p> <p>I've been trying to combine them in ffmpeg and then play it online with a flash player (which can only take h264 f...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,474
perforce
# How to combine a .mp4 video with a .wav audio with an offset in ffmpeg from command line? I've got a TV clip in mp4 format containing audio and video, and an WAV audio_commentary track. I've been trying to combine them in ffmpeg and then play it online with a flash player (which can only take h264 format) What's t...
In ffmpeg audio media stream can be delayed with `-itsoffset` option as the following: ``` ffmpeg -i input_vid.mp4 -itsoffset 00:00:05.0 -i input_audio.wav -vcodec copy -acodec copy output.mp4 ``` To change video or audio codecs, specify them in `-vcodec` and `-acodec` options. This command will produce output v...
9591959
mp4 with pixel format yuvj420p won't play in Chrome 17, but plays in Safari, IE etc
7
2012-03-06 21:10:13
<p>File is from a Nikon D3s (mov) converted with ffmpeg to mp4. Working without problems with all other files (avi, flv, mp4 etc)</p> <p>Please see file: <a href="http://shootitlive.s3.amazonaws.com/output.mp4" rel="nofollow">http://shootitlive.s3.amazonaws.com/output.mp4</a> (Same non working result in Chrome when se...
15,418
796,536
2014-08-21 21:49:20
9,642,466
18
2012-03-09 23:43:08
85,950
2014-08-21 21:49:20
https://stackoverflow.com/q/9591959
https://stackoverflow.com/a/9642466
<p>I think your problem is the pixel format.</p> <p>From <a href="http://code.google.com/p/chromium/issues/detail?id=117368" rel="nofollow">your Chrome bug report</a>, the working video (working.mp4) has pix_fmt=yuv420p. The non-working video (qt_output.mp4) has pix_fmt=yuv<b>j</b>420p. In my testing, converting the...
<p>I think your problem is the pixel format.</p> <p>From <a href="http://code.google.com/p/chromium/issues/detail?id=117368" rel="nofollow">your Chrome bug report</a>, the working video (working.mp4) has pix_fmt=yuv420p. The non-working video (qt_output.mp4) has pix_fmt=yuv<b>j</b>420p. In my testing, converting the...
1034, 3600, 3847, 46369
ffmpeg, google-chrome, mp4, x264
<h1>mp4 with pixel format yuvj420p won't play in Chrome 17, but plays in Safari, IE etc</h1> <p>File is from a Nikon D3s (mov) converted with ffmpeg to mp4. Working without problems with all other files (avi, flv, mp4 etc)</p> <p>Please see file: <a href="http://shootitlive.s3.amazonaws.com/output.mp4" rel="nofollow">...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,475
perforce
# mp4 with pixel format yuvj420p won't play in Chrome 17, but plays in Safari, IE etc File is from a Nikon D3s (mov) converted with ffmpeg to mp4. Working without problems with all other files (avi, flv, mp4 etc) Please see file: <http://shootitlive.s3.amazonaws.com/output.mp4> (Same non working result in Chrome when...
I think your problem is the pixel format. From [your Chrome bug report](http://code.google.com/p/chromium/issues/detail?id=117368), the working video (working.mp4) has pix_fmt=yuv420p. The non-working video (qt_output.mp4) has pix_fmt=yuv**j**420p. In my testing, converting the problematic video to yuv makes it play. ...
19948915
Deleting new files after a p4 revert
13
2013-11-13 08:31:48
<p>My workflow for testing my changes to our source code on a remote machine is the following:</p> <p>1) On local machine: Shelve changes that I'd like to test</p> <p>2) On remote machine (ssh):</p> <pre><code>$ p4 revert //... $ p4 sync $ p4 unshelve -s &lt;changelist number&gt; $ ./run_test_scripts </code></pre> ...
7,749
265,249
2015-05-06 02:45:44
19,964,885
17
2013-11-13 21:37:14
1,518,974
2013-11-13 21:37:14
https://stackoverflow.com/q/19948915
https://stackoverflow.com/a/19964885
<p>I think what you're looking for is <code>p4 revert -w</code>. From the help:</p> <p><code>The -w flag causes files that are open for add to be deleted from the workspace when they are reverted.</code></p> <p>Note: I'm using the 2013.2/719516 client against a 2013.2/708877 server, in case that switch was added rec...
<p>I think what you're looking for is <code>p4 revert -w</code>. From the help:</p> <p><code>The -w flag causes files that are open for add to be deleted from the workspace when they are reverted.</code></p> <p>Note: I'm using the 2013.2/719516 client against a 2013.2/708877 server, in case that switch was added rec...
1286
perforce
<h1>Deleting new files after a p4 revert</h1> <p>My workflow for testing my changes to our source code on a remote machine is the following:</p> <p>1) On local machine: Shelve changes that I'd like to test</p> <p>2) On remote machine (ssh):</p> <pre><code>$ p4 revert //... $ p4 sync $ p4 unshelve -s &lt;changelist ...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,476
perforce
# Deleting new files after a p4 revert My workflow for testing my changes to our source code on a remote machine is the following: 1) On local machine: Shelve changes that I'd like to test 2) On remote machine (ssh): ``` $ p4 revert //... $ p4 sync $ p4 unshelve -s <changelist number> $ ./run_test_scripts ``` Thi...
I think what you're looking for is `p4 revert -w`. From the help: `The -w flag causes files that are open for add to be deleted from the workspace when they are reverted.` Note: I'm using the 2013.2/719516 client against a 2013.2/708877 server, in case that switch was added recently...
6230351
Error: Unable to run ccollabgui
13
2011-06-03 17:10:35
<p>After installing CodeCollab on OS X 10.6, I get <code>Error: Unable to run ccollabgui</code> when I try to add a new code review from <code>P4V</code>.</p> <p>Strange but google was not able to find any match for the search :(</p>
11,481
99,834
2019-06-12 08:56:50
6,294,972
17
2011-06-09 15:02:35
99,834
2011-06-09 15:02:35
https://stackoverflow.com/q/6230351
https://stackoverflow.com/a/6294972
<p>I you receive this error just go to <code>p4v</code> <code>Tools-&gt;Manage Custom Tools</code> and select <code>Code Collaborator - Add to Review-&gt;Edit</code>.</p> <p>Now change the application from <code>ccollabgui</code> to <code>/Applications/ccollab_client/ccollabgui.app/Contents/MacOS/JavaApplicationStub</...
<p>I you receive this error just go to <code>p4v</code> <code>Tools-&gt;Manage Custom Tools</code> and select <code>Code Collaborator - Add to Review-&gt;Edit</code>.</p> <p>Now change the application from <code>ccollabgui</code> to <code>/Applications/ccollab_client/ccollabgui.app/Contents/MacOS/JavaApplicationStub</...
1286, 3870
code-collaborator, perforce
<h1>Error: Unable to run ccollabgui</h1> <p>After installing CodeCollab on OS X 10.6, I get <code>Error: Unable to run ccollabgui</code> when I try to add a new code review from <code>P4V</code>.</p> <p>Strange but google was not able to find any match for the search :(</p>
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,477
perforce
# Error: Unable to run ccollabgui After installing CodeCollab on OS X 10.6, I get `Error: Unable to run ccollabgui` when I try to add a new code review from `P4V`. Strange but google was not able to find any match for the search :(
I you receive this error just go to `p4v` `Tools->Manage Custom Tools` and select `Code Collaborator - Add to Review->Edit`. Now change the application from `ccollabgui` to `/Applications/ccollab_client/ccollabgui.app/Contents/MacOS/JavaApplicationStub`.
60896154
How to use ffmpeg to scale image AND to specify desired frames per second?
11
2020-03-28 01:12:32
<p>I am using ffmpeg to convert frames from an mp4 to png images.<br> I would like 20 frames per second AND I would also like the images to be scaled up to 1920x1080. The original mp4 is 240p (426x240). </p> <p>It lets me specify 20 fps after the -vf flag, but it doesn't let me scale the images. </p> <pre><code>ffm...
11,127
5,256,048
2020-03-28 01:58:37
60,896,415
17
2020-03-28 01:58:37
1,109,017
2020-03-28 01:58:37
https://stackoverflow.com/q/60896154
https://stackoverflow.com/a/60896415
<p>You can chain linear filters together with commas:</p> <pre><code>ffmpeg -i 240_video.mp4 -vf "fps=20,scale=1920:1080" 240_scaled/out%d.png </code></pre> <ul> <li>If your input has more than 20 fps, then ffmpeg will drop frames to convert to 20 fps. If your input has less than 20 fps, then ffmpeg will duplicate fr...
<p>You can chain linear filters together with commas:</p> <pre><code>ffmpeg -i 240_video.mp4 -vf "fps=20,scale=1920:1080" 240_scaled/out%d.png </code></pre> <ul> <li>If your input has more than 20 fps, then ffmpeg will drop frames to convert to 20 fps. If your input has less than 20 fps, then ffmpeg will duplicate fr...
1034, 1383, 3847
ffmpeg, mp4, png
<h1>How to use ffmpeg to scale image AND to specify desired frames per second?</h1> <p>I am using ffmpeg to convert frames from an mp4 to png images.<br> I would like 20 frames per second AND I would also like the images to be scaled up to 1920x1080. The original mp4 is 240p (426x240). </p> <p>It lets me specify 20 f...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,478
perforce
# How to use ffmpeg to scale image AND to specify desired frames per second? I am using ffmpeg to convert frames from an mp4 to png images. I would like 20 frames per second AND I would also like the images to be scaled up to 1920x1080. The original mp4 is 240p (426x240). It lets me specify 20 fps after the -vf fla...
You can chain linear filters together with commas: ``` ffmpeg -i 240_video.mp4 -vf "fps=20,scale=1920:1080" 240_scaled/out%d.png ``` - If your input has more than 20 fps, then ffmpeg will drop frames to convert to 20 fps. If your input has less than 20 fps, then ffmpeg will duplicate frames to convert to 20 fps. If y...
34678964
Convert mp4 to webm with transparency?
9
2016-01-08 14:06:28
<p>I know how to <a href="https://stackoverflow.com/questions/12544754/converting-mp4-to-webm-with-ffmpeg">convert mp4 to webm with ffmpeg</a>:</p> <pre><code>ffmpeg -y -i me939371029.mp4 -r 30 out3.webm </code></pre> <p>But I'd like to use <a href="https://developers.google.com/web/updates/2013/07/Alpha-transparenc...
14,805
123,671
2020-09-10 10:57:20
34,682,312
17
2016-01-08 17:02:29
5,726,027
2020-09-10 10:57:20
https://stackoverflow.com/q/34678964
https://stackoverflow.com/a/34682312
<p>Assuming the color to be keyed out is <code>00ff00</code>, use</p> <pre><code>ffmpeg -i input.mp4 -c:v libvpx -vf &quot;colorkey=0x00ff00:0.1:0.1,format=yuva420p&quot; out.webm </code></pre> <p>In <code>colorkey=0x00ff00:0.1:0.1</code></p> <p>Parts are seperated by <code>:</code>. The first part is the key color. Th...
<p>Assuming the color to be keyed out is <code>00ff00</code>, use</p> <pre><code>ffmpeg -i input.mp4 -c:v libvpx -vf &quot;colorkey=0x00ff00:0.1:0.1,format=yuva420p&quot; out.webm </code></pre> <p>In <code>colorkey=0x00ff00:0.1:0.1</code></p> <p>Parts are seperated by <code>:</code>. The first part is the key color. Th...
519, 1034, 1384, 3847, 57063
ffmpeg, mp4, transparency, video, webm
<h1>Convert mp4 to webm with transparency?</h1> <p>I know how to <a href="https://stackoverflow.com/questions/12544754/converting-mp4-to-webm-with-ffmpeg">convert mp4 to webm with ffmpeg</a>:</p> <pre><code>ffmpeg -y -i me939371029.mp4 -r 30 out3.webm </code></pre> <p>But I'd like to use <a href="https://developers....
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,479
perforce
# Convert mp4 to webm with transparency? I know how to [convert mp4 to webm with ffmpeg](https://stackoverflow.com/questions/12544754/converting-mp4-to-webm-with-ffmpeg): ``` ffmpeg -y -i me939371029.mp4 -r 30 out3.webm ``` But I'd like to use [webm transparency](https://developers.google.com/web/updates/2013/07/Al...
Assuming the color to be keyed out is `00ff00`, use ``` ffmpeg -i input.mp4 -c:v libvpx -vf "colorkey=0x00ff00:0.1:0.1,format=yuva420p" out.webm ``` In `colorkey=0x00ff00:0.1:0.1` Parts are seperated by `:`. The first part is the key color. The color > 0x00ff00 is green. the 2nd is similarity > 0.01 matches only...
5750926
How to find all checkins to a perforce depot folder during two timestamps
9
2011-04-21 23:38:18
<p>I am using both command line and p4v. I need to find all checkins that went to a folder between two timestamps ( or times).</p> <p>Any help will be appreciated.</p>
9,928
494,074
2011-09-19 19:40:06
5,751,339
17
2011-04-22 00:57:12
243
2011-04-22 00:57:12
https://stackoverflow.com/q/5750926
https://stackoverflow.com/a/5751339
<p>This can be accomplished using P4V or the P4 command line application. Either way, you will need to understand some of the intricacies of using the <a href="http://www.perforce.com/perforce/doc.current/manuals/cmdref/o.fspecs.html" rel="noreferrer">Perforce File Specifications</a>. Specifically for what you are aski...
<p>This can be accomplished using P4V or the P4 command line application. Either way, you will need to understand some of the intricacies of using the <a href="http://www.perforce.com/perforce/doc.current/manuals/cmdref/o.fspecs.html" rel="noreferrer">Perforce File Specifications</a>. Specifically for what you are aski...
456, 1286, 8025
p4v, perforce, version-control
<h1>How to find all checkins to a perforce depot folder during two timestamps</h1> <p>I am using both command line and p4v. I need to find all checkins that went to a folder between two timestamps ( or times).</p> <p>Any help will be appreciated.</p>
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,480
perforce
# How to find all checkins to a perforce depot folder during two timestamps I am using both command line and p4v. I need to find all checkins that went to a folder between two timestamps ( or times). Any help will be appreciated.
This can be accomplished using P4V or the P4 command line application. Either way, you will need to understand some of the intricacies of using the [Perforce File Specifications](http://www.perforce.com/perforce/doc.current/manuals/cmdref/o.fspecs.html). Specifically for what you are asking, we will be using the @yyyy/...
35015890
Removing streams with active clients
7
2016-01-26 14:15:12
<p>I want to remove a task stream of a user who has left the company. So I go </p> <pre><code>p4 stream -d -f //depot/stream </code></pre> <p>The system answers :</p> <pre><code>Stream '//depot/stream' has active clients; cannot delete until they are removed. </code></pre> <p>Very well, I will remove the active cli...
12,131
513,198
2016-12-14 16:39:50
35,017,514
17
2016-01-26 15:28:56
513,198
2016-01-26 18:30:32
https://stackoverflow.com/q/35015890
https://stackoverflow.com/a/35017514
<p>After some trials, I used </p> <pre><code>p4 clients -a -S //depot/stream </code></pre> <p>And suddenly there was a match. <code>-a</code> search clients on all servers.</p> <p>I was logged on an edge server, and apparently the user had created some of its workspace on the main server. I logged in on main and rem...
<p>After some trials, I used </p> <pre><code>p4 clients -a -S //depot/stream </code></pre> <p>And suddenly there was a match. <code>-a</code> search clients on all servers.</p> <p>I was logged on an edge server, and apparently the user had created some of its workspace on the main server. I logged in on main and rem...
1286, 117368
perforce, perforce-stream
<h1>Removing streams with active clients</h1> <p>I want to remove a task stream of a user who has left the company. So I go </p> <pre><code>p4 stream -d -f //depot/stream </code></pre> <p>The system answers :</p> <pre><code>Stream '//depot/stream' has active clients; cannot delete until they are removed. </code></pr...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,481
perforce
# Removing streams with active clients I want to remove a task stream of a user who has left the company. So I go ``` p4 stream -d -f //depot/stream ``` The system answers : ``` Stream '//depot/stream' has active clients; cannot delete until they are removed. ``` Very well, I will remove the active client as well....
After some trials, I used ``` p4 clients -a -S //depot/stream ``` And suddenly there was a match. `-a` search clients on all servers. I was logged on an edge server, and apparently the user had created some of its workspace on the main server. I logged in on main and removed the annoying workspace from there.
11974304
Perforce adding a folder to depot
20
2012-08-15 17:42:25
<p>I am new to Perforce. Could you add a new folder under the branch in the depot? I also tried to add one in my workplace but how could I get it to the depot? Do I have to do a merge/integrate or something?</p> <p>Thanks.</p>
86,103
1,036,125
2018-02-13 13:06:51
11,974,365
16
2012-08-15 17:47:12
513,828
2015-12-18 12:11:25
https://stackoverflow.com/q/11974304
https://stackoverflow.com/a/11974365
<p>From your local workspace, create your folder and a file you want to go inside it. Then either mark it as add from the visual client, or go into the folder from the command line, and type...</p> <pre><code>p4 add ./new_folder/new_file_name.ext </code></pre> <p>When you submit, the new file and folder will be in y...
<p>From your local workspace, create your folder and a file you want to go inside it. Then either mark it as add from the visual client, or go into the folder from the command line, and type...</p> <pre><code>p4 add ./new_folder/new_file_name.ext </code></pre> <p>When you submit, the new file and folder will be in y...
1286
perforce
<h1>Perforce adding a folder to depot</h1> <p>I am new to Perforce. Could you add a new folder under the branch in the depot? I also tried to add one in my workplace but how could I get it to the depot? Do I have to do a merge/integrate or something?</p> <p>Thanks.</p>
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,482
perforce
# Perforce adding a folder to depot I am new to Perforce. Could you add a new folder under the branch in the depot? I also tried to add one in my workplace but how could I get it to the depot? Do I have to do a merge/integrate or something? Thanks.
From your local workspace, create your folder and a file you want to go inside it. Then either mark it as add from the visual client, or go into the folder from the command line, and type... ``` p4 add ./new_folder/new_file_name.ext ``` When you submit, the new file and folder will be in your repository. This assumes...
34200068
Create MP4 video in JavaScript
13
2015-12-10 10:54:28
<p>Is it possible to create an MP4 video on a browser through JavaScript? (I know it is now possible in Flash with <a href="http://flashywrappers.com/" rel="noreferrer">FlashyWrappers</a>)</p> <p>Ideally, I will be feeding it with image frames (raw, PNG or anything) and it will be combining them into an MP4 video.</p> ...
10,981
113,718
2022-05-21 08:42:32
34,212,157
16
2015-12-10 21:34:13
817,132
2022-05-21 08:42:32
https://stackoverflow.com/q/34200068
https://stackoverflow.com/a/34212157
<p>I think this is a really curious question! You've gotten me thinking...</p> <p>HTML5 supports MP4 in all major browsers: <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video" rel="nofollow noreferrer">https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video</a><br /> First hit on google f...
<p>I think this is a really curious question! You've gotten me thinking...</p> <p>HTML5 supports MP4 in all major browsers: <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video" rel="nofollow noreferrer">https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video</a><br /> First hit on google f...
3, 1034, 3209, 103623
encoder, javascript, mp4, programmatically-created
<h1>Create MP4 video in JavaScript</h1> <p>Is it possible to create an MP4 video on a browser through JavaScript? (I know it is now possible in Flash with <a href="http://flashywrappers.com/" rel="noreferrer">FlashyWrappers</a>)</p> <p>Ideally, I will be feeding it with image frames (raw, PNG or anything) and it will b...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,483
perforce
# Create MP4 video in JavaScript Is it possible to create an MP4 video on a browser through JavaScript? (I know it is now possible in Flash with [FlashyWrappers](http://flashywrappers.com/)) Ideally, I will be feeding it with image frames (raw, PNG or anything) and it will be combining them into an MP4 video. Edit: ...
I think this is a really curious question! You've gotten me thinking... HTML5 supports MP4 in all major browsers: <https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video> First hit on google for "Base64 url encoded HTML5 video" gave me this: <http://iandevlin.com/html5/data-uri/video.php> That alone leads ...
38069584
GoLang http webserver provide video (mp4)
12
2016-06-28 07:21:34
<p>I developed a webserver using golang. Pretty plain stuff, it just provides html/js/css and images which works perfectly fine:</p> <pre><code>func main() { http.Handle(&quot;/&quot;, new(viewHandler)) http.ListenAndServe(&quot;:8080&quot;, nil) } func (vh *viewHandler) ServeHTTP(w http.ResponseWriter, r *htt...
15,056
null
2023-09-29 22:48:14
38,075,985
16
2016-06-28 12:14:47
1,705,598
2016-06-28 14:22:38
https://stackoverflow.com/q/38069584
https://stackoverflow.com/a/38075985
<p>Your "issue" is related to the video length / size. I don't know the default buffer Chrome uses (it may depend on multiple things like free memory, free disk space etc.), but you shouldn't rely on it for your video to play!</p> <p>One of your video is a few seconds shorter and almost 3rd the size of the other. Chro...
<p>Your "issue" is related to the video length / size. I don't know the default buffer Chrome uses (it may depend on multiple things like free memory, free disk space etc.), but you shouldn't rely on it for your video to play!</p> <p>One of your video is a few seconds shorter and almost 3rd the size of the other. Chro...
1034, 1074, 5210, 15627, 53669
go, html5-video, http, mp4, webserver
<h1>GoLang http webserver provide video (mp4)</h1> <p>I developed a webserver using golang. Pretty plain stuff, it just provides html/js/css and images which works perfectly fine:</p> <pre><code>func main() { http.Handle(&quot;/&quot;, new(viewHandler)) http.ListenAndServe(&quot;:8080&quot;, nil) } func (vh *v...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,484
perforce
# GoLang http webserver provide video (mp4) I developed a webserver using golang. Pretty plain stuff, it just provides html/js/css and images which works perfectly fine: ``` func main() { http.Handle("/", new(viewHandler)) http.ListenAndServe(":8080", nil) } func (vh *viewHandler) ServeHTTP(w http.ResponseWr...
Your "issue" is related to the video length / size. I don't know the default buffer Chrome uses (it may depend on multiple things like free memory, free disk space etc.), but you shouldn't rely on it for your video to play! One of your video is a few seconds shorter and almost 3rd the size of the other. Chrome buffers...
32829514
Which pixel format for web mp4 video?
12
2015-09-28 18:28:48
<p>I have to create video in mp4 format, and it seems that I can encode it with different pixel formats like <code>yuv420p</code>, <code>yuv422p</code>, <code>yuvj422p</code>. Which one I should use to maximize compatibility with most browsers/players?</p>
12,392
606,521
2019-02-27 20:40:32
32,829,637
16
2015-09-28 18:37:40
1,109,017
2019-02-27 20:40:32
https://stackoverflow.com/q/32829514
https://stackoverflow.com/a/32829637
<h1>Use yuv420p</h1> <p>You can use the <code>-vf format=yuv420p</code> (or the alias <code>-pix_fmt yuv420p</code>) output option to make sure your output is YUV 4:2:0.</p> <h3>Example</h3> <pre><code>ffmpeg -i input -c:v libx264 -crf 23 -preset medium -vf format=yuv420p -c:a copy -movflags +faststart output.mp4 </...
<h1>Use yuv420p</h1> <p>You can use the <code>-vf format=yuv420p</code> (or the alias <code>-pix_fmt yuv420p</code>) output option to make sure your output is YUV 4:2:0.</p> <h3>Example</h3> <pre><code>ffmpeg -i input -c:v libx264 -crf 23 -preset medium -vf format=yuv420p -c:a copy -movflags +faststart output.mp4 </...
1034, 3847, 53669
ffmpeg, html5-video, mp4
<h1>Which pixel format for web mp4 video?</h1> <p>I have to create video in mp4 format, and it seems that I can encode it with different pixel formats like <code>yuv420p</code>, <code>yuv422p</code>, <code>yuvj422p</code>. Which one I should use to maximize compatibility with most browsers/players?</p>
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,485
perforce
# Which pixel format for web mp4 video? I have to create video in mp4 format, and it seems that I can encode it with different pixel formats like `yuv420p`, `yuv422p`, `yuvj422p`. Which one I should use to maximize compatibility with most browsers/players?
# Use yuv420p You can use the `-vf format=yuv420p` (or the alias `-pix_fmt yuv420p`) output option to make sure your output is YUV 4:2:0. ### Example ``` ffmpeg -i input -c:v libx264 -crf 23 -preset medium -vf format=yuv420p -c:a copy -movflags +faststart output.mp4 ``` - For web video the `-movflags +faststart` op...
18321346
Perforce P4CONFIG not being set?
8
2013-08-19 19:13:45
<p>Firstly i'm a total beginer with Perforce, and i'm learning through its documentations mostly.</p> <p>So, we are about to migrate from CVS to Perforce, and i recently learned a good way to avoid changing the P4CLIENT for each workspace, which is creating a P4CONFIG file inside the workspace root.</p> <p>So i have ...
46,793
2,501,213
2021-08-28 05:45:31
18,323,181
16
2013-08-19 21:09:40
193,453
2013-08-19 21:09:40
https://stackoverflow.com/q/18321346
https://stackoverflow.com/a/18323181
<p>If the file is 'p4config.txt', then you should do</p> <pre><code>p4 set P4CONFIG=p4config.txt </code></pre> <p>not</p> <pre><code>p4 set P4CONFIG=p4config </code></pre> <p>You'll know it's working when 'p4 set' prints "(config 'p4config.txt')".</p>
<p>If the file is 'p4config.txt', then you should do</p> <pre><code>p4 set P4CONFIG=p4config.txt </code></pre> <p>not</p> <pre><code>p4 set P4CONFIG=p4config </code></pre> <p>You'll know it's working when 'p4 set' prints "(config 'p4config.txt')".</p>
1286, 25398
perforce, perforce-client-spec
<h1>Perforce P4CONFIG not being set?</h1> <p>Firstly i'm a total beginer with Perforce, and i'm learning through its documentations mostly.</p> <p>So, we are about to migrate from CVS to Perforce, and i recently learned a good way to avoid changing the P4CLIENT for each workspace, which is creating a P4CONFIG file ins...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,486
perforce
# Perforce P4CONFIG not being set? Firstly i'm a total beginer with Perforce, and i'm learning through its documentations mostly. So, we are about to migrate from CVS to Perforce, and i recently learned a good way to avoid changing the P4CLIENT for each workspace, which is creating a P4CONFIG file inside the workspac...
If the file is 'p4config.txt', then you should do ``` p4 set P4CONFIG=p4config.txt ``` not ``` p4 set P4CONFIG=p4config ``` You'll know it's working when 'p4 set' prints "(config 'p4config.txt')".
1188491
Perforce auto resolve from the command line?
15
2009-07-27 14:27:54
<p>P4V has been crapping out on me when attempting to resolve a large number of files as part of an integration. I want to be able to do this in the command line. </p> <p>Here's the steps in P4V:</p> <ol> <li>Right-click the CL.</li> <li>Choose "Resolve Files..." A dialog will appear.</li> <li>Choose "Merge yours an...
15,492
16,524
2024-10-14 18:15:53
1,188,521
15
2009-07-27 14:32:52
103,043
2009-07-27 14:52:10
https://stackoverflow.com/q/1188491
https://stackoverflow.com/a/1188521
<p>You can use <code>p4 resolve -am [file ...]</code> which will skip the files with conflicts. </p> <p>If you specify a file, you will work on that file only. If you specify <code>...</code>, you will work on files below your working directory. If you do not specify a file, it will work on all of the files in your ...
<p>You can use <code>p4 resolve -am [file ...]</code> which will skip the files with conflicts. </p> <p>If you specify a file, you will work on that file only. If you specify <code>...</code>, you will work on files below your working directory. If you do not specify a file, it will work on all of the files in your ...
1286, 8025
p4v, perforce
<h1>Perforce auto resolve from the command line?</h1> <p>P4V has been crapping out on me when attempting to resolve a large number of files as part of an integration. I want to be able to do this in the command line. </p> <p>Here's the steps in P4V:</p> <ol> <li>Right-click the CL.</li> <li>Choose "Resolve Files..."...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,487
perforce
# Perforce auto resolve from the command line? P4V has been crapping out on me when attempting to resolve a large number of files as part of an integration. I want to be able to do this in the command line. Here's the steps in P4V: 1. Right-click the CL. 2. Choose "Resolve Files..." A dialog will appear. 3. Choose "...
You can use `p4 resolve -am [file ...]` which will skip the files with conflicts. If you specify a file, you will work on that file only. If you specify `...`, you will work on files below your working directory. If you do not specify a file, it will work on all of the files in your workspace.
7438373
OCaml toplevel with syntax extensions
14
2011-09-15 22:52:44
<p>I don't know how to accomplish this in general, but I'll ask about one instance in particular for clarity:</p> <p>Sexplib looks interesting to me. I want to play around with it. I've downloaded it, installed it just fine (I'm pretty sure, anyway), etc. I want to use the "with sexp" syntax extension in a toplevel. H...
1,554
555,375
2014-07-07 06:11:25
7,441,105
15
2011-09-16 06:48:09
118,799
2011-09-16 06:48:09
https://stackoverflow.com/q/7438373
https://stackoverflow.com/a/7441105
<p>It is XXI century already - use ocamlfind :</p> <pre><code> Objective Caml version 3.11.2 # #use "topfind";; - : unit = () # #camlp4o;; /usr/lib/ocaml/dynlink.cma: loaded /usr/lib/ocaml/camlp4: added to search path /usr/lib/ocaml/camlp4/camlp4o.cma: loaded Camlp4 Parsing version 3.11.2 # #require "sex...
<p>It is XXI century already - use ocamlfind :</p> <pre><code> Objective Caml version 3.11.2 # #use "topfind";; - : unit = () # #camlp4o;; /usr/lib/ocaml/dynlink.cma: loaded /usr/lib/ocaml/camlp4: added to search path /usr/lib/ocaml/camlp4/camlp4o.cma: loaded Camlp4 Parsing version 3.11.2 # #require "sex...
367, 1808, 61760
camlp4, ocaml, syntax
<h1>OCaml toplevel with syntax extensions</h1> <p>I don't know how to accomplish this in general, but I'll ask about one instance in particular for clarity:</p> <p>Sexplib looks interesting to me. I want to play around with it. I've downloaded it, installed it just fine (I'm pretty sure, anyway), etc. I want to use th...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,488
perforce
# OCaml toplevel with syntax extensions I don't know how to accomplish this in general, but I'll ask about one instance in particular for clarity: Sexplib looks interesting to me. I want to play around with it. I've downloaded it, installed it just fine (I'm pretty sure, anyway), etc. I want to use the "with sexp" sy...
It is XXI century already - use ocamlfind : ``` Objective Caml version 3.11.2 # #use "topfind";; - : unit = () # #camlp4o;; /usr/lib/ocaml/dynlink.cma: loaded /usr/lib/ocaml/camlp4: added to search path /usr/lib/ocaml/camlp4/camlp4o.cma: loaded Camlp4 Parsing version 3.11.2 # #require "sexplib.syntax";;...
25869206
ffmpeg PNG to mp4 - Black screen
8
2014-09-16 12:48:02
<p>I can create a mpg video using this line</p> <pre><code>ffmpeg -f image2 -i 100%03d0.png movie.mpg </code></pre> <p>But If I try creating an mp4 video I get a video with a black screen.</p> <pre><code>ffmpeg -f image2 -i 100%03d0.png movie.mp4 </code></pre> <p>My directory with figures looks like: 1000010.png,10...
10,515
2,486,641
2018-05-29 12:39:23
25,869,926
15
2014-09-16 13:20:24
3,473,830
2015-12-03 20:06:08
https://stackoverflow.com/q/25869206
https://stackoverflow.com/a/25869926
<p>Adding <code>-pix_fmt yuv420p</code> should solve the problem:</p> <pre><code>ffmpeg -i input_%03d.png -pix_fmt yuv420p movie.mp4 </code></pre> <p>From <a href="https://trac.ffmpeg.org/wiki/Create%20a%20video%20slideshow%20from%20images" rel="noreferrer">FFmpeg Wiki</a>:</p> <blockquote> <p>"By default when usi...
<p>Adding <code>-pix_fmt yuv420p</code> should solve the problem:</p> <pre><code>ffmpeg -i input_%03d.png -pix_fmt yuv420p movie.mp4 </code></pre> <p>From <a href="https://trac.ffmpeg.org/wiki/Create%20a%20video%20slideshow%20from%20images" rel="noreferrer">FFmpeg Wiki</a>:</p> <blockquote> <p>"By default when usi...
1034, 1383, 2734, 3847
ffmpeg, mp4, mpeg, png
<h1>ffmpeg PNG to mp4 - Black screen</h1> <p>I can create a mpg video using this line</p> <pre><code>ffmpeg -f image2 -i 100%03d0.png movie.mpg </code></pre> <p>But If I try creating an mp4 video I get a video with a black screen.</p> <pre><code>ffmpeg -f image2 -i 100%03d0.png movie.mp4 </code></pre> <p>My directo...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,489
perforce
# ffmpeg PNG to mp4 - Black screen I can create a mpg video using this line ``` ffmpeg -f image2 -i 100%03d0.png movie.mpg ``` But If I try creating an mp4 video I get a video with a black screen. ``` ffmpeg -f image2 -i 100%03d0.png movie.mp4 ``` My directory with figures looks like: 1000010.png,1000020.png,...10...
Adding `-pix_fmt yuv420p` should solve the problem: ``` ffmpeg -i input_%03d.png -pix_fmt yuv420p movie.mp4 ``` From [FFmpeg Wiki](https://trac.ffmpeg.org/wiki/Create%20a%20video%20slideshow%20from%20images): > "By default when using libx264, and depending on your input, ffmpeg > will attempt to avoid color subsampl...
4024381
How do I see if a branch contains a bug fix in Perforce?
8
2010-10-26 13:56:09
<p><em>(I am a new perforce user, but have used lots of other source code control systems in the past.)</em></p> <p>We use a change list to check-in each bug fix; the change list comment includes the bug ID therefore it is easy to track when a bug fix has been <strong>checked into</strong> a branch.</p> <p>However I ...
3,294
57,159
2010-10-28 15:04:56
4,025,348
15
2010-10-26 15:41:45
4,659
2010-10-26 15:41:45
https://stackoverflow.com/q/4024381
https://stackoverflow.com/a/4025348
<p>Perforce tracks where revisions of a file have been integrated, but it doesn't automatically propagate check-in comments with your bug-tracking metadata.</p> <p>Given a changelist on a particular branch, you can tell whether Perforce thinks the changelist has been integrated by asking Perforce to integrate the chan...
<p>Perforce tracks where revisions of a file have been integrated, but it doesn't automatically propagate check-in comments with your bug-tracking metadata.</p> <p>Given a changelist on a particular branch, you can tell whether Perforce thinks the changelist has been integrated by asking Perforce to integrate the chan...
1286
perforce
<h1>How do I see if a branch contains a bug fix in Perforce?</h1> <p><em>(I am a new perforce user, but have used lots of other source code control systems in the past.)</em></p> <p>We use a change list to check-in each bug fix; the change list comment includes the bug ID therefore it is easy to track when a bug fix h...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,490
perforce
# How do I see if a branch contains a bug fix in Perforce? *(I am a new perforce user, but have used lots of other source code control systems in the past.)* We use a change list to check-in each bug fix; the change list comment includes the bug ID therefore it is easy to track when a bug fix has been **checked into*...
Perforce tracks where revisions of a file have been integrated, but it doesn't automatically propagate check-in comments with your bug-tracking metadata. Given a changelist on a particular branch, you can tell whether Perforce thinks the changelist has been integrated by asking Perforce to integrate the changelist. (I...
3284514
Subversion option to display results of update without actually updating
8
2010-07-19 19:55:53
<p>The perforce command:</p> <p><code>p4 sync -n</code></p> <p>will display the results of the sync (update in subversion) without actually performing the sync.</p> <p>I've been looking in the svn help pages and googling around for a tag/command in subversion that will do the same but have yet to find one. I was th...
1,523
396,161
2016-02-25 23:44:16
3,284,560
15
2010-07-19 20:02:02
172,588
2016-02-25 23:44:16
https://stackoverflow.com/q/3284514
https://stackoverflow.com/a/3284560
<p>To see what an update will change, enter:</p> <pre><code>svn status -u </code></pre> <p>This is like <code>svn status</code> but also displays files which would be updated.</p> <p>You can then see individual differences by running <code>svn status</code>/<code>svn diff</code> on individual files.</p>
<p>To see what an update will change, enter:</p> <pre><code>svn status -u </code></pre> <p>This is like <code>svn status</code> but also displays files which would be updated.</p> <p>You can then see individual differences by running <code>svn status</code>/<code>svn diff</code> on individual files.</p>
63, 1286, 1652
perforce, svn, synchronization
<h1>Subversion option to display results of update without actually updating</h1> <p>The perforce command:</p> <p><code>p4 sync -n</code></p> <p>will display the results of the sync (update in subversion) without actually performing the sync.</p> <p>I've been looking in the svn help pages and googling around for a t...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,491
perforce
# Subversion option to display results of update without actually updating The perforce command: `p4 sync -n` will display the results of the sync (update in subversion) without actually performing the sync. I've been looking in the svn help pages and googling around for a tag/command in subversion that will do the...
To see what an update will change, enter: ``` svn status -u ``` This is like `svn status` but also displays files which would be updated. You can then see individual differences by running `svn status`/`svn diff` on individual files.
12901160
MSP430 assembly instructions
7
2012-10-15 17:47:40
<p>I am trying to understand what these instructions do for the MSP 430 processor:</p> <pre><code>(1) MOV.w #0x0055,R5 (2) BIC.w #0xFFEE,R5 (3) BIS.w #0x1144,R5 </code></pre> <p>I haven't been able to find much that explains the assembly instructions and would love to find out what these instructions do and wh...
28,792
1,210,614
2016-08-25 19:31:23
12,903,466
15
2012-10-15 20:27:23
623,133
2012-10-15 20:27:23
https://stackoverflow.com/q/12901160
https://stackoverflow.com/a/12903466
<p><code>MOV</code> moves a value to the destination. In this case <code>R5</code> will contain the value 0x0055.</p> <p><code>BIC</code> clears bits in the destination value. If R5 would contain 0x0055 before the instruction, it will contain the value 0x0011. (Think of this as an inversed <em>and</em> instruction).</...
<p><code>MOV</code> moves a value to the destination. In this case <code>R5</code> will contain the value 0x0055.</p> <p><code>BIC</code> clears bits in the destination value. If R5 would contain 0x0055 before the instruction, it will contain the value 0x0011. (Think of this as an inversed <em>and</em> instruction).</...
824, 5368, 25312
assembly, msp430, processor
<h1>MSP430 assembly instructions</h1> <p>I am trying to understand what these instructions do for the MSP 430 processor:</p> <pre><code>(1) MOV.w #0x0055,R5 (2) BIC.w #0xFFEE,R5 (3) BIS.w #0x1144,R5 </code></pre> <p>I haven't been able to find much that explains the assembly instructions and would love to find...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,492
perforce
# MSP430 assembly instructions I am trying to understand what these instructions do for the MSP 430 processor: ``` (1) MOV.w #0x0055,R5 (2) BIC.w #0xFFEE,R5 (3) BIS.w #0x1144,R5 ``` I haven't been able to find much that explains the assembly instructions and would love to find out what these instructions do a...
`MOV` moves a value to the destination. In this case `R5` will contain the value 0x0055. `BIC` clears bits in the destination value. If R5 would contain 0x0055 before the instruction, it will contain the value 0x0011. (Think of this as an inversed *and* instruction). `BIS` sets bits -- this is effectively the same as...
12047460
perforce: sync to an earlier revision
33
2012-08-21 01:48:58
<p>I want to test a fix and to compare the behavior before the fix vs. now; I need to sync to a the earlier version. So, if the fix was committed in revision x; how can I sync to one revision before, say x0?</p>
80,475
486,167
2021-02-02 04:07:33
12,047,472
14
2012-08-21 01:51:21
486,167
2012-08-21 01:51:21
https://stackoverflow.com/q/12047460
https://stackoverflow.com/a/12047472
<p>I found the answer while writing my question. I have been trying: </p> <pre><code>p4 sync ...@x0 </code></pre> <p>where x0 is the changelist before the change containing the fix. But only a fraction of files was getting reverted. I found the issue that when we specify ... only the files in that folder and subfold...
<p>I found the answer while writing my question. I have been trying: </p> <pre><code>p4 sync ...@x0 </code></pre> <p>where x0 is the changelist before the change containing the fix. But only a fraction of files was getting reverted. I found the issue that when we specify ... only the files in that folder and subfold...
456, 1286
perforce, version-control
<h1>perforce: sync to an earlier revision</h1> <p>I want to test a fix and to compare the behavior before the fix vs. now; I need to sync to a the earlier version. So, if the fix was committed in revision x; how can I sync to one revision before, say x0?</p>
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,493
perforce
# perforce: sync to an earlier revision I want to test a fix and to compare the behavior before the fix vs. now; I need to sync to a the earlier version. So, if the fix was committed in revision x; how can I sync to one revision before, say x0?
I found the answer while writing my question. I have been trying: ``` p4 sync ...@x0 ``` where x0 is the changelist before the change containing the fix. But only a fraction of files was getting reverted. I found the issue that when we specify ... only the files in that folder and subfolder(s) get synced. So above co...
25411169
MSP430 CMP operator
10
2014-08-20 17:41:51
<p>Let's say I have the MSP430 assembly segment below:</p> <p>r15:</p> <pre><code>439c </code></pre> <p>Memory map:</p> <pre><code>4390: 6045 0200 9c43 6400 8844 5044 363a 0000 </code></pre> <p>Code:</p> <pre><code>448a: cmp #0x363a, 0x0(r15) 4490: jnz $+0x1c 4492: Code continues . . . 44ac: Jump to locati...
3,456
3,961,290
2014-08-20 22:24:28
25,415,205
14
2014-08-20 22:04:47
136,452
2014-08-20 22:24:28
https://stackoverflow.com/q/25411169
https://stackoverflow.com/a/25415205
<p>The reason is that the <a href="http://en.wikipedia.org/wiki/TI_MSP430#MSP430_CPU">MSP430</a> is a <strong>little endian</strong> machine.<br> I.e. the byte at the lower addres <code>0x439C</code> is interpreted as the <strong>Least</strong> Significant Byte.<br> The byte at the higher address <code>0x439D</code> is...
<p>The reason is that the <a href="http://en.wikipedia.org/wiki/TI_MSP430#MSP430_CPU">MSP430</a> is a <strong>little endian</strong> machine.<br> I.e. the byte at the lower addres <code>0x439C</code> is interpreted as the <strong>Least</strong> Significant Byte.<br> The byte at the higher address <code>0x439D</code> is...
824, 25312
assembly, msp430
<h1>MSP430 CMP operator</h1> <p>Let's say I have the MSP430 assembly segment below:</p> <p>r15:</p> <pre><code>439c </code></pre> <p>Memory map:</p> <pre><code>4390: 6045 0200 9c43 6400 8844 5044 363a 0000 </code></pre> <p>Code:</p> <pre><code>448a: cmp #0x363a, 0x0(r15) 4490: jnz $+0x1c 4492: Code continu...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,494
perforce
# MSP430 CMP operator Let's say I have the MSP430 assembly segment below: r15: ``` 439c ``` Memory map: ``` 4390: 6045 0200 9c43 6400 8844 5044 363a 0000 ``` Code: ``` 448a: cmp #0x363a, 0x0(r15) 4490: jnz $+0x1c 4492: Code continues . . . 44ac: Jump to location ``` The goal is to have the Z flag high. T...
The reason is that the [MSP430](http://en.wikipedia.org/wiki/TI_MSP430#MSP430_CPU) is a **little endian** machine. I.e. the byte at the lower addres `0x439C` is interpreted as the **Least** Significant Byte. The byte at the higher address `0x439D` is interpreted as the **Most** Significant Byte. So the 16-bit val...
11393050
Google Chrome does not want to play mp4 using mediaelement.js
8
2012-07-09 10:16:28
<p>I'm using the latest mediaelement.js on my website to play html5 video. There is something strange in Google Chrome. He plays one video, but doesn't want to play the other video in mp4 format and doesn't fallback to webm. Both videos were converted with ffmpeg with this params: </p> <pre><code>ffmpeg -i input.mov...
10,747
1,154,372
2014-09-14 03:41:58
13,655,111
14
2012-12-01 00:28:51
496,046
2012-12-01 00:28:51
https://stackoverflow.com/q/11393050
https://stackoverflow.com/a/13655111
<p>If you try doing <code>$("video").get(0).currentSrc</code> or equivalent in a console you'll see that the non-mediaelement.js version is playing the Webm video, which Chrome can play just fine, but if you look at the same thing in the mediaelement.js version it's trying to play the MP4.</p> <p>Then, if you have a l...
<p>If you try doing <code>$("video").get(0).currentSrc</code> or equivalent in a console you'll see that the non-mediaelement.js version is playing the Webm video, which Chrome can play just fine, but if you look at the same thing in the mediaelement.js version it's trying to play the MP4.</p> <p>Then, if you have a l...
2, 519, 1034, 3600, 9718
google-chrome, html, mediaelement, mp4, video
<h1>Google Chrome does not want to play mp4 using mediaelement.js</h1> <p>I'm using the latest mediaelement.js on my website to play html5 video. There is something strange in Google Chrome. He plays one video, but doesn't want to play the other video in mp4 format and doesn't fallback to webm. Both videos were conver...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,495
perforce
# Google Chrome does not want to play mp4 using mediaelement.js I'm using the latest mediaelement.js on my website to play html5 video. There is something strange in Google Chrome. He plays one video, but doesn't want to play the other video in mp4 format and doesn't fallback to webm. Both videos were converted with f...
If you try doing `$("video").get(0).currentSrc` or equivalent in a console you'll see that the non-mediaelement.js version is playing the Webm video, which Chrome can play just fine, but if you look at the same thing in the mediaelement.js version it's trying to play the MP4. Then, if you have a look at `$("video").ge...
20520705
Using jcodec SequenceEncoder
7
2013-12-11 13:40:03
<p>I need to create video from images, I have seen jcodec and I think it is what I need: <a href="http://jcodec.org/" rel="nofollow noreferrer">http://jcodec.org/</a></p> <p>How do I add jcodec to my project? I have seen there is a version for android. Correct me if I am wrong, but I added <strong><em>jcodec-0.1.5.jar...
10,114
1,075,753
2016-12-20 12:34:17
20,630,238
14
2013-12-17 09:20:43
2,868,352
2013-12-17 12:37:07
https://stackoverflow.com/q/20520705
https://stackoverflow.com/a/20630238
<p>This is how you do it</p> <p>1) Download <strong>jcodec-android-0.1.7.zip</strong> from <a href="http://jcodec.org/">http://jcodec.org/</a></p> <p>2) Unzip the downloaded file and you will get <strong>JCodec</strong> folder which is an android project.</p> <p>3) Import that <strong>JCodec</strong> project in your...
<p>This is how you do it</p> <p>1) Download <strong>jcodec-android-0.1.7.zip</strong> from <a href="http://jcodec.org/">http://jcodec.org/</a></p> <p>2) Unzip the downloaded file and you will get <strong>JCodec</strong> folder which is an android project.</p> <p>3) Import that <strong>JCodec</strong> project in your...
17, 1034, 1386, 3209, 33093
android, encoder, h.264, java, mp4
<h1>Using jcodec SequenceEncoder</h1> <p>I need to create video from images, I have seen jcodec and I think it is what I need: <a href="http://jcodec.org/" rel="nofollow noreferrer">http://jcodec.org/</a></p> <p>How do I add jcodec to my project? I have seen there is a version for android. Correct me if I am wrong, bu...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,496
perforce
# Using jcodec SequenceEncoder I need to create video from images, I have seen jcodec and I think it is what I need: <http://jcodec.org/> How do I add jcodec to my project? I have seen there is a version for android. Correct me if I am wrong, but I added ***jcodec-0.1.5.jar*** to my project under the libs folder. The...
This is how you do it 1) Download **jcodec-android-0.1.7.zip** from <http://jcodec.org/> 2) Unzip the downloaded file and you will get **JCodec** folder which is an android project. 3) Import that **JCodec** project in your Eclipse. If you get any error, solve it by right clicking on the project `Properties -> Andro...
14476479
Using mail() to send an attachment AND text/html in an email in PHP4
7
2013-01-23 09:38:32
<p>To make life difficult, the client I'm working for is using a really large yet old system which runs on PHP4.0 and they're not wanting any additional libraries added.</p> <p>I'm trying to send out an email through PHP with both an attachment and accompanying text/html content but I'm unable to send both in one emai...
10,187
1,317,805
2018-01-10 13:32:11
14,478,069
14
2013-01-23 11:00:52
1,317,805
2018-01-10 13:32:11
https://stackoverflow.com/q/14476479
https://stackoverflow.com/a/14478069
<p>Okay, I've finally cracked it! For reference:</p> <pre><code>$emailBody .= "&lt;html&gt;&lt;body&gt;Blah&lt;/body&gt;&lt;/html&gt;"; $emailSubject = "Subject"; $emailCSV = "\"Col1\", \"Col2\"\r\n"; // etc. $attachment = $emailCSV; $boundary = md5(time()); $header = "From: Name &lt;address@address.com&gt;\r\n"; $h...
<p>Okay, I've finally cracked it! For reference:</p> <pre><code>$emailBody .= "&lt;html&gt;&lt;body&gt;Blah&lt;/body&gt;&lt;/html&gt;"; $emailSubject = "Subject"; $emailCSV = "\"Col1\", \"Col2\"\r\n"; // etc. $attachment = $emailCSV; $boundary = md5(time()); $header = "From: Name &lt;address@address.com&gt;\r\n"; $h...
5, 4090
php, php4
<h1>Using mail() to send an attachment AND text/html in an email in PHP4</h1> <p>To make life difficult, the client I'm working for is using a really large yet old system which runs on PHP4.0 and they're not wanting any additional libraries added.</p> <p>I'm trying to send out an email through PHP with both an attachm...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,497
perforce
# Using mail() to send an attachment AND text/html in an email in PHP4 To make life difficult, the client I'm working for is using a really large yet old system which runs on PHP4.0 and they're not wanting any additional libraries added. I'm trying to send out an email through PHP with both an attachment and accompan...
Okay, I've finally cracked it! For reference: ``` $emailBody .= "<html><body>Blah</body></html>"; $emailSubject = "Subject"; $emailCSV = "\"Col1\", \"Col2\"\r\n"; // etc. $attachment = $emailCSV; $boundary = md5(time()); $header = "From: Name <address@address.com>\r\n"; $header .= "MIME-Version: 1.0\r\n"; $header .=...
41525200
Convert mp4 sound to text in python
6
2017-01-07 18:50:59
<p>I want to convert a sound recording from Facebook Messenger to text. Here is an example of an .mp4 file send using Facebook's API: <a href="https://cdn.fbsbx.com/v/t59.3654-21/15720510_10211855778255994_5430581267814940672_n.mp4/audioclip-1484407992000-3392.mp4?oh=a78286aa96c9dea29e5d07854194801c&amp;oe=587C3833" r...
31,291
1,735,729
2020-05-21 16:30:41
41,722,697
14
2017-01-18 15:02:04
1,735,729
2017-01-18 15:02:04
https://stackoverflow.com/q/41525200
https://stackoverflow.com/a/41722697
<p>Finally I found an solution. I'm posting it here in case it helps someone in the future.</p> <p>Fortunately, pythonanywhere.com comes with avconv pre-installed (avconv is similar to ffmpeg).</p> <p>So here is some code that works:</p> <pre><code>import urllib2 import speech_recognition as sr import subprocess imp...
<p>Finally I found an solution. I'm posting it here in case it helps someone in the future.</p> <p>Fortunately, pythonanywhere.com comes with avconv pre-installed (avconv is similar to ffmpeg).</p> <p>So here is some code that works:</p> <pre><code>import urllib2 import speech_recognition as sr import subprocess imp...
16, 348, 1034, 8754
audio, mp4, python, wav
<h1>Convert mp4 sound to text in python</h1> <p>I want to convert a sound recording from Facebook Messenger to text. Here is an example of an .mp4 file send using Facebook's API: <a href="https://cdn.fbsbx.com/v/t59.3654-21/15720510_10211855778255994_5430581267814940672_n.mp4/audioclip-1484407992000-3392.mp4?oh=a78286...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,498
perforce
# Convert mp4 sound to text in python I want to convert a sound recording from Facebook Messenger to text. Here is an example of an .mp4 file send using Facebook's API: <https://cdn.fbsbx.com/v/t59.3654-21/15720510_10211855778255994_5430581267814940672_n.mp4/audioclip-1484407992000-3392.mp4?oh=a78286aa96c9dea29e5d0785...
Finally I found an solution. I'm posting it here in case it helps someone in the future. Fortunately, pythonanywhere.com comes with avconv pre-installed (avconv is similar to ffmpeg). So here is some code that works: ``` import urllib2 import speech_recognition as sr import subprocess import os url = 'https://cdn.f...
1357475
How to remove untracked files from a Perforce working tree?
33
2009-08-31 13:28:17
<p>What's the equivalent of <a href="http://www.kernel.org/pub/software/scm/git/docs/git-clean.html" rel="noreferrer">"git clean"</a> with Perforce?</p> <blockquote> <p>git-clean - Remove untracked files from the working tree</p> <p>Cleans the working tree by recursively removing files that are not under versio...
32,615
166,014
2022-03-09 22:05:17
1,406,638
13
2009-09-10 17:33:47
55,284
2009-09-10 17:33:47
https://stackoverflow.com/q/1357475
https://stackoverflow.com/a/1406638
<p>Try (for Unix) from your top-level:</p> <pre><code># Find all files and filter for those that are unknown by Perforce find . -type f | p4 -x - fstat 2&gt;&amp;1 &gt; /dev/null | sed 's/ -.*$//' &gt; /tmp/list ### manually check /tmp/list for files you didn't mean to delete # Go ahead and remove the unwanted files. ...
<p>Try (for Unix) from your top-level:</p> <pre><code># Find all files and filter for those that are unknown by Perforce find . -type f | p4 -x - fstat 2&gt;&amp;1 &gt; /dev/null | sed 's/ -.*$//' &gt; /tmp/list ### manually check /tmp/list for files you didn't mean to delete # Go ahead and remove the unwanted files. ...
1286
perforce
<h1>How to remove untracked files from a Perforce working tree?</h1> <p>What's the equivalent of <a href="http://www.kernel.org/pub/software/scm/git/docs/git-clean.html" rel="noreferrer">"git clean"</a> with Perforce?</p> <blockquote> <p>git-clean - Remove untracked files from the working tree</p> <p>Cleans the...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,499
perforce
# How to remove untracked files from a Perforce working tree? What's the equivalent of ["git clean"](http://www.kernel.org/pub/software/scm/git/docs/git-clean.html) with Perforce? > git-clean - Remove untracked files from the working tree > > Cleans the working tree by recursively removing files that are not under ve...
Try (for Unix) from your top-level: ``` # Find all files and filter for those that are unknown by Perforce find . -type f | p4 -x - fstat 2>&1 > /dev/null | sed 's/ -.*$//' > /tmp/list ### manually check /tmp/list for files you didn't mean to delete # Go ahead and remove the unwanted files. xargs rm < /tmp/list ``` O...
373234
How can I grab my local changelist and send it to someone else in Perforce?
16
2008-12-17 00:04:08
<p>How can I grab my local changelist and send it to someone else in Perforce? More specifically, I would like to send unsubmitted changes from a local pending changelist to another user's pending changelist.</p>
12,315
46,869
2020-10-02 15:09:27
373,434
13
2008-12-17 01:53:25
5,728
2008-12-17 01:53:25
https://stackoverflow.com/q/373234
https://stackoverflow.com/a/373434
<pre><code>set P4DIFF=C:\cygwin\bin\diff.exe p4 diff -du -c 12345 &gt; patch-to-head.diff # On Other machine patch -p1 &lt; patch-to-head.diff </code></pre> <p>I may be wrong on the env var there, and you might have to do some fixups on the diff file, but the general idea is that you generate a GNU Unified Diff, that...
<pre><code>set P4DIFF=C:\cygwin\bin\diff.exe p4 diff -du -c 12345 &gt; patch-to-head.diff # On Other machine patch -p1 &lt; patch-to-head.diff </code></pre> <p>I may be wrong on the env var there, and you might have to do some fixups on the diff file, but the general idea is that you generate a GNU Unified Diff, that...
1286
perforce
<h1>How can I grab my local changelist and send it to someone else in Perforce?</h1> <p>How can I grab my local changelist and send it to someone else in Perforce? More specifically, I would like to send unsubmitted changes from a local pending changelist to another user's pending changelist.</p>
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,500
perforce
# How can I grab my local changelist and send it to someone else in Perforce? How can I grab my local changelist and send it to someone else in Perforce? More specifically, I would like to send unsubmitted changes from a local pending changelist to another user's pending changelist.
``` set P4DIFF=C:\cygwin\bin\diff.exe p4 diff -du -c 12345 > patch-to-head.diff # On Other machine patch -p1 < patch-to-head.diff ``` I may be wrong on the env var there, and you might have to do some fixups on the diff file, but the general idea is that you generate a GNU Unified Diff, that you can send to people th...
33253733
What does "tampered with before resolve" mean on file resolve?
11
2015-10-21 07:50:11
<p>I'm trying to merge <code>main</code> stream to <code>development</code> stream and some files need to be resolved. On resolve I have an error:</p> <blockquote> <p><em>filepath</em> tampered with before resolve - edit or revert.</p> </blockquote> <p>I tried to solve it as described <a href="http://answers.perfor...
21,798
1,341,942
2018-11-12 22:36:03
33,261,068
13
2015-10-21 13:46:34
193,453
2015-10-21 13:46:34
https://stackoverflow.com/q/33253733
https://stackoverflow.com/a/33261068
<p>Perforce's client-server architecture is confusing you a bit here: the 'verify' command is reporting on the state of the files on the <strong>server</strong>, but the 'tampered with before resolve' message from 'p4 resolve' is alerting you to a problem with the state of the files on <strong>your client</strong>.</p>...
<p>Perforce's client-server architecture is confusing you a bit here: the 'verify' command is reporting on the state of the files on the <strong>server</strong>, but the 'tampered with before resolve' message from 'p4 resolve' is alerting you to a problem with the state of the files on <strong>your client</strong>.</p>...
1286
perforce
<h1>What does "tampered with before resolve" mean on file resolve?</h1> <p>I'm trying to merge <code>main</code> stream to <code>development</code> stream and some files need to be resolved. On resolve I have an error:</p> <blockquote> <p><em>filepath</em> tampered with before resolve - edit or revert.</p> </blockqu...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,501
perforce
# What does "tampered with before resolve" mean on file resolve? I'm trying to merge `main` stream to `development` stream and some files need to be resolved. On resolve I have an error: > *filepath* tampered with before resolve - edit or revert. I tried to solve it as described [here](http://answers.perforce.com/ar...
Perforce's client-server architecture is confusing you a bit here: the 'verify' command is reporting on the state of the files on the **server**, but the 'tampered with before resolve' message from 'p4 resolve' is alerting you to a problem with the state of the files on **your client**. It appears, from the little bit...
26263339
Determine perforce users that have a file checked out
11
2014-10-08 17:55:40
<p>I have read these questions: </p> <ul> <li><a href="https://stackoverflow.com/questions/7828144/list-of-checked-out-files-by-others-in-perforce">List of checked out files by others in Perforce</a></li> <li><a href="https://stackoverflow.com/questions/3875303/perforce-file-locked-by-departed-user">Perforce File Lock...
18,229
3,939,292
2015-11-17 20:08:02
26,263,409
13
2014-10-08 17:59:15
3,939,292
2015-11-17 20:08:02
https://stackoverflow.com/q/26263339
https://stackoverflow.com/a/26263409
<p>Stupid me found it as soon as I asked.</p> <p>With P4 in Windows, navigate to the file (it's easy with Ctrl + Shift + S in the P4 Workspace view). Right-click it -> Perforce -> Properties. Look under the "Checked Out By" tab. You can also mouse-over the file icon to invoke a tooltip which will reveal this.</p> <p>...
<p>Stupid me found it as soon as I asked.</p> <p>With P4 in Windows, navigate to the file (it's easy with Ctrl + Shift + S in the P4 Workspace view). Right-click it -> Perforce -> Properties. Look under the "Checked Out By" tab. You can also mouse-over the file icon to invoke a tooltip which will reveal this.</p> <p>...
1286
perforce
<h1>Determine perforce users that have a file checked out</h1> <p>I have read these questions: </p> <ul> <li><a href="https://stackoverflow.com/questions/7828144/list-of-checked-out-files-by-others-in-perforce">List of checked out files by others in Perforce</a></li> <li><a href="https://stackoverflow.com/questions/38...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,502
perforce
# Determine perforce users that have a file checked out I have read these questions: - [List of checked out files by others in Perforce](https://stackoverflow.com/questions/7828144/list-of-checked-out-files-by-others-in-perforce) - [Perforce File Locked By Departed User](https://stackoverflow.com/questions/3875303/pe...
Stupid me found it as soon as I asked. With P4 in Windows, navigate to the file (it's easy with Ctrl + Shift + S in the P4 Workspace view). Right-click it -> Perforce -> Properties. Look under the "Checked Out By" tab. You can also mouse-over the file icon to invoke a tooltip which will reveal this. Turns out the sam...
36713195
What is the difference Helix vs Perforce?
10
2016-04-19 08:46:06
<p>I am working in a project which was using the <strong>Perforce</strong> repository. So I was using <strong>P4</strong> and <strong>P4V</strong> tools, to make commits and submissions. Now I decided to make my machine cleaner, so I reinstalled the Ubuntu, and making new settings.</p> <p>Installing the P4 and P4V, ma...
4,825
5,016,432
2022-07-17 05:52:49
36,894,083
13
2016-04-27 15:20:06
4,563,333
2022-07-17 05:52:49
https://stackoverflow.com/q/36713195
https://stackoverflow.com/a/36894083
<p>Helix is the new name that we have given to some Perforce Products.</p> <p>i.e., Helix Server = P4D = Perforce Server</p> <p>Helix CLI = P4 = Perforce Command Line client.</p> <p>To install the latest version of the Helix Server (Perforce Server) and Helix command line client (P4) using packages, run:</p> <pre><code...
<p>Helix is the new name that we have given to some Perforce Products.</p> <p>i.e., Helix Server = P4D = Perforce Server</p> <p>Helix CLI = P4 = Perforce Command Line client.</p> <p>To install the latest version of the Helix Server (Perforce Server) and Helix command line client (P4) using packages, run:</p> <pre><code...
1286, 24306
helix, perforce
<h1>What is the difference Helix vs Perforce?</h1> <p>I am working in a project which was using the <strong>Perforce</strong> repository. So I was using <strong>P4</strong> and <strong>P4V</strong> tools, to make commits and submissions. Now I decided to make my machine cleaner, so I reinstalled the Ubuntu, and making ...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,503
perforce
# What is the difference Helix vs Perforce? I am working in a project which was using the **Perforce** repository. So I was using **P4** and **P4V** tools, to make commits and submissions. Now I decided to make my machine cleaner, so I reinstalled the Ubuntu, and making new settings. Installing the P4 and P4V, made m...
Helix is the new name that we have given to some Perforce Products. i.e., Helix Server = P4D = Perforce Server Helix CLI = P4 = Perforce Command Line client. To install the latest version of the Helix Server (Perforce Server) and Helix command line client (P4) using packages, run: ``` sudo aptitude install helix-p4...
7389378
MP4 is downloading instead of playing
10
2011-09-12 14:21:27
<p>MP4 files are sometimes downloaded, and other times they play in the browser.</p> <p>What is the difference between these two links? </p> <p>1) If you open this URL in Chrome, the video will download:</p> <p><a href="http://video.video-mall.com/video_mall/400241188377_video.mp4" rel="noreferrer">http://video.vide...
19,284
174,477
2020-12-16 13:56:50
7,391,211
13
2011-09-12 16:47:32
20,128
2011-09-12 16:47:32
https://stackoverflow.com/q/7389378
https://stackoverflow.com/a/7391211
<p>First link has <code>Content-Type: application/octet-stream</code> header, while the second one <code>Content-Type: video/mp4</code>.</p>
<p>First link has <code>Content-Type: application/octet-stream</code> header, while the second one <code>Content-Type: video/mp4</code>.</p>
299, 519, 1034, 3600
flash, google-chrome, mp4, video
<h1>MP4 is downloading instead of playing</h1> <p>MP4 files are sometimes downloaded, and other times they play in the browser.</p> <p>What is the difference between these two links? </p> <p>1) If you open this URL in Chrome, the video will download:</p> <p><a href="http://video.video-mall.com/video_mall/40024118837...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,504
perforce
# MP4 is downloading instead of playing MP4 files are sometimes downloaded, and other times they play in the browser. What is the difference between these two links? 1) If you open this URL in Chrome, the video will download: <http://video.video-mall.com/video_mall/400241188377_video.mp4> 2) If you open this URL o...
First link has `Content-Type: application/octet-stream` header, while the second one `Content-Type: video/mp4`.
5749807
In Perforce, how do I find the local path for files in a pending changelist?
10
2011-04-21 21:07:53
<p>Given a Perforce changelist number, I want to find the local path of all files in that pending changelist.</p> <ul> <li><strong>p4 describe changelist</strong> -- gets me the depot path for files in the changelist (method 1)</li> <li><strong>p4 opened -c changelist</strong> -- gets me the depot path for files in th...
7,930
175
2019-12-13 22:01:01
5,749,842
13
2011-04-21 21:12:44
280,314
2012-12-19 15:11:42
https://stackoverflow.com/q/5749807
https://stackoverflow.com/a/5749842
<p>To output the local path of all pending adds of a changelist you can use:</p> <pre><code>p4 opened -c changelist | grep -w add | sed 's/#.*//' \ | p4 -x - where | awk '/^\// {print $3}' </code></pre> <p>This does the same without grep but is a bit more obscure:</p> <pre><code>p4 opened -c changelist | sed -n 's/\...
<p>To output the local path of all pending adds of a changelist you can use:</p> <pre><code>p4 opened -c changelist | grep -w add | sed 's/#.*//' \ | p4 -x - where | awk '/^\// {print $3}' </code></pre> <p>This does the same without grep but is a bit more obscure:</p> <pre><code>p4 opened -c changelist | sed -n 's/\...
1286
perforce
<h1>In Perforce, how do I find the local path for files in a pending changelist?</h1> <p>Given a Perforce changelist number, I want to find the local path of all files in that pending changelist.</p> <ul> <li><strong>p4 describe changelist</strong> -- gets me the depot path for files in the changelist (method 1)</li> ...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,505
perforce
# In Perforce, how do I find the local path for files in a pending changelist? Given a Perforce changelist number, I want to find the local path of all files in that pending changelist. - **p4 describe changelist** -- gets me the depot path for files in the changelist (method 1) - **p4 opened -c changelist** -- gets ...
To output the local path of all pending adds of a changelist you can use: ``` p4 opened -c changelist | grep -w add | sed 's/#.*//' \ | p4 -x - where | awk '/^\// {print $3}' ``` This does the same without grep but is a bit more obscure: ``` p4 opened -c changelist | sed -n 's/\(.*\)#.*- add .*/\1/p' \ | p4 -x - whe...
34565713
Difference between old-style and new-style PHP constructors
8
2016-01-02 12:07:50
<p>Could someone tell me how the "old-style" object constructor is different from the "new-style" constructor? I'm learning PHP OOP, and I want to know when I'm reading old syntax vs new syntax, and better understand how OOP has changed in PHP over time.</p> <p><strong>New Style</strong></p> <pre><code>class aObject ...
5,490
5,509,343
2024-10-24 10:15:27
34,585,927
13
2016-01-04 06:41:09
145,279
2024-10-24 10:15:27
https://stackoverflow.com/q/34565713
https://stackoverflow.com/a/34585927
<p>The &quot;old&quot; constructor syntax is referring to PHP4. The last release of PHP4 was in 2008, and the first release of PHP5 was in 2004. This is an example of an old-style class and a new-style class.</p> <p>Old (PHP4)</p> <pre><code>&lt;?php class MyOldClass { var $foo; function MyOldClass($foo) ...
<p>The &quot;old&quot; constructor syntax is referring to PHP4. The last release of PHP4 was in 2008, and the first release of PHP5 was in 2004. This is an example of an old-style class and a new-style class.</p> <p>Old (PHP4)</p> <pre><code>&lt;?php class MyOldClass { var $foo; function MyOldClass($foo) ...
5, 137, 4090
oop, php, php4
<h1>Difference between old-style and new-style PHP constructors</h1> <p>Could someone tell me how the "old-style" object constructor is different from the "new-style" constructor? I'm learning PHP OOP, and I want to know when I'm reading old syntax vs new syntax, and better understand how OOP has changed in PHP over ti...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,506
perforce
# Difference between old-style and new-style PHP constructors Could someone tell me how the "old-style" object constructor is different from the "new-style" constructor? I'm learning PHP OOP, and I want to know when I'm reading old syntax vs new syntax, and better understand how OOP has changed in PHP over time. **Ne...
The "old" constructor syntax is referring to PHP4. The last release of PHP4 was in 2008, and the first release of PHP5 was in 2004. This is an example of an old-style class and a new-style class. Old (PHP4) ``` <?php class MyOldClass { var $foo; function MyOldClass($foo) { $this->foo = $foo; ...
2923874
@ in p4 filename
8
2010-05-27 18:37:54
<p>I'd like to script p4 a little. Unfortunately, some of the filenames that we're tracking have "@" in the filename.</p> <p>The filenames are in the form <code>a@b.xml</code>. If I try to do something like <code>p4 sync a\@b.xml</code> on a mac (or <code>p4 sync a@b.xml</code> on windows) it gives the error:</p> <p>...
3,366
277,659
2010-05-27 20:28:43
2,924,643
13
2010-05-27 20:28:43
4,228
2010-05-27 20:28:43
https://stackoverflow.com/q/2923874
https://stackoverflow.com/a/2924643
<p>Yes. Use the ASCII expression of the character's hexadecimal value.</p> <p><code>p4 sync a%40b.xml</code> </p> <p>See this article: <a href="http://www.perforce.com/perforce/doc.current/manuals/cmdref/o.fspecs.html#1041962" rel="noreferrer">Limitations on characters in filenames and entities</a>.</p>
<p>Yes. Use the ASCII expression of the character's hexadecimal value.</p> <p><code>p4 sync a%40b.xml</code> </p> <p>See this article: <a href="http://www.perforce.com/perforce/doc.current/manuals/cmdref/o.fspecs.html#1041962" rel="noreferrer">Limitations on characters in filenames and entities</a>.</p>
531, 1286, 4804
escaping, perforce, scripting
<h1>@ in p4 filename</h1> <p>I'd like to script p4 a little. Unfortunately, some of the filenames that we're tracking have "@" in the filename.</p> <p>The filenames are in the form <code>a@b.xml</code>. If I try to do something like <code>p4 sync a\@b.xml</code> on a mac (or <code>p4 sync a@b.xml</code> on windows) it...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,507
perforce
# @ in p4 filename I'd like to script p4 a little. Unfortunately, some of the filenames that we're tracking have "@" in the filename. The filenames are in the form `a@b.xml`. If I try to do something like `p4 sync a\@b.xml` on a mac (or `p4 sync a@b.xml` on windows) it gives the error: Invalid changelist/client/labe...
Yes. Use the ASCII expression of the character's hexadecimal value. `p4 sync a%40b.xml` See this article: [Limitations on characters in filenames and entities](http://www.perforce.com/perforce/doc.current/manuals/cmdref/o.fspecs.html#1041962).
9526371
Perforce integrations with deleted targets
7
2012-03-02 00:29:53
<p>Sometimes we'd like to integrate a change from one branch to another, but have the source changes effectively be ignored. Typically we do this with <code>resolve -at</code>, meaning "just ignore the source changes", and leave the target unchanged. This operation still affects the Perforce metadata, however, since ...
4,240
149,138
2017-02-16 21:51:27
9,535,727
13
2012-03-02 15:20:13
1,054,341
2012-09-25 02:19:44
https://stackoverflow.com/q/9526371
https://stackoverflow.com/a/9535727
<p>The newer version of the Perforce server (2011.1) has a solution for this. From <a href="http://www.perforce.com/perforce/doc.current/user/relnotes.txt">the release</a> notes:</p> <blockquote> <p>When files have been edited in one branch and deleted in another, a special resolve will be scheduled to ...
<p>The newer version of the Perforce server (2011.1) has a solution for this. From <a href="http://www.perforce.com/perforce/doc.current/user/relnotes.txt">the release</a> notes:</p> <blockquote> <p>When files have been edited in one branch and deleted in another, a special resolve will be scheduled to ...
456, 657, 1286
integration, perforce, version-control
<h1>Perforce integrations with deleted targets</h1> <p>Sometimes we'd like to integrate a change from one branch to another, but have the source changes effectively be ignored. Typically we do this with <code>resolve -at</code>, meaning "just ignore the source changes", and leave the target unchanged. This operation ...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,508
perforce
# Perforce integrations with deleted targets Sometimes we'd like to integrate a change from one branch to another, but have the source changes effectively be ignored. Typically we do this with `resolve -at`, meaning "just ignore the source changes", and leave the target unchanged. This operation still affects the Perf...
The newer version of the Perforce server (2011.1) has a solution for this. From [the release](http://www.perforce.com/perforce/doc.current/user/relnotes.txt) notes: > When files have been edited in one branch and deleted in > another, a special resolve will be scheduled to accept or > ignore the branch or delete actio...
19055495
Why is the "source" version given so much importance in Perforce while merging (resolving conflicts to be verbose)?
6
2013-09-23 14:18:44
<p>I don't think I even want to see it. Why do others find it so important ? </p> <p><img src="https://i.sstatic.net/8JAKt.png" alt="enter image description here"></p> <p>Isn't Base, Target enough for the "resolving conflicts" aka Merge tool window. What am I missing ? Are people really that bothered about the versi...
4,228
530,340
2013-09-27 16:13:27
19,055,496
13
2013-09-23 14:47:02
389,146
2013-09-23 15:04:20
https://stackoverflow.com/q/19055495
https://stackoverflow.com/a/19055496
<p>It seems you have a fundamental misunderstanding about what each of the versions are. When you merge two branches, almost always you want to keep changes from both branches. <code>Base</code> is the latest common ancestor of the two branches. <code>Base-&gt;Source</code> shows what was changed in the branch you'r...
<p>It seems you have a fundamental misunderstanding about what each of the versions are. When you merge two branches, almost always you want to keep changes from both branches. <code>Base</code> is the latest common ancestor of the two branches. <code>Base-&gt;Source</code> shows what was changed in the branch you'r...
456, 1286
perforce, version-control
<h1>Why is the "source" version given so much importance in Perforce while merging (resolving conflicts to be verbose)?</h1> <p>I don't think I even want to see it. Why do others find it so important ? </p> <p><img src="https://i.sstatic.net/8JAKt.png" alt="enter image description here"></p> <p>Isn't Base, Target eno...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,510
perforce
# Why is the "source" version given so much importance in Perforce while merging (resolving conflicts to be verbose)? I don't think I even want to see it. Why do others find it so important ? ![enter image description here](https://i.sstatic.net/8JAKt.png) Isn't Base, Target enough for the "resolving conflicts" aka ...
It seems you have a fundamental misunderstanding about what each of the versions are. When you merge two branches, almost always you want to keep changes from both branches. `Base` is the latest common ancestor of the two branches. `Base->Source` shows what was changed in the branch you're merging from, and `Base->Targ...
10190906
How to get video duration from mp4, wmv, flv, mov videos
24
2012-04-17 12:05:57
<p>Alright. Actually i need mostly the mp4 format. But if it is possible to get for other types as well that would be nice. I just need to read the duration of the file. How can i do that with C# 4.0 ?</p> <p>So the thing i need is like this video is like : <code>13 minutes 12 seconds</code></p> <p>I can use 3 third ...
81,999
310,370
2019-08-19 06:43:46
10,191,257
12
2012-04-17 12:27:22
868,014
2013-09-16 00:58:14
https://stackoverflow.com/q/10190906
https://stackoverflow.com/a/10191257
<p>You can use DirectShow API <code>MediaDet</code> object, through DirectShow.NET wrapper library. See <a href="https://stackoverflow.com/questions/6215185/getting-length-of-video">Getting length of video</a> for code sample, <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/dd406887%28v=vs.85%29.aspx" ...
<p>You can use DirectShow API <code>MediaDet</code> object, through DirectShow.NET wrapper library. See <a href="https://stackoverflow.com/questions/6215185/getting-length-of-video">Getting length of video</a> for code sample, <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/dd406887%28v=vs.85%29.aspx" ...
1, 9, 519, 1034, 3420
.net, c#, duration, mp4, video
<h1>How to get video duration from mp4, wmv, flv, mov videos</h1> <p>Alright. Actually i need mostly the mp4 format. But if it is possible to get for other types as well that would be nice. I just need to read the duration of the file. How can i do that with C# 4.0 ?</p> <p>So the thing i need is like this video is li...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,511
perforce
# How to get video duration from mp4, wmv, flv, mov videos Alright. Actually i need mostly the mp4 format. But if it is possible to get for other types as well that would be nice. I just need to read the duration of the file. How can i do that with C# 4.0 ? So the thing i need is like this video is like : `13 minutes...
You can use DirectShow API `MediaDet` object, through DirectShow.NET wrapper library. See [Getting length of video](https://stackoverflow.com/questions/6215185/getting-length-of-video) for code sample, [`get_StreamLength`](http://msdn.microsoft.com/en-us/library/windows/desktop/dd406887%28v=vs.85%29.aspx) gets you the ...
49025795
Python OpenCV video.get(cv2.CAP_PROP_FPS) returns 0.0 FPS
22
2018-02-28 09:13:06
<p>This is my video</p> <p><a href="https://i.sstatic.net/su2nl.png" rel="noreferrer"><img src="https://i.sstatic.net/su2nl.png" alt="enter image description here"></a></p> <p>This is the script to find fps:</p> <pre><code>import cv2 if __name__ == '__main__' : video = cv2.VideoCapture("test.mp4"); # Find ...
72,530
1,238,675
2022-11-18 15:10:47
49,027,310
12
2018-02-28 10:29:14
1,238,675
2022-11-18 15:10:47
https://stackoverflow.com/q/49025795
https://stackoverflow.com/a/49027310
<p>Performing <code>pip install python-opencv</code> fixed the problem and the FPS is correctly detected.</p> <p>EDIT: tested with python 3.8 and indeed it is <code>pip install opencv-python</code>. Cannot remember two years ago what python I was using.</p> <p>EDIT November 2022: please also check <a href="https://stac...
<p>Performing <code>pip install python-opencv</code> fixed the problem and the FPS is correctly detected.</p> <p>EDIT: tested with python 3.8 and indeed it is <code>pip install opencv-python</code>. Cannot remember two years ago what python I was using.</p> <p>EDIT November 2022: please also check <a href="https://stac...
16, 1034, 1720, 4370
frame-rate, mp4, opencv, python
<h1>Python OpenCV video.get(cv2.CAP_PROP_FPS) returns 0.0 FPS</h1> <p>This is my video</p> <p><a href="https://i.sstatic.net/su2nl.png" rel="noreferrer"><img src="https://i.sstatic.net/su2nl.png" alt="enter image description here"></a></p> <p>This is the script to find fps:</p> <pre><code>import cv2 if __name__ == '...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,512
perforce
# Python OpenCV video.get(cv2.CAP_PROP_FPS) returns 0.0 FPS This is my video [![enter image description here](https://i.sstatic.net/su2nl.png)](https://i.sstatic.net/su2nl.png) This is the script to find fps: ``` import cv2 if __name__ == '__main__' : video = cv2.VideoCapture("test.mp4"); # Find OpenCV ve...
Performing `pip install python-opencv` fixed the problem and the FPS is correctly detected. EDIT: tested with python 3.8 and indeed it is `pip install opencv-python`. Cannot remember two years ago what python I was using. EDIT November 2022: please also check [Perry's answer below](https://stackoverflow.com/a/7447564...
49726207
Add json body to http4s Request
15
2018-04-09 05:36:58
<p>This tut shows how to create an http4s Request: <a href="https://http4s.org/v0.18/dsl/#testing-the-service" rel="noreferrer">https://http4s.org/v0.18/dsl/#testing-the-service</a></p> <p>I would like to change this request to a POST method and add a literal json body using circe. I tried the following code:</p> <pr...
8,506
775,246
2019-04-25 23:00:27
49,749,133
12
2018-04-10 08:41:29
7,448,310
2018-04-10 08:41:29
https://stackoverflow.com/q/49726207
https://stackoverflow.com/a/49749133
<p>Oleg's link mostly covers it, but here's how you'd do it for a custom request body:</p> <pre><code>import org.http4s.circe._ val body = json"""{"hello":"world"}""" val req = Request[IO](method = Method.POST, uri = Uri.uri("/")) .withBody(body) .unsafeRunSync() </code></pre> <p>Explanation:</p> <p>The paramet...
<p>Oleg's link mostly covers it, but here's how you'd do it for a custom request body:</p> <pre><code>import org.http4s.circe._ val body = json"""{"hello":"world"}""" val req = Request[IO](method = Method.POST, uri = Uri.uri("/")) .withBody(body) .unsafeRunSync() </code></pre> <p>Explanation:</p> <p>The paramet...
3143, 119529, 124374
http4s, http4s-circe, scala
<h1>Add json body to http4s Request</h1> <p>This tut shows how to create an http4s Request: <a href="https://http4s.org/v0.18/dsl/#testing-the-service" rel="noreferrer">https://http4s.org/v0.18/dsl/#testing-the-service</a></p> <p>I would like to change this request to a POST method and add a literal json body using ci...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,513
perforce
# Add json body to http4s Request This tut shows how to create an http4s Request: <https://http4s.org/v0.18/dsl/#testing-the-service> I would like to change this request to a POST method and add a literal json body using circe. I tried the following code: ``` val body = json"""{"hello":"world"}""" val req = Request[...
Oleg's link mostly covers it, but here's how you'd do it for a custom request body: ``` import org.http4s.circe._ val body = json"""{"hello":"world"}""" val req = Request[IO](method = Method.POST, uri = Uri.uri("/")) .withBody(body) .unsafeRunSync() ``` Explanation: The parameter `body` on the request class is ...
19712728
Perforce - create patch file of differences against have revision
14
2013-10-31 17:10:40
<p>In Perforce, how can I create a patch file which has the changes that are in the file as currently saved, compared to the have revision? Instructions for either the GUI client or the CLI client would be great.</p> <p>I can see how to get the diffs between two changelists, but not how to just get the difference betw...
36,214
11,023
2017-03-10 13:52:35
19,714,479
12
2013-10-31 18:54:03
179,715
2016-01-19 11:30:50
https://stackoverflow.com/q/19712728
https://stackoverflow.com/a/19714479
<p>I think that <code>p4 diff -du FILE &gt; patch.diff</code> should do what you want.</p>
<p>I think that <code>p4 diff -du FILE &gt; patch.diff</code> should do what you want.</p>
606, 1286, 8025
diff, p4v, perforce
<h1>Perforce - create patch file of differences against have revision</h1> <p>In Perforce, how can I create a patch file which has the changes that are in the file as currently saved, compared to the have revision? Instructions for either the GUI client or the CLI client would be great.</p> <p>I can see how to get the...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,514
perforce
# Perforce - create patch file of differences against have revision In Perforce, how can I create a patch file which has the changes that are in the file as currently saved, compared to the have revision? Instructions for either the GUI client or the CLI client would be great. I can see how to get the diffs between t...
I think that `p4 diff -du FILE > patch.diff` should do what you want.
10640916
Perforce: Can I put a 'watch' on a file, so that I am notified when the file changes?
11
2012-05-17 17:54:13
<p>I want to get notifications when new changes are made to a file in Perforce.</p>
9,203
486,167
2024-09-26 20:44:44
10,641,100
12
2012-05-17 18:04:44
475,229
2024-09-26 20:44:44
https://stackoverflow.com/q/10640916
https://stackoverflow.com/a/10641100
<p>If you are running the <a href="https://community.perforce.com/s/article/2920" rel="nofollow noreferrer">p4 review daemon</a>, one can run <code>p4 user</code> from the command-line and just add the file to your &quot;reviews&quot;.</p> <pre><code># A Perforce User Specification. # # User: The user's user na...
<p>If you are running the <a href="https://community.perforce.com/s/article/2920" rel="nofollow noreferrer">p4 review daemon</a>, one can run <code>p4 user</code> from the command-line and just add the file to your &quot;reviews&quot;.</p> <pre><code># A Perforce User Specification. # # User: The user's user na...
456, 1286
perforce, version-control
<h1>Perforce: Can I put a 'watch' on a file, so that I am notified when the file changes?</h1> <p>I want to get notifications when new changes are made to a file in Perforce.</p>
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,515
perforce
# Perforce: Can I put a 'watch' on a file, so that I am notified when the file changes? I want to get notifications when new changes are made to a file in Perforce.
If you are running the [p4 review daemon](https://community.perforce.com/s/article/2920), one can run `p4 user` from the command-line and just add the file to your "reviews". ``` # A Perforce User Specification. # # User: The user's user name. # Email: The user's email address; for email review. # Upda...
20944694
How to get folder history in perforce using the command line?
10
2014-01-06 07:00:08
<p><code>p4 filelog filename</code> gives me the full history of a file.</p> <p>I want to get the full history of a folder.</p> <p>I tried <code>p4 filelog foldername</code>, but it didn't work. I referred to the Perforce command line <a href="http://www.perforce.com/perforce/r12.1/manuals/cmdref/" rel="noreferrer">...
20,709
2,362,254
2020-10-27 06:46:44
21,129,722
12
2014-01-15 05:26:48
502,497
2020-10-27 06:46:44
https://stackoverflow.com/q/20944694
https://stackoverflow.com/a/21129722
<p>When I'm looking to get folder history I tend to run <code>p4 changes /some/interesting/folder/...</code> to see a list of all the changes that have occurred. Then I use 'p4 describe ' to inspect individual changes.</p>
<p>When I'm looking to get folder history I tend to run <code>p4 changes /some/interesting/folder/...</code> to see a list of all the changes that have occurred. Then I use 'p4 describe ' to inspect individual changes.</p>
1231, 1286
command-line, perforce
<h1>How to get folder history in perforce using the command line?</h1> <p><code>p4 filelog filename</code> gives me the full history of a file.</p> <p>I want to get the full history of a folder.</p> <p>I tried <code>p4 filelog foldername</code>, but it didn't work. I referred to the Perforce command line <a href="ht...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,516
perforce
# How to get folder history in perforce using the command line? `p4 filelog filename` gives me the full history of a file. I want to get the full history of a folder. I tried `p4 filelog foldername`, but it didn't work. I referred to the Perforce command line [manual](http://www.perforce.com/perforce/r12.1/manuals/c...
When I'm looking to get folder history I tend to run `p4 changes /some/interesting/folder/...` to see a list of all the changes that have occurred. Then I use 'p4 describe ' to inspect individual changes.
562755
How do I prevent a subversion user accessing part of the repository?
10
2009-02-18 20:44:33
<p>I'm using a Subversion repository hosted on Dreamhost for a project.</p> <p>I would like to allow access to some users on a restricted basis. At the very least I would like to allow read-only access to some users, but ideally I would like to prevent some users seeing some parts of repository at all. I can't find us...
11,017
41,477
2012-06-19 22:26:16
562,783
12
2009-02-18 20:51:08
60,531
2009-02-18 20:58:38
https://stackoverflow.com/q/562755
https://stackoverflow.com/a/562783
<p>Have a look at the authz file in the conf/ directory. You can set permissions for specific users and specific directories. In svnserve.conf you can specify if anonymous users have read access or not.</p> <p>Here's an example from a repository of mine:</p> <pre><code>[groups] project1_team = dave, john, andy [/] *...
<p>Have a look at the authz file in the conf/ directory. You can set permissions for specific users and specific directories. In svnserve.conf you can specify if anonymous users have read access or not.</p> <p>Here's an example from a repository of mine:</p> <pre><code>[groups] project1_team = dave, john, andy [/] *...
63, 359, 456, 1286
perforce, permissions, svn, version-control
<h1>How do I prevent a subversion user accessing part of the repository?</h1> <p>I'm using a Subversion repository hosted on Dreamhost for a project.</p> <p>I would like to allow access to some users on a restricted basis. At the very least I would like to allow read-only access to some users, but ideally I would like...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,517
perforce
# How do I prevent a subversion user accessing part of the repository? I'm using a Subversion repository hosted on Dreamhost for a project. I would like to allow access to some users on a restricted basis. At the very least I would like to allow read-only access to some users, but ideally I would like to prevent some...
Have a look at the authz file in the conf/ directory. You can set permissions for specific users and specific directories. In svnserve.conf you can specify if anonymous users have read access or not. Here's an example from a repository of mine: ``` [groups] project1_team = dave, john, andy [/] * = dave = rw [/proje...
15797762
Reading mp4 files with PHP
8
2013-04-03 20:45:09
<p>I'm trying to read mp4 file with PHP and what I'm doing now is this:</p> <pre><code>&lt;?php header("Content-Length: filesize"); readfile('file.mp4'); ?&gt; </code></pre> <p>but this way I can't skip or even go back until the video is not loaded 100%. Of course when I read directly from the file (video.mp4) every...
40,784
2,221,276
2020-01-29 05:30:46
15,798,140
12
2013-04-03 21:07:24
187,273
2013-04-03 21:07:24
https://stackoverflow.com/q/15797762
https://stackoverflow.com/a/15798140
<p>You need to implement the skipping functionality yourself in PHP. This is a code snippet that will do that.</p> <pre><code>&lt;?php $path = 'file.mp4'; $size=filesize($path); $fm=@fopen($path,'rb'); if(!$fm) { // You can also redirect here header ("HTTP/1.0 404 Not Found"); die(); } $begin=0; $end=$size; ...
<p>You need to implement the skipping functionality yourself in PHP. This is a code snippet that will do that.</p> <pre><code>&lt;?php $path = 'file.mp4'; $size=filesize($path); $fm=@fopen($path,'rb'); if(!$fm) { // You can also redirect here header ("HTTP/1.0 404 Not Found"); die(); } $begin=0; $end=$size; ...
5, 1034, 41898
mp4, php, readfile
<h1>Reading mp4 files with PHP</h1> <p>I'm trying to read mp4 file with PHP and what I'm doing now is this:</p> <pre><code>&lt;?php header("Content-Length: filesize"); readfile('file.mp4'); ?&gt; </code></pre> <p>but this way I can't skip or even go back until the video is not loaded 100%. Of course when I read dire...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,519
perforce
# Reading mp4 files with PHP I'm trying to read mp4 file with PHP and what I'm doing now is this: ``` <?php header("Content-Length: filesize"); readfile('file.mp4'); ?> ``` but this way I can't skip or even go back until the video is not loaded 100%. Of course when I read directly from the file (video.mp4) everythin...
You need to implement the skipping functionality yourself in PHP. This is a code snippet that will do that. ``` <?php $path = 'file.mp4'; $size=filesize($path); $fm=@fopen($path,'rb'); if(!$fm) { // You can also redirect here header ("HTTP/1.0 404 Not Found"); die(); } $begin=0; $end=$size; if(isset($_SERVE...
7828144
List of checked out files by others in Perforce
7
2011-10-19 21:07:07
<p>How can I get a list of all checked out files by user abc in Perforce?</p> <p>Also, how can I get a list of all checked out files by me?</p>
8,864
824,210
2011-10-20 08:24:40
7,828,336
12
2011-10-19 21:22:59
10,715
2011-10-19 21:22:59
https://stackoverflow.com/q/7828144
https://stackoverflow.com/a/7828336
<p>Same answer for both:</p> <pre><code>p4 opened -u &lt;username&gt; </code></pre>
<p>Same answer for both:</p> <pre><code>p4 opened -u &lt;username&gt; </code></pre>
1286
perforce
<h1>List of checked out files by others in Perforce</h1> <p>How can I get a list of all checked out files by user abc in Perforce?</p> <p>Also, how can I get a list of all checked out files by me?</p>
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,520
perforce
# List of checked out files by others in Perforce How can I get a list of all checked out files by user abc in Perforce? Also, how can I get a list of all checked out files by me?
Same answer for both: ``` p4 opened -u <username> ```
5023021
What's the proper way to refactor a single file into multiple files and maintain version history in Perforce?
15
2011-02-16 22:38:18
<p>I have a file which has gotten too large, and should be refactored into two smaller files. What's the best way to do this in Perforce such that the relationship to the original file is maintained?</p> <p>I'm adding two new files, and deleting the original in this case, but I would expect there to be some general so...
2,830
116,311
2020-03-20 16:15:42
5,034,403
11
2011-02-17 20:43:02
4,228
2011-02-17 20:43:02
https://stackoverflow.com/q/5023021
https://stackoverflow.com/a/5034403
<p>This can't be done in a single checking, but it can certainly be done without "breaking the build". Let's say you want to split <code>bigFile.cs</code> into <code>smallFile1.cs</code> and <code>smallFile2.cs</code>. First integrate the big file into the two little files and submit them.</p> <pre> p4 integrate big...
<p>This can't be done in a single checking, but it can certainly be done without "breaking the build". Let's say you want to split <code>bigFile.cs</code> into <code>smallFile1.cs</code> and <code>smallFile2.cs</code>. First integrate the big file into the two little files and submit them.</p> <pre> p4 integrate big...
1286
perforce
<h1>What's the proper way to refactor a single file into multiple files and maintain version history in Perforce?</h1> <p>I have a file which has gotten too large, and should be refactored into two smaller files. What's the best way to do this in Perforce such that the relationship to the original file is maintained?</...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,521
perforce
# What's the proper way to refactor a single file into multiple files and maintain version history in Perforce? I have a file which has gotten too large, and should be refactored into two smaller files. What's the best way to do this in Perforce such that the relationship to the original file is maintained? I'm addin...
This can't be done in a single checking, but it can certainly be done without "breaking the build". Let's say you want to split `bigFile.cs` into `smallFile1.cs` and `smallFile2.cs`. First integrate the big file into the two little files and submit them. ``` p4 integrate bigFile.cs smallFile1.cs p4 integrate bigFile.c...
43683545
Difference between 'remote', 'local', and 'base' using p4merge
11
2017-04-28 15:13:24
<p>I'm merging my branch on the <em>master</em> branch using the <code>p4Merge</code> tool, and I see three views:</p> <pre><code>LOCAL REMOTE BASE </code></pre> <p>What are the differences between these views?</p>
3,298
1,307,832
2021-06-13 16:54:21
43,683,659
11
2017-04-28 15:19:18
1,863,229
2017-09-05 09:48:10
https://stackoverflow.com/q/43683545
https://stackoverflow.com/a/43683659
<p><a href="https://www.perforce.com/video-tutorials/resolving-conflicts" rel="noreferrer">This video tutorial</a> does a good job of explaining what each of these views mean:</p> <blockquote> <p>4-pane merge tools show you these panes:</p> <ul> <li>LOCAL – your file with the changes you’ve made to it</li> <li>BASE – t...
<p><a href="https://www.perforce.com/video-tutorials/resolving-conflicts" rel="noreferrer">This video tutorial</a> does a good job of explaining what each of these views mean:</p> <blockquote> <p>4-pane merge tools show you these panes:</p> <ul> <li>LOCAL – your file with the changes you’ve made to it</li> <li>BASE – t...
119, 717, 30283
git, merge, p4merge
<h1>Difference between 'remote', 'local', and 'base' using p4merge</h1> <p>I'm merging my branch on the <em>master</em> branch using the <code>p4Merge</code> tool, and I see three views:</p> <pre><code>LOCAL REMOTE BASE </code></pre> <p>What are the differences between these views?</p>
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,522
perforce
# Difference between 'remote', 'local', and 'base' using p4merge I'm merging my branch on the *master* branch using the `p4Merge` tool, and I see three views: ``` LOCAL REMOTE BASE ``` What are the differences between these views?
[This video tutorial](https://www.perforce.com/video-tutorials/resolving-conflicts) does a good job of explaining what each of these views mean: > 4-pane merge tools show you these panes: > > - LOCAL – your file with the changes you’ve made to it > - BASE – the common ancestor file that LOCAL and REMOTE came from > - ...
49649453
How to log all requests for an http4s client
10
2018-04-04 11:07:41
<p>I want to log all the requests my application makes. The application makes several call like this:</p> <pre><code>val client: Client = org.http4s.client.blaze.SimpleHttp1Client(...) client.fetch(Request(method = GET, uri = aUri)) </code></pre> <p>Is there a way of getting the client to log to a file all the reques...
5,622
135,624
2022-08-16 10:57:06
55,138,023
11
2019-03-13 09:09:31
3,801,340
2019-03-13 09:09:31
https://stackoverflow.com/q/49649453
https://stackoverflow.com/a/55138023
<p>I got it working:</p> <ul> <li>maven </li> <li>https: 0.20.0-M6 </li> <li>slf4j-api: 1.7.26 </li> <li>slf4j-log4j12: 1.7.26</li> </ul> <p>Based on the question, you have to modify your code to this:</p> <pre><code>import org.http4s.client.middleware.Logger val client: Client = org.http4s.client.blaze.SimpleHttp1...
<p>I got it working:</p> <ul> <li>maven </li> <li>https: 0.20.0-M6 </li> <li>slf4j-api: 1.7.26 </li> <li>slf4j-log4j12: 1.7.26</li> </ul> <p>Based on the question, you have to modify your code to this:</p> <pre><code>import org.http4s.client.middleware.Logger val client: Client = org.http4s.client.blaze.SimpleHttp1...
3143, 119529
http4s, scala
<h1>How to log all requests for an http4s client</h1> <p>I want to log all the requests my application makes. The application makes several call like this:</p> <pre><code>val client: Client = org.http4s.client.blaze.SimpleHttp1Client(...) client.fetch(Request(method = GET, uri = aUri)) </code></pre> <p>Is there a way...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,523
perforce
# How to log all requests for an http4s client I want to log all the requests my application makes. The application makes several call like this: ``` val client: Client = org.http4s.client.blaze.SimpleHttp1Client(...) client.fetch(Request(method = GET, uri = aUri)) ``` Is there a way of getting the client to log to ...
I got it working: - maven - https: 0.20.0-M6 - slf4j-api: 1.7.26 - slf4j-log4j12: 1.7.26 Based on the question, you have to modify your code to this: ``` import org.http4s.client.middleware.Logger val client: Client = org.http4s.client.blaze.SimpleHttp1Client(...) Logger(logBody = true, logHeaders = true)(client) ...
38214562
How can WinMerge be used with Perforce Visual Client (P4V)?
9
2016-07-05 23:50:27
<p>I like using the <a href="http://winmerge.org/?lang=en" rel="nofollow noreferrer">WinMerge</a> file comparison tool. I'd like to use it with Perforce's P4V tool to be my diff editor.</p> <p>How can Perforce be configured to allow this?</p>
5,805
3,063,884
2020-04-14 23:02:14
38,214,563
11
2016-07-05 23:50:27
3,063,884
2016-07-05 23:50:27
https://stackoverflow.com/q/38214562
https://stackoverflow.com/a/38214563
<p>This is possible. Follow these steps:</p> <ol> <li><p>In the P4V Client, choose: <code>Edit</code> > <code>Preferences</code><br> --> The Preferences dialog appears</p></li> <li><p>In the dialog, in the list on the left, select <code>Diff</code> towards the bottom.</p></li> <li>Change the "Default diff application"...
<p>This is possible. Follow these steps:</p> <ol> <li><p>In the P4V Client, choose: <code>Edit</code> > <code>Preferences</code><br> --> The Preferences dialog appears</p></li> <li><p>In the dialog, in the list on the left, select <code>Diff</code> towards the bottom.</p></li> <li>Change the "Default diff application"...
606, 1286, 8025, 10933
diff, p4v, perforce, winmerge
<h1>How can WinMerge be used with Perforce Visual Client (P4V)?</h1> <p>I like using the <a href="http://winmerge.org/?lang=en" rel="nofollow noreferrer">WinMerge</a> file comparison tool. I'd like to use it with Perforce's P4V tool to be my diff editor.</p> <p>How can Perforce be configured to allow this?</p>
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,524
perforce
# How can WinMerge be used with Perforce Visual Client (P4V)? I like using the [WinMerge](http://winmerge.org/?lang=en) file comparison tool. I'd like to use it with Perforce's P4V tool to be my diff editor. How can Perforce be configured to allow this?
This is possible. Follow these steps: 1. In the P4V Client, choose: `Edit` > `Preferences` --> The Preferences dialog appears 2. In the dialog, in the list on the left, select `Diff` towards the bottom. 3. Change the "Default diff application" to be "Other application", then set: --- ``` Location: C:/Progra...
15765267
How to find files in Perforce using P4V?
8
2013-04-02 13:22:41
<p>I have somewhere in huge perforce depot a file that starts from "Web" and ends with ".pdf" and it probably placed under //depot/main/. How to find this file in Depot using P4V?</p>
6,293
439,524
2013-04-02 13:47:35
15,765,649
11
2013-04-02 13:39:42
2,235,132
2013-04-02 13:39:42
https://stackoverflow.com/q/15765267
https://stackoverflow.com/a/15765649
<p>It's probably easier finding using command line:</p> <pre><code>p4 files //depot/main/...Web*.pdf </code></pre>
<p>It's probably easier finding using command line:</p> <pre><code>p4 files //depot/main/...Web*.pdf </code></pre>
456, 865, 1286
perforce, user-interface, version-control
<h1>How to find files in Perforce using P4V?</h1> <p>I have somewhere in huge perforce depot a file that starts from "Web" and ends with ".pdf" and it probably placed under //depot/main/. How to find this file in Depot using P4V?</p>
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,526
perforce
# How to find files in Perforce using P4V? I have somewhere in huge perforce depot a file that starts from "Web" and ends with ".pdf" and it probably placed under //depot/main/. How to find this file in Depot using P4V?
It's probably easier finding using command line: ``` p4 files //depot/main/...Web*.pdf ```
51961389
P4 - rollback to previous revision for files in a folder if revision is different for all files
7
2018-08-22 07:03:22
<p>How to rollback to previous revision for files in a folder together if revision of all the files is different using command line? I have a requirement to rollback all the files inside a folder which also contains a sub folder and the revision of all files is not same. All the solutions that i have found requires rev...
21,657
6,027,533
2018-08-22 15:00:41
51,969,421
11
2018-08-22 14:43:12
3,799,759
2018-08-22 15:00:41
https://stackoverflow.com/q/51961389
https://stackoverflow.com/a/51969421
<p>Use the <code>p4 undo</code> command.</p> <pre><code>p4 undo folder/...@1000,now </code></pre> <p>will undo changelist 1000 and all the changelists after it. (This is the equivalent of the steps you posted -- it doesn't only roll back changelist 1000 for those files, because you synced to head in step 3!)</p> <p...
<p>Use the <code>p4 undo</code> command.</p> <pre><code>p4 undo folder/...@1000,now </code></pre> <p>will undo changelist 1000 and all the changelists after it. (This is the equivalent of the steps you posted -- it doesn't only roll back changelist 1000 for those files, because you synced to head in step 3!)</p> <p...
1286, 12196
perforce, rollback
<h1>P4 - rollback to previous revision for files in a folder if revision is different for all files</h1> <p>How to rollback to previous revision for files in a folder together if revision of all the files is different using command line? I have a requirement to rollback all the files inside a folder which also contains...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,528
perforce
# P4 - rollback to previous revision for files in a folder if revision is different for all files How to rollback to previous revision for files in a folder together if revision of all the files is different using command line? I have a requirement to rollback all the files inside a folder which also contains a sub fo...
Use the `p4 undo` command. ``` p4 undo folder/...@1000,now ``` will undo changelist 1000 and all the changelists after it. (This is the equivalent of the steps you posted -- it doesn't only roll back changelist 1000 for those files, because you synced to head in step 3!) ``` p4 undo @1000,@1000 ``` will undo change...
13565062
FPS too high when saving video in mp4 container
7
2012-11-26 12:41:41
<p>When I decode frames from avi file and then decode them in x264 and save to mp4 file, the fps of the output file is always 12,800. Therefore the file is played very fast. But, when I save the encoded in h264 frames in avi format and not mp4, so the fps is as I wanted - 25.</p> <p>What could be the problem?</p> <p>...
5,180
573,082
2016-01-17 23:22:58
13,587,332
11
2012-11-27 15:19:58
573,082
2012-11-27 15:19:58
https://stackoverflow.com/q/13565062
https://stackoverflow.com/a/13587332
<p>The problem was with PTS and DTS of the packet. Before writing the packet to output( before <code>av_interleaved_write_frame</code> command) set PTS and DTS like this</p> <pre><code>if (encodedPacket.pts != AV_NOPTS_VALUE) encodedPacket.pts = av_rescale_q(encodedPacket.pts, outStream-&gt;codec-&gt;time_base, o...
<p>The problem was with PTS and DTS of the packet. Before writing the packet to output( before <code>av_interleaved_write_frame</code> command) set PTS and DTS like this</p> <pre><code>if (encodedPacket.pts != AV_NOPTS_VALUE) encodedPacket.pts = av_rescale_q(encodedPacket.pts, outStream-&gt;codec-&gt;time_base, o...
10, 1034, 3847, 51693, 59222
c++, ffmpeg, libavcodec, libx264, mp4
<h1>FPS too high when saving video in mp4 container</h1> <p>When I decode frames from avi file and then decode them in x264 and save to mp4 file, the fps of the output file is always 12,800. Therefore the file is played very fast. But, when I save the encoded in h264 frames in avi format and not mp4, so the fps is as I...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,529
perforce
# FPS too high when saving video in mp4 container When I decode frames from avi file and then decode them in x264 and save to mp4 file, the fps of the output file is always 12,800. Therefore the file is played very fast. But, when I save the encoded in h264 frames in avi format and not mp4, so the fps is as I wanted -...
The problem was with PTS and DTS of the packet. Before writing the packet to output( before `av_interleaved_write_frame` command) set PTS and DTS like this ``` if (encodedPacket.pts != AV_NOPTS_VALUE) encodedPacket.pts = av_rescale_q(encodedPacket.pts, outStream->codec->time_base, outStream->time_base); if (encod...
41760385
How can I play a mp4 movie using Moviepy and Pygame
6
2017-01-20 09:40:44
<p>How do you play an mp4 video in Pygame?</p> <p>I have tried pygame.movie but this does not work...</p> <p>Theres also moviepy, but I am having trouble changing the title of the window that pops up. It says "MoviePy", not sure how to change that.</p> <pre><code>import moviepy from moviepy.editor import * import os...
26,567
null
2020-12-23 09:31:57
41,771,413
11
2017-01-20 19:58:51
1,832,058
2017-01-20 19:58:51
https://stackoverflow.com/q/41760385
https://stackoverflow.com/a/41771413
<p>First: you can use </p> <pre><code>import moviepy print(moviepy.__file__) </code></pre> <p>to find source code and see how it works.</p> <hr> <p>After searching in source code you will see that it uses <code>pygame</code> to display it and you can try to use pygame function <code>set_caption()</code> to change ...
<p>First: you can use </p> <pre><code>import moviepy print(moviepy.__file__) </code></pre> <p>to find source code and see how it works.</p> <hr> <p>After searching in source code you will see that it uses <code>pygame</code> to display it and you can try to use pygame function <code>set_caption()</code> to change ...
16, 519, 1034, 2529, 108812
moviepy, mp4, pygame, python, video
<h1>How can I play a mp4 movie using Moviepy and Pygame</h1> <p>How do you play an mp4 video in Pygame?</p> <p>I have tried pygame.movie but this does not work...</p> <p>Theres also moviepy, but I am having trouble changing the title of the window that pops up. It says "MoviePy", not sure how to change that.</p> <pr...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,530
perforce
# How can I play a mp4 movie using Moviepy and Pygame How do you play an mp4 video in Pygame? I have tried pygame.movie but this does not work... Theres also moviepy, but I am having trouble changing the title of the window that pops up. It says "MoviePy", not sure how to change that. ``` import moviepy from moviep...
First: you can use ``` import moviepy print(moviepy.__file__) ``` to find source code and see how it works. --- After searching in source code you will see that it uses `pygame` to display it and you can try to use pygame function `set_caption()` to change title. ``` from moviepy.editor import * import pygame py...
20987334
Can I use magnific-popup to display an MP4 video?
6
2014-01-08 04:55:26
<p>I would like to use magnifico-popup to display a locally hosted mp4 file.</p> <p>Do I need to define an iframe pattern for this or is there a simpler option.</p> <p>Many thanks for your thoughts</p> <p>Anita</p>
22,138
582,555
2022-09-30 13:52:39
20,990,645
11
2014-01-08 08:42:21
331,460
2015-05-29 09:34:55
https://stackoverflow.com/q/20987334
https://stackoverflow.com/a/20990645
<p>You'll need to integrate some third-party video player, for example <a href="http://mediaelementjs.com/" rel="noreferrer">http://mediaelementjs.com/</a></p> <p>I'd recommend to use <code>inline</code> type of popup, as it allows you to open in popup any HTML code. <a href="http://dimsemenov.com/plugins/magnific-pop...
<p>You'll need to integrate some third-party video player, for example <a href="http://mediaelementjs.com/" rel="noreferrer">http://mediaelementjs.com/</a></p> <p>I'd recommend to use <code>inline</code> type of popup, as it allows you to open in popup any HTML code. <a href="http://dimsemenov.com/plugins/magnific-pop...
3, 820, 1034, 53669, 91741
html5-video, javascript, jquery, magnific-popup, mp4
<h1>Can I use magnific-popup to display an MP4 video?</h1> <p>I would like to use magnifico-popup to display a locally hosted mp4 file.</p> <p>Do I need to define an iframe pattern for this or is there a simpler option.</p> <p>Many thanks for your thoughts</p> <p>Anita</p>
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,531
perforce
# Can I use magnific-popup to display an MP4 video? I would like to use magnifico-popup to display a locally hosted mp4 file. Do I need to define an iframe pattern for this or is there a simpler option. Many thanks for your thoughts Anita
You'll need to integrate some third-party video player, for example <http://mediaelementjs.com/> I'd recommend to use `inline` type of popup, as it allows you to open in popup any HTML code. <http://dimsemenov.com/plugins/magnific-popup/documentation.html#inline-type> Related example: <http://codepen.io/dimsemenov/pe...
4487022
How can I automatically convert all MP4 files to FLV with ffmpeg?
6
2010-12-20 05:04:39
<p>How can I automatically convert all MP4 files to FLV in a specific folder?</p> <blockquote> <p>ffmpeg -i VID00002.MP4 -ar 44100 test.flv</p> </blockquote> <p>Is there a way to queue these tasks, assuming that I don't know the file names?</p> <p>If I need to run any scripts (I'm familiar with Python), how can I ...
7,930
428,052
2017-01-25 16:44:53
6,681,718
11
2011-07-13 15:46:54
524,120
2011-07-13 15:46:54
https://stackoverflow.com/q/4487022
https://stackoverflow.com/a/6681718
<p>You can do this fairly easy within the terminal, given you have ffmpeg installed. In your terminal, enter the following:</p> <pre><code>$&gt;cd /your/path/to/videos $&gt;for i in *.mp4; do ffmpeg -i $i -ar 44100 $i.flv; done </code></pre> <p>The second command simply iterates through each mp4 file and assigns the...
<p>You can do this fairly easy within the terminal, given you have ffmpeg installed. In your terminal, enter the following:</p> <pre><code>$&gt;cd /your/path/to/videos $&gt;for i in *.mp4; do ffmpeg -i $i -ar 44100 $i.flv; done </code></pre> <p>The second command simply iterates through each mp4 file and assigns the...
1032, 1034, 3847
ffmpeg, flv, mp4
<h1>How can I automatically convert all MP4 files to FLV with ffmpeg?</h1> <p>How can I automatically convert all MP4 files to FLV in a specific folder?</p> <blockquote> <p>ffmpeg -i VID00002.MP4 -ar 44100 test.flv</p> </blockquote> <p>Is there a way to queue these tasks, assuming that I don't know the file names?<...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10
24,532
perforce
# How can I automatically convert all MP4 files to FLV with ffmpeg? How can I automatically convert all MP4 files to FLV in a specific folder? > ffmpeg -i VID00002.MP4 -ar 44100 test.flv Is there a way to queue these tasks, assuming that I don't know the file names? If I need to run any scripts (I'm familiar with P...
You can do this fairly easy within the terminal, given you have ffmpeg installed. In your terminal, enter the following: ``` $>cd /your/path/to/videos $>for i in *.mp4; do ffmpeg -i $i -ar 44100 $i.flv; done ``` The second command simply iterates through each mp4 file and assigns the filename to '$i'. You then call f...