All Questions
44
questions
0
votes
1answer
21 views
Did I broke my video file with Windows Sub-System for Linux?
I did some basic operations to my video files using FFmpeg:
ffmpeg -i input.mp4 -c:a copy -c:v copy output.mp4
And everything's fine. Until I accidently realized something. When I ls, I saw that one ...
9
votes
3answers
10k views
How can you trim mp3 files using `ffmpeg`?
Here is a Linux audio MP3 puzzle that has been bugging me for awhile:
How to trim the beginning few seconds off an MP3 audio file? (I can't get ffmpeg -ss to work with either 00:01 or 1.000 format)
...
0
votes
1answer
21 views
FFMPEG - Extracting a frame from .mov doesnt work (multiply errors)
When I tra to extract q frame at second 1 from a video file it says this:
(running via ssh on synology diskstation with ffmpeg installed)
Error with output (COMMAND ON TOP) (https://i.stack.imgur.com/...
1
vote
2answers
68 views
Using nested while loops for ffmpeg processing
I'm trying to use ffmpeg's signature function to perform a duplicate analysis on several thousand video files that are listed in the text file vids.list. I need to have it so that every file is ...
1
vote
0answers
27 views
ffmpeg vaapi encode causes black bar on the right side
I'm trying to transcode an 854x480 h264 mp4 video to an h265 mp4 video using vaapi.
The video does come out nice looking, And encodes very quickly. But there is a black bar on the right side of the ...
3
votes
1answer
473 views
How can I stream my desktop/screen to /dev/video1 as a (fake) “webcam” on Linux?
I have two commands, one that lets me record my screen to an AVI video file, and another which lets me stream a video file as a (fake) "webcam". This is really useful in apps that doesn't support ...
2
votes
0answers
208 views
Why is VLC Media Player playing videos like this?
Please see the short GIF recorded screencast of the problem in action. This is how all videos open and play, I cannot see a darn thing, just these big colored bars where the color is taken from the ...
0
votes
3answers
10k views
Alsa Pulse Audio cannot open audio device pulse (No such file or directory) pulse: Input/output error
I'm trying to stream my Gnome Desktop I installed on my OpenVZ VPS Server, and I'm not trying to run this from SSH, but the terminal inside the GNOME desktop,
I know it probably doesn't have a sound ...
5
votes
3answers
12k views
How to enable libass on Linux?
I tried to enable libass for ffmpeg with this --enable-libass in command but it didn't recognise the command.
Does anyone know how to enable libass on Linux?
0
votes
0answers
283 views
ffmpeg black screen recording
When I record my desktop or recording video with ffmpeg it generates a black video.
My operating system is Ubuntu 18:04 bionic kernel 4.16
Here is the command I'm using :
ffmpeg -f x11grab -s ...
0
votes
1answer
508 views
error ffmpeg Cannot open display :0.0+0,0, error 1. :0.0+0,0: Input/output error
Hello I get this error when i want to capture my screen on linux with ffmpeg ubuntu 16:04 :
the command i'am using :
$ ffmpeg -f x11grab -r 15 -s 1920x1080 -i :0.0+0,0 -vcodec rawvideo -pix_fmt ...
0
votes
0answers
114 views
convert two channels into a single channel left or right with ffmpeg
I have some .wav files and I would like to convert their frequency (fs) and number of channels (nchannels). I am using ffmpeg on a jupyter notebook, python3.6 but using linux command line with a ...
1
vote
0answers
111 views
ffmpeg bash script doesn't not work with subtitles when it comes to a filename with spaces
Here is my current script
#!/bin/bash
while true
do
for f in *.mkv;
do
/home5/user/ffmpeg_folder/./ffmpeg-git-20181101-64bit-static/ffmpeg \
-i "$f" -c:v h264 -maxrate 12M -crf 16 -c:a copy -vf ...
0
votes
1answer
1k views
FFMPEG Conversion Fails
Bad file?
I'm using FFMPEG so how can I better debug and trace these issues?
ffmpeg -i /home/videospace/public_html/labo/lion.3gp new_video.flv
ffmpeg version N-57647-g1880294 Copyright (c) 2000-...
5
votes
2answers
321 views
Duplicate screen Xorg over network (Xpra ?)
I'm looking for a way to duplicate my desktop on a network. (Something that would work on a web browser client would be amazing.)
I tried to use vnc / x11vnc but quality/framerate is too low. (cpu ...
1
vote
1answer
148 views
How to log a process's uptime and restarts
I know that I can check a process's uptime with the following:
ps -o etime= -p "PID"
where PID = pid number.
I would like to write to a log when this process ends, and include it's uptime. The ...
1
vote
1answer
221 views
How I can to cut line segment video with ffmpeg?
I want to cut video from long-video with ffmpeg, I use this command:
ffmpeg -i /home/nantembo/VideoPerl/1.mp4 -f avi -vcodec copy -acodec copy -ss 0:14:47 -t 0:58:55 /home/nantembo/VideoPerl/2.mp4
...
3
votes
1answer
580 views
How to stream a local video to webcam using ffmpeg?
I have a local video and I want to stream it to a dummy webcam video device from v4l2loopback. I created the dummy device at /dev/video1. How to use ffmpeg to steam that local video trial_video.mp4 to ...
1
vote
2answers
1k views
FFMPEG: change input without stoping proccess
how i can change input on ffmpeg without stop process on linux Debian 9? im user decklink input and i need to change to file mp4 input.
ffmpeg -f decklink -i 'DeckLink Mini Recorder' -vf setpts=PTS-...
0
votes
1answer
693 views
ffmpeg add video to the start and end of another
So I am using the following to convert all our videos in /home/vids to mp4 and output them in /home/vids2 but now I would like to add another video that plays before and after each video in /home/vids....
1
vote
1answer
334 views
ffmpeg mass transcode videos in directory
I have loads of videos named different things and different extensions (some mp4 some wmv etc).
I would like to run the command below but on every video in a specific directory and then save that in ...
1
vote
1answer
2k views
FFMpeg : GIF to MP4 conversion throws code error.
I am trying to convert a GIF to a MP4. I am getting an error while doing that with specific parameters. What am I doing wrong? Any help would be nice. I would like a mp4 video with high quality, size ...
1
vote
1answer
38 views
Start playing a video at a certain time
I want to play a video at a certain time. Like an alarm. for instance, at 07:00 play video.mp4
I have tried this with crontab and with at, but no success yet
1
vote
1answer
188 views
Create CBR TS file from MXF file
I am looking for a way to create CBR TS file from a high bitrate MXF input file. I have tried to use ffmpeg, but apparently it doesn't do a good job of creating CBR output file so right now I am a bit ...
1
vote
1answer
93 views
bash parallel encoding and uploading
I am working on a bash script for encoding videos with ffmpeg in a special format. To save the resulting videos I want to upload the video as soon as the encoding is finished.
Therefore I want to use ...
0
votes
1answer
111 views
Achieving a high-availability ffmpeg system?
I wonder if there's a way to realize a sort of "high-availability" ffmpeg system.
Let's say, I have two Linux servers: server1 and server2, dedicated to do some video conversion with ffmpeg.
With a ...
14
votes
3answers
59k views
How to check if a shared library is installed?
My question originates from my problem in getting ffmpeg started.
I have installed ffmpeg and it is displayed as installed:
whereis ffmpeg
ffmpeg: /usr/bin/ffmpeg /usr/bin/X11/ffmpeg /usr/share/...
2
votes
2answers
5k views
ffmpeg: nvenc mit crf option - very low bitrate
I bought a new computer some time ago..
I installed nvenc for ffmpeg to encode my videos with the h264 codec.
To optimize i used the
-crf option
but something went wrong..
I want to encode a full ...
1
vote
0answers
481 views
Pipe viewer (PV) not working?
I'm trying to use Pipe Viewer on a video pipe that I'm both writing and reading from.
The below command works perfectly when I pass temp_video.h264 as an -i input to ffmpeg. However, when I attempt ...
1
vote
1answer
468 views
FFMPEG glue MPEG TS
I have movie split in many parts with duration 10-30 seconds. All movies are MPEG TS files. I want to merge them.
I try to make following:
ffmpeg -f concat -i join.txt OUTPUT.TS
and
ffmpeg -i "...
0
votes
1answer
3k views
How to formulate FFmpeg command for ZERO latency streaming to VR headset?
How would one formulate a command for point-to-point 2K 60-90Hz streaming from one PC to another with lowest possible latency using ffmpeg?
Full story:
I built a VR headset from an eyebox off Amazon,...
1
vote
1answer
784 views
Mirror not found when trying to install FFMPEG on CENTOS7
I'm on a dedicated server with Root access. not familiar with servers. Im trying to install FFMpeg on my server. I'm getting errors can't figure out how to solve it. So any light on this will be very ...
0
votes
2answers
2k views
Alternative to ffplay for Raw Video Playback without X Windows
I am successfully capturing frames from a small USB IR camera on the small Raspberry Pi Linux board. I am using the 'libseek' code to do this:
https://github.com/zougloub/libseek
I can see alot of ...
2
votes
3answers
3k views
installing ffmpeg-php on centos
With the help of this guide, I am trying to install ffmpeg using these commands:
# cd ffmpeg-php/branches/ffmpeg-php/ffmpeg-php-0.6.1/
# replace 'PIX_FMT_RGBA32' 'PIX_FMT_RGB32' -- *
# phpize
# ....
1
vote
0answers
195 views
Record fullscreen program with avconv/ffmpeg?
I'm trying to record a fullscreen program (snes9x) with avconv, aka ffmpeg. I have avconv set up to use my whole screen, but it doesn't capture snes9x when I run it.
#!/bin/bash
avconv \
-f ...
1
vote
1answer
5k views
FFMpeg : Creating a video clip of approx. 10 seconds when video duration is unknown without audio-
I am working on a project where I am looking to extract a video clip from an input video. I have found many links(Eg : link) which do this task, but in all this I have to specify video duration.
...
2
votes
1answer
598 views
FFMpeg : Converting a video file to a gif with multiple images from video
I am working on a project in which the user can upload videos. Is there any way with FFmpeg I can take some images from the video and create a GIF out of it?
As the project is in Java, I have a way ...
1
vote
2answers
1k views
bash: ffmpeg libx265 prevent output
I'd like to use the new codec x265 (libx265) to encode my video collection.
For this I created a lovely bash script under linux which works in general very well! But something is strange:
I prohibit ...
-1
votes
1answer
998 views
how to convert video into webm format using ffmpeg in centos
how to convert video into webm format using ffmpeg and libvpx in centos
I have install ffmpeg and libvpx in centos.but it's doesn't convert mp4 format into webm format. but in windows i have check, ...
0
votes
0answers
118 views
timout command is not timing out
I have a timeout command that is not timing out.
user@db:~$ ps aux | grep 'timeout'
user 4979 0.0 0.0 4440 628 pts/144 S+ 18:52 0:00 sh -c timeout 16 mycommand
user 4980 0.0 ...
2
votes
1answer
636 views
Application specific DNS problem?
I'm working on a live stream transcoder application using nginx + ffmpeg.
Everything works fine when I use avconv to transcode, but if I use ffmpeg, I get this error:
[tcp @ 0xb4e9da0] Failed to ...
11
votes
2answers
31k views
How get the best quality when converting from mp4 to avi with ffmpeg?
When I use this, the quality doesn't look bad.
ffmpeg -same_quant -i video.mp4 video.avi
In the ffmpeg documentation is written: "Note that this is NOT SAME QUALITY. Do not use this option unless ...
0
votes
0answers
2k views
ffmpeg: problems when copying the audio
When I run this ffmpeg -i video.mp4 -codec copy video.avi I get a broken audio: a crackling like a stuck LP. The input-audio is aac
When I re-encode the audio like this ffmpeg -i video.mp4 -codec:v:0 ...
1
vote
1answer
2k views
ffmpeg with mp3 support: How to install (use) in user mode?
I want to use ffmpeg and libmp3lame on a stable Debian box. Alas, Debian does not support the libmp3lame package. So, I downloaded the sources for ffmpeg and the lame encoder, configured and installed ...