Re: [FFmpeg-user] Streaming (over UDP or RTP) MPEG-TS with multiple scrambled video
Hi, Can you send the full output and tell us whats the problem exactly? You say what you want to do, and from your words I think is not working but you dont say that, just if there is a way to do it. Regards, P.S: Im not an expert, but the list need the full output of your command. El 30/05/2016 a las 17:34, Simon Defayette escribió: Hi, I am trying to stream over UDP or RTP a .ts file that I recorded to run some tests on a test&measure equipment and I can't find a way to do it when the file contains scrambled video. Is there a way to do it? I do something like: ffmpeg -re -i myfile_.ts -vcodec copy -acodec copy -f mpegts udp://host:port or without the -re. Any suggestion would be appreciated. Regards, Simon Defayette ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Decklink with ffmpeg audio desync
El 19/05/2016 a las 22:38, Reuben Martin escribió El 16/05/2016 a las 22:15, Marton Balint escribió: The problem may well be that when the decklink card loses input, it provides video frames only but no audio. I am afraid you have to dig into the code, to figure out what is really going on. You can try to modify it so it only adds a video frame to its packet queue if audioFrame is not null. You are not going to fix this without replacing the hardware in front of the decklink. The matrix switching its input source is doing a hard switch. It's the equivalent of quickly unplugging and plugging something else in, so that is going to cause problems. You have to have a matrix switch in front of it that internally synchronizes the inputs and doesn't interrupt the signal when switching between them. It may have worked with analog, but digital is a lot more fragile to interruption. But how can the Decklink SDI to A/V converter work perfect? I'm not video expert or something similar, I've just need to convert the SDI signal our TV Channel gives to me to a compatible format (in this case mpeg2 multicast) so I can put it in our TV Headend. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Decklink with ffmpeg audio desync
El 16/05/2016 a las 22:15, Marton Balint escribió: The problem may well be that when the decklink card loses input, it provides video frames only but no audio. I am afraid you have to dig into the code, to figure out what is really going on. You can try to modify it so it only adds a video frame to its packet queue if audioFrame is not null. You may also try using newer decklink drivers from blackmagic... Can you point me where to look at? Im far away from being programmer. Also, im already using lastest blackmagic drivers :( Regards, --Daniel ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Decklink with ffmpeg audio desync
El 14/05/2016 a las 2:44, Marton Balint escribió: I've removed -re from the command, but if that doesnt help, how can I fix the desync? I have no way of "not having" the NO INPUT SIGNAL -> INPUT SIGNAL DETECTED problem. Also, when the signal interrupts I see in the stream the colour bars. Do they come from ffmpeg or from the decklink card? Bars are coming from ffmpeg, when no input is detected. Apparently your inputs are not synchornized... Can you try to feed synchronized signal to ffmpeg to rule out this, as a probable source of A-V desync? The quick answer is no, I cant feed with sync. One of the sources is a complex PC VGA to S-VIDEO to SDI (Yes, 3 converters, dont ask) and they dont have sync in/out. We have a blackmagic SDI to Analog A/V that works perfectly (Never get desync), but with the quality loss of the Analog A/V so is a discarded solution. While Im looking on how to sync the inputs, is there any other way to fix this? Maybe telling ffmpeg to ignore any time code and just encode whatever get in? Regards, --Daniel ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Decklink with ffmpeg audio desync
El 12/05/2016 a las 21:19, Marton Balint escribió: The actual command is: ./ffmpeg -re -f decklink -i "DeckLink SDI 4K@2" -c:v mpeg2video -pix_fmt yuv420p -aspect 16:9 -deinterlace -sc_threshold 10 -b:v 3.5M -minrate:v 3.5M -maxrate:v 3.5M -bufsize:v 2.4M -acodec mp2 -ac 2 -b:a 128k-metadata service_name="TVT" -mpegts_service_id 123 -f mpegts udp://224.0.0.247:5001?pkt_size=1316 Just for info, the SDI input comes from a matrix that when switch betwen sources have a little delay and ffmpeg return a NO INPUT SIGNAL DETECTED -> INPUT SIGNAL DETECTED. Can the desync come from here? Yes, it is possible. Also I noticed you are using -re, there is no need for it, you cannot read from the device faster than realtime. I've removed -re from the command, but if that doesnt help, how can I fix the desync? I have no way of "not having" the NO INPUT SIGNAL -> INPUT SIGNAL DETECTED problem. Also, when the signal interrupts I see in the stream the colour bars. Do they come from ffmpeg or from the decklink card? Regards. -Daniel ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Decklink with ffmpeg audio desync
El 11/05/2016 a las 23:42, Marton Balint escribió: With -ar 44100 you are resampling the initial sample rate of the captured source (48000) to 44100. You are also manually specifying a resample filter with -af resample. Try your encoding without these options. I've removed both options yesterday (figured it out) and video/audio still desyncing. The actual command is: ./ffmpeg -re -f decklink -i "DeckLink SDI 4K@2" -c:v mpeg2video -pix_fmt yuv420p -aspect 16:9 -deinterlace -sc_threshold 10 -b:v 3.5M -minrate:v 3.5M -maxrate:v 3.5M -bufsize:v 2.4M -acodec mp2 -ac 2 -b:a 128k-metadata service_name="TVT" -mpegts_service_id 123 -f mpegts udp://224.0.0.247:5001?pkt_size=1316 Just for info, the SDI input comes from a matrix that when switch betwen sources have a little delay and ffmpeg return a NO INPUT SIGNAL DETECTED -> INPUT SIGNAL DETECTED. Can the desync come from here? Regards, ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Decklink with ffmpeg audio desync
Hi Marton, Thanks for replying. And without resampling you mean? Sorry, Im far away of having video skills. Regards, --Daniel El 09/05/2016 a las 21:38, Balint Marton escribió: On Mon, 9 May 2016, Dpto. Datos Television Costa Blanca wrote: Hi Again, Nobody had this problem before or know how to fix it? I'd try it without resampling for starters. Regards, Marton ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Decklink with ffmpeg audio desync
Hi Again, Nobody had this problem before or know how to fix it? Thanks in advance, --Daniel B. El 28/04/2016 a las 10:41, Dpto. Datos Television Costa Blanca escribió: Hello everyone, Im Daniel and Im new to the list. Im doing an mpeg2 ts over multicast with a Decklink SDI 4K as input. After some random time, audio and video start desyncing. Its start just a little bit at first for desyn start growing over time.. This is the command Im using and the initial output. ./ffmpeg -re -f decklink -i "DeckLink SDI 4K@2" -c:v mpeg2video -pix_fmt yuv420p -aspect 16:9 -deinterlace -sc_threshold 10 -b:v 3.5M -minrate:v 3.5M -maxrate:v 3.5M -bufsize:v 2.4M -acodec mp2 -ac 2 -b:a 128k -ar 44100 -af aresample=async=1:min_hard_comp=0.100:first_pts=0 -metadata service_name="TVT" -mpegts_service_id 123 -f mpegts udp://224.0.0.247:5001?pkt_size=1316 ffmpeg version 3.0.1 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 4.7 (Debian 4.7.2-5) configuration: --enable-gpl --enable-libx264 --enable-libmp3lame --enable-decklink --extra-cflags=-I/home/cor/DeckLink/Linux/include --extra-ldflags=-L/home/cor/DeckLink/Linux/include/ libavutil 55. 17.103 / 55. 17.103 libavcodec 57. 24.102 / 57. 24.102 libavformat57. 25.100 / 57. 25.100 libavdevice57. 0.101 / 57. 0.101 libavfilter 6. 31.100 / 6. 31.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 libpostproc54. 0.100 / 54. 0.100 [decklink @ 0x32d1780] Found Decklink mode 720 x 576 with rate 25.00(i) Guessed Channel Layout for Input Stream #0.0 : stereo Input #0, decklink, from 'DeckLink SDI 4K@2': Duration: N/A, start: 0.00, bitrate: 1536 kb/s Stream #0:0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s Stream #0:1: Video: rawvideo (UYVY / 0x59565955), uyvy422, 720x576, -4 kb/s, 25 tbr, 1000k tbn, 25 tbc Output #0, mpegts, to 'udp://224.0.0.247:5001?pkt_size=1316': Metadata: service_name: TVT encoder : Lavf57.25.100 Stream #0:0: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 3500 kb/s, 25 fps, 90k tbn, 25 tbc Metadata: encoder : Lavc57.24.102 mpeg2video Side data: unknown side data type 10 (24 bytes) Stream #0:1: Audio: mp2, 44100 Hz, stereo, s16, 128 kb/s Metadata: encoder : Lavc57.24.102 mp2 Stream mapping: Stream #0:1 -> #0:0 (rawvideo (native) -> mpeg2video (native)) Stream #0:0 -> #0:1 (pcm_s16le (native) -> mp2 (native)) Press [q] to stop, [?] for help Any though in what can be causing the descync and how to fix it? Thanks in advance. --Daniel B. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] Decklink with ffmpeg audio desync
Hello everyone, Im Daniel and Im new to the list. Im doing an mpeg2 ts over multicast with a Decklink SDI 4K as input. After some random time, audio and video start desyncing. Its start just a little bit at first for desyn start growing over time.. This is the command Im using and the initial output. ./ffmpeg -re -f decklink -i "DeckLink SDI 4K@2" -c:v mpeg2video -pix_fmt yuv420p -aspect 16:9 -deinterlace -sc_threshold 10 -b:v 3.5M -minrate:v 3.5M -maxrate:v 3.5M -bufsize:v 2.4M -acodec mp2 -ac 2 -b:a 128k -ar 44100 -af aresample=async=1:min_hard_comp=0.100:first_pts=0 -metadata service_name="TVT" -mpegts_service_id 123 -f mpegts udp://224.0.0.247:5001?pkt_size=1316 ffmpeg version 3.0.1 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 4.7 (Debian 4.7.2-5) configuration: --enable-gpl --enable-libx264 --enable-libmp3lame --enable-decklink --extra-cflags=-I/home/cor/DeckLink/Linux/include --extra-ldflags=-L/home/cor/DeckLink/Linux/include/ libavutil 55. 17.103 / 55. 17.103 libavcodec 57. 24.102 / 57. 24.102 libavformat57. 25.100 / 57. 25.100 libavdevice57. 0.101 / 57. 0.101 libavfilter 6. 31.100 / 6. 31.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 libpostproc54. 0.100 / 54. 0.100 [decklink @ 0x32d1780] Found Decklink mode 720 x 576 with rate 25.00(i) Guessed Channel Layout for Input Stream #0.0 : stereo Input #0, decklink, from 'DeckLink SDI 4K@2': Duration: N/A, start: 0.00, bitrate: 1536 kb/s Stream #0:0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s Stream #0:1: Video: rawvideo (UYVY / 0x59565955), uyvy422, 720x576, -4 kb/s, 25 tbr, 1000k tbn, 25 tbc Output #0, mpegts, to 'udp://224.0.0.247:5001?pkt_size=1316': Metadata: service_name: TVT encoder : Lavf57.25.100 Stream #0:0: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 3500 kb/s, 25 fps, 90k tbn, 25 tbc Metadata: encoder : Lavc57.24.102 mpeg2video Side data: unknown side data type 10 (24 bytes) Stream #0:1: Audio: mp2, 44100 Hz, stereo, s16, 128 kb/s Metadata: encoder : Lavc57.24.102 mp2 Stream mapping: Stream #0:1 -> #0:0 (rawvideo (native) -> mpeg2video (native)) Stream #0:0 -> #0:1 (pcm_s16le (native) -> mp2 (native)) Press [q] to stop, [?] for help Any though in what can be causing the descync and how to fix it? Thanks in advance. --Daniel B. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".